diff --git a/built_packages b/built_packages index f5e2ca143..476d38070 100755 --- a/built_packages +++ b/built_packages @@ -15,18 +15,18 @@ https://github.com/micro-ROS/rmw-microxrcedds.git 6b10d6efcef8c018dde921db07cddd https://github.com/micro-ROS/rosidl_typesupport.git 75cf23ab6cf286f28acb88cc982998580738fdda https://github.com/micro-ROS/rosidl_typesupport_microxrcedds.git 667596bf8cc35a3f5021a48f6185a053bf4c163e https://github.com/ros-controls/control_msgs 1416954c31432c192ff95a06559847e87386cf60 -https://github.com/ros2/ament_cmake_ros.git 7a4094facacee5d468d705851a3d1eb8e864cef2 -https://github.com/ros2/common_interfaces.git 7e7b173b5b0ee90d29392ebfbf0754e7524f9725 +https://github.com/ros2/ament_cmake_ros.git 46558f541601cf7d7edc9e88fc6052883ef680af +https://github.com/ros2/common_interfaces.git 0134f04711e2b93eff3a4711eed91e3191b526b0 https://github.com/ros2/example_interfaces.git 836eb2eee9f421920ee564eea7cc9298a04bbbbb https://github.com/ros2/libyaml_vendor.git 855754620fd05bdc7601d464958522b395435f3c -https://github.com/ros2/rcl.git ea3937b858d09172f486f9734a80c313c28f4a06 +https://github.com/ros2/rcl.git 84638459698ef6fa23f837e7485339bd770ee524 https://github.com/ros2/rcl_interfaces.git 075fb015db064dace23319fafc44bad00f691132 https://github.com/ros2/rcl_logging.git 2d5deed307163d15f9ef2379ee2facd86a643969 https://github.com/ros2/rclc c9c6fcfbcc4c2da0feb53f86aa541efe935ebe2e https://github.com/ros2/rcpputils.git a8012ace7cf4f66947c29736757e389dfb491ce1 https://github.com/ros2/rmw.git 79ee1d7915098815df2c1abc8c0062c1ffe7dc9a https://github.com/ros2/rmw_implementation.git 7ec12a46671bf56593d6695eac9abc682f5dc6c8 -https://github.com/ros2/ros2_tracing.git 74b3d769d9e7708096a32d842d9216f943a3df73 +https://github.com/ros2/ros2_tracing.git 6c5a70472760e77d0ae17f127bd0b6fe284b7f6a https://github.com/ros2/rosidl.git 8f19a2d393817172cdcac62355c0841e08b649be https://github.com/ros2/rosidl_core.git 39a301d7663986d8c819a3017350751cc576ffb0 https://github.com/ros2/rosidl_dds.git 7540c3b361b9e75fb3bd36af3ecb112bf22891ff diff --git a/src/action_msgs/msg/detail/goal_info__functions.h b/src/action_msgs/msg/detail/goal_info__functions.h deleted file mode 100755 index d5902afe4..000000000 --- a/src/action_msgs/msg/detail/goal_info__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from action_msgs:msg/GoalInfo.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "action_msgs/msg/goal_info.h" - - -#ifndef ACTION_MSGS__MSG__DETAIL__GOAL_INFO__FUNCTIONS_H_ -#define ACTION_MSGS__MSG__DETAIL__GOAL_INFO__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "action_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "action_msgs/msg/detail/goal_info__struct.h" - -/// Initialize msg/GoalInfo message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * action_msgs__msg__GoalInfo - * )) before or use - * action_msgs__msg__GoalInfo__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalInfo__init(action_msgs__msg__GoalInfo * msg); - -/// Finalize msg/GoalInfo message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__msg__GoalInfo__fini(action_msgs__msg__GoalInfo * msg); - -/// Create msg/GoalInfo message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * action_msgs__msg__GoalInfo__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -action_msgs__msg__GoalInfo * -action_msgs__msg__GoalInfo__create(void); - -/// Destroy msg/GoalInfo message. -/** - * It calls - * action_msgs__msg__GoalInfo__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__msg__GoalInfo__destroy(action_msgs__msg__GoalInfo * msg); - -/// Check for msg/GoalInfo message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalInfo__are_equal(const action_msgs__msg__GoalInfo * lhs, const action_msgs__msg__GoalInfo * rhs); - -/// Copy a msg/GoalInfo message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalInfo__copy( - const action_msgs__msg__GoalInfo * input, - action_msgs__msg__GoalInfo * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_type_hash_t * -action_msgs__msg__GoalInfo__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeDescription * -action_msgs__msg__GoalInfo__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource * -action_msgs__msg__GoalInfo__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -action_msgs__msg__GoalInfo__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/GoalInfo messages. -/** - * It allocates the memory for the number of elements and calls - * action_msgs__msg__GoalInfo__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalInfo__Sequence__init(action_msgs__msg__GoalInfo__Sequence * array, size_t size); - -/// Finalize array of msg/GoalInfo messages. -/** - * It calls - * action_msgs__msg__GoalInfo__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__msg__GoalInfo__Sequence__fini(action_msgs__msg__GoalInfo__Sequence * array); - -/// Create array of msg/GoalInfo messages. -/** - * It allocates the memory for the array and calls - * action_msgs__msg__GoalInfo__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -action_msgs__msg__GoalInfo__Sequence * -action_msgs__msg__GoalInfo__Sequence__create(size_t size); - -/// Destroy array of msg/GoalInfo messages. -/** - * It calls - * action_msgs__msg__GoalInfo__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__msg__GoalInfo__Sequence__destroy(action_msgs__msg__GoalInfo__Sequence * array); - -/// Check for msg/GoalInfo message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalInfo__Sequence__are_equal(const action_msgs__msg__GoalInfo__Sequence * lhs, const action_msgs__msg__GoalInfo__Sequence * rhs); - -/// Copy an array of msg/GoalInfo messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalInfo__Sequence__copy( - const action_msgs__msg__GoalInfo__Sequence * input, - action_msgs__msg__GoalInfo__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__DETAIL__GOAL_INFO__FUNCTIONS_H_ diff --git a/src/action_msgs/msg/detail/goal_info__rosidl_typesupport_introspection_c.h b/src/action_msgs/msg/detail/goal_info__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c52874da0..000000000 --- a/src/action_msgs/msg/detail/goal_info__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from action_msgs:msg/GoalInfo.idl -// generated code does not contain a copyright notice - -#ifndef ACTION_MSGS__MSG__DETAIL__GOAL_INFO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define ACTION_MSGS__MSG__DETAIL__GOAL_INFO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "action_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, action_msgs, msg, GoalInfo)(); - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__DETAIL__GOAL_INFO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/action_msgs/msg/detail/goal_info__rosidl_typesupport_microxrcedds_c.h b/src/action_msgs/msg/detail/goal_info__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 9f180fdef..000000000 --- a/src/action_msgs/msg/detail/goal_info__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from action_msgs:msg/GoalInfo.idl -// generated code does not contain a copyright notice -#ifndef ACTION_MSGS__MSG__GOAL_INFO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define ACTION_MSGS__MSG__GOAL_INFO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "action_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -size_t get_serialized_size_action_msgs__msg__GoalInfo( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -size_t max_serialized_size_action_msgs__msg__GoalInfo( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, action_msgs, msg, GoalInfo)(); - -#ifdef __cplusplus -} -#endif - - -#endif // ACTION_MSGS__MSG__GOAL_INFO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/action_msgs/msg/detail/goal_info__struct.h b/src/action_msgs/msg/detail/goal_info__struct.h deleted file mode 100755 index 9b016aa94..000000000 --- a/src/action_msgs/msg/detail/goal_info__struct.h +++ /dev/null @@ -1,53 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from action_msgs:msg/GoalInfo.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "action_msgs/msg/goal_info.h" - - -#ifndef ACTION_MSGS__MSG__DETAIL__GOAL_INFO__STRUCT_H_ -#define ACTION_MSGS__MSG__DETAIL__GOAL_INFO__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -#include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'stamp' -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in msg/GoalInfo in the package action_msgs. -/** - * Goal ID - */ -typedef struct action_msgs__msg__GoalInfo -{ - unique_identifier_msgs__msg__UUID goal_id; - /// Time when the goal was accepted - builtin_interfaces__msg__Time stamp; -} action_msgs__msg__GoalInfo; - -// Struct for a sequence of action_msgs__msg__GoalInfo. -typedef struct action_msgs__msg__GoalInfo__Sequence -{ - action_msgs__msg__GoalInfo * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} action_msgs__msg__GoalInfo__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__DETAIL__GOAL_INFO__STRUCT_H_ diff --git a/src/action_msgs/msg/detail/goal_info__type_support.h b/src/action_msgs/msg/detail/goal_info__type_support.h deleted file mode 100755 index 1e177fc29..000000000 --- a/src/action_msgs/msg/detail/goal_info__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from action_msgs:msg/GoalInfo.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "action_msgs/msg/goal_info.h" - - -#ifndef ACTION_MSGS__MSG__DETAIL__GOAL_INFO__TYPE_SUPPORT_H_ -#define ACTION_MSGS__MSG__DETAIL__GOAL_INFO__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "action_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - action_msgs, - msg, - GoalInfo -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__DETAIL__GOAL_INFO__TYPE_SUPPORT_H_ diff --git a/src/action_msgs/msg/detail/goal_status__functions.h b/src/action_msgs/msg/detail/goal_status__functions.h deleted file mode 100755 index a7ebfb160..000000000 --- a/src/action_msgs/msg/detail/goal_status__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from action_msgs:msg/GoalStatus.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "action_msgs/msg/goal_status.h" - - -#ifndef ACTION_MSGS__MSG__DETAIL__GOAL_STATUS__FUNCTIONS_H_ -#define ACTION_MSGS__MSG__DETAIL__GOAL_STATUS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "action_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "action_msgs/msg/detail/goal_status__struct.h" - -/// Initialize msg/GoalStatus message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * action_msgs__msg__GoalStatus - * )) before or use - * action_msgs__msg__GoalStatus__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalStatus__init(action_msgs__msg__GoalStatus * msg); - -/// Finalize msg/GoalStatus message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__msg__GoalStatus__fini(action_msgs__msg__GoalStatus * msg); - -/// Create msg/GoalStatus message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * action_msgs__msg__GoalStatus__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -action_msgs__msg__GoalStatus * -action_msgs__msg__GoalStatus__create(void); - -/// Destroy msg/GoalStatus message. -/** - * It calls - * action_msgs__msg__GoalStatus__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__msg__GoalStatus__destroy(action_msgs__msg__GoalStatus * msg); - -/// Check for msg/GoalStatus message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalStatus__are_equal(const action_msgs__msg__GoalStatus * lhs, const action_msgs__msg__GoalStatus * rhs); - -/// Copy a msg/GoalStatus message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalStatus__copy( - const action_msgs__msg__GoalStatus * input, - action_msgs__msg__GoalStatus * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_type_hash_t * -action_msgs__msg__GoalStatus__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeDescription * -action_msgs__msg__GoalStatus__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource * -action_msgs__msg__GoalStatus__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -action_msgs__msg__GoalStatus__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/GoalStatus messages. -/** - * It allocates the memory for the number of elements and calls - * action_msgs__msg__GoalStatus__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalStatus__Sequence__init(action_msgs__msg__GoalStatus__Sequence * array, size_t size); - -/// Finalize array of msg/GoalStatus messages. -/** - * It calls - * action_msgs__msg__GoalStatus__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__msg__GoalStatus__Sequence__fini(action_msgs__msg__GoalStatus__Sequence * array); - -/// Create array of msg/GoalStatus messages. -/** - * It allocates the memory for the array and calls - * action_msgs__msg__GoalStatus__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -action_msgs__msg__GoalStatus__Sequence * -action_msgs__msg__GoalStatus__Sequence__create(size_t size); - -/// Destroy array of msg/GoalStatus messages. -/** - * It calls - * action_msgs__msg__GoalStatus__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__msg__GoalStatus__Sequence__destroy(action_msgs__msg__GoalStatus__Sequence * array); - -/// Check for msg/GoalStatus message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalStatus__Sequence__are_equal(const action_msgs__msg__GoalStatus__Sequence * lhs, const action_msgs__msg__GoalStatus__Sequence * rhs); - -/// Copy an array of msg/GoalStatus messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalStatus__Sequence__copy( - const action_msgs__msg__GoalStatus__Sequence * input, - action_msgs__msg__GoalStatus__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__DETAIL__GOAL_STATUS__FUNCTIONS_H_ diff --git a/src/action_msgs/msg/detail/goal_status__rosidl_typesupport_introspection_c.h b/src/action_msgs/msg/detail/goal_status__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 170f27314..000000000 --- a/src/action_msgs/msg/detail/goal_status__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from action_msgs:msg/GoalStatus.idl -// generated code does not contain a copyright notice - -#ifndef ACTION_MSGS__MSG__DETAIL__GOAL_STATUS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define ACTION_MSGS__MSG__DETAIL__GOAL_STATUS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "action_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, action_msgs, msg, GoalStatus)(); - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__DETAIL__GOAL_STATUS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/action_msgs/msg/detail/goal_status__rosidl_typesupport_microxrcedds_c.h b/src/action_msgs/msg/detail/goal_status__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 1a31651d7..000000000 --- a/src/action_msgs/msg/detail/goal_status__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from action_msgs:msg/GoalStatus.idl -// generated code does not contain a copyright notice -#ifndef ACTION_MSGS__MSG__GOAL_STATUS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define ACTION_MSGS__MSG__GOAL_STATUS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "action_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -size_t get_serialized_size_action_msgs__msg__GoalStatus( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -size_t max_serialized_size_action_msgs__msg__GoalStatus( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, action_msgs, msg, GoalStatus)(); - -#ifdef __cplusplus -} -#endif - - -#endif // ACTION_MSGS__MSG__GOAL_STATUS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/action_msgs/msg/detail/goal_status__struct.h b/src/action_msgs/msg/detail/goal_status__struct.h deleted file mode 100755 index c821370de..000000000 --- a/src/action_msgs/msg/detail/goal_status__struct.h +++ /dev/null @@ -1,119 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from action_msgs:msg/GoalStatus.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "action_msgs/msg/goal_status.h" - - -#ifndef ACTION_MSGS__MSG__DETAIL__GOAL_STATUS__STRUCT_H_ -#define ACTION_MSGS__MSG__DETAIL__GOAL_STATUS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'STATUS_UNKNOWN'. -/** - * Indicates status has not been properly set. - */ -enum -{ - action_msgs__msg__GoalStatus__STATUS_UNKNOWN = 0 -}; - -/// Constant 'STATUS_ACCEPTED'. -/** - * The goal has been accepted and is awaiting execution. - */ -enum -{ - action_msgs__msg__GoalStatus__STATUS_ACCEPTED = 1 -}; - -/// Constant 'STATUS_EXECUTING'. -/** - * The goal is currently being executed by the action server. - */ -enum -{ - action_msgs__msg__GoalStatus__STATUS_EXECUTING = 2 -}; - -/// Constant 'STATUS_CANCELING'. -/** - * The client has requested that the goal be canceled and the action server has - * accepted the cancel request. - */ -enum -{ - action_msgs__msg__GoalStatus__STATUS_CANCELING = 3 -}; - -/// Constant 'STATUS_SUCCEEDED'. -/** - * The goal was achieved successfully by the action server. - */ -enum -{ - action_msgs__msg__GoalStatus__STATUS_SUCCEEDED = 4 -}; - -/// Constant 'STATUS_CANCELED'. -/** - * The goal was canceled after an external request from an action client. - */ -enum -{ - action_msgs__msg__GoalStatus__STATUS_CANCELED = 5 -}; - -/// Constant 'STATUS_ABORTED'. -/** - * The goal was terminated by the action server without an external request. - */ -enum -{ - action_msgs__msg__GoalStatus__STATUS_ABORTED = 6 -}; - -// Include directives for member types -// Member 'goal_info' -#include "action_msgs/msg/detail/goal_info__struct.h" - -/// Struct defined in msg/GoalStatus in the package action_msgs. -/** - * An action goal can be in one of these states after it is accepted by an action - * server. - * - * For more information, see http://design.ros2.org/articles/actions.html - */ -typedef struct action_msgs__msg__GoalStatus -{ - /// Goal info (contains ID and timestamp). - action_msgs__msg__GoalInfo goal_info; - /// Action goal state-machine status. - int8_t status; -} action_msgs__msg__GoalStatus; - -// Struct for a sequence of action_msgs__msg__GoalStatus. -typedef struct action_msgs__msg__GoalStatus__Sequence -{ - action_msgs__msg__GoalStatus * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} action_msgs__msg__GoalStatus__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__DETAIL__GOAL_STATUS__STRUCT_H_ diff --git a/src/action_msgs/msg/detail/goal_status__type_support.h b/src/action_msgs/msg/detail/goal_status__type_support.h deleted file mode 100755 index 7cd814f87..000000000 --- a/src/action_msgs/msg/detail/goal_status__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from action_msgs:msg/GoalStatus.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "action_msgs/msg/goal_status.h" - - -#ifndef ACTION_MSGS__MSG__DETAIL__GOAL_STATUS__TYPE_SUPPORT_H_ -#define ACTION_MSGS__MSG__DETAIL__GOAL_STATUS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "action_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - action_msgs, - msg, - GoalStatus -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__DETAIL__GOAL_STATUS__TYPE_SUPPORT_H_ diff --git a/src/action_msgs/msg/detail/goal_status_array__functions.h b/src/action_msgs/msg/detail/goal_status_array__functions.h deleted file mode 100755 index 5da1929a6..000000000 --- a/src/action_msgs/msg/detail/goal_status_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from action_msgs:msg/GoalStatusArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "action_msgs/msg/goal_status_array.h" - - -#ifndef ACTION_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__FUNCTIONS_H_ -#define ACTION_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "action_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "action_msgs/msg/detail/goal_status_array__struct.h" - -/// Initialize msg/GoalStatusArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * action_msgs__msg__GoalStatusArray - * )) before or use - * action_msgs__msg__GoalStatusArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalStatusArray__init(action_msgs__msg__GoalStatusArray * msg); - -/// Finalize msg/GoalStatusArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__msg__GoalStatusArray__fini(action_msgs__msg__GoalStatusArray * msg); - -/// Create msg/GoalStatusArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * action_msgs__msg__GoalStatusArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -action_msgs__msg__GoalStatusArray * -action_msgs__msg__GoalStatusArray__create(void); - -/// Destroy msg/GoalStatusArray message. -/** - * It calls - * action_msgs__msg__GoalStatusArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__msg__GoalStatusArray__destroy(action_msgs__msg__GoalStatusArray * msg); - -/// Check for msg/GoalStatusArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalStatusArray__are_equal(const action_msgs__msg__GoalStatusArray * lhs, const action_msgs__msg__GoalStatusArray * rhs); - -/// Copy a msg/GoalStatusArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalStatusArray__copy( - const action_msgs__msg__GoalStatusArray * input, - action_msgs__msg__GoalStatusArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_type_hash_t * -action_msgs__msg__GoalStatusArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeDescription * -action_msgs__msg__GoalStatusArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource * -action_msgs__msg__GoalStatusArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -action_msgs__msg__GoalStatusArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/GoalStatusArray messages. -/** - * It allocates the memory for the number of elements and calls - * action_msgs__msg__GoalStatusArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalStatusArray__Sequence__init(action_msgs__msg__GoalStatusArray__Sequence * array, size_t size); - -/// Finalize array of msg/GoalStatusArray messages. -/** - * It calls - * action_msgs__msg__GoalStatusArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__msg__GoalStatusArray__Sequence__fini(action_msgs__msg__GoalStatusArray__Sequence * array); - -/// Create array of msg/GoalStatusArray messages. -/** - * It allocates the memory for the array and calls - * action_msgs__msg__GoalStatusArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -action_msgs__msg__GoalStatusArray__Sequence * -action_msgs__msg__GoalStatusArray__Sequence__create(size_t size); - -/// Destroy array of msg/GoalStatusArray messages. -/** - * It calls - * action_msgs__msg__GoalStatusArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__msg__GoalStatusArray__Sequence__destroy(action_msgs__msg__GoalStatusArray__Sequence * array); - -/// Check for msg/GoalStatusArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalStatusArray__Sequence__are_equal(const action_msgs__msg__GoalStatusArray__Sequence * lhs, const action_msgs__msg__GoalStatusArray__Sequence * rhs); - -/// Copy an array of msg/GoalStatusArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__msg__GoalStatusArray__Sequence__copy( - const action_msgs__msg__GoalStatusArray__Sequence * input, - action_msgs__msg__GoalStatusArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__FUNCTIONS_H_ diff --git a/src/action_msgs/msg/detail/goal_status_array__rosidl_typesupport_introspection_c.h b/src/action_msgs/msg/detail/goal_status_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c393a4faa..000000000 --- a/src/action_msgs/msg/detail/goal_status_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from action_msgs:msg/GoalStatusArray.idl -// generated code does not contain a copyright notice - -#ifndef ACTION_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define ACTION_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "action_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, action_msgs, msg, GoalStatusArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/action_msgs/msg/detail/goal_status_array__rosidl_typesupport_microxrcedds_c.h b/src/action_msgs/msg/detail/goal_status_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 382a0eddd..000000000 --- a/src/action_msgs/msg/detail/goal_status_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from action_msgs:msg/GoalStatusArray.idl -// generated code does not contain a copyright notice -#ifndef ACTION_MSGS__MSG__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define ACTION_MSGS__MSG__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "action_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -size_t get_serialized_size_action_msgs__msg__GoalStatusArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -size_t max_serialized_size_action_msgs__msg__GoalStatusArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, action_msgs, msg, GoalStatusArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // ACTION_MSGS__MSG__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/action_msgs/msg/detail/goal_status_array__struct.h b/src/action_msgs/msg/detail/goal_status_array__struct.h deleted file mode 100755 index ac62d1ad3..000000000 --- a/src/action_msgs/msg/detail/goal_status_array__struct.h +++ /dev/null @@ -1,49 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from action_msgs:msg/GoalStatusArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "action_msgs/msg/goal_status_array.h" - - -#ifndef ACTION_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__STRUCT_H_ -#define ACTION_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'status_list' -#include "action_msgs/msg/detail/goal_status__struct.h" - -/// Struct defined in msg/GoalStatusArray in the package action_msgs. -/** - * An array of goal statuses. - */ -typedef struct action_msgs__msg__GoalStatusArray -{ - action_msgs__msg__GoalStatus__Sequence status_list; -} action_msgs__msg__GoalStatusArray; - -// Struct for a sequence of action_msgs__msg__GoalStatusArray. -typedef struct action_msgs__msg__GoalStatusArray__Sequence -{ - action_msgs__msg__GoalStatusArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} action_msgs__msg__GoalStatusArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__STRUCT_H_ diff --git a/src/action_msgs/msg/detail/goal_status_array__type_support.h b/src/action_msgs/msg/detail/goal_status_array__type_support.h deleted file mode 100755 index 07715bebd..000000000 --- a/src/action_msgs/msg/detail/goal_status_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from action_msgs:msg/GoalStatusArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "action_msgs/msg/goal_status_array.h" - - -#ifndef ACTION_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__TYPE_SUPPORT_H_ -#define ACTION_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "action_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - action_msgs, - msg, - GoalStatusArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/action_msgs/msg/goal_info.h b/src/action_msgs/msg/goal_info.h deleted file mode 100755 index 0b116d13f..000000000 --- a/src/action_msgs/msg/goal_info.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from action_msgs:msg/GoalInfo.idl -// generated code does not contain a copyright notice - -#ifndef ACTION_MSGS__MSG__GOAL_INFO_H_ -#define ACTION_MSGS__MSG__GOAL_INFO_H_ - -#include "action_msgs/msg/detail/goal_info__struct.h" -#include "action_msgs/msg/detail/goal_info__functions.h" -#include "action_msgs/msg/detail/goal_info__type_support.h" - -#endif // ACTION_MSGS__MSG__GOAL_INFO_H_ diff --git a/src/action_msgs/msg/goal_status.h b/src/action_msgs/msg/goal_status.h deleted file mode 100755 index 02d78aa91..000000000 --- a/src/action_msgs/msg/goal_status.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from action_msgs:msg/GoalStatus.idl -// generated code does not contain a copyright notice - -#ifndef ACTION_MSGS__MSG__GOAL_STATUS_H_ -#define ACTION_MSGS__MSG__GOAL_STATUS_H_ - -#include "action_msgs/msg/detail/goal_status__struct.h" -#include "action_msgs/msg/detail/goal_status__functions.h" -#include "action_msgs/msg/detail/goal_status__type_support.h" - -#endif // ACTION_MSGS__MSG__GOAL_STATUS_H_ diff --git a/src/action_msgs/msg/goal_status_array.h b/src/action_msgs/msg/goal_status_array.h deleted file mode 100755 index d07dbfe1a..000000000 --- a/src/action_msgs/msg/goal_status_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from action_msgs:msg/GoalStatusArray.idl -// generated code does not contain a copyright notice - -#ifndef ACTION_MSGS__MSG__GOAL_STATUS_ARRAY_H_ -#define ACTION_MSGS__MSG__GOAL_STATUS_ARRAY_H_ - -#include "action_msgs/msg/detail/goal_status_array__struct.h" -#include "action_msgs/msg/detail/goal_status_array__functions.h" -#include "action_msgs/msg/detail/goal_status_array__type_support.h" - -#endif // ACTION_MSGS__MSG__GOAL_STATUS_ARRAY_H_ diff --git a/src/action_msgs/msg/rosidl_generator_c__visibility_control.h b/src/action_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 232133dcf..000000000 --- a/src/action_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef ACTION_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define ACTION_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_action_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_action_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_action_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_action_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_action_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_action_msgs ROSIDL_GENERATOR_C_EXPORT_action_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_action_msgs ROSIDL_GENERATOR_C_IMPORT_action_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_action_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_action_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_action_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_action_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/action_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/action_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 5c218148f..000000000 --- a/src/action_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef ACTION_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define ACTION_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_action_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_action_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_action_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_action_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_action_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_action_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_action_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_action_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_action_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_action_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_action_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_action_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_action_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/action_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/action_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 362e9d967..000000000 --- a/src/action_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef ACTION_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define ACTION_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_action_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_action_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_action_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_action_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_action_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_action_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_action_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_action_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_action_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/action_msgs/srv/cancel_goal.h b/src/action_msgs/srv/cancel_goal.h deleted file mode 100755 index 54e48e052..000000000 --- a/src/action_msgs/srv/cancel_goal.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from action_msgs:srv/CancelGoal.idl -// generated code does not contain a copyright notice - -#ifndef ACTION_MSGS__SRV__CANCEL_GOAL_H_ -#define ACTION_MSGS__SRV__CANCEL_GOAL_H_ - -#include "action_msgs/srv/detail/cancel_goal__struct.h" -#include "action_msgs/srv/detail/cancel_goal__functions.h" -#include "action_msgs/srv/detail/cancel_goal__type_support.h" - -#endif // ACTION_MSGS__SRV__CANCEL_GOAL_H_ diff --git a/src/action_msgs/srv/detail/cancel_goal__functions.h b/src/action_msgs/srv/detail/cancel_goal__functions.h deleted file mode 100755 index 9116b40ca..000000000 --- a/src/action_msgs/srv/detail/cancel_goal__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from action_msgs:srv/CancelGoal.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "action_msgs/srv/cancel_goal.h" - - -#ifndef ACTION_MSGS__SRV__DETAIL__CANCEL_GOAL__FUNCTIONS_H_ -#define ACTION_MSGS__SRV__DETAIL__CANCEL_GOAL__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "action_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "action_msgs/srv/detail/cancel_goal__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_type_hash_t * -action_msgs__srv__CancelGoal__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeDescription * -action_msgs__srv__CancelGoal__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource * -action_msgs__srv__CancelGoal__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -action_msgs__srv__CancelGoal__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/CancelGoal message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * action_msgs__srv__CancelGoal_Request - * )) before or use - * action_msgs__srv__CancelGoal_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Request__init(action_msgs__srv__CancelGoal_Request * msg); - -/// Finalize srv/CancelGoal message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__srv__CancelGoal_Request__fini(action_msgs__srv__CancelGoal_Request * msg); - -/// Create srv/CancelGoal message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * action_msgs__srv__CancelGoal_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -action_msgs__srv__CancelGoal_Request * -action_msgs__srv__CancelGoal_Request__create(void); - -/// Destroy srv/CancelGoal message. -/** - * It calls - * action_msgs__srv__CancelGoal_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__srv__CancelGoal_Request__destroy(action_msgs__srv__CancelGoal_Request * msg); - -/// Check for srv/CancelGoal message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Request__are_equal(const action_msgs__srv__CancelGoal_Request * lhs, const action_msgs__srv__CancelGoal_Request * rhs); - -/// Copy a srv/CancelGoal message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Request__copy( - const action_msgs__srv__CancelGoal_Request * input, - action_msgs__srv__CancelGoal_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_type_hash_t * -action_msgs__srv__CancelGoal_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeDescription * -action_msgs__srv__CancelGoal_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource * -action_msgs__srv__CancelGoal_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -action_msgs__srv__CancelGoal_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/CancelGoal messages. -/** - * It allocates the memory for the number of elements and calls - * action_msgs__srv__CancelGoal_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Request__Sequence__init(action_msgs__srv__CancelGoal_Request__Sequence * array, size_t size); - -/// Finalize array of srv/CancelGoal messages. -/** - * It calls - * action_msgs__srv__CancelGoal_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__srv__CancelGoal_Request__Sequence__fini(action_msgs__srv__CancelGoal_Request__Sequence * array); - -/// Create array of srv/CancelGoal messages. -/** - * It allocates the memory for the array and calls - * action_msgs__srv__CancelGoal_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -action_msgs__srv__CancelGoal_Request__Sequence * -action_msgs__srv__CancelGoal_Request__Sequence__create(size_t size); - -/// Destroy array of srv/CancelGoal messages. -/** - * It calls - * action_msgs__srv__CancelGoal_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__srv__CancelGoal_Request__Sequence__destroy(action_msgs__srv__CancelGoal_Request__Sequence * array); - -/// Check for srv/CancelGoal message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Request__Sequence__are_equal(const action_msgs__srv__CancelGoal_Request__Sequence * lhs, const action_msgs__srv__CancelGoal_Request__Sequence * rhs); - -/// Copy an array of srv/CancelGoal messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Request__Sequence__copy( - const action_msgs__srv__CancelGoal_Request__Sequence * input, - action_msgs__srv__CancelGoal_Request__Sequence * output); - -/// Initialize srv/CancelGoal message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * action_msgs__srv__CancelGoal_Response - * )) before or use - * action_msgs__srv__CancelGoal_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Response__init(action_msgs__srv__CancelGoal_Response * msg); - -/// Finalize srv/CancelGoal message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__srv__CancelGoal_Response__fini(action_msgs__srv__CancelGoal_Response * msg); - -/// Create srv/CancelGoal message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * action_msgs__srv__CancelGoal_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -action_msgs__srv__CancelGoal_Response * -action_msgs__srv__CancelGoal_Response__create(void); - -/// Destroy srv/CancelGoal message. -/** - * It calls - * action_msgs__srv__CancelGoal_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__srv__CancelGoal_Response__destroy(action_msgs__srv__CancelGoal_Response * msg); - -/// Check for srv/CancelGoal message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Response__are_equal(const action_msgs__srv__CancelGoal_Response * lhs, const action_msgs__srv__CancelGoal_Response * rhs); - -/// Copy a srv/CancelGoal message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Response__copy( - const action_msgs__srv__CancelGoal_Response * input, - action_msgs__srv__CancelGoal_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_type_hash_t * -action_msgs__srv__CancelGoal_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeDescription * -action_msgs__srv__CancelGoal_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource * -action_msgs__srv__CancelGoal_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -action_msgs__srv__CancelGoal_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/CancelGoal messages. -/** - * It allocates the memory for the number of elements and calls - * action_msgs__srv__CancelGoal_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Response__Sequence__init(action_msgs__srv__CancelGoal_Response__Sequence * array, size_t size); - -/// Finalize array of srv/CancelGoal messages. -/** - * It calls - * action_msgs__srv__CancelGoal_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__srv__CancelGoal_Response__Sequence__fini(action_msgs__srv__CancelGoal_Response__Sequence * array); - -/// Create array of srv/CancelGoal messages. -/** - * It allocates the memory for the array and calls - * action_msgs__srv__CancelGoal_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -action_msgs__srv__CancelGoal_Response__Sequence * -action_msgs__srv__CancelGoal_Response__Sequence__create(size_t size); - -/// Destroy array of srv/CancelGoal messages. -/** - * It calls - * action_msgs__srv__CancelGoal_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__srv__CancelGoal_Response__Sequence__destroy(action_msgs__srv__CancelGoal_Response__Sequence * array); - -/// Check for srv/CancelGoal message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Response__Sequence__are_equal(const action_msgs__srv__CancelGoal_Response__Sequence * lhs, const action_msgs__srv__CancelGoal_Response__Sequence * rhs); - -/// Copy an array of srv/CancelGoal messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Response__Sequence__copy( - const action_msgs__srv__CancelGoal_Response__Sequence * input, - action_msgs__srv__CancelGoal_Response__Sequence * output); - -/// Initialize srv/CancelGoal message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * action_msgs__srv__CancelGoal_Event - * )) before or use - * action_msgs__srv__CancelGoal_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Event__init(action_msgs__srv__CancelGoal_Event * msg); - -/// Finalize srv/CancelGoal message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__srv__CancelGoal_Event__fini(action_msgs__srv__CancelGoal_Event * msg); - -/// Create srv/CancelGoal message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * action_msgs__srv__CancelGoal_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -action_msgs__srv__CancelGoal_Event * -action_msgs__srv__CancelGoal_Event__create(void); - -/// Destroy srv/CancelGoal message. -/** - * It calls - * action_msgs__srv__CancelGoal_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__srv__CancelGoal_Event__destroy(action_msgs__srv__CancelGoal_Event * msg); - -/// Check for srv/CancelGoal message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Event__are_equal(const action_msgs__srv__CancelGoal_Event * lhs, const action_msgs__srv__CancelGoal_Event * rhs); - -/// Copy a srv/CancelGoal message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Event__copy( - const action_msgs__srv__CancelGoal_Event * input, - action_msgs__srv__CancelGoal_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_type_hash_t * -action_msgs__srv__CancelGoal_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeDescription * -action_msgs__srv__CancelGoal_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource * -action_msgs__srv__CancelGoal_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -action_msgs__srv__CancelGoal_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/CancelGoal messages. -/** - * It allocates the memory for the number of elements and calls - * action_msgs__srv__CancelGoal_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Event__Sequence__init(action_msgs__srv__CancelGoal_Event__Sequence * array, size_t size); - -/// Finalize array of srv/CancelGoal messages. -/** - * It calls - * action_msgs__srv__CancelGoal_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__srv__CancelGoal_Event__Sequence__fini(action_msgs__srv__CancelGoal_Event__Sequence * array); - -/// Create array of srv/CancelGoal messages. -/** - * It allocates the memory for the array and calls - * action_msgs__srv__CancelGoal_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -action_msgs__srv__CancelGoal_Event__Sequence * -action_msgs__srv__CancelGoal_Event__Sequence__create(size_t size); - -/// Destroy array of srv/CancelGoal messages. -/** - * It calls - * action_msgs__srv__CancelGoal_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void -action_msgs__srv__CancelGoal_Event__Sequence__destroy(action_msgs__srv__CancelGoal_Event__Sequence * array); - -/// Check for srv/CancelGoal message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Event__Sequence__are_equal(const action_msgs__srv__CancelGoal_Event__Sequence * lhs, const action_msgs__srv__CancelGoal_Event__Sequence * rhs); - -/// Copy an array of srv/CancelGoal messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -action_msgs__srv__CancelGoal_Event__Sequence__copy( - const action_msgs__srv__CancelGoal_Event__Sequence * input, - action_msgs__srv__CancelGoal_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__SRV__DETAIL__CANCEL_GOAL__FUNCTIONS_H_ diff --git a/src/action_msgs/srv/detail/cancel_goal__rosidl_typesupport_introspection_c.h b/src/action_msgs/srv/detail/cancel_goal__rosidl_typesupport_introspection_c.h deleted file mode 100755 index aff8d277d..000000000 --- a/src/action_msgs/srv/detail/cancel_goal__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from action_msgs:srv/CancelGoal.idl -// generated code does not contain a copyright notice - -#ifndef ACTION_MSGS__SRV__DETAIL__CANCEL_GOAL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define ACTION_MSGS__SRV__DETAIL__CANCEL_GOAL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "action_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, action_msgs, srv, CancelGoal_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "action_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, action_msgs, srv, CancelGoal_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "action_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, action_msgs, srv, CancelGoal_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "action_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_action_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, action_msgs, srv, CancelGoal)(); - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__SRV__DETAIL__CANCEL_GOAL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/action_msgs/srv/detail/cancel_goal__rosidl_typesupport_microxrcedds_c.h b/src/action_msgs/srv/detail/cancel_goal__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 5e3223404..000000000 --- a/src/action_msgs/srv/detail/cancel_goal__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from action_msgs:srv/CancelGoal.idl -// generated code does not contain a copyright notice -#ifndef ACTION_MSGS__SRV__CANCEL_GOAL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define ACTION_MSGS__SRV__CANCEL_GOAL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "action_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -size_t get_serialized_size_action_msgs__srv__CancelGoal_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -size_t max_serialized_size_action_msgs__srv__CancelGoal_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, action_msgs, srv, CancelGoal_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "action_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -size_t get_serialized_size_action_msgs__srv__CancelGoal_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -size_t max_serialized_size_action_msgs__srv__CancelGoal_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, action_msgs, srv, CancelGoal_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "action_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -size_t get_serialized_size_action_msgs__srv__CancelGoal_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -size_t max_serialized_size_action_msgs__srv__CancelGoal_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, action_msgs, srv, CancelGoal_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "action_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_action_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, action_msgs, srv, CancelGoal)(); - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__SRV__CANCEL_GOAL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/action_msgs/srv/detail/cancel_goal__struct.h b/src/action_msgs/srv/detail/cancel_goal__struct.h deleted file mode 100755 index 4211cd535..000000000 --- a/src/action_msgs/srv/detail/cancel_goal__struct.h +++ /dev/null @@ -1,158 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from action_msgs:srv/CancelGoal.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "action_msgs/srv/cancel_goal.h" - - -#ifndef ACTION_MSGS__SRV__DETAIL__CANCEL_GOAL__STRUCT_H_ -#define ACTION_MSGS__SRV__DETAIL__CANCEL_GOAL__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_info' -#include "action_msgs/msg/detail/goal_info__struct.h" - -/// Struct defined in srv/CancelGoal in the package action_msgs. -typedef struct action_msgs__srv__CancelGoal_Request -{ - /// Goal info describing the goals to cancel, see above. - action_msgs__msg__GoalInfo goal_info; -} action_msgs__srv__CancelGoal_Request; - -// Struct for a sequence of action_msgs__srv__CancelGoal_Request. -typedef struct action_msgs__srv__CancelGoal_Request__Sequence -{ - action_msgs__srv__CancelGoal_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} action_msgs__srv__CancelGoal_Request__Sequence; - -// Constants defined in the message - -/// Constant 'ERROR_NONE'. -/** - * Indicates the request was accepted without any errors. - * - * One or more goals have transitioned to the CANCELING state. The - * goals_canceling list is not empty. - */ -enum -{ - action_msgs__srv__CancelGoal_Response__ERROR_NONE = 0 -}; - -/// Constant 'ERROR_REJECTED'. -/** - * Indicates the request was rejected. - * - * No goals have transitioned to the CANCELING state. The goals_canceling list is - * empty. - */ -enum -{ - action_msgs__srv__CancelGoal_Response__ERROR_REJECTED = 1 -}; - -/// Constant 'ERROR_UNKNOWN_GOAL_ID'. -/** - * Indicates the requested goal ID does not exist. - * - * No goals have transitioned to the CANCELING state. The goals_canceling list is - * empty. - */ -enum -{ - action_msgs__srv__CancelGoal_Response__ERROR_UNKNOWN_GOAL_ID = 2 -}; - -/// Constant 'ERROR_GOAL_TERMINATED'. -/** - * Indicates the goal is not cancelable because it is already in a terminal state. - * - * No goals have transitioned to the CANCELING state. The goals_canceling list is - * empty. - */ -enum -{ - action_msgs__srv__CancelGoal_Response__ERROR_GOAL_TERMINATED = 3 -}; - -// Include directives for member types -// Member 'goals_canceling' -// already included above -// #include "action_msgs/msg/detail/goal_info__struct.h" - -/// Struct defined in srv/CancelGoal in the package action_msgs. -typedef struct action_msgs__srv__CancelGoal_Response -{ - /// Return code, see above definitions. - int8_t return_code; - /// Goals that accepted the cancel request. - action_msgs__msg__GoalInfo__Sequence goals_canceling; -} action_msgs__srv__CancelGoal_Response; - -// Struct for a sequence of action_msgs__srv__CancelGoal_Response. -typedef struct action_msgs__srv__CancelGoal_Response__Sequence -{ - action_msgs__srv__CancelGoal_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} action_msgs__srv__CancelGoal_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - action_msgs__srv__CancelGoal_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - action_msgs__srv__CancelGoal_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/CancelGoal in the package action_msgs. -typedef struct action_msgs__srv__CancelGoal_Event -{ - service_msgs__msg__ServiceEventInfo info; - action_msgs__srv__CancelGoal_Request__Sequence request; - action_msgs__srv__CancelGoal_Response__Sequence response; -} action_msgs__srv__CancelGoal_Event; - -// Struct for a sequence of action_msgs__srv__CancelGoal_Event. -typedef struct action_msgs__srv__CancelGoal_Event__Sequence -{ - action_msgs__srv__CancelGoal_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} action_msgs__srv__CancelGoal_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__SRV__DETAIL__CANCEL_GOAL__STRUCT_H_ diff --git a/src/action_msgs/srv/detail/cancel_goal__type_support.h b/src/action_msgs/srv/detail/cancel_goal__type_support.h deleted file mode 100755 index e2367aefc..000000000 --- a/src/action_msgs/srv/detail/cancel_goal__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from action_msgs:srv/CancelGoal.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "action_msgs/srv/cancel_goal.h" - - -#ifndef ACTION_MSGS__SRV__DETAIL__CANCEL_GOAL__TYPE_SUPPORT_H_ -#define ACTION_MSGS__SRV__DETAIL__CANCEL_GOAL__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "action_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - action_msgs, - srv, - CancelGoal_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - action_msgs, - srv, - CancelGoal_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - action_msgs, - srv, - CancelGoal_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - action_msgs, - srv, - CancelGoal -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - action_msgs, - srv, - CancelGoal -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_action_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - action_msgs, - srv, - CancelGoal -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // ACTION_MSGS__SRV__DETAIL__CANCEL_GOAL__TYPE_SUPPORT_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_id__functions.h b/src/actionlib_msgs/msg/detail/goal_id__functions.h deleted file mode 100755 index b8a186abd..000000000 --- a/src/actionlib_msgs/msg/detail/goal_id__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from actionlib_msgs:msg/GoalID.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "actionlib_msgs/msg/goal_id.h" - - -#ifndef ACTIONLIB_MSGS__MSG__DETAIL__GOAL_ID__FUNCTIONS_H_ -#define ACTIONLIB_MSGS__MSG__DETAIL__GOAL_ID__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "actionlib_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "actionlib_msgs/msg/detail/goal_id__struct.h" - -/// Initialize msg/GoalID message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * actionlib_msgs__msg__GoalID - * )) before or use - * actionlib_msgs__msg__GoalID__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalID__init(actionlib_msgs__msg__GoalID * msg); - -/// Finalize msg/GoalID message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -void -actionlib_msgs__msg__GoalID__fini(actionlib_msgs__msg__GoalID * msg); - -/// Create msg/GoalID message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * actionlib_msgs__msg__GoalID__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -actionlib_msgs__msg__GoalID * -actionlib_msgs__msg__GoalID__create(void); - -/// Destroy msg/GoalID message. -/** - * It calls - * actionlib_msgs__msg__GoalID__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -void -actionlib_msgs__msg__GoalID__destroy(actionlib_msgs__msg__GoalID * msg); - -/// Check for msg/GoalID message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalID__are_equal(const actionlib_msgs__msg__GoalID * lhs, const actionlib_msgs__msg__GoalID * rhs); - -/// Copy a msg/GoalID message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalID__copy( - const actionlib_msgs__msg__GoalID * input, - actionlib_msgs__msg__GoalID * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_type_hash_t * -actionlib_msgs__msg__GoalID__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_runtime_c__type_description__TypeDescription * -actionlib_msgs__msg__GoalID__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_runtime_c__type_description__TypeSource * -actionlib_msgs__msg__GoalID__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -actionlib_msgs__msg__GoalID__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/GoalID messages. -/** - * It allocates the memory for the number of elements and calls - * actionlib_msgs__msg__GoalID__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalID__Sequence__init(actionlib_msgs__msg__GoalID__Sequence * array, size_t size); - -/// Finalize array of msg/GoalID messages. -/** - * It calls - * actionlib_msgs__msg__GoalID__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -void -actionlib_msgs__msg__GoalID__Sequence__fini(actionlib_msgs__msg__GoalID__Sequence * array); - -/// Create array of msg/GoalID messages. -/** - * It allocates the memory for the array and calls - * actionlib_msgs__msg__GoalID__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -actionlib_msgs__msg__GoalID__Sequence * -actionlib_msgs__msg__GoalID__Sequence__create(size_t size); - -/// Destroy array of msg/GoalID messages. -/** - * It calls - * actionlib_msgs__msg__GoalID__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -void -actionlib_msgs__msg__GoalID__Sequence__destroy(actionlib_msgs__msg__GoalID__Sequence * array); - -/// Check for msg/GoalID message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalID__Sequence__are_equal(const actionlib_msgs__msg__GoalID__Sequence * lhs, const actionlib_msgs__msg__GoalID__Sequence * rhs); - -/// Copy an array of msg/GoalID messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalID__Sequence__copy( - const actionlib_msgs__msg__GoalID__Sequence * input, - actionlib_msgs__msg__GoalID__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__DETAIL__GOAL_ID__FUNCTIONS_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_id__rosidl_typesupport_introspection_c.h b/src/actionlib_msgs/msg/detail/goal_id__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 425b2f8ed..000000000 --- a/src/actionlib_msgs/msg/detail/goal_id__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from actionlib_msgs:msg/GoalID.idl -// generated code does not contain a copyright notice - -#ifndef ACTIONLIB_MSGS__MSG__DETAIL__GOAL_ID__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define ACTIONLIB_MSGS__MSG__DETAIL__GOAL_ID__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "actionlib_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_actionlib_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, actionlib_msgs, msg, GoalID)(); - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__DETAIL__GOAL_ID__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_id__rosidl_typesupport_microxrcedds_c.h b/src/actionlib_msgs/msg/detail/goal_id__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 09f50a9fb..000000000 --- a/src/actionlib_msgs/msg/detail/goal_id__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from actionlib_msgs:msg/GoalID.idl -// generated code does not contain a copyright notice -#ifndef ACTIONLIB_MSGS__MSG__GOAL_ID__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define ACTIONLIB_MSGS__MSG__GOAL_ID__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "actionlib_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_actionlib_msgs -size_t get_serialized_size_actionlib_msgs__msg__GoalID( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_actionlib_msgs -size_t max_serialized_size_actionlib_msgs__msg__GoalID( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_actionlib_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, actionlib_msgs, msg, GoalID)(); - -#ifdef __cplusplus -} -#endif - - -#endif // ACTIONLIB_MSGS__MSG__GOAL_ID__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_id__struct.h b/src/actionlib_msgs/msg/detail/goal_id__struct.h deleted file mode 100755 index f37f740f4..000000000 --- a/src/actionlib_msgs/msg/detail/goal_id__struct.h +++ /dev/null @@ -1,55 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from actionlib_msgs:msg/GoalID.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "actionlib_msgs/msg/goal_id.h" - - -#ifndef ACTIONLIB_MSGS__MSG__DETAIL__GOAL_ID__STRUCT_H_ -#define ACTIONLIB_MSGS__MSG__DETAIL__GOAL_ID__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'stamp' -#include "builtin_interfaces/msg/detail/time__struct.h" -// Member 'id' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/GoalID in the package actionlib_msgs. -typedef struct actionlib_msgs__msg__GoalID -{ - /// The stamp should store the time at which this goal was requested. - /// It is used by an action server when it tries to preempt all - /// goals that were requested before a certain time - builtin_interfaces__msg__Time stamp; - /// The id provides a way to associate feedback and - /// result message with specific goal requests. The id - /// specified must be unique. - rosidl_runtime_c__String id; -} actionlib_msgs__msg__GoalID; - -// Struct for a sequence of actionlib_msgs__msg__GoalID. -typedef struct actionlib_msgs__msg__GoalID__Sequence -{ - actionlib_msgs__msg__GoalID * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} actionlib_msgs__msg__GoalID__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__DETAIL__GOAL_ID__STRUCT_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_id__type_support.h b/src/actionlib_msgs/msg/detail/goal_id__type_support.h deleted file mode 100755 index 47db7bd23..000000000 --- a/src/actionlib_msgs/msg/detail/goal_id__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from actionlib_msgs:msg/GoalID.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "actionlib_msgs/msg/goal_id.h" - - -#ifndef ACTIONLIB_MSGS__MSG__DETAIL__GOAL_ID__TYPE_SUPPORT_H_ -#define ACTIONLIB_MSGS__MSG__DETAIL__GOAL_ID__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "actionlib_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - actionlib_msgs, - msg, - GoalID -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__DETAIL__GOAL_ID__TYPE_SUPPORT_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_status__functions.h b/src/actionlib_msgs/msg/detail/goal_status__functions.h deleted file mode 100755 index 1bf5cc515..000000000 --- a/src/actionlib_msgs/msg/detail/goal_status__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from actionlib_msgs:msg/GoalStatus.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "actionlib_msgs/msg/goal_status.h" - - -#ifndef ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS__FUNCTIONS_H_ -#define ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "actionlib_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "actionlib_msgs/msg/detail/goal_status__struct.h" - -/// Initialize msg/GoalStatus message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * actionlib_msgs__msg__GoalStatus - * )) before or use - * actionlib_msgs__msg__GoalStatus__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalStatus__init(actionlib_msgs__msg__GoalStatus * msg); - -/// Finalize msg/GoalStatus message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -void -actionlib_msgs__msg__GoalStatus__fini(actionlib_msgs__msg__GoalStatus * msg); - -/// Create msg/GoalStatus message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * actionlib_msgs__msg__GoalStatus__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -actionlib_msgs__msg__GoalStatus * -actionlib_msgs__msg__GoalStatus__create(void); - -/// Destroy msg/GoalStatus message. -/** - * It calls - * actionlib_msgs__msg__GoalStatus__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -void -actionlib_msgs__msg__GoalStatus__destroy(actionlib_msgs__msg__GoalStatus * msg); - -/// Check for msg/GoalStatus message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalStatus__are_equal(const actionlib_msgs__msg__GoalStatus * lhs, const actionlib_msgs__msg__GoalStatus * rhs); - -/// Copy a msg/GoalStatus message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalStatus__copy( - const actionlib_msgs__msg__GoalStatus * input, - actionlib_msgs__msg__GoalStatus * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_type_hash_t * -actionlib_msgs__msg__GoalStatus__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_runtime_c__type_description__TypeDescription * -actionlib_msgs__msg__GoalStatus__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_runtime_c__type_description__TypeSource * -actionlib_msgs__msg__GoalStatus__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -actionlib_msgs__msg__GoalStatus__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/GoalStatus messages. -/** - * It allocates the memory for the number of elements and calls - * actionlib_msgs__msg__GoalStatus__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalStatus__Sequence__init(actionlib_msgs__msg__GoalStatus__Sequence * array, size_t size); - -/// Finalize array of msg/GoalStatus messages. -/** - * It calls - * actionlib_msgs__msg__GoalStatus__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -void -actionlib_msgs__msg__GoalStatus__Sequence__fini(actionlib_msgs__msg__GoalStatus__Sequence * array); - -/// Create array of msg/GoalStatus messages. -/** - * It allocates the memory for the array and calls - * actionlib_msgs__msg__GoalStatus__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -actionlib_msgs__msg__GoalStatus__Sequence * -actionlib_msgs__msg__GoalStatus__Sequence__create(size_t size); - -/// Destroy array of msg/GoalStatus messages. -/** - * It calls - * actionlib_msgs__msg__GoalStatus__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -void -actionlib_msgs__msg__GoalStatus__Sequence__destroy(actionlib_msgs__msg__GoalStatus__Sequence * array); - -/// Check for msg/GoalStatus message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalStatus__Sequence__are_equal(const actionlib_msgs__msg__GoalStatus__Sequence * lhs, const actionlib_msgs__msg__GoalStatus__Sequence * rhs); - -/// Copy an array of msg/GoalStatus messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalStatus__Sequence__copy( - const actionlib_msgs__msg__GoalStatus__Sequence * input, - actionlib_msgs__msg__GoalStatus__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS__FUNCTIONS_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_status__rosidl_typesupport_introspection_c.h b/src/actionlib_msgs/msg/detail/goal_status__rosidl_typesupport_introspection_c.h deleted file mode 100755 index be261c485..000000000 --- a/src/actionlib_msgs/msg/detail/goal_status__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from actionlib_msgs:msg/GoalStatus.idl -// generated code does not contain a copyright notice - -#ifndef ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "actionlib_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_actionlib_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, actionlib_msgs, msg, GoalStatus)(); - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_status__rosidl_typesupport_microxrcedds_c.h b/src/actionlib_msgs/msg/detail/goal_status__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 1d362a50b..000000000 --- a/src/actionlib_msgs/msg/detail/goal_status__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from actionlib_msgs:msg/GoalStatus.idl -// generated code does not contain a copyright notice -#ifndef ACTIONLIB_MSGS__MSG__GOAL_STATUS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define ACTIONLIB_MSGS__MSG__GOAL_STATUS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "actionlib_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_actionlib_msgs -size_t get_serialized_size_actionlib_msgs__msg__GoalStatus( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_actionlib_msgs -size_t max_serialized_size_actionlib_msgs__msg__GoalStatus( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_actionlib_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, actionlib_msgs, msg, GoalStatus)(); - -#ifdef __cplusplus -} -#endif - - -#endif // ACTIONLIB_MSGS__MSG__GOAL_STATUS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_status__struct.h b/src/actionlib_msgs/msg/detail/goal_status__struct.h deleted file mode 100755 index 61e7a836d..000000000 --- a/src/actionlib_msgs/msg/detail/goal_status__struct.h +++ /dev/null @@ -1,149 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from actionlib_msgs:msg/GoalStatus.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "actionlib_msgs/msg/goal_status.h" - - -#ifndef ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS__STRUCT_H_ -#define ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'PENDING'. -/** - * The goal has yet to be processed by the action server. - */ -enum -{ - actionlib_msgs__msg__GoalStatus__PENDING = 0 -}; - -/// Constant 'ACTIVE'. -/** - * The goal is currently being processed by the action server. - */ -enum -{ - actionlib_msgs__msg__GoalStatus__ACTIVE = 1 -}; - -/// Constant 'PREEMPTED'. -/** - * The goal received a cancel request after it started executing - * and has since completed its execution (Terminal State). - */ -enum -{ - actionlib_msgs__msg__GoalStatus__PREEMPTED = 2 -}; - -/// Constant 'SUCCEEDED'. -/** - * The goal was achieved successfully by the action server - * (Terminal State). - */ -enum -{ - actionlib_msgs__msg__GoalStatus__SUCCEEDED = 3 -}; - -/// Constant 'ABORTED'. -/** - * The goal was aborted during execution by the action server due - * to some failure (Terminal State). - */ -enum -{ - actionlib_msgs__msg__GoalStatus__ABORTED = 4 -}; - -/// Constant 'REJECTED'. -/** - * The goal was rejected by the action server without being processed, - * because the goal was unattainable or invalid (Terminal State). - */ -enum -{ - actionlib_msgs__msg__GoalStatus__REJECTED = 5 -}; - -/// Constant 'PREEMPTING'. -/** - * The goal received a cancel request after it started executing - * and has not yet completed execution. - */ -enum -{ - actionlib_msgs__msg__GoalStatus__PREEMPTING = 6 -}; - -/// Constant 'RECALLING'. -/** - * The goal received a cancel request before it started executing, but - * the action server has not yet confirmed that the goal is canceled. - */ -enum -{ - actionlib_msgs__msg__GoalStatus__RECALLING = 7 -}; - -/// Constant 'RECALLED'. -/** - * The goal received a cancel request before it started executing - * and was successfully cancelled (Terminal State). - */ -enum -{ - actionlib_msgs__msg__GoalStatus__RECALLED = 8 -}; - -/// Constant 'LOST'. -/** - * An action client can determine that a goal is LOST. This should not - * be sent over the wire by an action server. - */ -enum -{ - actionlib_msgs__msg__GoalStatus__LOST = 9 -}; - -// Include directives for member types -// Member 'goal_id' -#include "actionlib_msgs/msg/detail/goal_id__struct.h" -// Member 'text' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/GoalStatus in the package actionlib_msgs. -typedef struct actionlib_msgs__msg__GoalStatus -{ - actionlib_msgs__msg__GoalID goal_id; - uint8_t status; - /// Allow for the user to associate a string with GoalStatus for debugging. - rosidl_runtime_c__String text; -} actionlib_msgs__msg__GoalStatus; - -// Struct for a sequence of actionlib_msgs__msg__GoalStatus. -typedef struct actionlib_msgs__msg__GoalStatus__Sequence -{ - actionlib_msgs__msg__GoalStatus * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} actionlib_msgs__msg__GoalStatus__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS__STRUCT_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_status__type_support.h b/src/actionlib_msgs/msg/detail/goal_status__type_support.h deleted file mode 100755 index 9301c6ac8..000000000 --- a/src/actionlib_msgs/msg/detail/goal_status__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from actionlib_msgs:msg/GoalStatus.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "actionlib_msgs/msg/goal_status.h" - - -#ifndef ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS__TYPE_SUPPORT_H_ -#define ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "actionlib_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - actionlib_msgs, - msg, - GoalStatus -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS__TYPE_SUPPORT_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_status_array__functions.h b/src/actionlib_msgs/msg/detail/goal_status_array__functions.h deleted file mode 100755 index bc526c707..000000000 --- a/src/actionlib_msgs/msg/detail/goal_status_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from actionlib_msgs:msg/GoalStatusArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "actionlib_msgs/msg/goal_status_array.h" - - -#ifndef ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__FUNCTIONS_H_ -#define ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "actionlib_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "actionlib_msgs/msg/detail/goal_status_array__struct.h" - -/// Initialize msg/GoalStatusArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * actionlib_msgs__msg__GoalStatusArray - * )) before or use - * actionlib_msgs__msg__GoalStatusArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalStatusArray__init(actionlib_msgs__msg__GoalStatusArray * msg); - -/// Finalize msg/GoalStatusArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -void -actionlib_msgs__msg__GoalStatusArray__fini(actionlib_msgs__msg__GoalStatusArray * msg); - -/// Create msg/GoalStatusArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * actionlib_msgs__msg__GoalStatusArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -actionlib_msgs__msg__GoalStatusArray * -actionlib_msgs__msg__GoalStatusArray__create(void); - -/// Destroy msg/GoalStatusArray message. -/** - * It calls - * actionlib_msgs__msg__GoalStatusArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -void -actionlib_msgs__msg__GoalStatusArray__destroy(actionlib_msgs__msg__GoalStatusArray * msg); - -/// Check for msg/GoalStatusArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalStatusArray__are_equal(const actionlib_msgs__msg__GoalStatusArray * lhs, const actionlib_msgs__msg__GoalStatusArray * rhs); - -/// Copy a msg/GoalStatusArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalStatusArray__copy( - const actionlib_msgs__msg__GoalStatusArray * input, - actionlib_msgs__msg__GoalStatusArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_type_hash_t * -actionlib_msgs__msg__GoalStatusArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_runtime_c__type_description__TypeDescription * -actionlib_msgs__msg__GoalStatusArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_runtime_c__type_description__TypeSource * -actionlib_msgs__msg__GoalStatusArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -actionlib_msgs__msg__GoalStatusArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/GoalStatusArray messages. -/** - * It allocates the memory for the number of elements and calls - * actionlib_msgs__msg__GoalStatusArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalStatusArray__Sequence__init(actionlib_msgs__msg__GoalStatusArray__Sequence * array, size_t size); - -/// Finalize array of msg/GoalStatusArray messages. -/** - * It calls - * actionlib_msgs__msg__GoalStatusArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -void -actionlib_msgs__msg__GoalStatusArray__Sequence__fini(actionlib_msgs__msg__GoalStatusArray__Sequence * array); - -/// Create array of msg/GoalStatusArray messages. -/** - * It allocates the memory for the array and calls - * actionlib_msgs__msg__GoalStatusArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -actionlib_msgs__msg__GoalStatusArray__Sequence * -actionlib_msgs__msg__GoalStatusArray__Sequence__create(size_t size); - -/// Destroy array of msg/GoalStatusArray messages. -/** - * It calls - * actionlib_msgs__msg__GoalStatusArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -void -actionlib_msgs__msg__GoalStatusArray__Sequence__destroy(actionlib_msgs__msg__GoalStatusArray__Sequence * array); - -/// Check for msg/GoalStatusArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalStatusArray__Sequence__are_equal(const actionlib_msgs__msg__GoalStatusArray__Sequence * lhs, const actionlib_msgs__msg__GoalStatusArray__Sequence * rhs); - -/// Copy an array of msg/GoalStatusArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -bool -actionlib_msgs__msg__GoalStatusArray__Sequence__copy( - const actionlib_msgs__msg__GoalStatusArray__Sequence * input, - actionlib_msgs__msg__GoalStatusArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__FUNCTIONS_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_status_array__rosidl_typesupport_introspection_c.h b/src/actionlib_msgs/msg/detail/goal_status_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5e505c1a6..000000000 --- a/src/actionlib_msgs/msg/detail/goal_status_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from actionlib_msgs:msg/GoalStatusArray.idl -// generated code does not contain a copyright notice - -#ifndef ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "actionlib_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_actionlib_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, actionlib_msgs, msg, GoalStatusArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_status_array__rosidl_typesupport_microxrcedds_c.h b/src/actionlib_msgs/msg/detail/goal_status_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 61f3dc258..000000000 --- a/src/actionlib_msgs/msg/detail/goal_status_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from actionlib_msgs:msg/GoalStatusArray.idl -// generated code does not contain a copyright notice -#ifndef ACTIONLIB_MSGS__MSG__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define ACTIONLIB_MSGS__MSG__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "actionlib_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_actionlib_msgs -size_t get_serialized_size_actionlib_msgs__msg__GoalStatusArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_actionlib_msgs -size_t max_serialized_size_actionlib_msgs__msg__GoalStatusArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_actionlib_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, actionlib_msgs, msg, GoalStatusArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // ACTIONLIB_MSGS__MSG__GOAL_STATUS_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_status_array__struct.h b/src/actionlib_msgs/msg/detail/goal_status_array__struct.h deleted file mode 100755 index 06a7aaf7a..000000000 --- a/src/actionlib_msgs/msg/detail/goal_status_array__struct.h +++ /dev/null @@ -1,53 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from actionlib_msgs:msg/GoalStatusArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "actionlib_msgs/msg/goal_status_array.h" - - -#ifndef ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__STRUCT_H_ -#define ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'status_list' -#include "actionlib_msgs/msg/detail/goal_status__struct.h" - -/// Struct defined in msg/GoalStatusArray in the package actionlib_msgs. -/** - * Stores the statuses for goals that are currently being tracked - * by an action server - */ -typedef struct actionlib_msgs__msg__GoalStatusArray -{ - std_msgs__msg__Header header; - actionlib_msgs__msg__GoalStatus__Sequence status_list; -} actionlib_msgs__msg__GoalStatusArray; - -// Struct for a sequence of actionlib_msgs__msg__GoalStatusArray. -typedef struct actionlib_msgs__msg__GoalStatusArray__Sequence -{ - actionlib_msgs__msg__GoalStatusArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} actionlib_msgs__msg__GoalStatusArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__STRUCT_H_ diff --git a/src/actionlib_msgs/msg/detail/goal_status_array__type_support.h b/src/actionlib_msgs/msg/detail/goal_status_array__type_support.h deleted file mode 100755 index 9ef41519b..000000000 --- a/src/actionlib_msgs/msg/detail/goal_status_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from actionlib_msgs:msg/GoalStatusArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "actionlib_msgs/msg/goal_status_array.h" - - -#ifndef ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__TYPE_SUPPORT_H_ -#define ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "actionlib_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - actionlib_msgs, - msg, - GoalStatusArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__DETAIL__GOAL_STATUS_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/actionlib_msgs/msg/goal_id.h b/src/actionlib_msgs/msg/goal_id.h deleted file mode 100755 index 03b2d2d71..000000000 --- a/src/actionlib_msgs/msg/goal_id.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from actionlib_msgs:msg/GoalID.idl -// generated code does not contain a copyright notice - -#ifndef ACTIONLIB_MSGS__MSG__GOAL_ID_H_ -#define ACTIONLIB_MSGS__MSG__GOAL_ID_H_ - -#include "actionlib_msgs/msg/detail/goal_id__struct.h" -#include "actionlib_msgs/msg/detail/goal_id__functions.h" -#include "actionlib_msgs/msg/detail/goal_id__type_support.h" - -#endif // ACTIONLIB_MSGS__MSG__GOAL_ID_H_ diff --git a/src/actionlib_msgs/msg/goal_status.h b/src/actionlib_msgs/msg/goal_status.h deleted file mode 100755 index 46b295270..000000000 --- a/src/actionlib_msgs/msg/goal_status.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from actionlib_msgs:msg/GoalStatus.idl -// generated code does not contain a copyright notice - -#ifndef ACTIONLIB_MSGS__MSG__GOAL_STATUS_H_ -#define ACTIONLIB_MSGS__MSG__GOAL_STATUS_H_ - -#include "actionlib_msgs/msg/detail/goal_status__struct.h" -#include "actionlib_msgs/msg/detail/goal_status__functions.h" -#include "actionlib_msgs/msg/detail/goal_status__type_support.h" - -#endif // ACTIONLIB_MSGS__MSG__GOAL_STATUS_H_ diff --git a/src/actionlib_msgs/msg/goal_status_array.h b/src/actionlib_msgs/msg/goal_status_array.h deleted file mode 100755 index d7983e6c0..000000000 --- a/src/actionlib_msgs/msg/goal_status_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from actionlib_msgs:msg/GoalStatusArray.idl -// generated code does not contain a copyright notice - -#ifndef ACTIONLIB_MSGS__MSG__GOAL_STATUS_ARRAY_H_ -#define ACTIONLIB_MSGS__MSG__GOAL_STATUS_ARRAY_H_ - -#include "actionlib_msgs/msg/detail/goal_status_array__struct.h" -#include "actionlib_msgs/msg/detail/goal_status_array__functions.h" -#include "actionlib_msgs/msg/detail/goal_status_array__type_support.h" - -#endif // ACTIONLIB_MSGS__MSG__GOAL_STATUS_ARRAY_H_ diff --git a/src/actionlib_msgs/msg/rosidl_generator_c__visibility_control.h b/src/actionlib_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index b73f2dc68..000000000 --- a/src/actionlib_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef ACTIONLIB_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define ACTIONLIB_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_actionlib_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_actionlib_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_actionlib_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_actionlib_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_actionlib_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs ROSIDL_GENERATOR_C_EXPORT_actionlib_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs ROSIDL_GENERATOR_C_IMPORT_actionlib_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_actionlib_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_actionlib_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_actionlib_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/actionlib_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/actionlib_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index bba253064..000000000 --- a/src/actionlib_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef ACTIONLIB_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define ACTIONLIB_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_actionlib_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_actionlib_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_actionlib_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_actionlib_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_actionlib_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_actionlib_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_actionlib_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_actionlib_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_actionlib_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_actionlib_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_actionlib_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_actionlib_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_actionlib_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/actionlib_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/actionlib_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 41259a8fc..000000000 --- a/src/actionlib_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef ACTIONLIB_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define ACTIONLIB_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_actionlib_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_actionlib_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_actionlib_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_actionlib_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_actionlib_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_actionlib_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_actionlib_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_actionlib_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_actionlib_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_actionlib_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_actionlib_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_actionlib_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_actionlib_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ACTIONLIB_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/builtin_interfaces/msg/detail/duration__functions.h b/src/builtin_interfaces/msg/detail/duration__functions.h deleted file mode 100755 index f6c01cc62..000000000 --- a/src/builtin_interfaces/msg/detail/duration__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from builtin_interfaces:msg/Duration.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "builtin_interfaces/msg/duration.h" - - -#ifndef BUILTIN_INTERFACES__MSG__DETAIL__DURATION__FUNCTIONS_H_ -#define BUILTIN_INTERFACES__MSG__DETAIL__DURATION__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "builtin_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "builtin_interfaces/msg/detail/duration__struct.h" - -/// Initialize msg/Duration message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * builtin_interfaces__msg__Duration - * )) before or use - * builtin_interfaces__msg__Duration__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -bool -builtin_interfaces__msg__Duration__init(builtin_interfaces__msg__Duration * msg); - -/// Finalize msg/Duration message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -void -builtin_interfaces__msg__Duration__fini(builtin_interfaces__msg__Duration * msg); - -/// Create msg/Duration message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * builtin_interfaces__msg__Duration__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -builtin_interfaces__msg__Duration * -builtin_interfaces__msg__Duration__create(void); - -/// Destroy msg/Duration message. -/** - * It calls - * builtin_interfaces__msg__Duration__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -void -builtin_interfaces__msg__Duration__destroy(builtin_interfaces__msg__Duration * msg); - -/// Check for msg/Duration message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -bool -builtin_interfaces__msg__Duration__are_equal(const builtin_interfaces__msg__Duration * lhs, const builtin_interfaces__msg__Duration * rhs); - -/// Copy a msg/Duration message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -bool -builtin_interfaces__msg__Duration__copy( - const builtin_interfaces__msg__Duration * input, - builtin_interfaces__msg__Duration * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -const rosidl_type_hash_t * -builtin_interfaces__msg__Duration__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -builtin_interfaces__msg__Duration__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -const rosidl_runtime_c__type_description__TypeSource * -builtin_interfaces__msg__Duration__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -builtin_interfaces__msg__Duration__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Duration messages. -/** - * It allocates the memory for the number of elements and calls - * builtin_interfaces__msg__Duration__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -bool -builtin_interfaces__msg__Duration__Sequence__init(builtin_interfaces__msg__Duration__Sequence * array, size_t size); - -/// Finalize array of msg/Duration messages. -/** - * It calls - * builtin_interfaces__msg__Duration__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -void -builtin_interfaces__msg__Duration__Sequence__fini(builtin_interfaces__msg__Duration__Sequence * array); - -/// Create array of msg/Duration messages. -/** - * It allocates the memory for the array and calls - * builtin_interfaces__msg__Duration__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -builtin_interfaces__msg__Duration__Sequence * -builtin_interfaces__msg__Duration__Sequence__create(size_t size); - -/// Destroy array of msg/Duration messages. -/** - * It calls - * builtin_interfaces__msg__Duration__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -void -builtin_interfaces__msg__Duration__Sequence__destroy(builtin_interfaces__msg__Duration__Sequence * array); - -/// Check for msg/Duration message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -bool -builtin_interfaces__msg__Duration__Sequence__are_equal(const builtin_interfaces__msg__Duration__Sequence * lhs, const builtin_interfaces__msg__Duration__Sequence * rhs); - -/// Copy an array of msg/Duration messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -bool -builtin_interfaces__msg__Duration__Sequence__copy( - const builtin_interfaces__msg__Duration__Sequence * input, - builtin_interfaces__msg__Duration__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // BUILTIN_INTERFACES__MSG__DETAIL__DURATION__FUNCTIONS_H_ diff --git a/src/builtin_interfaces/msg/detail/duration__rosidl_typesupport_introspection_c.h b/src/builtin_interfaces/msg/detail/duration__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 0092d9f3a..000000000 --- a/src/builtin_interfaces/msg/detail/duration__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from builtin_interfaces:msg/Duration.idl -// generated code does not contain a copyright notice - -#ifndef BUILTIN_INTERFACES__MSG__DETAIL__DURATION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define BUILTIN_INTERFACES__MSG__DETAIL__DURATION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "builtin_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_builtin_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, builtin_interfaces, msg, Duration)(); - -#ifdef __cplusplus -} -#endif - -#endif // BUILTIN_INTERFACES__MSG__DETAIL__DURATION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/builtin_interfaces/msg/detail/duration__rosidl_typesupport_microxrcedds_c.h b/src/builtin_interfaces/msg/detail/duration__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index df045948b..000000000 --- a/src/builtin_interfaces/msg/detail/duration__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from builtin_interfaces:msg/Duration.idl -// generated code does not contain a copyright notice -#ifndef BUILTIN_INTERFACES__MSG__DURATION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define BUILTIN_INTERFACES__MSG__DURATION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "builtin_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_builtin_interfaces -size_t get_serialized_size_builtin_interfaces__msg__Duration( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_builtin_interfaces -size_t max_serialized_size_builtin_interfaces__msg__Duration( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_builtin_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, builtin_interfaces, msg, Duration)(); - -#ifdef __cplusplus -} -#endif - - -#endif // BUILTIN_INTERFACES__MSG__DURATION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/builtin_interfaces/msg/detail/duration__struct.h b/src/builtin_interfaces/msg/detail/duration__struct.h deleted file mode 100755 index 0f6d6b6d5..000000000 --- a/src/builtin_interfaces/msg/detail/duration__struct.h +++ /dev/null @@ -1,53 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from builtin_interfaces:msg/Duration.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "builtin_interfaces/msg/duration.h" - - -#ifndef BUILTIN_INTERFACES__MSG__DETAIL__DURATION__STRUCT_H_ -#define BUILTIN_INTERFACES__MSG__DETAIL__DURATION__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Duration in the package builtin_interfaces. -/** - * Duration defines a period between two time points. - * Messages of this datatype are of ROS Time following this design: - * https://design.ros2.org/articles/clock_and_time.html - */ -typedef struct builtin_interfaces__msg__Duration -{ - /// The seconds component, valid over all int32 values. - int32_t sec; - /// The nanoseconds component, valid in the range [0, 1e9), to be added to the seconds component. - /// e.g. - /// The duration -1.7 seconds is represented as {sec: -2, nanosec: 3e8} - /// The duration 1.7 seconds is represented as {sec: 1, nanosec: 7e8} - uint32_t nanosec; -} builtin_interfaces__msg__Duration; - -// Struct for a sequence of builtin_interfaces__msg__Duration. -typedef struct builtin_interfaces__msg__Duration__Sequence -{ - builtin_interfaces__msg__Duration * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} builtin_interfaces__msg__Duration__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // BUILTIN_INTERFACES__MSG__DETAIL__DURATION__STRUCT_H_ diff --git a/src/builtin_interfaces/msg/detail/duration__type_support.h b/src/builtin_interfaces/msg/detail/duration__type_support.h deleted file mode 100755 index 52f006c13..000000000 --- a/src/builtin_interfaces/msg/detail/duration__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from builtin_interfaces:msg/Duration.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "builtin_interfaces/msg/duration.h" - - -#ifndef BUILTIN_INTERFACES__MSG__DETAIL__DURATION__TYPE_SUPPORT_H_ -#define BUILTIN_INTERFACES__MSG__DETAIL__DURATION__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "builtin_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - builtin_interfaces, - msg, - Duration -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // BUILTIN_INTERFACES__MSG__DETAIL__DURATION__TYPE_SUPPORT_H_ diff --git a/src/builtin_interfaces/msg/detail/time__functions.h b/src/builtin_interfaces/msg/detail/time__functions.h deleted file mode 100755 index 748f25f39..000000000 --- a/src/builtin_interfaces/msg/detail/time__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from builtin_interfaces:msg/Time.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "builtin_interfaces/msg/time.h" - - -#ifndef BUILTIN_INTERFACES__MSG__DETAIL__TIME__FUNCTIONS_H_ -#define BUILTIN_INTERFACES__MSG__DETAIL__TIME__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "builtin_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Initialize msg/Time message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * builtin_interfaces__msg__Time - * )) before or use - * builtin_interfaces__msg__Time__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -bool -builtin_interfaces__msg__Time__init(builtin_interfaces__msg__Time * msg); - -/// Finalize msg/Time message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -void -builtin_interfaces__msg__Time__fini(builtin_interfaces__msg__Time * msg); - -/// Create msg/Time message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * builtin_interfaces__msg__Time__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -builtin_interfaces__msg__Time * -builtin_interfaces__msg__Time__create(void); - -/// Destroy msg/Time message. -/** - * It calls - * builtin_interfaces__msg__Time__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -void -builtin_interfaces__msg__Time__destroy(builtin_interfaces__msg__Time * msg); - -/// Check for msg/Time message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -bool -builtin_interfaces__msg__Time__are_equal(const builtin_interfaces__msg__Time * lhs, const builtin_interfaces__msg__Time * rhs); - -/// Copy a msg/Time message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -bool -builtin_interfaces__msg__Time__copy( - const builtin_interfaces__msg__Time * input, - builtin_interfaces__msg__Time * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -const rosidl_type_hash_t * -builtin_interfaces__msg__Time__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -builtin_interfaces__msg__Time__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -const rosidl_runtime_c__type_description__TypeSource * -builtin_interfaces__msg__Time__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -builtin_interfaces__msg__Time__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Time messages. -/** - * It allocates the memory for the number of elements and calls - * builtin_interfaces__msg__Time__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -bool -builtin_interfaces__msg__Time__Sequence__init(builtin_interfaces__msg__Time__Sequence * array, size_t size); - -/// Finalize array of msg/Time messages. -/** - * It calls - * builtin_interfaces__msg__Time__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -void -builtin_interfaces__msg__Time__Sequence__fini(builtin_interfaces__msg__Time__Sequence * array); - -/// Create array of msg/Time messages. -/** - * It allocates the memory for the array and calls - * builtin_interfaces__msg__Time__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -builtin_interfaces__msg__Time__Sequence * -builtin_interfaces__msg__Time__Sequence__create(size_t size); - -/// Destroy array of msg/Time messages. -/** - * It calls - * builtin_interfaces__msg__Time__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -void -builtin_interfaces__msg__Time__Sequence__destroy(builtin_interfaces__msg__Time__Sequence * array); - -/// Check for msg/Time message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -bool -builtin_interfaces__msg__Time__Sequence__are_equal(const builtin_interfaces__msg__Time__Sequence * lhs, const builtin_interfaces__msg__Time__Sequence * rhs); - -/// Copy an array of msg/Time messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -bool -builtin_interfaces__msg__Time__Sequence__copy( - const builtin_interfaces__msg__Time__Sequence * input, - builtin_interfaces__msg__Time__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // BUILTIN_INTERFACES__MSG__DETAIL__TIME__FUNCTIONS_H_ diff --git a/src/builtin_interfaces/msg/detail/time__rosidl_typesupport_introspection_c.h b/src/builtin_interfaces/msg/detail/time__rosidl_typesupport_introspection_c.h deleted file mode 100755 index da7ff46e8..000000000 --- a/src/builtin_interfaces/msg/detail/time__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from builtin_interfaces:msg/Time.idl -// generated code does not contain a copyright notice - -#ifndef BUILTIN_INTERFACES__MSG__DETAIL__TIME__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define BUILTIN_INTERFACES__MSG__DETAIL__TIME__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "builtin_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_builtin_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, builtin_interfaces, msg, Time)(); - -#ifdef __cplusplus -} -#endif - -#endif // BUILTIN_INTERFACES__MSG__DETAIL__TIME__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/builtin_interfaces/msg/detail/time__rosidl_typesupport_microxrcedds_c.h b/src/builtin_interfaces/msg/detail/time__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ad0b2f325..000000000 --- a/src/builtin_interfaces/msg/detail/time__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from builtin_interfaces:msg/Time.idl -// generated code does not contain a copyright notice -#ifndef BUILTIN_INTERFACES__MSG__TIME__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define BUILTIN_INTERFACES__MSG__TIME__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "builtin_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_builtin_interfaces -size_t get_serialized_size_builtin_interfaces__msg__Time( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_builtin_interfaces -size_t max_serialized_size_builtin_interfaces__msg__Time( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_builtin_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, builtin_interfaces, msg, Time)(); - -#ifdef __cplusplus -} -#endif - - -#endif // BUILTIN_INTERFACES__MSG__TIME__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/builtin_interfaces/msg/detail/time__struct.h b/src/builtin_interfaces/msg/detail/time__struct.h deleted file mode 100755 index 4d9b86152..000000000 --- a/src/builtin_interfaces/msg/detail/time__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from builtin_interfaces:msg/Time.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "builtin_interfaces/msg/time.h" - - -#ifndef BUILTIN_INTERFACES__MSG__DETAIL__TIME__STRUCT_H_ -#define BUILTIN_INTERFACES__MSG__DETAIL__TIME__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Time in the package builtin_interfaces. -/** - * This message communicates ROS Time defined here: - * https://design.ros2.org/articles/clock_and_time.html - */ -typedef struct builtin_interfaces__msg__Time -{ - /// The seconds component, valid over all int32 values. - int32_t sec; - /// The nanoseconds component, valid in the range [0, 1e9), to be added to the seconds component. - /// e.g. - /// The time -1.7 seconds is represented as {sec: -2, nanosec: 3e8} - /// The time 1.7 seconds is represented as {sec: 1, nanosec: 7e8} - uint32_t nanosec; -} builtin_interfaces__msg__Time; - -// Struct for a sequence of builtin_interfaces__msg__Time. -typedef struct builtin_interfaces__msg__Time__Sequence -{ - builtin_interfaces__msg__Time * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} builtin_interfaces__msg__Time__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // BUILTIN_INTERFACES__MSG__DETAIL__TIME__STRUCT_H_ diff --git a/src/builtin_interfaces/msg/detail/time__type_support.h b/src/builtin_interfaces/msg/detail/time__type_support.h deleted file mode 100755 index a576d32d2..000000000 --- a/src/builtin_interfaces/msg/detail/time__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from builtin_interfaces:msg/Time.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "builtin_interfaces/msg/time.h" - - -#ifndef BUILTIN_INTERFACES__MSG__DETAIL__TIME__TYPE_SUPPORT_H_ -#define BUILTIN_INTERFACES__MSG__DETAIL__TIME__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "builtin_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - builtin_interfaces, - msg, - Time -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // BUILTIN_INTERFACES__MSG__DETAIL__TIME__TYPE_SUPPORT_H_ diff --git a/src/builtin_interfaces/msg/duration.h b/src/builtin_interfaces/msg/duration.h deleted file mode 100755 index 2bef1ec95..000000000 --- a/src/builtin_interfaces/msg/duration.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from builtin_interfaces:msg/Duration.idl -// generated code does not contain a copyright notice - -#ifndef BUILTIN_INTERFACES__MSG__DURATION_H_ -#define BUILTIN_INTERFACES__MSG__DURATION_H_ - -#include "builtin_interfaces/msg/detail/duration__struct.h" -#include "builtin_interfaces/msg/detail/duration__functions.h" -#include "builtin_interfaces/msg/detail/duration__type_support.h" - -#endif // BUILTIN_INTERFACES__MSG__DURATION_H_ diff --git a/src/builtin_interfaces/msg/rosidl_generator_c__visibility_control.h b/src/builtin_interfaces/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 4bf02fac6..000000000 --- a/src/builtin_interfaces/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef BUILTIN_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define BUILTIN_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_builtin_interfaces __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_builtin_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_builtin_interfaces __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_builtin_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_builtin_interfaces - #define ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces ROSIDL_GENERATOR_C_EXPORT_builtin_interfaces - #else - #define ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces ROSIDL_GENERATOR_C_IMPORT_builtin_interfaces - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_builtin_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_builtin_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_builtin_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // BUILTIN_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/builtin_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/builtin_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index b5ef33a5a..000000000 --- a/src/builtin_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef BUILTIN_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define BUILTIN_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_builtin_interfaces __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_builtin_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_builtin_interfaces __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_builtin_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_builtin_interfaces - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_builtin_interfaces ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_builtin_interfaces - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_builtin_interfaces ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_builtin_interfaces - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_builtin_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_builtin_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_builtin_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_builtin_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // BUILTIN_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/builtin_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/builtin_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 13236cce8..000000000 --- a/src/builtin_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef BUILTIN_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define BUILTIN_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_builtin_interfaces __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_builtin_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_builtin_interfaces __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_builtin_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_builtin_interfaces - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_builtin_interfaces ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_builtin_interfaces - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_builtin_interfaces ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_builtin_interfaces - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_builtin_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_builtin_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_builtin_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_builtin_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // BUILTIN_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/builtin_interfaces/msg/time.h b/src/builtin_interfaces/msg/time.h deleted file mode 100755 index 8b4d11554..000000000 --- a/src/builtin_interfaces/msg/time.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from builtin_interfaces:msg/Time.idl -// generated code does not contain a copyright notice - -#ifndef BUILTIN_INTERFACES__MSG__TIME_H_ -#define BUILTIN_INTERFACES__MSG__TIME_H_ - -#include "builtin_interfaces/msg/detail/time__struct.h" -#include "builtin_interfaces/msg/detail/time__functions.h" -#include "builtin_interfaces/msg/detail/time__type_support.h" - -#endif // BUILTIN_INTERFACES__MSG__TIME_H_ diff --git a/src/composition_interfaces/msg/rosidl_generator_c__visibility_control.h b/src/composition_interfaces/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 767cb6d67..000000000 --- a/src/composition_interfaces/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef COMPOSITION_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define COMPOSITION_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_composition_interfaces __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_composition_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_composition_interfaces __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_composition_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_composition_interfaces - #define ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces ROSIDL_GENERATOR_C_EXPORT_composition_interfaces - #else - #define ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces ROSIDL_GENERATOR_C_IMPORT_composition_interfaces - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_composition_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_composition_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index ced45e197..000000000 --- a/src/composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef COMPOSITION_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define COMPOSITION_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_composition_interfaces __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_composition_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_composition_interfaces __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_composition_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_composition_interfaces - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_composition_interfaces - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_composition_interfaces - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_composition_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_composition_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 74dc53184..000000000 --- a/src/composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef COMPOSITION_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define COMPOSITION_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_composition_interfaces __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_composition_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_composition_interfaces __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_composition_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_composition_interfaces - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_composition_interfaces - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_composition_interfaces - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_composition_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_composition_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/composition_interfaces/srv/detail/list_nodes__functions.h b/src/composition_interfaces/srv/detail/list_nodes__functions.h deleted file mode 100755 index 926d6addb..000000000 --- a/src/composition_interfaces/srv/detail/list_nodes__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from composition_interfaces:srv/ListNodes.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "composition_interfaces/srv/list_nodes.h" - - -#ifndef COMPOSITION_INTERFACES__SRV__DETAIL__LIST_NODES__FUNCTIONS_H_ -#define COMPOSITION_INTERFACES__SRV__DETAIL__LIST_NODES__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "composition_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "composition_interfaces/srv/detail/list_nodes__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_type_hash_t * -composition_interfaces__srv__ListNodes__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -composition_interfaces__srv__ListNodes__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource * -composition_interfaces__srv__ListNodes__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -composition_interfaces__srv__ListNodes__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/ListNodes message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * composition_interfaces__srv__ListNodes_Request - * )) before or use - * composition_interfaces__srv__ListNodes_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Request__init(composition_interfaces__srv__ListNodes_Request * msg); - -/// Finalize srv/ListNodes message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__ListNodes_Request__fini(composition_interfaces__srv__ListNodes_Request * msg); - -/// Create srv/ListNodes message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * composition_interfaces__srv__ListNodes_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__ListNodes_Request * -composition_interfaces__srv__ListNodes_Request__create(void); - -/// Destroy srv/ListNodes message. -/** - * It calls - * composition_interfaces__srv__ListNodes_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__ListNodes_Request__destroy(composition_interfaces__srv__ListNodes_Request * msg); - -/// Check for srv/ListNodes message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Request__are_equal(const composition_interfaces__srv__ListNodes_Request * lhs, const composition_interfaces__srv__ListNodes_Request * rhs); - -/// Copy a srv/ListNodes message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Request__copy( - const composition_interfaces__srv__ListNodes_Request * input, - composition_interfaces__srv__ListNodes_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_type_hash_t * -composition_interfaces__srv__ListNodes_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -composition_interfaces__srv__ListNodes_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource * -composition_interfaces__srv__ListNodes_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -composition_interfaces__srv__ListNodes_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/ListNodes messages. -/** - * It allocates the memory for the number of elements and calls - * composition_interfaces__srv__ListNodes_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Request__Sequence__init(composition_interfaces__srv__ListNodes_Request__Sequence * array, size_t size); - -/// Finalize array of srv/ListNodes messages. -/** - * It calls - * composition_interfaces__srv__ListNodes_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__ListNodes_Request__Sequence__fini(composition_interfaces__srv__ListNodes_Request__Sequence * array); - -/// Create array of srv/ListNodes messages. -/** - * It allocates the memory for the array and calls - * composition_interfaces__srv__ListNodes_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__ListNodes_Request__Sequence * -composition_interfaces__srv__ListNodes_Request__Sequence__create(size_t size); - -/// Destroy array of srv/ListNodes messages. -/** - * It calls - * composition_interfaces__srv__ListNodes_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__ListNodes_Request__Sequence__destroy(composition_interfaces__srv__ListNodes_Request__Sequence * array); - -/// Check for srv/ListNodes message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Request__Sequence__are_equal(const composition_interfaces__srv__ListNodes_Request__Sequence * lhs, const composition_interfaces__srv__ListNodes_Request__Sequence * rhs); - -/// Copy an array of srv/ListNodes messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Request__Sequence__copy( - const composition_interfaces__srv__ListNodes_Request__Sequence * input, - composition_interfaces__srv__ListNodes_Request__Sequence * output); - -/// Initialize srv/ListNodes message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * composition_interfaces__srv__ListNodes_Response - * )) before or use - * composition_interfaces__srv__ListNodes_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Response__init(composition_interfaces__srv__ListNodes_Response * msg); - -/// Finalize srv/ListNodes message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__ListNodes_Response__fini(composition_interfaces__srv__ListNodes_Response * msg); - -/// Create srv/ListNodes message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * composition_interfaces__srv__ListNodes_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__ListNodes_Response * -composition_interfaces__srv__ListNodes_Response__create(void); - -/// Destroy srv/ListNodes message. -/** - * It calls - * composition_interfaces__srv__ListNodes_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__ListNodes_Response__destroy(composition_interfaces__srv__ListNodes_Response * msg); - -/// Check for srv/ListNodes message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Response__are_equal(const composition_interfaces__srv__ListNodes_Response * lhs, const composition_interfaces__srv__ListNodes_Response * rhs); - -/// Copy a srv/ListNodes message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Response__copy( - const composition_interfaces__srv__ListNodes_Response * input, - composition_interfaces__srv__ListNodes_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_type_hash_t * -composition_interfaces__srv__ListNodes_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -composition_interfaces__srv__ListNodes_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource * -composition_interfaces__srv__ListNodes_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -composition_interfaces__srv__ListNodes_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/ListNodes messages. -/** - * It allocates the memory for the number of elements and calls - * composition_interfaces__srv__ListNodes_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Response__Sequence__init(composition_interfaces__srv__ListNodes_Response__Sequence * array, size_t size); - -/// Finalize array of srv/ListNodes messages. -/** - * It calls - * composition_interfaces__srv__ListNodes_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__ListNodes_Response__Sequence__fini(composition_interfaces__srv__ListNodes_Response__Sequence * array); - -/// Create array of srv/ListNodes messages. -/** - * It allocates the memory for the array and calls - * composition_interfaces__srv__ListNodes_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__ListNodes_Response__Sequence * -composition_interfaces__srv__ListNodes_Response__Sequence__create(size_t size); - -/// Destroy array of srv/ListNodes messages. -/** - * It calls - * composition_interfaces__srv__ListNodes_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__ListNodes_Response__Sequence__destroy(composition_interfaces__srv__ListNodes_Response__Sequence * array); - -/// Check for srv/ListNodes message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Response__Sequence__are_equal(const composition_interfaces__srv__ListNodes_Response__Sequence * lhs, const composition_interfaces__srv__ListNodes_Response__Sequence * rhs); - -/// Copy an array of srv/ListNodes messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Response__Sequence__copy( - const composition_interfaces__srv__ListNodes_Response__Sequence * input, - composition_interfaces__srv__ListNodes_Response__Sequence * output); - -/// Initialize srv/ListNodes message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * composition_interfaces__srv__ListNodes_Event - * )) before or use - * composition_interfaces__srv__ListNodes_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Event__init(composition_interfaces__srv__ListNodes_Event * msg); - -/// Finalize srv/ListNodes message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__ListNodes_Event__fini(composition_interfaces__srv__ListNodes_Event * msg); - -/// Create srv/ListNodes message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * composition_interfaces__srv__ListNodes_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__ListNodes_Event * -composition_interfaces__srv__ListNodes_Event__create(void); - -/// Destroy srv/ListNodes message. -/** - * It calls - * composition_interfaces__srv__ListNodes_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__ListNodes_Event__destroy(composition_interfaces__srv__ListNodes_Event * msg); - -/// Check for srv/ListNodes message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Event__are_equal(const composition_interfaces__srv__ListNodes_Event * lhs, const composition_interfaces__srv__ListNodes_Event * rhs); - -/// Copy a srv/ListNodes message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Event__copy( - const composition_interfaces__srv__ListNodes_Event * input, - composition_interfaces__srv__ListNodes_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_type_hash_t * -composition_interfaces__srv__ListNodes_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -composition_interfaces__srv__ListNodes_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource * -composition_interfaces__srv__ListNodes_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -composition_interfaces__srv__ListNodes_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/ListNodes messages. -/** - * It allocates the memory for the number of elements and calls - * composition_interfaces__srv__ListNodes_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Event__Sequence__init(composition_interfaces__srv__ListNodes_Event__Sequence * array, size_t size); - -/// Finalize array of srv/ListNodes messages. -/** - * It calls - * composition_interfaces__srv__ListNodes_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__ListNodes_Event__Sequence__fini(composition_interfaces__srv__ListNodes_Event__Sequence * array); - -/// Create array of srv/ListNodes messages. -/** - * It allocates the memory for the array and calls - * composition_interfaces__srv__ListNodes_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__ListNodes_Event__Sequence * -composition_interfaces__srv__ListNodes_Event__Sequence__create(size_t size); - -/// Destroy array of srv/ListNodes messages. -/** - * It calls - * composition_interfaces__srv__ListNodes_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__ListNodes_Event__Sequence__destroy(composition_interfaces__srv__ListNodes_Event__Sequence * array); - -/// Check for srv/ListNodes message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Event__Sequence__are_equal(const composition_interfaces__srv__ListNodes_Event__Sequence * lhs, const composition_interfaces__srv__ListNodes_Event__Sequence * rhs); - -/// Copy an array of srv/ListNodes messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__ListNodes_Event__Sequence__copy( - const composition_interfaces__srv__ListNodes_Event__Sequence * input, - composition_interfaces__srv__ListNodes_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__DETAIL__LIST_NODES__FUNCTIONS_H_ diff --git a/src/composition_interfaces/srv/detail/list_nodes__rosidl_typesupport_introspection_c.h b/src/composition_interfaces/srv/detail/list_nodes__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 35e256bcf..000000000 --- a/src/composition_interfaces/srv/detail/list_nodes__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from composition_interfaces:srv/ListNodes.idl -// generated code does not contain a copyright notice - -#ifndef COMPOSITION_INTERFACES__SRV__DETAIL__LIST_NODES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define COMPOSITION_INTERFACES__SRV__DETAIL__LIST_NODES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, composition_interfaces, srv, ListNodes_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, composition_interfaces, srv, ListNodes_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, composition_interfaces, srv, ListNodes_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, composition_interfaces, srv, ListNodes)(); - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__DETAIL__LIST_NODES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/composition_interfaces/srv/detail/list_nodes__rosidl_typesupport_microxrcedds_c.h b/src/composition_interfaces/srv/detail/list_nodes__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index dbf4ed555..000000000 --- a/src/composition_interfaces/srv/detail/list_nodes__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from composition_interfaces:srv/ListNodes.idl -// generated code does not contain a copyright notice -#ifndef COMPOSITION_INTERFACES__SRV__LIST_NODES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define COMPOSITION_INTERFACES__SRV__LIST_NODES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t get_serialized_size_composition_interfaces__srv__ListNodes_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t max_serialized_size_composition_interfaces__srv__ListNodes_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, composition_interfaces, srv, ListNodes_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t get_serialized_size_composition_interfaces__srv__ListNodes_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t max_serialized_size_composition_interfaces__srv__ListNodes_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, composition_interfaces, srv, ListNodes_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t get_serialized_size_composition_interfaces__srv__ListNodes_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t max_serialized_size_composition_interfaces__srv__ListNodes_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, composition_interfaces, srv, ListNodes_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, composition_interfaces, srv, ListNodes)(); - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__LIST_NODES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/composition_interfaces/srv/detail/list_nodes__struct.h b/src/composition_interfaces/srv/detail/list_nodes__struct.h deleted file mode 100755 index fc6818353..000000000 --- a/src/composition_interfaces/srv/detail/list_nodes__struct.h +++ /dev/null @@ -1,105 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from composition_interfaces:srv/ListNodes.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "composition_interfaces/srv/list_nodes.h" - - -#ifndef COMPOSITION_INTERFACES__SRV__DETAIL__LIST_NODES__STRUCT_H_ -#define COMPOSITION_INTERFACES__SRV__DETAIL__LIST_NODES__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/ListNodes in the package composition_interfaces. -typedef struct composition_interfaces__srv__ListNodes_Request -{ - uint8_t structure_needs_at_least_one_member; -} composition_interfaces__srv__ListNodes_Request; - -// Struct for a sequence of composition_interfaces__srv__ListNodes_Request. -typedef struct composition_interfaces__srv__ListNodes_Request__Sequence -{ - composition_interfaces__srv__ListNodes_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} composition_interfaces__srv__ListNodes_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'full_node_names' -#include "rosidl_runtime_c/string.h" -// Member 'unique_ids' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in srv/ListNodes in the package composition_interfaces. -typedef struct composition_interfaces__srv__ListNodes_Response -{ - rosidl_runtime_c__String__Sequence full_node_names; - /// corresponding unique ids (must have same length as full_node_names). - rosidl_runtime_c__uint64__Sequence unique_ids; -} composition_interfaces__srv__ListNodes_Response; - -// Struct for a sequence of composition_interfaces__srv__ListNodes_Response. -typedef struct composition_interfaces__srv__ListNodes_Response__Sequence -{ - composition_interfaces__srv__ListNodes_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} composition_interfaces__srv__ListNodes_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - composition_interfaces__srv__ListNodes_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - composition_interfaces__srv__ListNodes_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/ListNodes in the package composition_interfaces. -typedef struct composition_interfaces__srv__ListNodes_Event -{ - service_msgs__msg__ServiceEventInfo info; - composition_interfaces__srv__ListNodes_Request__Sequence request; - composition_interfaces__srv__ListNodes_Response__Sequence response; -} composition_interfaces__srv__ListNodes_Event; - -// Struct for a sequence of composition_interfaces__srv__ListNodes_Event. -typedef struct composition_interfaces__srv__ListNodes_Event__Sequence -{ - composition_interfaces__srv__ListNodes_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} composition_interfaces__srv__ListNodes_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__DETAIL__LIST_NODES__STRUCT_H_ diff --git a/src/composition_interfaces/srv/detail/list_nodes__type_support.h b/src/composition_interfaces/srv/detail/list_nodes__type_support.h deleted file mode 100755 index 4db34fe68..000000000 --- a/src/composition_interfaces/srv/detail/list_nodes__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from composition_interfaces:srv/ListNodes.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "composition_interfaces/srv/list_nodes.h" - - -#ifndef COMPOSITION_INTERFACES__SRV__DETAIL__LIST_NODES__TYPE_SUPPORT_H_ -#define COMPOSITION_INTERFACES__SRV__DETAIL__LIST_NODES__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "composition_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - ListNodes_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - ListNodes_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - ListNodes_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - ListNodes -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - ListNodes -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - ListNodes -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__DETAIL__LIST_NODES__TYPE_SUPPORT_H_ diff --git a/src/composition_interfaces/srv/detail/load_node__functions.h b/src/composition_interfaces/srv/detail/load_node__functions.h deleted file mode 100755 index 33d6b5082..000000000 --- a/src/composition_interfaces/srv/detail/load_node__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from composition_interfaces:srv/LoadNode.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "composition_interfaces/srv/load_node.h" - - -#ifndef COMPOSITION_INTERFACES__SRV__DETAIL__LOAD_NODE__FUNCTIONS_H_ -#define COMPOSITION_INTERFACES__SRV__DETAIL__LOAD_NODE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "composition_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "composition_interfaces/srv/detail/load_node__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_type_hash_t * -composition_interfaces__srv__LoadNode__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -composition_interfaces__srv__LoadNode__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource * -composition_interfaces__srv__LoadNode__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -composition_interfaces__srv__LoadNode__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/LoadNode message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * composition_interfaces__srv__LoadNode_Request - * )) before or use - * composition_interfaces__srv__LoadNode_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Request__init(composition_interfaces__srv__LoadNode_Request * msg); - -/// Finalize srv/LoadNode message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__LoadNode_Request__fini(composition_interfaces__srv__LoadNode_Request * msg); - -/// Create srv/LoadNode message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * composition_interfaces__srv__LoadNode_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__LoadNode_Request * -composition_interfaces__srv__LoadNode_Request__create(void); - -/// Destroy srv/LoadNode message. -/** - * It calls - * composition_interfaces__srv__LoadNode_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__LoadNode_Request__destroy(composition_interfaces__srv__LoadNode_Request * msg); - -/// Check for srv/LoadNode message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Request__are_equal(const composition_interfaces__srv__LoadNode_Request * lhs, const composition_interfaces__srv__LoadNode_Request * rhs); - -/// Copy a srv/LoadNode message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Request__copy( - const composition_interfaces__srv__LoadNode_Request * input, - composition_interfaces__srv__LoadNode_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_type_hash_t * -composition_interfaces__srv__LoadNode_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -composition_interfaces__srv__LoadNode_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource * -composition_interfaces__srv__LoadNode_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -composition_interfaces__srv__LoadNode_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/LoadNode messages. -/** - * It allocates the memory for the number of elements and calls - * composition_interfaces__srv__LoadNode_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Request__Sequence__init(composition_interfaces__srv__LoadNode_Request__Sequence * array, size_t size); - -/// Finalize array of srv/LoadNode messages. -/** - * It calls - * composition_interfaces__srv__LoadNode_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__LoadNode_Request__Sequence__fini(composition_interfaces__srv__LoadNode_Request__Sequence * array); - -/// Create array of srv/LoadNode messages. -/** - * It allocates the memory for the array and calls - * composition_interfaces__srv__LoadNode_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__LoadNode_Request__Sequence * -composition_interfaces__srv__LoadNode_Request__Sequence__create(size_t size); - -/// Destroy array of srv/LoadNode messages. -/** - * It calls - * composition_interfaces__srv__LoadNode_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__LoadNode_Request__Sequence__destroy(composition_interfaces__srv__LoadNode_Request__Sequence * array); - -/// Check for srv/LoadNode message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Request__Sequence__are_equal(const composition_interfaces__srv__LoadNode_Request__Sequence * lhs, const composition_interfaces__srv__LoadNode_Request__Sequence * rhs); - -/// Copy an array of srv/LoadNode messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Request__Sequence__copy( - const composition_interfaces__srv__LoadNode_Request__Sequence * input, - composition_interfaces__srv__LoadNode_Request__Sequence * output); - -/// Initialize srv/LoadNode message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * composition_interfaces__srv__LoadNode_Response - * )) before or use - * composition_interfaces__srv__LoadNode_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Response__init(composition_interfaces__srv__LoadNode_Response * msg); - -/// Finalize srv/LoadNode message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__LoadNode_Response__fini(composition_interfaces__srv__LoadNode_Response * msg); - -/// Create srv/LoadNode message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * composition_interfaces__srv__LoadNode_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__LoadNode_Response * -composition_interfaces__srv__LoadNode_Response__create(void); - -/// Destroy srv/LoadNode message. -/** - * It calls - * composition_interfaces__srv__LoadNode_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__LoadNode_Response__destroy(composition_interfaces__srv__LoadNode_Response * msg); - -/// Check for srv/LoadNode message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Response__are_equal(const composition_interfaces__srv__LoadNode_Response * lhs, const composition_interfaces__srv__LoadNode_Response * rhs); - -/// Copy a srv/LoadNode message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Response__copy( - const composition_interfaces__srv__LoadNode_Response * input, - composition_interfaces__srv__LoadNode_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_type_hash_t * -composition_interfaces__srv__LoadNode_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -composition_interfaces__srv__LoadNode_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource * -composition_interfaces__srv__LoadNode_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -composition_interfaces__srv__LoadNode_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/LoadNode messages. -/** - * It allocates the memory for the number of elements and calls - * composition_interfaces__srv__LoadNode_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Response__Sequence__init(composition_interfaces__srv__LoadNode_Response__Sequence * array, size_t size); - -/// Finalize array of srv/LoadNode messages. -/** - * It calls - * composition_interfaces__srv__LoadNode_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__LoadNode_Response__Sequence__fini(composition_interfaces__srv__LoadNode_Response__Sequence * array); - -/// Create array of srv/LoadNode messages. -/** - * It allocates the memory for the array and calls - * composition_interfaces__srv__LoadNode_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__LoadNode_Response__Sequence * -composition_interfaces__srv__LoadNode_Response__Sequence__create(size_t size); - -/// Destroy array of srv/LoadNode messages. -/** - * It calls - * composition_interfaces__srv__LoadNode_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__LoadNode_Response__Sequence__destroy(composition_interfaces__srv__LoadNode_Response__Sequence * array); - -/// Check for srv/LoadNode message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Response__Sequence__are_equal(const composition_interfaces__srv__LoadNode_Response__Sequence * lhs, const composition_interfaces__srv__LoadNode_Response__Sequence * rhs); - -/// Copy an array of srv/LoadNode messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Response__Sequence__copy( - const composition_interfaces__srv__LoadNode_Response__Sequence * input, - composition_interfaces__srv__LoadNode_Response__Sequence * output); - -/// Initialize srv/LoadNode message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * composition_interfaces__srv__LoadNode_Event - * )) before or use - * composition_interfaces__srv__LoadNode_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Event__init(composition_interfaces__srv__LoadNode_Event * msg); - -/// Finalize srv/LoadNode message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__LoadNode_Event__fini(composition_interfaces__srv__LoadNode_Event * msg); - -/// Create srv/LoadNode message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * composition_interfaces__srv__LoadNode_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__LoadNode_Event * -composition_interfaces__srv__LoadNode_Event__create(void); - -/// Destroy srv/LoadNode message. -/** - * It calls - * composition_interfaces__srv__LoadNode_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__LoadNode_Event__destroy(composition_interfaces__srv__LoadNode_Event * msg); - -/// Check for srv/LoadNode message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Event__are_equal(const composition_interfaces__srv__LoadNode_Event * lhs, const composition_interfaces__srv__LoadNode_Event * rhs); - -/// Copy a srv/LoadNode message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Event__copy( - const composition_interfaces__srv__LoadNode_Event * input, - composition_interfaces__srv__LoadNode_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_type_hash_t * -composition_interfaces__srv__LoadNode_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -composition_interfaces__srv__LoadNode_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource * -composition_interfaces__srv__LoadNode_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -composition_interfaces__srv__LoadNode_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/LoadNode messages. -/** - * It allocates the memory for the number of elements and calls - * composition_interfaces__srv__LoadNode_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Event__Sequence__init(composition_interfaces__srv__LoadNode_Event__Sequence * array, size_t size); - -/// Finalize array of srv/LoadNode messages. -/** - * It calls - * composition_interfaces__srv__LoadNode_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__LoadNode_Event__Sequence__fini(composition_interfaces__srv__LoadNode_Event__Sequence * array); - -/// Create array of srv/LoadNode messages. -/** - * It allocates the memory for the array and calls - * composition_interfaces__srv__LoadNode_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__LoadNode_Event__Sequence * -composition_interfaces__srv__LoadNode_Event__Sequence__create(size_t size); - -/// Destroy array of srv/LoadNode messages. -/** - * It calls - * composition_interfaces__srv__LoadNode_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__LoadNode_Event__Sequence__destroy(composition_interfaces__srv__LoadNode_Event__Sequence * array); - -/// Check for srv/LoadNode message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Event__Sequence__are_equal(const composition_interfaces__srv__LoadNode_Event__Sequence * lhs, const composition_interfaces__srv__LoadNode_Event__Sequence * rhs); - -/// Copy an array of srv/LoadNode messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__LoadNode_Event__Sequence__copy( - const composition_interfaces__srv__LoadNode_Event__Sequence * input, - composition_interfaces__srv__LoadNode_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__DETAIL__LOAD_NODE__FUNCTIONS_H_ diff --git a/src/composition_interfaces/srv/detail/load_node__rosidl_typesupport_introspection_c.h b/src/composition_interfaces/srv/detail/load_node__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 212439589..000000000 --- a/src/composition_interfaces/srv/detail/load_node__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from composition_interfaces:srv/LoadNode.idl -// generated code does not contain a copyright notice - -#ifndef COMPOSITION_INTERFACES__SRV__DETAIL__LOAD_NODE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define COMPOSITION_INTERFACES__SRV__DETAIL__LOAD_NODE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, composition_interfaces, srv, LoadNode_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, composition_interfaces, srv, LoadNode_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, composition_interfaces, srv, LoadNode_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, composition_interfaces, srv, LoadNode)(); - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__DETAIL__LOAD_NODE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/composition_interfaces/srv/detail/load_node__rosidl_typesupport_microxrcedds_c.h b/src/composition_interfaces/srv/detail/load_node__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 9b0b36f94..000000000 --- a/src/composition_interfaces/srv/detail/load_node__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from composition_interfaces:srv/LoadNode.idl -// generated code does not contain a copyright notice -#ifndef COMPOSITION_INTERFACES__SRV__LOAD_NODE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define COMPOSITION_INTERFACES__SRV__LOAD_NODE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t get_serialized_size_composition_interfaces__srv__LoadNode_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t max_serialized_size_composition_interfaces__srv__LoadNode_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, composition_interfaces, srv, LoadNode_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t get_serialized_size_composition_interfaces__srv__LoadNode_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t max_serialized_size_composition_interfaces__srv__LoadNode_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, composition_interfaces, srv, LoadNode_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t get_serialized_size_composition_interfaces__srv__LoadNode_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t max_serialized_size_composition_interfaces__srv__LoadNode_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, composition_interfaces, srv, LoadNode_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, composition_interfaces, srv, LoadNode)(); - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__LOAD_NODE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/composition_interfaces/srv/detail/load_node__struct.h b/src/composition_interfaces/srv/detail/load_node__struct.h deleted file mode 100755 index a507d92c9..000000000 --- a/src/composition_interfaces/srv/detail/load_node__struct.h +++ /dev/null @@ -1,141 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from composition_interfaces:srv/LoadNode.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "composition_interfaces/srv/load_node.h" - - -#ifndef COMPOSITION_INTERFACES__SRV__DETAIL__LOAD_NODE__STRUCT_H_ -#define COMPOSITION_INTERFACES__SRV__DETAIL__LOAD_NODE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'package_name' -// Member 'plugin_name' -// Member 'node_name' -// Member 'node_namespace' -// Member 'remap_rules' -#include "rosidl_runtime_c/string.h" -// Member 'parameters' -// Member 'extra_arguments' -#include "rcl_interfaces/msg/detail/parameter__struct.h" - -/// Struct defined in srv/LoadNode in the package composition_interfaces. -typedef struct composition_interfaces__srv__LoadNode_Request -{ - rosidl_runtime_c__String package_name; - /// A plugin within the ROS package "package_name". - rosidl_runtime_c__String plugin_name; - /// The assigned name of the composable node. Leave empty to use the node's - /// default name. - rosidl_runtime_c__String node_name; - /// The assigned namespace of the composable node. Leave empty to use the node's - /// default namespace. - rosidl_runtime_c__String node_namespace; - /// The assigned log level of the composable node. Enum values are found in - /// message rcl_interfaces/Log. - uint8_t log_level; - /// Remapping rules for this composable node. - /// - /// For more info about static_remapping rules and their syntax, see - /// https://design.ros2.org/articles/static_remapping.html - /// TODO(sloretz) rcl_interfaces message for remap rules? - rosidl_runtime_c__String__Sequence remap_rules; - /// The Parameters of this composable node to set. - rcl_interfaces__msg__Parameter__Sequence parameters; - /// key/value arguments that are specific to a type of container process. - rcl_interfaces__msg__Parameter__Sequence extra_arguments; -} composition_interfaces__srv__LoadNode_Request; - -// Struct for a sequence of composition_interfaces__srv__LoadNode_Request. -typedef struct composition_interfaces__srv__LoadNode_Request__Sequence -{ - composition_interfaces__srv__LoadNode_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} composition_interfaces__srv__LoadNode_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'error_message' -// Member 'full_node_name' -// already included above -// #include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/LoadNode in the package composition_interfaces. -typedef struct composition_interfaces__srv__LoadNode_Response -{ - bool success; - /// Human readable error message if success is false, else empty string. - rosidl_runtime_c__String error_message; - /// Name of the loaded composable node (including namespace). - rosidl_runtime_c__String full_node_name; - /// A unique identifier for the loaded node. - uint64_t unique_id; -} composition_interfaces__srv__LoadNode_Response; - -// Struct for a sequence of composition_interfaces__srv__LoadNode_Response. -typedef struct composition_interfaces__srv__LoadNode_Response__Sequence -{ - composition_interfaces__srv__LoadNode_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} composition_interfaces__srv__LoadNode_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - composition_interfaces__srv__LoadNode_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - composition_interfaces__srv__LoadNode_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/LoadNode in the package composition_interfaces. -typedef struct composition_interfaces__srv__LoadNode_Event -{ - service_msgs__msg__ServiceEventInfo info; - composition_interfaces__srv__LoadNode_Request__Sequence request; - composition_interfaces__srv__LoadNode_Response__Sequence response; -} composition_interfaces__srv__LoadNode_Event; - -// Struct for a sequence of composition_interfaces__srv__LoadNode_Event. -typedef struct composition_interfaces__srv__LoadNode_Event__Sequence -{ - composition_interfaces__srv__LoadNode_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} composition_interfaces__srv__LoadNode_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__DETAIL__LOAD_NODE__STRUCT_H_ diff --git a/src/composition_interfaces/srv/detail/load_node__type_support.h b/src/composition_interfaces/srv/detail/load_node__type_support.h deleted file mode 100755 index 78193a036..000000000 --- a/src/composition_interfaces/srv/detail/load_node__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from composition_interfaces:srv/LoadNode.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "composition_interfaces/srv/load_node.h" - - -#ifndef COMPOSITION_INTERFACES__SRV__DETAIL__LOAD_NODE__TYPE_SUPPORT_H_ -#define COMPOSITION_INTERFACES__SRV__DETAIL__LOAD_NODE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "composition_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - LoadNode_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - LoadNode_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - LoadNode_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - LoadNode -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - LoadNode -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - LoadNode -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__DETAIL__LOAD_NODE__TYPE_SUPPORT_H_ diff --git a/src/composition_interfaces/srv/detail/unload_node__functions.h b/src/composition_interfaces/srv/detail/unload_node__functions.h deleted file mode 100755 index 645bd69f4..000000000 --- a/src/composition_interfaces/srv/detail/unload_node__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from composition_interfaces:srv/UnloadNode.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "composition_interfaces/srv/unload_node.h" - - -#ifndef COMPOSITION_INTERFACES__SRV__DETAIL__UNLOAD_NODE__FUNCTIONS_H_ -#define COMPOSITION_INTERFACES__SRV__DETAIL__UNLOAD_NODE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "composition_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "composition_interfaces/srv/detail/unload_node__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_type_hash_t * -composition_interfaces__srv__UnloadNode__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -composition_interfaces__srv__UnloadNode__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource * -composition_interfaces__srv__UnloadNode__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -composition_interfaces__srv__UnloadNode__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/UnloadNode message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * composition_interfaces__srv__UnloadNode_Request - * )) before or use - * composition_interfaces__srv__UnloadNode_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Request__init(composition_interfaces__srv__UnloadNode_Request * msg); - -/// Finalize srv/UnloadNode message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__UnloadNode_Request__fini(composition_interfaces__srv__UnloadNode_Request * msg); - -/// Create srv/UnloadNode message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * composition_interfaces__srv__UnloadNode_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__UnloadNode_Request * -composition_interfaces__srv__UnloadNode_Request__create(void); - -/// Destroy srv/UnloadNode message. -/** - * It calls - * composition_interfaces__srv__UnloadNode_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__UnloadNode_Request__destroy(composition_interfaces__srv__UnloadNode_Request * msg); - -/// Check for srv/UnloadNode message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Request__are_equal(const composition_interfaces__srv__UnloadNode_Request * lhs, const composition_interfaces__srv__UnloadNode_Request * rhs); - -/// Copy a srv/UnloadNode message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Request__copy( - const composition_interfaces__srv__UnloadNode_Request * input, - composition_interfaces__srv__UnloadNode_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_type_hash_t * -composition_interfaces__srv__UnloadNode_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -composition_interfaces__srv__UnloadNode_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource * -composition_interfaces__srv__UnloadNode_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -composition_interfaces__srv__UnloadNode_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/UnloadNode messages. -/** - * It allocates the memory for the number of elements and calls - * composition_interfaces__srv__UnloadNode_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Request__Sequence__init(composition_interfaces__srv__UnloadNode_Request__Sequence * array, size_t size); - -/// Finalize array of srv/UnloadNode messages. -/** - * It calls - * composition_interfaces__srv__UnloadNode_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__UnloadNode_Request__Sequence__fini(composition_interfaces__srv__UnloadNode_Request__Sequence * array); - -/// Create array of srv/UnloadNode messages. -/** - * It allocates the memory for the array and calls - * composition_interfaces__srv__UnloadNode_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__UnloadNode_Request__Sequence * -composition_interfaces__srv__UnloadNode_Request__Sequence__create(size_t size); - -/// Destroy array of srv/UnloadNode messages. -/** - * It calls - * composition_interfaces__srv__UnloadNode_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__UnloadNode_Request__Sequence__destroy(composition_interfaces__srv__UnloadNode_Request__Sequence * array); - -/// Check for srv/UnloadNode message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Request__Sequence__are_equal(const composition_interfaces__srv__UnloadNode_Request__Sequence * lhs, const composition_interfaces__srv__UnloadNode_Request__Sequence * rhs); - -/// Copy an array of srv/UnloadNode messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Request__Sequence__copy( - const composition_interfaces__srv__UnloadNode_Request__Sequence * input, - composition_interfaces__srv__UnloadNode_Request__Sequence * output); - -/// Initialize srv/UnloadNode message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * composition_interfaces__srv__UnloadNode_Response - * )) before or use - * composition_interfaces__srv__UnloadNode_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Response__init(composition_interfaces__srv__UnloadNode_Response * msg); - -/// Finalize srv/UnloadNode message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__UnloadNode_Response__fini(composition_interfaces__srv__UnloadNode_Response * msg); - -/// Create srv/UnloadNode message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * composition_interfaces__srv__UnloadNode_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__UnloadNode_Response * -composition_interfaces__srv__UnloadNode_Response__create(void); - -/// Destroy srv/UnloadNode message. -/** - * It calls - * composition_interfaces__srv__UnloadNode_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__UnloadNode_Response__destroy(composition_interfaces__srv__UnloadNode_Response * msg); - -/// Check for srv/UnloadNode message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Response__are_equal(const composition_interfaces__srv__UnloadNode_Response * lhs, const composition_interfaces__srv__UnloadNode_Response * rhs); - -/// Copy a srv/UnloadNode message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Response__copy( - const composition_interfaces__srv__UnloadNode_Response * input, - composition_interfaces__srv__UnloadNode_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_type_hash_t * -composition_interfaces__srv__UnloadNode_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -composition_interfaces__srv__UnloadNode_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource * -composition_interfaces__srv__UnloadNode_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -composition_interfaces__srv__UnloadNode_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/UnloadNode messages. -/** - * It allocates the memory for the number of elements and calls - * composition_interfaces__srv__UnloadNode_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Response__Sequence__init(composition_interfaces__srv__UnloadNode_Response__Sequence * array, size_t size); - -/// Finalize array of srv/UnloadNode messages. -/** - * It calls - * composition_interfaces__srv__UnloadNode_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__UnloadNode_Response__Sequence__fini(composition_interfaces__srv__UnloadNode_Response__Sequence * array); - -/// Create array of srv/UnloadNode messages. -/** - * It allocates the memory for the array and calls - * composition_interfaces__srv__UnloadNode_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__UnloadNode_Response__Sequence * -composition_interfaces__srv__UnloadNode_Response__Sequence__create(size_t size); - -/// Destroy array of srv/UnloadNode messages. -/** - * It calls - * composition_interfaces__srv__UnloadNode_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__UnloadNode_Response__Sequence__destroy(composition_interfaces__srv__UnloadNode_Response__Sequence * array); - -/// Check for srv/UnloadNode message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Response__Sequence__are_equal(const composition_interfaces__srv__UnloadNode_Response__Sequence * lhs, const composition_interfaces__srv__UnloadNode_Response__Sequence * rhs); - -/// Copy an array of srv/UnloadNode messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Response__Sequence__copy( - const composition_interfaces__srv__UnloadNode_Response__Sequence * input, - composition_interfaces__srv__UnloadNode_Response__Sequence * output); - -/// Initialize srv/UnloadNode message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * composition_interfaces__srv__UnloadNode_Event - * )) before or use - * composition_interfaces__srv__UnloadNode_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Event__init(composition_interfaces__srv__UnloadNode_Event * msg); - -/// Finalize srv/UnloadNode message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__UnloadNode_Event__fini(composition_interfaces__srv__UnloadNode_Event * msg); - -/// Create srv/UnloadNode message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * composition_interfaces__srv__UnloadNode_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__UnloadNode_Event * -composition_interfaces__srv__UnloadNode_Event__create(void); - -/// Destroy srv/UnloadNode message. -/** - * It calls - * composition_interfaces__srv__UnloadNode_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__UnloadNode_Event__destroy(composition_interfaces__srv__UnloadNode_Event * msg); - -/// Check for srv/UnloadNode message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Event__are_equal(const composition_interfaces__srv__UnloadNode_Event * lhs, const composition_interfaces__srv__UnloadNode_Event * rhs); - -/// Copy a srv/UnloadNode message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Event__copy( - const composition_interfaces__srv__UnloadNode_Event * input, - composition_interfaces__srv__UnloadNode_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_type_hash_t * -composition_interfaces__srv__UnloadNode_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -composition_interfaces__srv__UnloadNode_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource * -composition_interfaces__srv__UnloadNode_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -composition_interfaces__srv__UnloadNode_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/UnloadNode messages. -/** - * It allocates the memory for the number of elements and calls - * composition_interfaces__srv__UnloadNode_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Event__Sequence__init(composition_interfaces__srv__UnloadNode_Event__Sequence * array, size_t size); - -/// Finalize array of srv/UnloadNode messages. -/** - * It calls - * composition_interfaces__srv__UnloadNode_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__UnloadNode_Event__Sequence__fini(composition_interfaces__srv__UnloadNode_Event__Sequence * array); - -/// Create array of srv/UnloadNode messages. -/** - * It allocates the memory for the array and calls - * composition_interfaces__srv__UnloadNode_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -composition_interfaces__srv__UnloadNode_Event__Sequence * -composition_interfaces__srv__UnloadNode_Event__Sequence__create(size_t size); - -/// Destroy array of srv/UnloadNode messages. -/** - * It calls - * composition_interfaces__srv__UnloadNode_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void -composition_interfaces__srv__UnloadNode_Event__Sequence__destroy(composition_interfaces__srv__UnloadNode_Event__Sequence * array); - -/// Check for srv/UnloadNode message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Event__Sequence__are_equal(const composition_interfaces__srv__UnloadNode_Event__Sequence * lhs, const composition_interfaces__srv__UnloadNode_Event__Sequence * rhs); - -/// Copy an array of srv/UnloadNode messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -composition_interfaces__srv__UnloadNode_Event__Sequence__copy( - const composition_interfaces__srv__UnloadNode_Event__Sequence * input, - composition_interfaces__srv__UnloadNode_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__DETAIL__UNLOAD_NODE__FUNCTIONS_H_ diff --git a/src/composition_interfaces/srv/detail/unload_node__rosidl_typesupport_introspection_c.h b/src/composition_interfaces/srv/detail/unload_node__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 1cb79a39a..000000000 --- a/src/composition_interfaces/srv/detail/unload_node__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from composition_interfaces:srv/UnloadNode.idl -// generated code does not contain a copyright notice - -#ifndef COMPOSITION_INTERFACES__SRV__DETAIL__UNLOAD_NODE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define COMPOSITION_INTERFACES__SRV__DETAIL__UNLOAD_NODE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, composition_interfaces, srv, UnloadNode_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, composition_interfaces, srv, UnloadNode_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, composition_interfaces, srv, UnloadNode_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_composition_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, composition_interfaces, srv, UnloadNode)(); - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__DETAIL__UNLOAD_NODE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/composition_interfaces/srv/detail/unload_node__rosidl_typesupport_microxrcedds_c.h b/src/composition_interfaces/srv/detail/unload_node__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index d2f8523e3..000000000 --- a/src/composition_interfaces/srv/detail/unload_node__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from composition_interfaces:srv/UnloadNode.idl -// generated code does not contain a copyright notice -#ifndef COMPOSITION_INTERFACES__SRV__UNLOAD_NODE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define COMPOSITION_INTERFACES__SRV__UNLOAD_NODE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t get_serialized_size_composition_interfaces__srv__UnloadNode_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t max_serialized_size_composition_interfaces__srv__UnloadNode_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, composition_interfaces, srv, UnloadNode_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t get_serialized_size_composition_interfaces__srv__UnloadNode_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t max_serialized_size_composition_interfaces__srv__UnloadNode_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, composition_interfaces, srv, UnloadNode_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t get_serialized_size_composition_interfaces__srv__UnloadNode_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -size_t max_serialized_size_composition_interfaces__srv__UnloadNode_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, composition_interfaces, srv, UnloadNode_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "composition_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_composition_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, composition_interfaces, srv, UnloadNode)(); - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__UNLOAD_NODE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/composition_interfaces/srv/detail/unload_node__struct.h b/src/composition_interfaces/srv/detail/unload_node__struct.h deleted file mode 100755 index fcfa8920c..000000000 --- a/src/composition_interfaces/srv/detail/unload_node__struct.h +++ /dev/null @@ -1,103 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from composition_interfaces:srv/UnloadNode.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "composition_interfaces/srv/unload_node.h" - - -#ifndef COMPOSITION_INTERFACES__SRV__DETAIL__UNLOAD_NODE__STRUCT_H_ -#define COMPOSITION_INTERFACES__SRV__DETAIL__UNLOAD_NODE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/UnloadNode in the package composition_interfaces. -typedef struct composition_interfaces__srv__UnloadNode_Request -{ - uint64_t unique_id; -} composition_interfaces__srv__UnloadNode_Request; - -// Struct for a sequence of composition_interfaces__srv__UnloadNode_Request. -typedef struct composition_interfaces__srv__UnloadNode_Request__Sequence -{ - composition_interfaces__srv__UnloadNode_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} composition_interfaces__srv__UnloadNode_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'error_message' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/UnloadNode in the package composition_interfaces. -typedef struct composition_interfaces__srv__UnloadNode_Response -{ - bool success; - /// Human readable error message if success is false, else empty string. - rosidl_runtime_c__String error_message; -} composition_interfaces__srv__UnloadNode_Response; - -// Struct for a sequence of composition_interfaces__srv__UnloadNode_Response. -typedef struct composition_interfaces__srv__UnloadNode_Response__Sequence -{ - composition_interfaces__srv__UnloadNode_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} composition_interfaces__srv__UnloadNode_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - composition_interfaces__srv__UnloadNode_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - composition_interfaces__srv__UnloadNode_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/UnloadNode in the package composition_interfaces. -typedef struct composition_interfaces__srv__UnloadNode_Event -{ - service_msgs__msg__ServiceEventInfo info; - composition_interfaces__srv__UnloadNode_Request__Sequence request; - composition_interfaces__srv__UnloadNode_Response__Sequence response; -} composition_interfaces__srv__UnloadNode_Event; - -// Struct for a sequence of composition_interfaces__srv__UnloadNode_Event. -typedef struct composition_interfaces__srv__UnloadNode_Event__Sequence -{ - composition_interfaces__srv__UnloadNode_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} composition_interfaces__srv__UnloadNode_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__DETAIL__UNLOAD_NODE__STRUCT_H_ diff --git a/src/composition_interfaces/srv/detail/unload_node__type_support.h b/src/composition_interfaces/srv/detail/unload_node__type_support.h deleted file mode 100755 index 6d0ba45c2..000000000 --- a/src/composition_interfaces/srv/detail/unload_node__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from composition_interfaces:srv/UnloadNode.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "composition_interfaces/srv/unload_node.h" - - -#ifndef COMPOSITION_INTERFACES__SRV__DETAIL__UNLOAD_NODE__TYPE_SUPPORT_H_ -#define COMPOSITION_INTERFACES__SRV__DETAIL__UNLOAD_NODE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "composition_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - UnloadNode_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - UnloadNode_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - UnloadNode_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - UnloadNode -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - UnloadNode -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_composition_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - composition_interfaces, - srv, - UnloadNode -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // COMPOSITION_INTERFACES__SRV__DETAIL__UNLOAD_NODE__TYPE_SUPPORT_H_ diff --git a/src/composition_interfaces/srv/list_nodes.h b/src/composition_interfaces/srv/list_nodes.h deleted file mode 100755 index f29df52af..000000000 --- a/src/composition_interfaces/srv/list_nodes.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from composition_interfaces:srv/ListNodes.idl -// generated code does not contain a copyright notice - -#ifndef COMPOSITION_INTERFACES__SRV__LIST_NODES_H_ -#define COMPOSITION_INTERFACES__SRV__LIST_NODES_H_ - -#include "composition_interfaces/srv/detail/list_nodes__struct.h" -#include "composition_interfaces/srv/detail/list_nodes__functions.h" -#include "composition_interfaces/srv/detail/list_nodes__type_support.h" - -#endif // COMPOSITION_INTERFACES__SRV__LIST_NODES_H_ diff --git a/src/composition_interfaces/srv/load_node.h b/src/composition_interfaces/srv/load_node.h deleted file mode 100755 index 17a83891d..000000000 --- a/src/composition_interfaces/srv/load_node.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from composition_interfaces:srv/LoadNode.idl -// generated code does not contain a copyright notice - -#ifndef COMPOSITION_INTERFACES__SRV__LOAD_NODE_H_ -#define COMPOSITION_INTERFACES__SRV__LOAD_NODE_H_ - -#include "composition_interfaces/srv/detail/load_node__struct.h" -#include "composition_interfaces/srv/detail/load_node__functions.h" -#include "composition_interfaces/srv/detail/load_node__type_support.h" - -#endif // COMPOSITION_INTERFACES__SRV__LOAD_NODE_H_ diff --git a/src/composition_interfaces/srv/unload_node.h b/src/composition_interfaces/srv/unload_node.h deleted file mode 100755 index 580a5a958..000000000 --- a/src/composition_interfaces/srv/unload_node.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from composition_interfaces:srv/UnloadNode.idl -// generated code does not contain a copyright notice - -#ifndef COMPOSITION_INTERFACES__SRV__UNLOAD_NODE_H_ -#define COMPOSITION_INTERFACES__SRV__UNLOAD_NODE_H_ - -#include "composition_interfaces/srv/detail/unload_node__struct.h" -#include "composition_interfaces/srv/detail/unload_node__functions.h" -#include "composition_interfaces/srv/detail/unload_node__type_support.h" - -#endif // COMPOSITION_INTERFACES__SRV__UNLOAD_NODE_H_ diff --git a/src/control_msgs/action/detail/follow_joint_trajectory__functions.h b/src/control_msgs/action/detail/follow_joint_trajectory__functions.h deleted file mode 100755 index 43addb440..000000000 --- a/src/control_msgs/action/detail/follow_joint_trajectory__functions.h +++ /dev/null @@ -1,1866 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:action/FollowJointTrajectory.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/follow_joint_trajectory.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__FOLLOW_JOINT_TRAJECTORY__FUNCTIONS_H_ -#define CONTROL_MSGS__ACTION__DETAIL__FOLLOW_JOINT_TRAJECTORY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/action/detail/follow_joint_trajectory__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__FollowJointTrajectory__get_type_hash( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__FollowJointTrajectory__get_type_description( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__FollowJointTrajectory__get_individual_type_description_source( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__FollowJointTrajectory__get_type_description_sources( - const rosidl_action_type_support_t * type_support); - -/// Initialize action/FollowJointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__FollowJointTrajectory_Goal - * )) before or use - * control_msgs__action__FollowJointTrajectory_Goal__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Goal__init(control_msgs__action__FollowJointTrajectory_Goal * msg); - -/// Finalize action/FollowJointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_Goal__fini(control_msgs__action__FollowJointTrajectory_Goal * msg); - -/// Create action/FollowJointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__FollowJointTrajectory_Goal__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_Goal * -control_msgs__action__FollowJointTrajectory_Goal__create(void); - -/// Destroy action/FollowJointTrajectory message. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_Goal__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_Goal__destroy(control_msgs__action__FollowJointTrajectory_Goal * msg); - -/// Check for action/FollowJointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Goal__are_equal(const control_msgs__action__FollowJointTrajectory_Goal * lhs, const control_msgs__action__FollowJointTrajectory_Goal * rhs); - -/// Copy a action/FollowJointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Goal__copy( - const control_msgs__action__FollowJointTrajectory_Goal * input, - control_msgs__action__FollowJointTrajectory_Goal * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__FollowJointTrajectory_Goal__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__FollowJointTrajectory_Goal__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__FollowJointTrajectory_Goal__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__FollowJointTrajectory_Goal__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__FollowJointTrajectory_Goal__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Goal__Sequence__init(control_msgs__action__FollowJointTrajectory_Goal__Sequence * array, size_t size); - -/// Finalize array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_Goal__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_Goal__Sequence__fini(control_msgs__action__FollowJointTrajectory_Goal__Sequence * array); - -/// Create array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__FollowJointTrajectory_Goal__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_Goal__Sequence * -control_msgs__action__FollowJointTrajectory_Goal__Sequence__create(size_t size); - -/// Destroy array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_Goal__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_Goal__Sequence__destroy(control_msgs__action__FollowJointTrajectory_Goal__Sequence * array); - -/// Check for action/FollowJointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Goal__Sequence__are_equal(const control_msgs__action__FollowJointTrajectory_Goal__Sequence * lhs, const control_msgs__action__FollowJointTrajectory_Goal__Sequence * rhs); - -/// Copy an array of action/FollowJointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Goal__Sequence__copy( - const control_msgs__action__FollowJointTrajectory_Goal__Sequence * input, - control_msgs__action__FollowJointTrajectory_Goal__Sequence * output); - -/// Initialize action/FollowJointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__FollowJointTrajectory_Result - * )) before or use - * control_msgs__action__FollowJointTrajectory_Result__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Result__init(control_msgs__action__FollowJointTrajectory_Result * msg); - -/// Finalize action/FollowJointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_Result__fini(control_msgs__action__FollowJointTrajectory_Result * msg); - -/// Create action/FollowJointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__FollowJointTrajectory_Result__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_Result * -control_msgs__action__FollowJointTrajectory_Result__create(void); - -/// Destroy action/FollowJointTrajectory message. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_Result__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_Result__destroy(control_msgs__action__FollowJointTrajectory_Result * msg); - -/// Check for action/FollowJointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Result__are_equal(const control_msgs__action__FollowJointTrajectory_Result * lhs, const control_msgs__action__FollowJointTrajectory_Result * rhs); - -/// Copy a action/FollowJointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Result__copy( - const control_msgs__action__FollowJointTrajectory_Result * input, - control_msgs__action__FollowJointTrajectory_Result * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__FollowJointTrajectory_Result__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__FollowJointTrajectory_Result__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__FollowJointTrajectory_Result__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__FollowJointTrajectory_Result__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__FollowJointTrajectory_Result__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Result__Sequence__init(control_msgs__action__FollowJointTrajectory_Result__Sequence * array, size_t size); - -/// Finalize array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_Result__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_Result__Sequence__fini(control_msgs__action__FollowJointTrajectory_Result__Sequence * array); - -/// Create array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__FollowJointTrajectory_Result__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_Result__Sequence * -control_msgs__action__FollowJointTrajectory_Result__Sequence__create(size_t size); - -/// Destroy array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_Result__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_Result__Sequence__destroy(control_msgs__action__FollowJointTrajectory_Result__Sequence * array); - -/// Check for action/FollowJointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Result__Sequence__are_equal(const control_msgs__action__FollowJointTrajectory_Result__Sequence * lhs, const control_msgs__action__FollowJointTrajectory_Result__Sequence * rhs); - -/// Copy an array of action/FollowJointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Result__Sequence__copy( - const control_msgs__action__FollowJointTrajectory_Result__Sequence * input, - control_msgs__action__FollowJointTrajectory_Result__Sequence * output); - -/// Initialize action/FollowJointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__FollowJointTrajectory_Feedback - * )) before or use - * control_msgs__action__FollowJointTrajectory_Feedback__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Feedback__init(control_msgs__action__FollowJointTrajectory_Feedback * msg); - -/// Finalize action/FollowJointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_Feedback__fini(control_msgs__action__FollowJointTrajectory_Feedback * msg); - -/// Create action/FollowJointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__FollowJointTrajectory_Feedback__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_Feedback * -control_msgs__action__FollowJointTrajectory_Feedback__create(void); - -/// Destroy action/FollowJointTrajectory message. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_Feedback__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_Feedback__destroy(control_msgs__action__FollowJointTrajectory_Feedback * msg); - -/// Check for action/FollowJointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Feedback__are_equal(const control_msgs__action__FollowJointTrajectory_Feedback * lhs, const control_msgs__action__FollowJointTrajectory_Feedback * rhs); - -/// Copy a action/FollowJointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Feedback__copy( - const control_msgs__action__FollowJointTrajectory_Feedback * input, - control_msgs__action__FollowJointTrajectory_Feedback * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__FollowJointTrajectory_Feedback__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__FollowJointTrajectory_Feedback__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__FollowJointTrajectory_Feedback__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__FollowJointTrajectory_Feedback__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__FollowJointTrajectory_Feedback__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Feedback__Sequence__init(control_msgs__action__FollowJointTrajectory_Feedback__Sequence * array, size_t size); - -/// Finalize array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_Feedback__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_Feedback__Sequence__fini(control_msgs__action__FollowJointTrajectory_Feedback__Sequence * array); - -/// Create array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__FollowJointTrajectory_Feedback__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_Feedback__Sequence * -control_msgs__action__FollowJointTrajectory_Feedback__Sequence__create(size_t size); - -/// Destroy array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_Feedback__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_Feedback__Sequence__destroy(control_msgs__action__FollowJointTrajectory_Feedback__Sequence * array); - -/// Check for action/FollowJointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Feedback__Sequence__are_equal(const control_msgs__action__FollowJointTrajectory_Feedback__Sequence * lhs, const control_msgs__action__FollowJointTrajectory_Feedback__Sequence * rhs); - -/// Copy an array of action/FollowJointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_Feedback__Sequence__copy( - const control_msgs__action__FollowJointTrajectory_Feedback__Sequence * input, - control_msgs__action__FollowJointTrajectory_Feedback__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__FollowJointTrajectory_SendGoal__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__FollowJointTrajectory_SendGoal__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__FollowJointTrajectory_SendGoal__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__FollowJointTrajectory_SendGoal__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/FollowJointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__FollowJointTrajectory_SendGoal_Request - * )) before or use - * control_msgs__action__FollowJointTrajectory_SendGoal_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Request__init(control_msgs__action__FollowJointTrajectory_SendGoal_Request * msg); - -/// Finalize action/FollowJointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_SendGoal_Request__fini(control_msgs__action__FollowJointTrajectory_SendGoal_Request * msg); - -/// Create action/FollowJointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_SendGoal_Request * -control_msgs__action__FollowJointTrajectory_SendGoal_Request__create(void); - -/// Destroy action/FollowJointTrajectory message. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_SendGoal_Request__destroy(control_msgs__action__FollowJointTrajectory_SendGoal_Request * msg); - -/// Check for action/FollowJointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Request__are_equal(const control_msgs__action__FollowJointTrajectory_SendGoal_Request * lhs, const control_msgs__action__FollowJointTrajectory_SendGoal_Request * rhs); - -/// Copy a action/FollowJointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Request__copy( - const control_msgs__action__FollowJointTrajectory_SendGoal_Request * input, - control_msgs__action__FollowJointTrajectory_SendGoal_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__FollowJointTrajectory_SendGoal_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__FollowJointTrajectory_SendGoal_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__FollowJointTrajectory_SendGoal_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__FollowJointTrajectory_SendGoal_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence__init(control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence * array, size_t size); - -/// Finalize array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence__fini(control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence * array); - -/// Create array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence * -control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence__create(size_t size); - -/// Destroy array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence__destroy(control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence * array); - -/// Check for action/FollowJointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence__are_equal(const control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence * lhs, const control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence * rhs); - -/// Copy an array of action/FollowJointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence__copy( - const control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence * input, - control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence * output); - -/// Initialize action/FollowJointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__FollowJointTrajectory_SendGoal_Response - * )) before or use - * control_msgs__action__FollowJointTrajectory_SendGoal_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Response__init(control_msgs__action__FollowJointTrajectory_SendGoal_Response * msg); - -/// Finalize action/FollowJointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_SendGoal_Response__fini(control_msgs__action__FollowJointTrajectory_SendGoal_Response * msg); - -/// Create action/FollowJointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_SendGoal_Response * -control_msgs__action__FollowJointTrajectory_SendGoal_Response__create(void); - -/// Destroy action/FollowJointTrajectory message. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_SendGoal_Response__destroy(control_msgs__action__FollowJointTrajectory_SendGoal_Response * msg); - -/// Check for action/FollowJointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Response__are_equal(const control_msgs__action__FollowJointTrajectory_SendGoal_Response * lhs, const control_msgs__action__FollowJointTrajectory_SendGoal_Response * rhs); - -/// Copy a action/FollowJointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Response__copy( - const control_msgs__action__FollowJointTrajectory_SendGoal_Response * input, - control_msgs__action__FollowJointTrajectory_SendGoal_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__FollowJointTrajectory_SendGoal_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__FollowJointTrajectory_SendGoal_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__FollowJointTrajectory_SendGoal_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__FollowJointTrajectory_SendGoal_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence__init(control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence * array, size_t size); - -/// Finalize array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence__fini(control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence * array); - -/// Create array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence * -control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence__create(size_t size); - -/// Destroy array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence__destroy(control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence * array); - -/// Check for action/FollowJointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence__are_equal(const control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence * lhs, const control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence * rhs); - -/// Copy an array of action/FollowJointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence__copy( - const control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence * input, - control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence * output); - -/// Initialize action/FollowJointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__FollowJointTrajectory_SendGoal_Event - * )) before or use - * control_msgs__action__FollowJointTrajectory_SendGoal_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Event__init(control_msgs__action__FollowJointTrajectory_SendGoal_Event * msg); - -/// Finalize action/FollowJointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_SendGoal_Event__fini(control_msgs__action__FollowJointTrajectory_SendGoal_Event * msg); - -/// Create action/FollowJointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_SendGoal_Event * -control_msgs__action__FollowJointTrajectory_SendGoal_Event__create(void); - -/// Destroy action/FollowJointTrajectory message. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_SendGoal_Event__destroy(control_msgs__action__FollowJointTrajectory_SendGoal_Event * msg); - -/// Check for action/FollowJointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Event__are_equal(const control_msgs__action__FollowJointTrajectory_SendGoal_Event * lhs, const control_msgs__action__FollowJointTrajectory_SendGoal_Event * rhs); - -/// Copy a action/FollowJointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Event__copy( - const control_msgs__action__FollowJointTrajectory_SendGoal_Event * input, - control_msgs__action__FollowJointTrajectory_SendGoal_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__FollowJointTrajectory_SendGoal_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__FollowJointTrajectory_SendGoal_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__FollowJointTrajectory_SendGoal_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__FollowJointTrajectory_SendGoal_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence__init(control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence * array, size_t size); - -/// Finalize array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence__fini(control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence * array); - -/// Create array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence * -control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence__create(size_t size); - -/// Destroy array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence__destroy(control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence * array); - -/// Check for action/FollowJointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence__are_equal(const control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence * lhs, const control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence * rhs); - -/// Copy an array of action/FollowJointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence__copy( - const control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence * input, - control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__FollowJointTrajectory_GetResult__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__FollowJointTrajectory_GetResult__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__FollowJointTrajectory_GetResult__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__FollowJointTrajectory_GetResult__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/FollowJointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__FollowJointTrajectory_GetResult_Request - * )) before or use - * control_msgs__action__FollowJointTrajectory_GetResult_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Request__init(control_msgs__action__FollowJointTrajectory_GetResult_Request * msg); - -/// Finalize action/FollowJointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_GetResult_Request__fini(control_msgs__action__FollowJointTrajectory_GetResult_Request * msg); - -/// Create action/FollowJointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__FollowJointTrajectory_GetResult_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_GetResult_Request * -control_msgs__action__FollowJointTrajectory_GetResult_Request__create(void); - -/// Destroy action/FollowJointTrajectory message. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_GetResult_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_GetResult_Request__destroy(control_msgs__action__FollowJointTrajectory_GetResult_Request * msg); - -/// Check for action/FollowJointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Request__are_equal(const control_msgs__action__FollowJointTrajectory_GetResult_Request * lhs, const control_msgs__action__FollowJointTrajectory_GetResult_Request * rhs); - -/// Copy a action/FollowJointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Request__copy( - const control_msgs__action__FollowJointTrajectory_GetResult_Request * input, - control_msgs__action__FollowJointTrajectory_GetResult_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__FollowJointTrajectory_GetResult_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__FollowJointTrajectory_GetResult_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__FollowJointTrajectory_GetResult_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__FollowJointTrajectory_GetResult_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__FollowJointTrajectory_GetResult_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence__init(control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence * array, size_t size); - -/// Finalize array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_GetResult_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence__fini(control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence * array); - -/// Create array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence * -control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence__create(size_t size); - -/// Destroy array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence__destroy(control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence * array); - -/// Check for action/FollowJointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence__are_equal(const control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence * lhs, const control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence * rhs); - -/// Copy an array of action/FollowJointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence__copy( - const control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence * input, - control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence * output); - -/// Initialize action/FollowJointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__FollowJointTrajectory_GetResult_Response - * )) before or use - * control_msgs__action__FollowJointTrajectory_GetResult_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Response__init(control_msgs__action__FollowJointTrajectory_GetResult_Response * msg); - -/// Finalize action/FollowJointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_GetResult_Response__fini(control_msgs__action__FollowJointTrajectory_GetResult_Response * msg); - -/// Create action/FollowJointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__FollowJointTrajectory_GetResult_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_GetResult_Response * -control_msgs__action__FollowJointTrajectory_GetResult_Response__create(void); - -/// Destroy action/FollowJointTrajectory message. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_GetResult_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_GetResult_Response__destroy(control_msgs__action__FollowJointTrajectory_GetResult_Response * msg); - -/// Check for action/FollowJointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Response__are_equal(const control_msgs__action__FollowJointTrajectory_GetResult_Response * lhs, const control_msgs__action__FollowJointTrajectory_GetResult_Response * rhs); - -/// Copy a action/FollowJointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Response__copy( - const control_msgs__action__FollowJointTrajectory_GetResult_Response * input, - control_msgs__action__FollowJointTrajectory_GetResult_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__FollowJointTrajectory_GetResult_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__FollowJointTrajectory_GetResult_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__FollowJointTrajectory_GetResult_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__FollowJointTrajectory_GetResult_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__FollowJointTrajectory_GetResult_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence__init(control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence * array, size_t size); - -/// Finalize array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_GetResult_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence__fini(control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence * array); - -/// Create array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence * -control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence__create(size_t size); - -/// Destroy array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence__destroy(control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence * array); - -/// Check for action/FollowJointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence__are_equal(const control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence * lhs, const control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence * rhs); - -/// Copy an array of action/FollowJointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence__copy( - const control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence * input, - control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence * output); - -/// Initialize action/FollowJointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__FollowJointTrajectory_GetResult_Event - * )) before or use - * control_msgs__action__FollowJointTrajectory_GetResult_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Event__init(control_msgs__action__FollowJointTrajectory_GetResult_Event * msg); - -/// Finalize action/FollowJointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_GetResult_Event__fini(control_msgs__action__FollowJointTrajectory_GetResult_Event * msg); - -/// Create action/FollowJointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__FollowJointTrajectory_GetResult_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_GetResult_Event * -control_msgs__action__FollowJointTrajectory_GetResult_Event__create(void); - -/// Destroy action/FollowJointTrajectory message. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_GetResult_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_GetResult_Event__destroy(control_msgs__action__FollowJointTrajectory_GetResult_Event * msg); - -/// Check for action/FollowJointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Event__are_equal(const control_msgs__action__FollowJointTrajectory_GetResult_Event * lhs, const control_msgs__action__FollowJointTrajectory_GetResult_Event * rhs); - -/// Copy a action/FollowJointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Event__copy( - const control_msgs__action__FollowJointTrajectory_GetResult_Event * input, - control_msgs__action__FollowJointTrajectory_GetResult_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__FollowJointTrajectory_GetResult_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__FollowJointTrajectory_GetResult_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__FollowJointTrajectory_GetResult_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__FollowJointTrajectory_GetResult_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__FollowJointTrajectory_GetResult_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence__init(control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence * array, size_t size); - -/// Finalize array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_GetResult_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence__fini(control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence * array); - -/// Create array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence * -control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence__create(size_t size); - -/// Destroy array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence__destroy(control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence * array); - -/// Check for action/FollowJointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence__are_equal(const control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence * lhs, const control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence * rhs); - -/// Copy an array of action/FollowJointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence__copy( - const control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence * input, - control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence * output); - -/// Initialize action/FollowJointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__FollowJointTrajectory_FeedbackMessage - * )) before or use - * control_msgs__action__FollowJointTrajectory_FeedbackMessage__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_FeedbackMessage__init(control_msgs__action__FollowJointTrajectory_FeedbackMessage * msg); - -/// Finalize action/FollowJointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_FeedbackMessage__fini(control_msgs__action__FollowJointTrajectory_FeedbackMessage * msg); - -/// Create action/FollowJointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__FollowJointTrajectory_FeedbackMessage__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_FeedbackMessage * -control_msgs__action__FollowJointTrajectory_FeedbackMessage__create(void); - -/// Destroy action/FollowJointTrajectory message. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_FeedbackMessage__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_FeedbackMessage__destroy(control_msgs__action__FollowJointTrajectory_FeedbackMessage * msg); - -/// Check for action/FollowJointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_FeedbackMessage__are_equal(const control_msgs__action__FollowJointTrajectory_FeedbackMessage * lhs, const control_msgs__action__FollowJointTrajectory_FeedbackMessage * rhs); - -/// Copy a action/FollowJointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_FeedbackMessage__copy( - const control_msgs__action__FollowJointTrajectory_FeedbackMessage * input, - control_msgs__action__FollowJointTrajectory_FeedbackMessage * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__FollowJointTrajectory_FeedbackMessage__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__FollowJointTrajectory_FeedbackMessage__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__FollowJointTrajectory_FeedbackMessage__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__FollowJointTrajectory_FeedbackMessage__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__FollowJointTrajectory_FeedbackMessage__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence__init(control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence * array, size_t size); - -/// Finalize array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_FeedbackMessage__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence__fini(control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence * array); - -/// Create array of action/FollowJointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence * -control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence__create(size_t size); - -/// Destroy array of action/FollowJointTrajectory messages. -/** - * It calls - * control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence__destroy(control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence * array); - -/// Check for action/FollowJointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence__are_equal(const control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence * lhs, const control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence * rhs); - -/// Copy an array of action/FollowJointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence__copy( - const control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence * input, - control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__FOLLOW_JOINT_TRAJECTORY__FUNCTIONS_H_ diff --git a/src/control_msgs/action/detail/follow_joint_trajectory__rosidl_typesupport_introspection_c.h b/src/control_msgs/action/detail/follow_joint_trajectory__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 9ce5e1629..000000000 --- a/src/control_msgs/action/detail/follow_joint_trajectory__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,146 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:action/FollowJointTrajectory.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__ACTION__DETAIL__FOLLOW_JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__ACTION__DETAIL__FOLLOW_JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, FollowJointTrajectory_Goal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, FollowJointTrajectory_Result)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, FollowJointTrajectory_Feedback)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, FollowJointTrajectory_SendGoal_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, FollowJointTrajectory_SendGoal_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, FollowJointTrajectory_SendGoal_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, FollowJointTrajectory_SendGoal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, FollowJointTrajectory_GetResult_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, FollowJointTrajectory_GetResult_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, FollowJointTrajectory_GetResult_Event)(); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, FollowJointTrajectory_GetResult)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, FollowJointTrajectory_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__FOLLOW_JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/action/detail/follow_joint_trajectory__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/action/detail/follow_joint_trajectory__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 01e527b3a..000000000 --- a/src/control_msgs/action/detail/follow_joint_trajectory__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,411 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:action/FollowJointTrajectory.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__ACTION__FOLLOW_JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__ACTION__FOLLOW_JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__FollowJointTrajectory_Goal( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__FollowJointTrajectory_Goal( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, FollowJointTrajectory_Goal)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__FollowJointTrajectory_Result( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__FollowJointTrajectory_Result( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, FollowJointTrajectory_Result)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__FollowJointTrajectory_Feedback( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__FollowJointTrajectory_Feedback( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, FollowJointTrajectory_Feedback)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__FollowJointTrajectory_SendGoal_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__FollowJointTrajectory_SendGoal_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, FollowJointTrajectory_SendGoal_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__FollowJointTrajectory_SendGoal_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__FollowJointTrajectory_SendGoal_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, FollowJointTrajectory_SendGoal_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__FollowJointTrajectory_SendGoal_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__FollowJointTrajectory_SendGoal_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, FollowJointTrajectory_SendGoal_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, FollowJointTrajectory_SendGoal)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__FollowJointTrajectory_GetResult_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__FollowJointTrajectory_GetResult_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, FollowJointTrajectory_GetResult_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__FollowJointTrajectory_GetResult_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__FollowJointTrajectory_GetResult_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, FollowJointTrajectory_GetResult_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__FollowJointTrajectory_GetResult_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__FollowJointTrajectory_GetResult_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, FollowJointTrajectory_GetResult_Event)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, FollowJointTrajectory_GetResult)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__FollowJointTrajectory_FeedbackMessage( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__FollowJointTrajectory_FeedbackMessage( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, FollowJointTrajectory_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__ACTION__FOLLOW_JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/action/detail/follow_joint_trajectory__struct.h b/src/control_msgs/action/detail/follow_joint_trajectory__struct.h deleted file mode 100755 index 48c8dda83..000000000 --- a/src/control_msgs/action/detail/follow_joint_trajectory__struct.h +++ /dev/null @@ -1,386 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:action/FollowJointTrajectory.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/follow_joint_trajectory.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__FOLLOW_JOINT_TRAJECTORY__STRUCT_H_ -#define CONTROL_MSGS__ACTION__DETAIL__FOLLOW_JOINT_TRAJECTORY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'trajectory' -#include "trajectory_msgs/msg/detail/joint_trajectory__struct.h" -// Member 'multi_dof_trajectory' -#include "trajectory_msgs/msg/detail/multi_dof_joint_trajectory__struct.h" -// Member 'path_tolerance' -// Member 'goal_tolerance' -#include "control_msgs/msg/detail/joint_tolerance__struct.h" -// Member 'component_path_tolerance' -// Member 'component_goal_tolerance' -#include "control_msgs/msg/detail/joint_component_tolerance__struct.h" -// Member 'goal_time_tolerance' -#include "builtin_interfaces/msg/detail/duration__struct.h" - -/// Struct defined in action/FollowJointTrajectory in the package control_msgs. -typedef struct control_msgs__action__FollowJointTrajectory_Goal -{ - trajectory_msgs__msg__JointTrajectory trajectory; - /// The trajectory for all planar or floating joints (i.e. individual joints with more than one DOF) - trajectory_msgs__msg__MultiDOFJointTrajectory multi_dof_trajectory; - /// Tolerances for the trajectory. If the measured joint values fall - /// outside the tolerances the trajectory goal is aborted. Any - /// tolerances that are not specified (by being omitted or set to 0) are - /// set to the defaults for the action server (often taken from the - /// parameter server). - /// Tolerances applied to the joints as the trajectory is executed. If - /// violated, the goal aborts with error_code set to - /// PATH_TOLERANCE_VIOLATED. - control_msgs__msg__JointTolerance__Sequence path_tolerance; - control_msgs__msg__JointComponentTolerance__Sequence component_path_tolerance; - /// To report success, the joints must be within goal_tolerance of the - /// final trajectory value. The goal must be achieved by time the - /// trajectory ends plus goal_time_tolerance. (goal_time_tolerance - /// allows some leeway in time, so that the trajectory goal can still - /// succeed even if the joints reach the goal some time after the - /// precise end time of the trajectory). - /// - /// If the joints are not within goal_tolerance after "trajectory finish - /// time" + goal_time_tolerance, the goal aborts with error_code set to - /// GOAL_TOLERANCE_VIOLATED - control_msgs__msg__JointTolerance__Sequence goal_tolerance; - control_msgs__msg__JointComponentTolerance__Sequence component_goal_tolerance; - builtin_interfaces__msg__Duration goal_time_tolerance; -} control_msgs__action__FollowJointTrajectory_Goal; - -// Struct for a sequence of control_msgs__action__FollowJointTrajectory_Goal. -typedef struct control_msgs__action__FollowJointTrajectory_Goal__Sequence -{ - control_msgs__action__FollowJointTrajectory_Goal * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__FollowJointTrajectory_Goal__Sequence; - -// Constants defined in the message - -/// Constant 'SUCCESSFUL'. -enum -{ - control_msgs__action__FollowJointTrajectory_Result__SUCCESSFUL = 0l -}; - -/// Constant 'INVALID_GOAL'. -enum -{ - control_msgs__action__FollowJointTrajectory_Result__INVALID_GOAL = -1l -}; - -/// Constant 'INVALID_JOINTS'. -enum -{ - control_msgs__action__FollowJointTrajectory_Result__INVALID_JOINTS = -2l -}; - -/// Constant 'OLD_HEADER_TIMESTAMP'. -enum -{ - control_msgs__action__FollowJointTrajectory_Result__OLD_HEADER_TIMESTAMP = -3l -}; - -/// Constant 'PATH_TOLERANCE_VIOLATED'. -enum -{ - control_msgs__action__FollowJointTrajectory_Result__PATH_TOLERANCE_VIOLATED = -4l -}; - -/// Constant 'GOAL_TOLERANCE_VIOLATED'. -enum -{ - control_msgs__action__FollowJointTrajectory_Result__GOAL_TOLERANCE_VIOLATED = -5l -}; - -// Include directives for member types -// Member 'error_string' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in action/FollowJointTrajectory in the package control_msgs. -typedef struct control_msgs__action__FollowJointTrajectory_Result -{ - int32_t error_code; - /// Human readable description of the error code. Contains complementary - /// information that is especially useful when execution fails, for instance: - /// - INVALID_GOAL: The reason for the invalid goal (e.g., the requested - /// trajectory is in the past). - /// - INVALID_JOINTS: The mismatch between the expected controller joints - /// and those provided in the goal. - /// - PATH_TOLERANCE_VIOLATED and GOAL_TOLERANCE_VIOLATED: Which joint - /// violated which tolerance, and by how much. - rosidl_runtime_c__String error_string; -} control_msgs__action__FollowJointTrajectory_Result; - -// Struct for a sequence of control_msgs__action__FollowJointTrajectory_Result. -typedef struct control_msgs__action__FollowJointTrajectory_Result__Sequence -{ - control_msgs__action__FollowJointTrajectory_Result * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__FollowJointTrajectory_Result__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'joint_names' -// Member 'multi_dof_joint_names' -// already included above -// #include "rosidl_runtime_c/string.h" -// Member 'desired' -// Member 'actual' -// Member 'error' -#include "trajectory_msgs/msg/detail/joint_trajectory_point__struct.h" -// Member 'multi_dof_desired' -// Member 'multi_dof_actual' -// Member 'multi_dof_error' -#include "trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__struct.h" - -/// Struct defined in action/FollowJointTrajectory in the package control_msgs. -typedef struct control_msgs__action__FollowJointTrajectory_Feedback -{ - std_msgs__msg__Header header; - rosidl_runtime_c__String__Sequence joint_names; - trajectory_msgs__msg__JointTrajectoryPoint desired; - trajectory_msgs__msg__JointTrajectoryPoint actual; - trajectory_msgs__msg__JointTrajectoryPoint error; - rosidl_runtime_c__String__Sequence multi_dof_joint_names; - trajectory_msgs__msg__MultiDOFJointTrajectoryPoint multi_dof_desired; - trajectory_msgs__msg__MultiDOFJointTrajectoryPoint multi_dof_actual; - trajectory_msgs__msg__MultiDOFJointTrajectoryPoint multi_dof_error; -} control_msgs__action__FollowJointTrajectory_Feedback; - -// Struct for a sequence of control_msgs__action__FollowJointTrajectory_Feedback. -typedef struct control_msgs__action__FollowJointTrajectory_Feedback__Sequence -{ - control_msgs__action__FollowJointTrajectory_Feedback * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__FollowJointTrajectory_Feedback__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -#include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'goal' -#include "control_msgs/action/detail/follow_joint_trajectory__struct.h" - -/// Struct defined in action/FollowJointTrajectory in the package control_msgs. -typedef struct control_msgs__action__FollowJointTrajectory_SendGoal_Request -{ - unique_identifier_msgs__msg__UUID goal_id; - control_msgs__action__FollowJointTrajectory_Goal goal; -} control_msgs__action__FollowJointTrajectory_SendGoal_Request; - -// Struct for a sequence of control_msgs__action__FollowJointTrajectory_SendGoal_Request. -typedef struct control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence -{ - control_msgs__action__FollowJointTrajectory_SendGoal_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'stamp' -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in action/FollowJointTrajectory in the package control_msgs. -typedef struct control_msgs__action__FollowJointTrajectory_SendGoal_Response -{ - bool accepted; - builtin_interfaces__msg__Time stamp; -} control_msgs__action__FollowJointTrajectory_SendGoal_Response; - -// Struct for a sequence of control_msgs__action__FollowJointTrajectory_SendGoal_Response. -typedef struct control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence -{ - control_msgs__action__FollowJointTrajectory_SendGoal_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - control_msgs__action__FollowJointTrajectory_SendGoal_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - control_msgs__action__FollowJointTrajectory_SendGoal_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/FollowJointTrajectory in the package control_msgs. -typedef struct control_msgs__action__FollowJointTrajectory_SendGoal_Event -{ - service_msgs__msg__ServiceEventInfo info; - control_msgs__action__FollowJointTrajectory_SendGoal_Request__Sequence request; - control_msgs__action__FollowJointTrajectory_SendGoal_Response__Sequence response; -} control_msgs__action__FollowJointTrajectory_SendGoal_Event; - -// Struct for a sequence of control_msgs__action__FollowJointTrajectory_SendGoal_Event. -typedef struct control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence -{ - control_msgs__action__FollowJointTrajectory_SendGoal_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__FollowJointTrajectory_SendGoal_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" - -/// Struct defined in action/FollowJointTrajectory in the package control_msgs. -typedef struct control_msgs__action__FollowJointTrajectory_GetResult_Request -{ - unique_identifier_msgs__msg__UUID goal_id; -} control_msgs__action__FollowJointTrajectory_GetResult_Request; - -// Struct for a sequence of control_msgs__action__FollowJointTrajectory_GetResult_Request. -typedef struct control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence -{ - control_msgs__action__FollowJointTrajectory_GetResult_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'result' -// already included above -// #include "control_msgs/action/detail/follow_joint_trajectory__struct.h" - -/// Struct defined in action/FollowJointTrajectory in the package control_msgs. -typedef struct control_msgs__action__FollowJointTrajectory_GetResult_Response -{ - int8_t status; - control_msgs__action__FollowJointTrajectory_Result result; -} control_msgs__action__FollowJointTrajectory_GetResult_Response; - -// Struct for a sequence of control_msgs__action__FollowJointTrajectory_GetResult_Response. -typedef struct control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence -{ - control_msgs__action__FollowJointTrajectory_GetResult_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -// already included above -// #include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - control_msgs__action__FollowJointTrajectory_GetResult_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - control_msgs__action__FollowJointTrajectory_GetResult_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/FollowJointTrajectory in the package control_msgs. -typedef struct control_msgs__action__FollowJointTrajectory_GetResult_Event -{ - service_msgs__msg__ServiceEventInfo info; - control_msgs__action__FollowJointTrajectory_GetResult_Request__Sequence request; - control_msgs__action__FollowJointTrajectory_GetResult_Response__Sequence response; -} control_msgs__action__FollowJointTrajectory_GetResult_Event; - -// Struct for a sequence of control_msgs__action__FollowJointTrajectory_GetResult_Event. -typedef struct control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence -{ - control_msgs__action__FollowJointTrajectory_GetResult_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__FollowJointTrajectory_GetResult_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'feedback' -// already included above -// #include "control_msgs/action/detail/follow_joint_trajectory__struct.h" - -/// Struct defined in action/FollowJointTrajectory in the package control_msgs. -typedef struct control_msgs__action__FollowJointTrajectory_FeedbackMessage -{ - unique_identifier_msgs__msg__UUID goal_id; - control_msgs__action__FollowJointTrajectory_Feedback feedback; -} control_msgs__action__FollowJointTrajectory_FeedbackMessage; - -// Struct for a sequence of control_msgs__action__FollowJointTrajectory_FeedbackMessage. -typedef struct control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence -{ - control_msgs__action__FollowJointTrajectory_FeedbackMessage * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__FollowJointTrajectory_FeedbackMessage__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__FOLLOW_JOINT_TRAJECTORY__STRUCT_H_ diff --git a/src/control_msgs/action/detail/follow_joint_trajectory__type_support.h b/src/control_msgs/action/detail/follow_joint_trajectory__type_support.h deleted file mode 100755 index d92300091..000000000 --- a/src/control_msgs/action/detail/follow_joint_trajectory__type_support.h +++ /dev/null @@ -1,242 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:action/FollowJointTrajectory.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/follow_joint_trajectory.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__FOLLOW_JOINT_TRAJECTORY__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__ACTION__DETAIL__FOLLOW_JOINT_TRAJECTORY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/action_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_action_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__ACTION_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory -)(void); - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_Goal -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_Result -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_Feedback -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_SendGoal_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_SendGoal_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_SendGoal_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_SendGoal -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_SendGoal -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_SendGoal -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_GetResult_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_GetResult_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_GetResult_Event -)(void); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_GetResult -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_GetResult -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_GetResult -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - FollowJointTrajectory_FeedbackMessage -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__FOLLOW_JOINT_TRAJECTORY__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/action/detail/gripper_command__functions.h b/src/control_msgs/action/detail/gripper_command__functions.h deleted file mode 100755 index 88bbe9a41..000000000 --- a/src/control_msgs/action/detail/gripper_command__functions.h +++ /dev/null @@ -1,1866 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:action/GripperCommand.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/gripper_command.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__GRIPPER_COMMAND__FUNCTIONS_H_ -#define CONTROL_MSGS__ACTION__DETAIL__GRIPPER_COMMAND__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/action/detail/gripper_command__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__GripperCommand__get_type_hash( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__GripperCommand__get_type_description( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__GripperCommand__get_individual_type_description_source( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__GripperCommand__get_type_description_sources( - const rosidl_action_type_support_t * type_support); - -/// Initialize action/GripperCommand message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__GripperCommand_Goal - * )) before or use - * control_msgs__action__GripperCommand_Goal__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Goal__init(control_msgs__action__GripperCommand_Goal * msg); - -/// Finalize action/GripperCommand message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_Goal__fini(control_msgs__action__GripperCommand_Goal * msg); - -/// Create action/GripperCommand message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__GripperCommand_Goal__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_Goal * -control_msgs__action__GripperCommand_Goal__create(void); - -/// Destroy action/GripperCommand message. -/** - * It calls - * control_msgs__action__GripperCommand_Goal__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_Goal__destroy(control_msgs__action__GripperCommand_Goal * msg); - -/// Check for action/GripperCommand message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Goal__are_equal(const control_msgs__action__GripperCommand_Goal * lhs, const control_msgs__action__GripperCommand_Goal * rhs); - -/// Copy a action/GripperCommand message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Goal__copy( - const control_msgs__action__GripperCommand_Goal * input, - control_msgs__action__GripperCommand_Goal * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__GripperCommand_Goal__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__GripperCommand_Goal__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__GripperCommand_Goal__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__GripperCommand_Goal__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/GripperCommand messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__GripperCommand_Goal__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Goal__Sequence__init(control_msgs__action__GripperCommand_Goal__Sequence * array, size_t size); - -/// Finalize array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_Goal__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_Goal__Sequence__fini(control_msgs__action__GripperCommand_Goal__Sequence * array); - -/// Create array of action/GripperCommand messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__GripperCommand_Goal__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_Goal__Sequence * -control_msgs__action__GripperCommand_Goal__Sequence__create(size_t size); - -/// Destroy array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_Goal__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_Goal__Sequence__destroy(control_msgs__action__GripperCommand_Goal__Sequence * array); - -/// Check for action/GripperCommand message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Goal__Sequence__are_equal(const control_msgs__action__GripperCommand_Goal__Sequence * lhs, const control_msgs__action__GripperCommand_Goal__Sequence * rhs); - -/// Copy an array of action/GripperCommand messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Goal__Sequence__copy( - const control_msgs__action__GripperCommand_Goal__Sequence * input, - control_msgs__action__GripperCommand_Goal__Sequence * output); - -/// Initialize action/GripperCommand message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__GripperCommand_Result - * )) before or use - * control_msgs__action__GripperCommand_Result__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Result__init(control_msgs__action__GripperCommand_Result * msg); - -/// Finalize action/GripperCommand message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_Result__fini(control_msgs__action__GripperCommand_Result * msg); - -/// Create action/GripperCommand message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__GripperCommand_Result__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_Result * -control_msgs__action__GripperCommand_Result__create(void); - -/// Destroy action/GripperCommand message. -/** - * It calls - * control_msgs__action__GripperCommand_Result__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_Result__destroy(control_msgs__action__GripperCommand_Result * msg); - -/// Check for action/GripperCommand message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Result__are_equal(const control_msgs__action__GripperCommand_Result * lhs, const control_msgs__action__GripperCommand_Result * rhs); - -/// Copy a action/GripperCommand message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Result__copy( - const control_msgs__action__GripperCommand_Result * input, - control_msgs__action__GripperCommand_Result * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__GripperCommand_Result__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__GripperCommand_Result__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__GripperCommand_Result__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__GripperCommand_Result__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/GripperCommand messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__GripperCommand_Result__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Result__Sequence__init(control_msgs__action__GripperCommand_Result__Sequence * array, size_t size); - -/// Finalize array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_Result__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_Result__Sequence__fini(control_msgs__action__GripperCommand_Result__Sequence * array); - -/// Create array of action/GripperCommand messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__GripperCommand_Result__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_Result__Sequence * -control_msgs__action__GripperCommand_Result__Sequence__create(size_t size); - -/// Destroy array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_Result__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_Result__Sequence__destroy(control_msgs__action__GripperCommand_Result__Sequence * array); - -/// Check for action/GripperCommand message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Result__Sequence__are_equal(const control_msgs__action__GripperCommand_Result__Sequence * lhs, const control_msgs__action__GripperCommand_Result__Sequence * rhs); - -/// Copy an array of action/GripperCommand messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Result__Sequence__copy( - const control_msgs__action__GripperCommand_Result__Sequence * input, - control_msgs__action__GripperCommand_Result__Sequence * output); - -/// Initialize action/GripperCommand message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__GripperCommand_Feedback - * )) before or use - * control_msgs__action__GripperCommand_Feedback__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Feedback__init(control_msgs__action__GripperCommand_Feedback * msg); - -/// Finalize action/GripperCommand message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_Feedback__fini(control_msgs__action__GripperCommand_Feedback * msg); - -/// Create action/GripperCommand message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__GripperCommand_Feedback__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_Feedback * -control_msgs__action__GripperCommand_Feedback__create(void); - -/// Destroy action/GripperCommand message. -/** - * It calls - * control_msgs__action__GripperCommand_Feedback__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_Feedback__destroy(control_msgs__action__GripperCommand_Feedback * msg); - -/// Check for action/GripperCommand message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Feedback__are_equal(const control_msgs__action__GripperCommand_Feedback * lhs, const control_msgs__action__GripperCommand_Feedback * rhs); - -/// Copy a action/GripperCommand message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Feedback__copy( - const control_msgs__action__GripperCommand_Feedback * input, - control_msgs__action__GripperCommand_Feedback * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__GripperCommand_Feedback__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__GripperCommand_Feedback__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__GripperCommand_Feedback__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__GripperCommand_Feedback__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/GripperCommand messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__GripperCommand_Feedback__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Feedback__Sequence__init(control_msgs__action__GripperCommand_Feedback__Sequence * array, size_t size); - -/// Finalize array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_Feedback__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_Feedback__Sequence__fini(control_msgs__action__GripperCommand_Feedback__Sequence * array); - -/// Create array of action/GripperCommand messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__GripperCommand_Feedback__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_Feedback__Sequence * -control_msgs__action__GripperCommand_Feedback__Sequence__create(size_t size); - -/// Destroy array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_Feedback__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_Feedback__Sequence__destroy(control_msgs__action__GripperCommand_Feedback__Sequence * array); - -/// Check for action/GripperCommand message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Feedback__Sequence__are_equal(const control_msgs__action__GripperCommand_Feedback__Sequence * lhs, const control_msgs__action__GripperCommand_Feedback__Sequence * rhs); - -/// Copy an array of action/GripperCommand messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_Feedback__Sequence__copy( - const control_msgs__action__GripperCommand_Feedback__Sequence * input, - control_msgs__action__GripperCommand_Feedback__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__GripperCommand_SendGoal__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__GripperCommand_SendGoal__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__GripperCommand_SendGoal__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__GripperCommand_SendGoal__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/GripperCommand message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__GripperCommand_SendGoal_Request - * )) before or use - * control_msgs__action__GripperCommand_SendGoal_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Request__init(control_msgs__action__GripperCommand_SendGoal_Request * msg); - -/// Finalize action/GripperCommand message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_SendGoal_Request__fini(control_msgs__action__GripperCommand_SendGoal_Request * msg); - -/// Create action/GripperCommand message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__GripperCommand_SendGoal_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_SendGoal_Request * -control_msgs__action__GripperCommand_SendGoal_Request__create(void); - -/// Destroy action/GripperCommand message. -/** - * It calls - * control_msgs__action__GripperCommand_SendGoal_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_SendGoal_Request__destroy(control_msgs__action__GripperCommand_SendGoal_Request * msg); - -/// Check for action/GripperCommand message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Request__are_equal(const control_msgs__action__GripperCommand_SendGoal_Request * lhs, const control_msgs__action__GripperCommand_SendGoal_Request * rhs); - -/// Copy a action/GripperCommand message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Request__copy( - const control_msgs__action__GripperCommand_SendGoal_Request * input, - control_msgs__action__GripperCommand_SendGoal_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__GripperCommand_SendGoal_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__GripperCommand_SendGoal_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__GripperCommand_SendGoal_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__GripperCommand_SendGoal_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/GripperCommand messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__GripperCommand_SendGoal_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Request__Sequence__init(control_msgs__action__GripperCommand_SendGoal_Request__Sequence * array, size_t size); - -/// Finalize array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_SendGoal_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_SendGoal_Request__Sequence__fini(control_msgs__action__GripperCommand_SendGoal_Request__Sequence * array); - -/// Create array of action/GripperCommand messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__GripperCommand_SendGoal_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_SendGoal_Request__Sequence * -control_msgs__action__GripperCommand_SendGoal_Request__Sequence__create(size_t size); - -/// Destroy array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_SendGoal_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_SendGoal_Request__Sequence__destroy(control_msgs__action__GripperCommand_SendGoal_Request__Sequence * array); - -/// Check for action/GripperCommand message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Request__Sequence__are_equal(const control_msgs__action__GripperCommand_SendGoal_Request__Sequence * lhs, const control_msgs__action__GripperCommand_SendGoal_Request__Sequence * rhs); - -/// Copy an array of action/GripperCommand messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Request__Sequence__copy( - const control_msgs__action__GripperCommand_SendGoal_Request__Sequence * input, - control_msgs__action__GripperCommand_SendGoal_Request__Sequence * output); - -/// Initialize action/GripperCommand message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__GripperCommand_SendGoal_Response - * )) before or use - * control_msgs__action__GripperCommand_SendGoal_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Response__init(control_msgs__action__GripperCommand_SendGoal_Response * msg); - -/// Finalize action/GripperCommand message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_SendGoal_Response__fini(control_msgs__action__GripperCommand_SendGoal_Response * msg); - -/// Create action/GripperCommand message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__GripperCommand_SendGoal_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_SendGoal_Response * -control_msgs__action__GripperCommand_SendGoal_Response__create(void); - -/// Destroy action/GripperCommand message. -/** - * It calls - * control_msgs__action__GripperCommand_SendGoal_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_SendGoal_Response__destroy(control_msgs__action__GripperCommand_SendGoal_Response * msg); - -/// Check for action/GripperCommand message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Response__are_equal(const control_msgs__action__GripperCommand_SendGoal_Response * lhs, const control_msgs__action__GripperCommand_SendGoal_Response * rhs); - -/// Copy a action/GripperCommand message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Response__copy( - const control_msgs__action__GripperCommand_SendGoal_Response * input, - control_msgs__action__GripperCommand_SendGoal_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__GripperCommand_SendGoal_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__GripperCommand_SendGoal_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__GripperCommand_SendGoal_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__GripperCommand_SendGoal_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/GripperCommand messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__GripperCommand_SendGoal_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Response__Sequence__init(control_msgs__action__GripperCommand_SendGoal_Response__Sequence * array, size_t size); - -/// Finalize array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_SendGoal_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_SendGoal_Response__Sequence__fini(control_msgs__action__GripperCommand_SendGoal_Response__Sequence * array); - -/// Create array of action/GripperCommand messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__GripperCommand_SendGoal_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_SendGoal_Response__Sequence * -control_msgs__action__GripperCommand_SendGoal_Response__Sequence__create(size_t size); - -/// Destroy array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_SendGoal_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_SendGoal_Response__Sequence__destroy(control_msgs__action__GripperCommand_SendGoal_Response__Sequence * array); - -/// Check for action/GripperCommand message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Response__Sequence__are_equal(const control_msgs__action__GripperCommand_SendGoal_Response__Sequence * lhs, const control_msgs__action__GripperCommand_SendGoal_Response__Sequence * rhs); - -/// Copy an array of action/GripperCommand messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Response__Sequence__copy( - const control_msgs__action__GripperCommand_SendGoal_Response__Sequence * input, - control_msgs__action__GripperCommand_SendGoal_Response__Sequence * output); - -/// Initialize action/GripperCommand message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__GripperCommand_SendGoal_Event - * )) before or use - * control_msgs__action__GripperCommand_SendGoal_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Event__init(control_msgs__action__GripperCommand_SendGoal_Event * msg); - -/// Finalize action/GripperCommand message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_SendGoal_Event__fini(control_msgs__action__GripperCommand_SendGoal_Event * msg); - -/// Create action/GripperCommand message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__GripperCommand_SendGoal_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_SendGoal_Event * -control_msgs__action__GripperCommand_SendGoal_Event__create(void); - -/// Destroy action/GripperCommand message. -/** - * It calls - * control_msgs__action__GripperCommand_SendGoal_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_SendGoal_Event__destroy(control_msgs__action__GripperCommand_SendGoal_Event * msg); - -/// Check for action/GripperCommand message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Event__are_equal(const control_msgs__action__GripperCommand_SendGoal_Event * lhs, const control_msgs__action__GripperCommand_SendGoal_Event * rhs); - -/// Copy a action/GripperCommand message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Event__copy( - const control_msgs__action__GripperCommand_SendGoal_Event * input, - control_msgs__action__GripperCommand_SendGoal_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__GripperCommand_SendGoal_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__GripperCommand_SendGoal_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__GripperCommand_SendGoal_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__GripperCommand_SendGoal_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/GripperCommand messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__GripperCommand_SendGoal_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Event__Sequence__init(control_msgs__action__GripperCommand_SendGoal_Event__Sequence * array, size_t size); - -/// Finalize array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_SendGoal_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_SendGoal_Event__Sequence__fini(control_msgs__action__GripperCommand_SendGoal_Event__Sequence * array); - -/// Create array of action/GripperCommand messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__GripperCommand_SendGoal_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_SendGoal_Event__Sequence * -control_msgs__action__GripperCommand_SendGoal_Event__Sequence__create(size_t size); - -/// Destroy array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_SendGoal_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_SendGoal_Event__Sequence__destroy(control_msgs__action__GripperCommand_SendGoal_Event__Sequence * array); - -/// Check for action/GripperCommand message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Event__Sequence__are_equal(const control_msgs__action__GripperCommand_SendGoal_Event__Sequence * lhs, const control_msgs__action__GripperCommand_SendGoal_Event__Sequence * rhs); - -/// Copy an array of action/GripperCommand messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_SendGoal_Event__Sequence__copy( - const control_msgs__action__GripperCommand_SendGoal_Event__Sequence * input, - control_msgs__action__GripperCommand_SendGoal_Event__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__GripperCommand_GetResult__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__GripperCommand_GetResult__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__GripperCommand_GetResult__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__GripperCommand_GetResult__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/GripperCommand message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__GripperCommand_GetResult_Request - * )) before or use - * control_msgs__action__GripperCommand_GetResult_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Request__init(control_msgs__action__GripperCommand_GetResult_Request * msg); - -/// Finalize action/GripperCommand message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_GetResult_Request__fini(control_msgs__action__GripperCommand_GetResult_Request * msg); - -/// Create action/GripperCommand message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__GripperCommand_GetResult_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_GetResult_Request * -control_msgs__action__GripperCommand_GetResult_Request__create(void); - -/// Destroy action/GripperCommand message. -/** - * It calls - * control_msgs__action__GripperCommand_GetResult_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_GetResult_Request__destroy(control_msgs__action__GripperCommand_GetResult_Request * msg); - -/// Check for action/GripperCommand message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Request__are_equal(const control_msgs__action__GripperCommand_GetResult_Request * lhs, const control_msgs__action__GripperCommand_GetResult_Request * rhs); - -/// Copy a action/GripperCommand message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Request__copy( - const control_msgs__action__GripperCommand_GetResult_Request * input, - control_msgs__action__GripperCommand_GetResult_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__GripperCommand_GetResult_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__GripperCommand_GetResult_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__GripperCommand_GetResult_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__GripperCommand_GetResult_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/GripperCommand messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__GripperCommand_GetResult_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Request__Sequence__init(control_msgs__action__GripperCommand_GetResult_Request__Sequence * array, size_t size); - -/// Finalize array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_GetResult_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_GetResult_Request__Sequence__fini(control_msgs__action__GripperCommand_GetResult_Request__Sequence * array); - -/// Create array of action/GripperCommand messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__GripperCommand_GetResult_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_GetResult_Request__Sequence * -control_msgs__action__GripperCommand_GetResult_Request__Sequence__create(size_t size); - -/// Destroy array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_GetResult_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_GetResult_Request__Sequence__destroy(control_msgs__action__GripperCommand_GetResult_Request__Sequence * array); - -/// Check for action/GripperCommand message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Request__Sequence__are_equal(const control_msgs__action__GripperCommand_GetResult_Request__Sequence * lhs, const control_msgs__action__GripperCommand_GetResult_Request__Sequence * rhs); - -/// Copy an array of action/GripperCommand messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Request__Sequence__copy( - const control_msgs__action__GripperCommand_GetResult_Request__Sequence * input, - control_msgs__action__GripperCommand_GetResult_Request__Sequence * output); - -/// Initialize action/GripperCommand message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__GripperCommand_GetResult_Response - * )) before or use - * control_msgs__action__GripperCommand_GetResult_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Response__init(control_msgs__action__GripperCommand_GetResult_Response * msg); - -/// Finalize action/GripperCommand message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_GetResult_Response__fini(control_msgs__action__GripperCommand_GetResult_Response * msg); - -/// Create action/GripperCommand message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__GripperCommand_GetResult_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_GetResult_Response * -control_msgs__action__GripperCommand_GetResult_Response__create(void); - -/// Destroy action/GripperCommand message. -/** - * It calls - * control_msgs__action__GripperCommand_GetResult_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_GetResult_Response__destroy(control_msgs__action__GripperCommand_GetResult_Response * msg); - -/// Check for action/GripperCommand message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Response__are_equal(const control_msgs__action__GripperCommand_GetResult_Response * lhs, const control_msgs__action__GripperCommand_GetResult_Response * rhs); - -/// Copy a action/GripperCommand message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Response__copy( - const control_msgs__action__GripperCommand_GetResult_Response * input, - control_msgs__action__GripperCommand_GetResult_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__GripperCommand_GetResult_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__GripperCommand_GetResult_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__GripperCommand_GetResult_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__GripperCommand_GetResult_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/GripperCommand messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__GripperCommand_GetResult_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Response__Sequence__init(control_msgs__action__GripperCommand_GetResult_Response__Sequence * array, size_t size); - -/// Finalize array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_GetResult_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_GetResult_Response__Sequence__fini(control_msgs__action__GripperCommand_GetResult_Response__Sequence * array); - -/// Create array of action/GripperCommand messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__GripperCommand_GetResult_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_GetResult_Response__Sequence * -control_msgs__action__GripperCommand_GetResult_Response__Sequence__create(size_t size); - -/// Destroy array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_GetResult_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_GetResult_Response__Sequence__destroy(control_msgs__action__GripperCommand_GetResult_Response__Sequence * array); - -/// Check for action/GripperCommand message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Response__Sequence__are_equal(const control_msgs__action__GripperCommand_GetResult_Response__Sequence * lhs, const control_msgs__action__GripperCommand_GetResult_Response__Sequence * rhs); - -/// Copy an array of action/GripperCommand messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Response__Sequence__copy( - const control_msgs__action__GripperCommand_GetResult_Response__Sequence * input, - control_msgs__action__GripperCommand_GetResult_Response__Sequence * output); - -/// Initialize action/GripperCommand message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__GripperCommand_GetResult_Event - * )) before or use - * control_msgs__action__GripperCommand_GetResult_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Event__init(control_msgs__action__GripperCommand_GetResult_Event * msg); - -/// Finalize action/GripperCommand message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_GetResult_Event__fini(control_msgs__action__GripperCommand_GetResult_Event * msg); - -/// Create action/GripperCommand message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__GripperCommand_GetResult_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_GetResult_Event * -control_msgs__action__GripperCommand_GetResult_Event__create(void); - -/// Destroy action/GripperCommand message. -/** - * It calls - * control_msgs__action__GripperCommand_GetResult_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_GetResult_Event__destroy(control_msgs__action__GripperCommand_GetResult_Event * msg); - -/// Check for action/GripperCommand message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Event__are_equal(const control_msgs__action__GripperCommand_GetResult_Event * lhs, const control_msgs__action__GripperCommand_GetResult_Event * rhs); - -/// Copy a action/GripperCommand message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Event__copy( - const control_msgs__action__GripperCommand_GetResult_Event * input, - control_msgs__action__GripperCommand_GetResult_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__GripperCommand_GetResult_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__GripperCommand_GetResult_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__GripperCommand_GetResult_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__GripperCommand_GetResult_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/GripperCommand messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__GripperCommand_GetResult_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Event__Sequence__init(control_msgs__action__GripperCommand_GetResult_Event__Sequence * array, size_t size); - -/// Finalize array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_GetResult_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_GetResult_Event__Sequence__fini(control_msgs__action__GripperCommand_GetResult_Event__Sequence * array); - -/// Create array of action/GripperCommand messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__GripperCommand_GetResult_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_GetResult_Event__Sequence * -control_msgs__action__GripperCommand_GetResult_Event__Sequence__create(size_t size); - -/// Destroy array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_GetResult_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_GetResult_Event__Sequence__destroy(control_msgs__action__GripperCommand_GetResult_Event__Sequence * array); - -/// Check for action/GripperCommand message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Event__Sequence__are_equal(const control_msgs__action__GripperCommand_GetResult_Event__Sequence * lhs, const control_msgs__action__GripperCommand_GetResult_Event__Sequence * rhs); - -/// Copy an array of action/GripperCommand messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_GetResult_Event__Sequence__copy( - const control_msgs__action__GripperCommand_GetResult_Event__Sequence * input, - control_msgs__action__GripperCommand_GetResult_Event__Sequence * output); - -/// Initialize action/GripperCommand message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__GripperCommand_FeedbackMessage - * )) before or use - * control_msgs__action__GripperCommand_FeedbackMessage__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_FeedbackMessage__init(control_msgs__action__GripperCommand_FeedbackMessage * msg); - -/// Finalize action/GripperCommand message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_FeedbackMessage__fini(control_msgs__action__GripperCommand_FeedbackMessage * msg); - -/// Create action/GripperCommand message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__GripperCommand_FeedbackMessage__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_FeedbackMessage * -control_msgs__action__GripperCommand_FeedbackMessage__create(void); - -/// Destroy action/GripperCommand message. -/** - * It calls - * control_msgs__action__GripperCommand_FeedbackMessage__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_FeedbackMessage__destroy(control_msgs__action__GripperCommand_FeedbackMessage * msg); - -/// Check for action/GripperCommand message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_FeedbackMessage__are_equal(const control_msgs__action__GripperCommand_FeedbackMessage * lhs, const control_msgs__action__GripperCommand_FeedbackMessage * rhs); - -/// Copy a action/GripperCommand message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_FeedbackMessage__copy( - const control_msgs__action__GripperCommand_FeedbackMessage * input, - control_msgs__action__GripperCommand_FeedbackMessage * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__GripperCommand_FeedbackMessage__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__GripperCommand_FeedbackMessage__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__GripperCommand_FeedbackMessage__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__GripperCommand_FeedbackMessage__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/GripperCommand messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__GripperCommand_FeedbackMessage__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_FeedbackMessage__Sequence__init(control_msgs__action__GripperCommand_FeedbackMessage__Sequence * array, size_t size); - -/// Finalize array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_FeedbackMessage__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_FeedbackMessage__Sequence__fini(control_msgs__action__GripperCommand_FeedbackMessage__Sequence * array); - -/// Create array of action/GripperCommand messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__GripperCommand_FeedbackMessage__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__GripperCommand_FeedbackMessage__Sequence * -control_msgs__action__GripperCommand_FeedbackMessage__Sequence__create(size_t size); - -/// Destroy array of action/GripperCommand messages. -/** - * It calls - * control_msgs__action__GripperCommand_FeedbackMessage__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__GripperCommand_FeedbackMessage__Sequence__destroy(control_msgs__action__GripperCommand_FeedbackMessage__Sequence * array); - -/// Check for action/GripperCommand message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_FeedbackMessage__Sequence__are_equal(const control_msgs__action__GripperCommand_FeedbackMessage__Sequence * lhs, const control_msgs__action__GripperCommand_FeedbackMessage__Sequence * rhs); - -/// Copy an array of action/GripperCommand messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__GripperCommand_FeedbackMessage__Sequence__copy( - const control_msgs__action__GripperCommand_FeedbackMessage__Sequence * input, - control_msgs__action__GripperCommand_FeedbackMessage__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__GRIPPER_COMMAND__FUNCTIONS_H_ diff --git a/src/control_msgs/action/detail/gripper_command__rosidl_typesupport_introspection_c.h b/src/control_msgs/action/detail/gripper_command__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c8e1f6f7a..000000000 --- a/src/control_msgs/action/detail/gripper_command__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,146 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:action/GripperCommand.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__ACTION__DETAIL__GRIPPER_COMMAND__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__ACTION__DETAIL__GRIPPER_COMMAND__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, GripperCommand_Goal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, GripperCommand_Result)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, GripperCommand_Feedback)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, GripperCommand_SendGoal_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, GripperCommand_SendGoal_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, GripperCommand_SendGoal_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, GripperCommand_SendGoal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, GripperCommand_GetResult_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, GripperCommand_GetResult_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, GripperCommand_GetResult_Event)(); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, GripperCommand_GetResult)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, GripperCommand_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__GRIPPER_COMMAND__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/action/detail/gripper_command__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/action/detail/gripper_command__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 61091bc54..000000000 --- a/src/control_msgs/action/detail/gripper_command__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,411 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:action/GripperCommand.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__ACTION__GRIPPER_COMMAND__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__ACTION__GRIPPER_COMMAND__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__GripperCommand_Goal( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__GripperCommand_Goal( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, GripperCommand_Goal)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__GripperCommand_Result( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__GripperCommand_Result( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, GripperCommand_Result)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__GripperCommand_Feedback( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__GripperCommand_Feedback( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, GripperCommand_Feedback)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__GripperCommand_SendGoal_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__GripperCommand_SendGoal_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, GripperCommand_SendGoal_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__GripperCommand_SendGoal_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__GripperCommand_SendGoal_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, GripperCommand_SendGoal_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__GripperCommand_SendGoal_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__GripperCommand_SendGoal_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, GripperCommand_SendGoal_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, GripperCommand_SendGoal)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__GripperCommand_GetResult_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__GripperCommand_GetResult_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, GripperCommand_GetResult_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__GripperCommand_GetResult_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__GripperCommand_GetResult_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, GripperCommand_GetResult_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__GripperCommand_GetResult_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__GripperCommand_GetResult_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, GripperCommand_GetResult_Event)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, GripperCommand_GetResult)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__GripperCommand_FeedbackMessage( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__GripperCommand_FeedbackMessage( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, GripperCommand_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__ACTION__GRIPPER_COMMAND__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/action/detail/gripper_command__struct.h b/src/control_msgs/action/detail/gripper_command__struct.h deleted file mode 100755 index a4a8c245a..000000000 --- a/src/control_msgs/action/detail/gripper_command__struct.h +++ /dev/null @@ -1,292 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:action/GripperCommand.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/gripper_command.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__GRIPPER_COMMAND__STRUCT_H_ -#define CONTROL_MSGS__ACTION__DETAIL__GRIPPER_COMMAND__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'command' -#include "control_msgs/msg/detail/gripper_command__struct.h" - -/// Struct defined in action/GripperCommand in the package control_msgs. -typedef struct control_msgs__action__GripperCommand_Goal -{ - control_msgs__msg__GripperCommand command; -} control_msgs__action__GripperCommand_Goal; - -// Struct for a sequence of control_msgs__action__GripperCommand_Goal. -typedef struct control_msgs__action__GripperCommand_Goal__Sequence -{ - control_msgs__action__GripperCommand_Goal * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__GripperCommand_Goal__Sequence; - -// Constants defined in the message - -/// Struct defined in action/GripperCommand in the package control_msgs. -typedef struct control_msgs__action__GripperCommand_Result -{ - /// The current gripper gap size (in meters) - double position; - /// The current effort exerted (in Newtons) - double effort; - /// True iff the gripper is exerting max effort and not moving - bool stalled; - /// True iff the gripper position has reached the commanded setpoint - bool reached_goal; -} control_msgs__action__GripperCommand_Result; - -// Struct for a sequence of control_msgs__action__GripperCommand_Result. -typedef struct control_msgs__action__GripperCommand_Result__Sequence -{ - control_msgs__action__GripperCommand_Result * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__GripperCommand_Result__Sequence; - -// Constants defined in the message - -/// Struct defined in action/GripperCommand in the package control_msgs. -typedef struct control_msgs__action__GripperCommand_Feedback -{ - /// The current gripper gap size (in meters) - double position; - /// The current effort exerted (in Newtons) - double effort; - /// True iff the gripper is exerting max effort and not moving - bool stalled; - /// True iff the gripper position has reached the commanded setpoint - bool reached_goal; -} control_msgs__action__GripperCommand_Feedback; - -// Struct for a sequence of control_msgs__action__GripperCommand_Feedback. -typedef struct control_msgs__action__GripperCommand_Feedback__Sequence -{ - control_msgs__action__GripperCommand_Feedback * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__GripperCommand_Feedback__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -#include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'goal' -#include "control_msgs/action/detail/gripper_command__struct.h" - -/// Struct defined in action/GripperCommand in the package control_msgs. -typedef struct control_msgs__action__GripperCommand_SendGoal_Request -{ - unique_identifier_msgs__msg__UUID goal_id; - control_msgs__action__GripperCommand_Goal goal; -} control_msgs__action__GripperCommand_SendGoal_Request; - -// Struct for a sequence of control_msgs__action__GripperCommand_SendGoal_Request. -typedef struct control_msgs__action__GripperCommand_SendGoal_Request__Sequence -{ - control_msgs__action__GripperCommand_SendGoal_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__GripperCommand_SendGoal_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'stamp' -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in action/GripperCommand in the package control_msgs. -typedef struct control_msgs__action__GripperCommand_SendGoal_Response -{ - bool accepted; - builtin_interfaces__msg__Time stamp; -} control_msgs__action__GripperCommand_SendGoal_Response; - -// Struct for a sequence of control_msgs__action__GripperCommand_SendGoal_Response. -typedef struct control_msgs__action__GripperCommand_SendGoal_Response__Sequence -{ - control_msgs__action__GripperCommand_SendGoal_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__GripperCommand_SendGoal_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - control_msgs__action__GripperCommand_SendGoal_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - control_msgs__action__GripperCommand_SendGoal_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/GripperCommand in the package control_msgs. -typedef struct control_msgs__action__GripperCommand_SendGoal_Event -{ - service_msgs__msg__ServiceEventInfo info; - control_msgs__action__GripperCommand_SendGoal_Request__Sequence request; - control_msgs__action__GripperCommand_SendGoal_Response__Sequence response; -} control_msgs__action__GripperCommand_SendGoal_Event; - -// Struct for a sequence of control_msgs__action__GripperCommand_SendGoal_Event. -typedef struct control_msgs__action__GripperCommand_SendGoal_Event__Sequence -{ - control_msgs__action__GripperCommand_SendGoal_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__GripperCommand_SendGoal_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" - -/// Struct defined in action/GripperCommand in the package control_msgs. -typedef struct control_msgs__action__GripperCommand_GetResult_Request -{ - unique_identifier_msgs__msg__UUID goal_id; -} control_msgs__action__GripperCommand_GetResult_Request; - -// Struct for a sequence of control_msgs__action__GripperCommand_GetResult_Request. -typedef struct control_msgs__action__GripperCommand_GetResult_Request__Sequence -{ - control_msgs__action__GripperCommand_GetResult_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__GripperCommand_GetResult_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'result' -// already included above -// #include "control_msgs/action/detail/gripper_command__struct.h" - -/// Struct defined in action/GripperCommand in the package control_msgs. -typedef struct control_msgs__action__GripperCommand_GetResult_Response -{ - int8_t status; - control_msgs__action__GripperCommand_Result result; -} control_msgs__action__GripperCommand_GetResult_Response; - -// Struct for a sequence of control_msgs__action__GripperCommand_GetResult_Response. -typedef struct control_msgs__action__GripperCommand_GetResult_Response__Sequence -{ - control_msgs__action__GripperCommand_GetResult_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__GripperCommand_GetResult_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -// already included above -// #include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - control_msgs__action__GripperCommand_GetResult_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - control_msgs__action__GripperCommand_GetResult_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/GripperCommand in the package control_msgs. -typedef struct control_msgs__action__GripperCommand_GetResult_Event -{ - service_msgs__msg__ServiceEventInfo info; - control_msgs__action__GripperCommand_GetResult_Request__Sequence request; - control_msgs__action__GripperCommand_GetResult_Response__Sequence response; -} control_msgs__action__GripperCommand_GetResult_Event; - -// Struct for a sequence of control_msgs__action__GripperCommand_GetResult_Event. -typedef struct control_msgs__action__GripperCommand_GetResult_Event__Sequence -{ - control_msgs__action__GripperCommand_GetResult_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__GripperCommand_GetResult_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'feedback' -// already included above -// #include "control_msgs/action/detail/gripper_command__struct.h" - -/// Struct defined in action/GripperCommand in the package control_msgs. -typedef struct control_msgs__action__GripperCommand_FeedbackMessage -{ - unique_identifier_msgs__msg__UUID goal_id; - control_msgs__action__GripperCommand_Feedback feedback; -} control_msgs__action__GripperCommand_FeedbackMessage; - -// Struct for a sequence of control_msgs__action__GripperCommand_FeedbackMessage. -typedef struct control_msgs__action__GripperCommand_FeedbackMessage__Sequence -{ - control_msgs__action__GripperCommand_FeedbackMessage * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__GripperCommand_FeedbackMessage__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__GRIPPER_COMMAND__STRUCT_H_ diff --git a/src/control_msgs/action/detail/gripper_command__type_support.h b/src/control_msgs/action/detail/gripper_command__type_support.h deleted file mode 100755 index 55f0a043d..000000000 --- a/src/control_msgs/action/detail/gripper_command__type_support.h +++ /dev/null @@ -1,242 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:action/GripperCommand.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/gripper_command.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__GRIPPER_COMMAND__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__ACTION__DETAIL__GRIPPER_COMMAND__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/action_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_action_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__ACTION_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand -)(void); - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_Goal -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_Result -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_Feedback -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_SendGoal_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_SendGoal_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_SendGoal_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_SendGoal -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_SendGoal -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_SendGoal -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_GetResult_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_GetResult_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_GetResult_Event -)(void); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_GetResult -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_GetResult -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_GetResult -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - GripperCommand_FeedbackMessage -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__GRIPPER_COMMAND__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/action/detail/joint_trajectory__functions.h b/src/control_msgs/action/detail/joint_trajectory__functions.h deleted file mode 100755 index 9462c0a0a..000000000 --- a/src/control_msgs/action/detail/joint_trajectory__functions.h +++ /dev/null @@ -1,1866 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:action/JointTrajectory.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/joint_trajectory.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__JOINT_TRAJECTORY__FUNCTIONS_H_ -#define CONTROL_MSGS__ACTION__DETAIL__JOINT_TRAJECTORY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/action/detail/joint_trajectory__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__JointTrajectory__get_type_hash( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__JointTrajectory__get_type_description( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__JointTrajectory__get_individual_type_description_source( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__JointTrajectory__get_type_description_sources( - const rosidl_action_type_support_t * type_support); - -/// Initialize action/JointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__JointTrajectory_Goal - * )) before or use - * control_msgs__action__JointTrajectory_Goal__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Goal__init(control_msgs__action__JointTrajectory_Goal * msg); - -/// Finalize action/JointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_Goal__fini(control_msgs__action__JointTrajectory_Goal * msg); - -/// Create action/JointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__JointTrajectory_Goal__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_Goal * -control_msgs__action__JointTrajectory_Goal__create(void); - -/// Destroy action/JointTrajectory message. -/** - * It calls - * control_msgs__action__JointTrajectory_Goal__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_Goal__destroy(control_msgs__action__JointTrajectory_Goal * msg); - -/// Check for action/JointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Goal__are_equal(const control_msgs__action__JointTrajectory_Goal * lhs, const control_msgs__action__JointTrajectory_Goal * rhs); - -/// Copy a action/JointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Goal__copy( - const control_msgs__action__JointTrajectory_Goal * input, - control_msgs__action__JointTrajectory_Goal * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__JointTrajectory_Goal__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__JointTrajectory_Goal__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__JointTrajectory_Goal__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__JointTrajectory_Goal__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/JointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__JointTrajectory_Goal__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Goal__Sequence__init(control_msgs__action__JointTrajectory_Goal__Sequence * array, size_t size); - -/// Finalize array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_Goal__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_Goal__Sequence__fini(control_msgs__action__JointTrajectory_Goal__Sequence * array); - -/// Create array of action/JointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__JointTrajectory_Goal__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_Goal__Sequence * -control_msgs__action__JointTrajectory_Goal__Sequence__create(size_t size); - -/// Destroy array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_Goal__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_Goal__Sequence__destroy(control_msgs__action__JointTrajectory_Goal__Sequence * array); - -/// Check for action/JointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Goal__Sequence__are_equal(const control_msgs__action__JointTrajectory_Goal__Sequence * lhs, const control_msgs__action__JointTrajectory_Goal__Sequence * rhs); - -/// Copy an array of action/JointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Goal__Sequence__copy( - const control_msgs__action__JointTrajectory_Goal__Sequence * input, - control_msgs__action__JointTrajectory_Goal__Sequence * output); - -/// Initialize action/JointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__JointTrajectory_Result - * )) before or use - * control_msgs__action__JointTrajectory_Result__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Result__init(control_msgs__action__JointTrajectory_Result * msg); - -/// Finalize action/JointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_Result__fini(control_msgs__action__JointTrajectory_Result * msg); - -/// Create action/JointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__JointTrajectory_Result__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_Result * -control_msgs__action__JointTrajectory_Result__create(void); - -/// Destroy action/JointTrajectory message. -/** - * It calls - * control_msgs__action__JointTrajectory_Result__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_Result__destroy(control_msgs__action__JointTrajectory_Result * msg); - -/// Check for action/JointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Result__are_equal(const control_msgs__action__JointTrajectory_Result * lhs, const control_msgs__action__JointTrajectory_Result * rhs); - -/// Copy a action/JointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Result__copy( - const control_msgs__action__JointTrajectory_Result * input, - control_msgs__action__JointTrajectory_Result * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__JointTrajectory_Result__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__JointTrajectory_Result__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__JointTrajectory_Result__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__JointTrajectory_Result__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/JointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__JointTrajectory_Result__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Result__Sequence__init(control_msgs__action__JointTrajectory_Result__Sequence * array, size_t size); - -/// Finalize array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_Result__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_Result__Sequence__fini(control_msgs__action__JointTrajectory_Result__Sequence * array); - -/// Create array of action/JointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__JointTrajectory_Result__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_Result__Sequence * -control_msgs__action__JointTrajectory_Result__Sequence__create(size_t size); - -/// Destroy array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_Result__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_Result__Sequence__destroy(control_msgs__action__JointTrajectory_Result__Sequence * array); - -/// Check for action/JointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Result__Sequence__are_equal(const control_msgs__action__JointTrajectory_Result__Sequence * lhs, const control_msgs__action__JointTrajectory_Result__Sequence * rhs); - -/// Copy an array of action/JointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Result__Sequence__copy( - const control_msgs__action__JointTrajectory_Result__Sequence * input, - control_msgs__action__JointTrajectory_Result__Sequence * output); - -/// Initialize action/JointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__JointTrajectory_Feedback - * )) before or use - * control_msgs__action__JointTrajectory_Feedback__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Feedback__init(control_msgs__action__JointTrajectory_Feedback * msg); - -/// Finalize action/JointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_Feedback__fini(control_msgs__action__JointTrajectory_Feedback * msg); - -/// Create action/JointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__JointTrajectory_Feedback__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_Feedback * -control_msgs__action__JointTrajectory_Feedback__create(void); - -/// Destroy action/JointTrajectory message. -/** - * It calls - * control_msgs__action__JointTrajectory_Feedback__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_Feedback__destroy(control_msgs__action__JointTrajectory_Feedback * msg); - -/// Check for action/JointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Feedback__are_equal(const control_msgs__action__JointTrajectory_Feedback * lhs, const control_msgs__action__JointTrajectory_Feedback * rhs); - -/// Copy a action/JointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Feedback__copy( - const control_msgs__action__JointTrajectory_Feedback * input, - control_msgs__action__JointTrajectory_Feedback * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__JointTrajectory_Feedback__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__JointTrajectory_Feedback__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__JointTrajectory_Feedback__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__JointTrajectory_Feedback__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/JointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__JointTrajectory_Feedback__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Feedback__Sequence__init(control_msgs__action__JointTrajectory_Feedback__Sequence * array, size_t size); - -/// Finalize array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_Feedback__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_Feedback__Sequence__fini(control_msgs__action__JointTrajectory_Feedback__Sequence * array); - -/// Create array of action/JointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__JointTrajectory_Feedback__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_Feedback__Sequence * -control_msgs__action__JointTrajectory_Feedback__Sequence__create(size_t size); - -/// Destroy array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_Feedback__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_Feedback__Sequence__destroy(control_msgs__action__JointTrajectory_Feedback__Sequence * array); - -/// Check for action/JointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Feedback__Sequence__are_equal(const control_msgs__action__JointTrajectory_Feedback__Sequence * lhs, const control_msgs__action__JointTrajectory_Feedback__Sequence * rhs); - -/// Copy an array of action/JointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_Feedback__Sequence__copy( - const control_msgs__action__JointTrajectory_Feedback__Sequence * input, - control_msgs__action__JointTrajectory_Feedback__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__JointTrajectory_SendGoal__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__JointTrajectory_SendGoal__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__JointTrajectory_SendGoal__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__JointTrajectory_SendGoal__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/JointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__JointTrajectory_SendGoal_Request - * )) before or use - * control_msgs__action__JointTrajectory_SendGoal_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Request__init(control_msgs__action__JointTrajectory_SendGoal_Request * msg); - -/// Finalize action/JointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_SendGoal_Request__fini(control_msgs__action__JointTrajectory_SendGoal_Request * msg); - -/// Create action/JointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__JointTrajectory_SendGoal_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_SendGoal_Request * -control_msgs__action__JointTrajectory_SendGoal_Request__create(void); - -/// Destroy action/JointTrajectory message. -/** - * It calls - * control_msgs__action__JointTrajectory_SendGoal_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_SendGoal_Request__destroy(control_msgs__action__JointTrajectory_SendGoal_Request * msg); - -/// Check for action/JointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Request__are_equal(const control_msgs__action__JointTrajectory_SendGoal_Request * lhs, const control_msgs__action__JointTrajectory_SendGoal_Request * rhs); - -/// Copy a action/JointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Request__copy( - const control_msgs__action__JointTrajectory_SendGoal_Request * input, - control_msgs__action__JointTrajectory_SendGoal_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__JointTrajectory_SendGoal_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__JointTrajectory_SendGoal_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__JointTrajectory_SendGoal_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__JointTrajectory_SendGoal_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/JointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__JointTrajectory_SendGoal_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Request__Sequence__init(control_msgs__action__JointTrajectory_SendGoal_Request__Sequence * array, size_t size); - -/// Finalize array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_SendGoal_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_SendGoal_Request__Sequence__fini(control_msgs__action__JointTrajectory_SendGoal_Request__Sequence * array); - -/// Create array of action/JointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__JointTrajectory_SendGoal_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_SendGoal_Request__Sequence * -control_msgs__action__JointTrajectory_SendGoal_Request__Sequence__create(size_t size); - -/// Destroy array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_SendGoal_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_SendGoal_Request__Sequence__destroy(control_msgs__action__JointTrajectory_SendGoal_Request__Sequence * array); - -/// Check for action/JointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Request__Sequence__are_equal(const control_msgs__action__JointTrajectory_SendGoal_Request__Sequence * lhs, const control_msgs__action__JointTrajectory_SendGoal_Request__Sequence * rhs); - -/// Copy an array of action/JointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Request__Sequence__copy( - const control_msgs__action__JointTrajectory_SendGoal_Request__Sequence * input, - control_msgs__action__JointTrajectory_SendGoal_Request__Sequence * output); - -/// Initialize action/JointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__JointTrajectory_SendGoal_Response - * )) before or use - * control_msgs__action__JointTrajectory_SendGoal_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Response__init(control_msgs__action__JointTrajectory_SendGoal_Response * msg); - -/// Finalize action/JointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_SendGoal_Response__fini(control_msgs__action__JointTrajectory_SendGoal_Response * msg); - -/// Create action/JointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__JointTrajectory_SendGoal_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_SendGoal_Response * -control_msgs__action__JointTrajectory_SendGoal_Response__create(void); - -/// Destroy action/JointTrajectory message. -/** - * It calls - * control_msgs__action__JointTrajectory_SendGoal_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_SendGoal_Response__destroy(control_msgs__action__JointTrajectory_SendGoal_Response * msg); - -/// Check for action/JointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Response__are_equal(const control_msgs__action__JointTrajectory_SendGoal_Response * lhs, const control_msgs__action__JointTrajectory_SendGoal_Response * rhs); - -/// Copy a action/JointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Response__copy( - const control_msgs__action__JointTrajectory_SendGoal_Response * input, - control_msgs__action__JointTrajectory_SendGoal_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__JointTrajectory_SendGoal_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__JointTrajectory_SendGoal_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__JointTrajectory_SendGoal_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__JointTrajectory_SendGoal_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/JointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__JointTrajectory_SendGoal_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Response__Sequence__init(control_msgs__action__JointTrajectory_SendGoal_Response__Sequence * array, size_t size); - -/// Finalize array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_SendGoal_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_SendGoal_Response__Sequence__fini(control_msgs__action__JointTrajectory_SendGoal_Response__Sequence * array); - -/// Create array of action/JointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__JointTrajectory_SendGoal_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_SendGoal_Response__Sequence * -control_msgs__action__JointTrajectory_SendGoal_Response__Sequence__create(size_t size); - -/// Destroy array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_SendGoal_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_SendGoal_Response__Sequence__destroy(control_msgs__action__JointTrajectory_SendGoal_Response__Sequence * array); - -/// Check for action/JointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Response__Sequence__are_equal(const control_msgs__action__JointTrajectory_SendGoal_Response__Sequence * lhs, const control_msgs__action__JointTrajectory_SendGoal_Response__Sequence * rhs); - -/// Copy an array of action/JointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Response__Sequence__copy( - const control_msgs__action__JointTrajectory_SendGoal_Response__Sequence * input, - control_msgs__action__JointTrajectory_SendGoal_Response__Sequence * output); - -/// Initialize action/JointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__JointTrajectory_SendGoal_Event - * )) before or use - * control_msgs__action__JointTrajectory_SendGoal_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Event__init(control_msgs__action__JointTrajectory_SendGoal_Event * msg); - -/// Finalize action/JointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_SendGoal_Event__fini(control_msgs__action__JointTrajectory_SendGoal_Event * msg); - -/// Create action/JointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__JointTrajectory_SendGoal_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_SendGoal_Event * -control_msgs__action__JointTrajectory_SendGoal_Event__create(void); - -/// Destroy action/JointTrajectory message. -/** - * It calls - * control_msgs__action__JointTrajectory_SendGoal_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_SendGoal_Event__destroy(control_msgs__action__JointTrajectory_SendGoal_Event * msg); - -/// Check for action/JointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Event__are_equal(const control_msgs__action__JointTrajectory_SendGoal_Event * lhs, const control_msgs__action__JointTrajectory_SendGoal_Event * rhs); - -/// Copy a action/JointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Event__copy( - const control_msgs__action__JointTrajectory_SendGoal_Event * input, - control_msgs__action__JointTrajectory_SendGoal_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__JointTrajectory_SendGoal_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__JointTrajectory_SendGoal_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__JointTrajectory_SendGoal_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__JointTrajectory_SendGoal_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/JointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__JointTrajectory_SendGoal_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Event__Sequence__init(control_msgs__action__JointTrajectory_SendGoal_Event__Sequence * array, size_t size); - -/// Finalize array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_SendGoal_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_SendGoal_Event__Sequence__fini(control_msgs__action__JointTrajectory_SendGoal_Event__Sequence * array); - -/// Create array of action/JointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__JointTrajectory_SendGoal_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_SendGoal_Event__Sequence * -control_msgs__action__JointTrajectory_SendGoal_Event__Sequence__create(size_t size); - -/// Destroy array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_SendGoal_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_SendGoal_Event__Sequence__destroy(control_msgs__action__JointTrajectory_SendGoal_Event__Sequence * array); - -/// Check for action/JointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Event__Sequence__are_equal(const control_msgs__action__JointTrajectory_SendGoal_Event__Sequence * lhs, const control_msgs__action__JointTrajectory_SendGoal_Event__Sequence * rhs); - -/// Copy an array of action/JointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_SendGoal_Event__Sequence__copy( - const control_msgs__action__JointTrajectory_SendGoal_Event__Sequence * input, - control_msgs__action__JointTrajectory_SendGoal_Event__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__JointTrajectory_GetResult__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__JointTrajectory_GetResult__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__JointTrajectory_GetResult__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__JointTrajectory_GetResult__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/JointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__JointTrajectory_GetResult_Request - * )) before or use - * control_msgs__action__JointTrajectory_GetResult_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Request__init(control_msgs__action__JointTrajectory_GetResult_Request * msg); - -/// Finalize action/JointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_GetResult_Request__fini(control_msgs__action__JointTrajectory_GetResult_Request * msg); - -/// Create action/JointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__JointTrajectory_GetResult_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_GetResult_Request * -control_msgs__action__JointTrajectory_GetResult_Request__create(void); - -/// Destroy action/JointTrajectory message. -/** - * It calls - * control_msgs__action__JointTrajectory_GetResult_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_GetResult_Request__destroy(control_msgs__action__JointTrajectory_GetResult_Request * msg); - -/// Check for action/JointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Request__are_equal(const control_msgs__action__JointTrajectory_GetResult_Request * lhs, const control_msgs__action__JointTrajectory_GetResult_Request * rhs); - -/// Copy a action/JointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Request__copy( - const control_msgs__action__JointTrajectory_GetResult_Request * input, - control_msgs__action__JointTrajectory_GetResult_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__JointTrajectory_GetResult_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__JointTrajectory_GetResult_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__JointTrajectory_GetResult_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__JointTrajectory_GetResult_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/JointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__JointTrajectory_GetResult_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Request__Sequence__init(control_msgs__action__JointTrajectory_GetResult_Request__Sequence * array, size_t size); - -/// Finalize array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_GetResult_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_GetResult_Request__Sequence__fini(control_msgs__action__JointTrajectory_GetResult_Request__Sequence * array); - -/// Create array of action/JointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__JointTrajectory_GetResult_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_GetResult_Request__Sequence * -control_msgs__action__JointTrajectory_GetResult_Request__Sequence__create(size_t size); - -/// Destroy array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_GetResult_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_GetResult_Request__Sequence__destroy(control_msgs__action__JointTrajectory_GetResult_Request__Sequence * array); - -/// Check for action/JointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Request__Sequence__are_equal(const control_msgs__action__JointTrajectory_GetResult_Request__Sequence * lhs, const control_msgs__action__JointTrajectory_GetResult_Request__Sequence * rhs); - -/// Copy an array of action/JointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Request__Sequence__copy( - const control_msgs__action__JointTrajectory_GetResult_Request__Sequence * input, - control_msgs__action__JointTrajectory_GetResult_Request__Sequence * output); - -/// Initialize action/JointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__JointTrajectory_GetResult_Response - * )) before or use - * control_msgs__action__JointTrajectory_GetResult_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Response__init(control_msgs__action__JointTrajectory_GetResult_Response * msg); - -/// Finalize action/JointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_GetResult_Response__fini(control_msgs__action__JointTrajectory_GetResult_Response * msg); - -/// Create action/JointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__JointTrajectory_GetResult_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_GetResult_Response * -control_msgs__action__JointTrajectory_GetResult_Response__create(void); - -/// Destroy action/JointTrajectory message. -/** - * It calls - * control_msgs__action__JointTrajectory_GetResult_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_GetResult_Response__destroy(control_msgs__action__JointTrajectory_GetResult_Response * msg); - -/// Check for action/JointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Response__are_equal(const control_msgs__action__JointTrajectory_GetResult_Response * lhs, const control_msgs__action__JointTrajectory_GetResult_Response * rhs); - -/// Copy a action/JointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Response__copy( - const control_msgs__action__JointTrajectory_GetResult_Response * input, - control_msgs__action__JointTrajectory_GetResult_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__JointTrajectory_GetResult_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__JointTrajectory_GetResult_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__JointTrajectory_GetResult_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__JointTrajectory_GetResult_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/JointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__JointTrajectory_GetResult_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Response__Sequence__init(control_msgs__action__JointTrajectory_GetResult_Response__Sequence * array, size_t size); - -/// Finalize array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_GetResult_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_GetResult_Response__Sequence__fini(control_msgs__action__JointTrajectory_GetResult_Response__Sequence * array); - -/// Create array of action/JointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__JointTrajectory_GetResult_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_GetResult_Response__Sequence * -control_msgs__action__JointTrajectory_GetResult_Response__Sequence__create(size_t size); - -/// Destroy array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_GetResult_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_GetResult_Response__Sequence__destroy(control_msgs__action__JointTrajectory_GetResult_Response__Sequence * array); - -/// Check for action/JointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Response__Sequence__are_equal(const control_msgs__action__JointTrajectory_GetResult_Response__Sequence * lhs, const control_msgs__action__JointTrajectory_GetResult_Response__Sequence * rhs); - -/// Copy an array of action/JointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Response__Sequence__copy( - const control_msgs__action__JointTrajectory_GetResult_Response__Sequence * input, - control_msgs__action__JointTrajectory_GetResult_Response__Sequence * output); - -/// Initialize action/JointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__JointTrajectory_GetResult_Event - * )) before or use - * control_msgs__action__JointTrajectory_GetResult_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Event__init(control_msgs__action__JointTrajectory_GetResult_Event * msg); - -/// Finalize action/JointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_GetResult_Event__fini(control_msgs__action__JointTrajectory_GetResult_Event * msg); - -/// Create action/JointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__JointTrajectory_GetResult_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_GetResult_Event * -control_msgs__action__JointTrajectory_GetResult_Event__create(void); - -/// Destroy action/JointTrajectory message. -/** - * It calls - * control_msgs__action__JointTrajectory_GetResult_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_GetResult_Event__destroy(control_msgs__action__JointTrajectory_GetResult_Event * msg); - -/// Check for action/JointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Event__are_equal(const control_msgs__action__JointTrajectory_GetResult_Event * lhs, const control_msgs__action__JointTrajectory_GetResult_Event * rhs); - -/// Copy a action/JointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Event__copy( - const control_msgs__action__JointTrajectory_GetResult_Event * input, - control_msgs__action__JointTrajectory_GetResult_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__JointTrajectory_GetResult_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__JointTrajectory_GetResult_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__JointTrajectory_GetResult_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__JointTrajectory_GetResult_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/JointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__JointTrajectory_GetResult_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Event__Sequence__init(control_msgs__action__JointTrajectory_GetResult_Event__Sequence * array, size_t size); - -/// Finalize array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_GetResult_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_GetResult_Event__Sequence__fini(control_msgs__action__JointTrajectory_GetResult_Event__Sequence * array); - -/// Create array of action/JointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__JointTrajectory_GetResult_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_GetResult_Event__Sequence * -control_msgs__action__JointTrajectory_GetResult_Event__Sequence__create(size_t size); - -/// Destroy array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_GetResult_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_GetResult_Event__Sequence__destroy(control_msgs__action__JointTrajectory_GetResult_Event__Sequence * array); - -/// Check for action/JointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Event__Sequence__are_equal(const control_msgs__action__JointTrajectory_GetResult_Event__Sequence * lhs, const control_msgs__action__JointTrajectory_GetResult_Event__Sequence * rhs); - -/// Copy an array of action/JointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_GetResult_Event__Sequence__copy( - const control_msgs__action__JointTrajectory_GetResult_Event__Sequence * input, - control_msgs__action__JointTrajectory_GetResult_Event__Sequence * output); - -/// Initialize action/JointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__JointTrajectory_FeedbackMessage - * )) before or use - * control_msgs__action__JointTrajectory_FeedbackMessage__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_FeedbackMessage__init(control_msgs__action__JointTrajectory_FeedbackMessage * msg); - -/// Finalize action/JointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_FeedbackMessage__fini(control_msgs__action__JointTrajectory_FeedbackMessage * msg); - -/// Create action/JointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__JointTrajectory_FeedbackMessage__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_FeedbackMessage * -control_msgs__action__JointTrajectory_FeedbackMessage__create(void); - -/// Destroy action/JointTrajectory message. -/** - * It calls - * control_msgs__action__JointTrajectory_FeedbackMessage__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_FeedbackMessage__destroy(control_msgs__action__JointTrajectory_FeedbackMessage * msg); - -/// Check for action/JointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_FeedbackMessage__are_equal(const control_msgs__action__JointTrajectory_FeedbackMessage * lhs, const control_msgs__action__JointTrajectory_FeedbackMessage * rhs); - -/// Copy a action/JointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_FeedbackMessage__copy( - const control_msgs__action__JointTrajectory_FeedbackMessage * input, - control_msgs__action__JointTrajectory_FeedbackMessage * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__JointTrajectory_FeedbackMessage__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__JointTrajectory_FeedbackMessage__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__JointTrajectory_FeedbackMessage__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__JointTrajectory_FeedbackMessage__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/JointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__JointTrajectory_FeedbackMessage__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_FeedbackMessage__Sequence__init(control_msgs__action__JointTrajectory_FeedbackMessage__Sequence * array, size_t size); - -/// Finalize array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_FeedbackMessage__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_FeedbackMessage__Sequence__fini(control_msgs__action__JointTrajectory_FeedbackMessage__Sequence * array); - -/// Create array of action/JointTrajectory messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__JointTrajectory_FeedbackMessage__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__JointTrajectory_FeedbackMessage__Sequence * -control_msgs__action__JointTrajectory_FeedbackMessage__Sequence__create(size_t size); - -/// Destroy array of action/JointTrajectory messages. -/** - * It calls - * control_msgs__action__JointTrajectory_FeedbackMessage__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__JointTrajectory_FeedbackMessage__Sequence__destroy(control_msgs__action__JointTrajectory_FeedbackMessage__Sequence * array); - -/// Check for action/JointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_FeedbackMessage__Sequence__are_equal(const control_msgs__action__JointTrajectory_FeedbackMessage__Sequence * lhs, const control_msgs__action__JointTrajectory_FeedbackMessage__Sequence * rhs); - -/// Copy an array of action/JointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__JointTrajectory_FeedbackMessage__Sequence__copy( - const control_msgs__action__JointTrajectory_FeedbackMessage__Sequence * input, - control_msgs__action__JointTrajectory_FeedbackMessage__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__JOINT_TRAJECTORY__FUNCTIONS_H_ diff --git a/src/control_msgs/action/detail/joint_trajectory__rosidl_typesupport_introspection_c.h b/src/control_msgs/action/detail/joint_trajectory__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 8c513737a..000000000 --- a/src/control_msgs/action/detail/joint_trajectory__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,146 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:action/JointTrajectory.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__ACTION__DETAIL__JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__ACTION__DETAIL__JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, JointTrajectory_Goal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, JointTrajectory_Result)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, JointTrajectory_Feedback)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, JointTrajectory_SendGoal_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, JointTrajectory_SendGoal_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, JointTrajectory_SendGoal_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, JointTrajectory_SendGoal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, JointTrajectory_GetResult_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, JointTrajectory_GetResult_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, JointTrajectory_GetResult_Event)(); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, JointTrajectory_GetResult)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, JointTrajectory_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/action/detail/joint_trajectory__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/action/detail/joint_trajectory__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 5e7506e8c..000000000 --- a/src/control_msgs/action/detail/joint_trajectory__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,411 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:action/JointTrajectory.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__ACTION__JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__ACTION__JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__JointTrajectory_Goal( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__JointTrajectory_Goal( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, JointTrajectory_Goal)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__JointTrajectory_Result( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__JointTrajectory_Result( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, JointTrajectory_Result)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__JointTrajectory_Feedback( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__JointTrajectory_Feedback( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, JointTrajectory_Feedback)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__JointTrajectory_SendGoal_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__JointTrajectory_SendGoal_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, JointTrajectory_SendGoal_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__JointTrajectory_SendGoal_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__JointTrajectory_SendGoal_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, JointTrajectory_SendGoal_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__JointTrajectory_SendGoal_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__JointTrajectory_SendGoal_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, JointTrajectory_SendGoal_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, JointTrajectory_SendGoal)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__JointTrajectory_GetResult_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__JointTrajectory_GetResult_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, JointTrajectory_GetResult_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__JointTrajectory_GetResult_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__JointTrajectory_GetResult_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, JointTrajectory_GetResult_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__JointTrajectory_GetResult_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__JointTrajectory_GetResult_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, JointTrajectory_GetResult_Event)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, JointTrajectory_GetResult)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__JointTrajectory_FeedbackMessage( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__JointTrajectory_FeedbackMessage( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, JointTrajectory_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__ACTION__JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/action/detail/joint_trajectory__struct.h b/src/control_msgs/action/detail/joint_trajectory__struct.h deleted file mode 100755 index bc4740da4..000000000 --- a/src/control_msgs/action/detail/joint_trajectory__struct.h +++ /dev/null @@ -1,278 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:action/JointTrajectory.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/joint_trajectory.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__JOINT_TRAJECTORY__STRUCT_H_ -#define CONTROL_MSGS__ACTION__DETAIL__JOINT_TRAJECTORY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'trajectory' -#include "trajectory_msgs/msg/detail/joint_trajectory__struct.h" - -/// Struct defined in action/JointTrajectory in the package control_msgs. -typedef struct control_msgs__action__JointTrajectory_Goal -{ - trajectory_msgs__msg__JointTrajectory trajectory; -} control_msgs__action__JointTrajectory_Goal; - -// Struct for a sequence of control_msgs__action__JointTrajectory_Goal. -typedef struct control_msgs__action__JointTrajectory_Goal__Sequence -{ - control_msgs__action__JointTrajectory_Goal * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__JointTrajectory_Goal__Sequence; - -// Constants defined in the message - -/// Struct defined in action/JointTrajectory in the package control_msgs. -typedef struct control_msgs__action__JointTrajectory_Result -{ - uint8_t structure_needs_at_least_one_member; -} control_msgs__action__JointTrajectory_Result; - -// Struct for a sequence of control_msgs__action__JointTrajectory_Result. -typedef struct control_msgs__action__JointTrajectory_Result__Sequence -{ - control_msgs__action__JointTrajectory_Result * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__JointTrajectory_Result__Sequence; - -// Constants defined in the message - -/// Struct defined in action/JointTrajectory in the package control_msgs. -typedef struct control_msgs__action__JointTrajectory_Feedback -{ - uint8_t structure_needs_at_least_one_member; -} control_msgs__action__JointTrajectory_Feedback; - -// Struct for a sequence of control_msgs__action__JointTrajectory_Feedback. -typedef struct control_msgs__action__JointTrajectory_Feedback__Sequence -{ - control_msgs__action__JointTrajectory_Feedback * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__JointTrajectory_Feedback__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -#include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'goal' -#include "control_msgs/action/detail/joint_trajectory__struct.h" - -/// Struct defined in action/JointTrajectory in the package control_msgs. -typedef struct control_msgs__action__JointTrajectory_SendGoal_Request -{ - unique_identifier_msgs__msg__UUID goal_id; - control_msgs__action__JointTrajectory_Goal goal; -} control_msgs__action__JointTrajectory_SendGoal_Request; - -// Struct for a sequence of control_msgs__action__JointTrajectory_SendGoal_Request. -typedef struct control_msgs__action__JointTrajectory_SendGoal_Request__Sequence -{ - control_msgs__action__JointTrajectory_SendGoal_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__JointTrajectory_SendGoal_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'stamp' -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in action/JointTrajectory in the package control_msgs. -typedef struct control_msgs__action__JointTrajectory_SendGoal_Response -{ - bool accepted; - builtin_interfaces__msg__Time stamp; -} control_msgs__action__JointTrajectory_SendGoal_Response; - -// Struct for a sequence of control_msgs__action__JointTrajectory_SendGoal_Response. -typedef struct control_msgs__action__JointTrajectory_SendGoal_Response__Sequence -{ - control_msgs__action__JointTrajectory_SendGoal_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__JointTrajectory_SendGoal_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - control_msgs__action__JointTrajectory_SendGoal_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - control_msgs__action__JointTrajectory_SendGoal_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/JointTrajectory in the package control_msgs. -typedef struct control_msgs__action__JointTrajectory_SendGoal_Event -{ - service_msgs__msg__ServiceEventInfo info; - control_msgs__action__JointTrajectory_SendGoal_Request__Sequence request; - control_msgs__action__JointTrajectory_SendGoal_Response__Sequence response; -} control_msgs__action__JointTrajectory_SendGoal_Event; - -// Struct for a sequence of control_msgs__action__JointTrajectory_SendGoal_Event. -typedef struct control_msgs__action__JointTrajectory_SendGoal_Event__Sequence -{ - control_msgs__action__JointTrajectory_SendGoal_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__JointTrajectory_SendGoal_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" - -/// Struct defined in action/JointTrajectory in the package control_msgs. -typedef struct control_msgs__action__JointTrajectory_GetResult_Request -{ - unique_identifier_msgs__msg__UUID goal_id; -} control_msgs__action__JointTrajectory_GetResult_Request; - -// Struct for a sequence of control_msgs__action__JointTrajectory_GetResult_Request. -typedef struct control_msgs__action__JointTrajectory_GetResult_Request__Sequence -{ - control_msgs__action__JointTrajectory_GetResult_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__JointTrajectory_GetResult_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'result' -// already included above -// #include "control_msgs/action/detail/joint_trajectory__struct.h" - -/// Struct defined in action/JointTrajectory in the package control_msgs. -typedef struct control_msgs__action__JointTrajectory_GetResult_Response -{ - int8_t status; - control_msgs__action__JointTrajectory_Result result; -} control_msgs__action__JointTrajectory_GetResult_Response; - -// Struct for a sequence of control_msgs__action__JointTrajectory_GetResult_Response. -typedef struct control_msgs__action__JointTrajectory_GetResult_Response__Sequence -{ - control_msgs__action__JointTrajectory_GetResult_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__JointTrajectory_GetResult_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -// already included above -// #include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - control_msgs__action__JointTrajectory_GetResult_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - control_msgs__action__JointTrajectory_GetResult_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/JointTrajectory in the package control_msgs. -typedef struct control_msgs__action__JointTrajectory_GetResult_Event -{ - service_msgs__msg__ServiceEventInfo info; - control_msgs__action__JointTrajectory_GetResult_Request__Sequence request; - control_msgs__action__JointTrajectory_GetResult_Response__Sequence response; -} control_msgs__action__JointTrajectory_GetResult_Event; - -// Struct for a sequence of control_msgs__action__JointTrajectory_GetResult_Event. -typedef struct control_msgs__action__JointTrajectory_GetResult_Event__Sequence -{ - control_msgs__action__JointTrajectory_GetResult_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__JointTrajectory_GetResult_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'feedback' -// already included above -// #include "control_msgs/action/detail/joint_trajectory__struct.h" - -/// Struct defined in action/JointTrajectory in the package control_msgs. -typedef struct control_msgs__action__JointTrajectory_FeedbackMessage -{ - unique_identifier_msgs__msg__UUID goal_id; - control_msgs__action__JointTrajectory_Feedback feedback; -} control_msgs__action__JointTrajectory_FeedbackMessage; - -// Struct for a sequence of control_msgs__action__JointTrajectory_FeedbackMessage. -typedef struct control_msgs__action__JointTrajectory_FeedbackMessage__Sequence -{ - control_msgs__action__JointTrajectory_FeedbackMessage * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__JointTrajectory_FeedbackMessage__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__JOINT_TRAJECTORY__STRUCT_H_ diff --git a/src/control_msgs/action/detail/joint_trajectory__type_support.h b/src/control_msgs/action/detail/joint_trajectory__type_support.h deleted file mode 100755 index 32c6e1a0e..000000000 --- a/src/control_msgs/action/detail/joint_trajectory__type_support.h +++ /dev/null @@ -1,242 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:action/JointTrajectory.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/joint_trajectory.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__JOINT_TRAJECTORY__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__ACTION__DETAIL__JOINT_TRAJECTORY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/action_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_action_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__ACTION_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory -)(void); - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_Goal -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_Result -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_Feedback -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_SendGoal_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_SendGoal_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_SendGoal_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_SendGoal -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_SendGoal -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_SendGoal -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_GetResult_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_GetResult_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_GetResult_Event -)(void); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_GetResult -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_GetResult -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_GetResult -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - JointTrajectory_FeedbackMessage -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__JOINT_TRAJECTORY__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/action/detail/point_head__functions.h b/src/control_msgs/action/detail/point_head__functions.h deleted file mode 100755 index 59ad0b55b..000000000 --- a/src/control_msgs/action/detail/point_head__functions.h +++ /dev/null @@ -1,1866 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:action/PointHead.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/point_head.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__POINT_HEAD__FUNCTIONS_H_ -#define CONTROL_MSGS__ACTION__DETAIL__POINT_HEAD__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/action/detail/point_head__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__PointHead__get_type_hash( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__PointHead__get_type_description( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__PointHead__get_individual_type_description_source( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__PointHead__get_type_description_sources( - const rosidl_action_type_support_t * type_support); - -/// Initialize action/PointHead message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__PointHead_Goal - * )) before or use - * control_msgs__action__PointHead_Goal__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Goal__init(control_msgs__action__PointHead_Goal * msg); - -/// Finalize action/PointHead message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_Goal__fini(control_msgs__action__PointHead_Goal * msg); - -/// Create action/PointHead message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__PointHead_Goal__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_Goal * -control_msgs__action__PointHead_Goal__create(void); - -/// Destroy action/PointHead message. -/** - * It calls - * control_msgs__action__PointHead_Goal__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_Goal__destroy(control_msgs__action__PointHead_Goal * msg); - -/// Check for action/PointHead message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Goal__are_equal(const control_msgs__action__PointHead_Goal * lhs, const control_msgs__action__PointHead_Goal * rhs); - -/// Copy a action/PointHead message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Goal__copy( - const control_msgs__action__PointHead_Goal * input, - control_msgs__action__PointHead_Goal * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__PointHead_Goal__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__PointHead_Goal__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__PointHead_Goal__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__PointHead_Goal__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/PointHead messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__PointHead_Goal__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Goal__Sequence__init(control_msgs__action__PointHead_Goal__Sequence * array, size_t size); - -/// Finalize array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_Goal__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_Goal__Sequence__fini(control_msgs__action__PointHead_Goal__Sequence * array); - -/// Create array of action/PointHead messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__PointHead_Goal__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_Goal__Sequence * -control_msgs__action__PointHead_Goal__Sequence__create(size_t size); - -/// Destroy array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_Goal__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_Goal__Sequence__destroy(control_msgs__action__PointHead_Goal__Sequence * array); - -/// Check for action/PointHead message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Goal__Sequence__are_equal(const control_msgs__action__PointHead_Goal__Sequence * lhs, const control_msgs__action__PointHead_Goal__Sequence * rhs); - -/// Copy an array of action/PointHead messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Goal__Sequence__copy( - const control_msgs__action__PointHead_Goal__Sequence * input, - control_msgs__action__PointHead_Goal__Sequence * output); - -/// Initialize action/PointHead message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__PointHead_Result - * )) before or use - * control_msgs__action__PointHead_Result__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Result__init(control_msgs__action__PointHead_Result * msg); - -/// Finalize action/PointHead message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_Result__fini(control_msgs__action__PointHead_Result * msg); - -/// Create action/PointHead message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__PointHead_Result__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_Result * -control_msgs__action__PointHead_Result__create(void); - -/// Destroy action/PointHead message. -/** - * It calls - * control_msgs__action__PointHead_Result__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_Result__destroy(control_msgs__action__PointHead_Result * msg); - -/// Check for action/PointHead message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Result__are_equal(const control_msgs__action__PointHead_Result * lhs, const control_msgs__action__PointHead_Result * rhs); - -/// Copy a action/PointHead message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Result__copy( - const control_msgs__action__PointHead_Result * input, - control_msgs__action__PointHead_Result * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__PointHead_Result__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__PointHead_Result__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__PointHead_Result__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__PointHead_Result__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/PointHead messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__PointHead_Result__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Result__Sequence__init(control_msgs__action__PointHead_Result__Sequence * array, size_t size); - -/// Finalize array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_Result__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_Result__Sequence__fini(control_msgs__action__PointHead_Result__Sequence * array); - -/// Create array of action/PointHead messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__PointHead_Result__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_Result__Sequence * -control_msgs__action__PointHead_Result__Sequence__create(size_t size); - -/// Destroy array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_Result__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_Result__Sequence__destroy(control_msgs__action__PointHead_Result__Sequence * array); - -/// Check for action/PointHead message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Result__Sequence__are_equal(const control_msgs__action__PointHead_Result__Sequence * lhs, const control_msgs__action__PointHead_Result__Sequence * rhs); - -/// Copy an array of action/PointHead messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Result__Sequence__copy( - const control_msgs__action__PointHead_Result__Sequence * input, - control_msgs__action__PointHead_Result__Sequence * output); - -/// Initialize action/PointHead message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__PointHead_Feedback - * )) before or use - * control_msgs__action__PointHead_Feedback__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Feedback__init(control_msgs__action__PointHead_Feedback * msg); - -/// Finalize action/PointHead message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_Feedback__fini(control_msgs__action__PointHead_Feedback * msg); - -/// Create action/PointHead message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__PointHead_Feedback__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_Feedback * -control_msgs__action__PointHead_Feedback__create(void); - -/// Destroy action/PointHead message. -/** - * It calls - * control_msgs__action__PointHead_Feedback__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_Feedback__destroy(control_msgs__action__PointHead_Feedback * msg); - -/// Check for action/PointHead message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Feedback__are_equal(const control_msgs__action__PointHead_Feedback * lhs, const control_msgs__action__PointHead_Feedback * rhs); - -/// Copy a action/PointHead message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Feedback__copy( - const control_msgs__action__PointHead_Feedback * input, - control_msgs__action__PointHead_Feedback * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__PointHead_Feedback__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__PointHead_Feedback__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__PointHead_Feedback__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__PointHead_Feedback__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/PointHead messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__PointHead_Feedback__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Feedback__Sequence__init(control_msgs__action__PointHead_Feedback__Sequence * array, size_t size); - -/// Finalize array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_Feedback__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_Feedback__Sequence__fini(control_msgs__action__PointHead_Feedback__Sequence * array); - -/// Create array of action/PointHead messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__PointHead_Feedback__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_Feedback__Sequence * -control_msgs__action__PointHead_Feedback__Sequence__create(size_t size); - -/// Destroy array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_Feedback__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_Feedback__Sequence__destroy(control_msgs__action__PointHead_Feedback__Sequence * array); - -/// Check for action/PointHead message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Feedback__Sequence__are_equal(const control_msgs__action__PointHead_Feedback__Sequence * lhs, const control_msgs__action__PointHead_Feedback__Sequence * rhs); - -/// Copy an array of action/PointHead messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_Feedback__Sequence__copy( - const control_msgs__action__PointHead_Feedback__Sequence * input, - control_msgs__action__PointHead_Feedback__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__PointHead_SendGoal__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__PointHead_SendGoal__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__PointHead_SendGoal__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__PointHead_SendGoal__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/PointHead message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__PointHead_SendGoal_Request - * )) before or use - * control_msgs__action__PointHead_SendGoal_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Request__init(control_msgs__action__PointHead_SendGoal_Request * msg); - -/// Finalize action/PointHead message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_SendGoal_Request__fini(control_msgs__action__PointHead_SendGoal_Request * msg); - -/// Create action/PointHead message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__PointHead_SendGoal_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_SendGoal_Request * -control_msgs__action__PointHead_SendGoal_Request__create(void); - -/// Destroy action/PointHead message. -/** - * It calls - * control_msgs__action__PointHead_SendGoal_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_SendGoal_Request__destroy(control_msgs__action__PointHead_SendGoal_Request * msg); - -/// Check for action/PointHead message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Request__are_equal(const control_msgs__action__PointHead_SendGoal_Request * lhs, const control_msgs__action__PointHead_SendGoal_Request * rhs); - -/// Copy a action/PointHead message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Request__copy( - const control_msgs__action__PointHead_SendGoal_Request * input, - control_msgs__action__PointHead_SendGoal_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__PointHead_SendGoal_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__PointHead_SendGoal_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__PointHead_SendGoal_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__PointHead_SendGoal_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/PointHead messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__PointHead_SendGoal_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Request__Sequence__init(control_msgs__action__PointHead_SendGoal_Request__Sequence * array, size_t size); - -/// Finalize array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_SendGoal_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_SendGoal_Request__Sequence__fini(control_msgs__action__PointHead_SendGoal_Request__Sequence * array); - -/// Create array of action/PointHead messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__PointHead_SendGoal_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_SendGoal_Request__Sequence * -control_msgs__action__PointHead_SendGoal_Request__Sequence__create(size_t size); - -/// Destroy array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_SendGoal_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_SendGoal_Request__Sequence__destroy(control_msgs__action__PointHead_SendGoal_Request__Sequence * array); - -/// Check for action/PointHead message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Request__Sequence__are_equal(const control_msgs__action__PointHead_SendGoal_Request__Sequence * lhs, const control_msgs__action__PointHead_SendGoal_Request__Sequence * rhs); - -/// Copy an array of action/PointHead messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Request__Sequence__copy( - const control_msgs__action__PointHead_SendGoal_Request__Sequence * input, - control_msgs__action__PointHead_SendGoal_Request__Sequence * output); - -/// Initialize action/PointHead message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__PointHead_SendGoal_Response - * )) before or use - * control_msgs__action__PointHead_SendGoal_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Response__init(control_msgs__action__PointHead_SendGoal_Response * msg); - -/// Finalize action/PointHead message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_SendGoal_Response__fini(control_msgs__action__PointHead_SendGoal_Response * msg); - -/// Create action/PointHead message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__PointHead_SendGoal_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_SendGoal_Response * -control_msgs__action__PointHead_SendGoal_Response__create(void); - -/// Destroy action/PointHead message. -/** - * It calls - * control_msgs__action__PointHead_SendGoal_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_SendGoal_Response__destroy(control_msgs__action__PointHead_SendGoal_Response * msg); - -/// Check for action/PointHead message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Response__are_equal(const control_msgs__action__PointHead_SendGoal_Response * lhs, const control_msgs__action__PointHead_SendGoal_Response * rhs); - -/// Copy a action/PointHead message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Response__copy( - const control_msgs__action__PointHead_SendGoal_Response * input, - control_msgs__action__PointHead_SendGoal_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__PointHead_SendGoal_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__PointHead_SendGoal_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__PointHead_SendGoal_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__PointHead_SendGoal_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/PointHead messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__PointHead_SendGoal_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Response__Sequence__init(control_msgs__action__PointHead_SendGoal_Response__Sequence * array, size_t size); - -/// Finalize array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_SendGoal_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_SendGoal_Response__Sequence__fini(control_msgs__action__PointHead_SendGoal_Response__Sequence * array); - -/// Create array of action/PointHead messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__PointHead_SendGoal_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_SendGoal_Response__Sequence * -control_msgs__action__PointHead_SendGoal_Response__Sequence__create(size_t size); - -/// Destroy array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_SendGoal_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_SendGoal_Response__Sequence__destroy(control_msgs__action__PointHead_SendGoal_Response__Sequence * array); - -/// Check for action/PointHead message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Response__Sequence__are_equal(const control_msgs__action__PointHead_SendGoal_Response__Sequence * lhs, const control_msgs__action__PointHead_SendGoal_Response__Sequence * rhs); - -/// Copy an array of action/PointHead messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Response__Sequence__copy( - const control_msgs__action__PointHead_SendGoal_Response__Sequence * input, - control_msgs__action__PointHead_SendGoal_Response__Sequence * output); - -/// Initialize action/PointHead message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__PointHead_SendGoal_Event - * )) before or use - * control_msgs__action__PointHead_SendGoal_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Event__init(control_msgs__action__PointHead_SendGoal_Event * msg); - -/// Finalize action/PointHead message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_SendGoal_Event__fini(control_msgs__action__PointHead_SendGoal_Event * msg); - -/// Create action/PointHead message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__PointHead_SendGoal_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_SendGoal_Event * -control_msgs__action__PointHead_SendGoal_Event__create(void); - -/// Destroy action/PointHead message. -/** - * It calls - * control_msgs__action__PointHead_SendGoal_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_SendGoal_Event__destroy(control_msgs__action__PointHead_SendGoal_Event * msg); - -/// Check for action/PointHead message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Event__are_equal(const control_msgs__action__PointHead_SendGoal_Event * lhs, const control_msgs__action__PointHead_SendGoal_Event * rhs); - -/// Copy a action/PointHead message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Event__copy( - const control_msgs__action__PointHead_SendGoal_Event * input, - control_msgs__action__PointHead_SendGoal_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__PointHead_SendGoal_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__PointHead_SendGoal_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__PointHead_SendGoal_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__PointHead_SendGoal_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/PointHead messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__PointHead_SendGoal_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Event__Sequence__init(control_msgs__action__PointHead_SendGoal_Event__Sequence * array, size_t size); - -/// Finalize array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_SendGoal_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_SendGoal_Event__Sequence__fini(control_msgs__action__PointHead_SendGoal_Event__Sequence * array); - -/// Create array of action/PointHead messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__PointHead_SendGoal_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_SendGoal_Event__Sequence * -control_msgs__action__PointHead_SendGoal_Event__Sequence__create(size_t size); - -/// Destroy array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_SendGoal_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_SendGoal_Event__Sequence__destroy(control_msgs__action__PointHead_SendGoal_Event__Sequence * array); - -/// Check for action/PointHead message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Event__Sequence__are_equal(const control_msgs__action__PointHead_SendGoal_Event__Sequence * lhs, const control_msgs__action__PointHead_SendGoal_Event__Sequence * rhs); - -/// Copy an array of action/PointHead messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_SendGoal_Event__Sequence__copy( - const control_msgs__action__PointHead_SendGoal_Event__Sequence * input, - control_msgs__action__PointHead_SendGoal_Event__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__PointHead_GetResult__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__PointHead_GetResult__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__PointHead_GetResult__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__PointHead_GetResult__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/PointHead message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__PointHead_GetResult_Request - * )) before or use - * control_msgs__action__PointHead_GetResult_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Request__init(control_msgs__action__PointHead_GetResult_Request * msg); - -/// Finalize action/PointHead message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_GetResult_Request__fini(control_msgs__action__PointHead_GetResult_Request * msg); - -/// Create action/PointHead message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__PointHead_GetResult_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_GetResult_Request * -control_msgs__action__PointHead_GetResult_Request__create(void); - -/// Destroy action/PointHead message. -/** - * It calls - * control_msgs__action__PointHead_GetResult_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_GetResult_Request__destroy(control_msgs__action__PointHead_GetResult_Request * msg); - -/// Check for action/PointHead message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Request__are_equal(const control_msgs__action__PointHead_GetResult_Request * lhs, const control_msgs__action__PointHead_GetResult_Request * rhs); - -/// Copy a action/PointHead message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Request__copy( - const control_msgs__action__PointHead_GetResult_Request * input, - control_msgs__action__PointHead_GetResult_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__PointHead_GetResult_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__PointHead_GetResult_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__PointHead_GetResult_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__PointHead_GetResult_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/PointHead messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__PointHead_GetResult_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Request__Sequence__init(control_msgs__action__PointHead_GetResult_Request__Sequence * array, size_t size); - -/// Finalize array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_GetResult_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_GetResult_Request__Sequence__fini(control_msgs__action__PointHead_GetResult_Request__Sequence * array); - -/// Create array of action/PointHead messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__PointHead_GetResult_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_GetResult_Request__Sequence * -control_msgs__action__PointHead_GetResult_Request__Sequence__create(size_t size); - -/// Destroy array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_GetResult_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_GetResult_Request__Sequence__destroy(control_msgs__action__PointHead_GetResult_Request__Sequence * array); - -/// Check for action/PointHead message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Request__Sequence__are_equal(const control_msgs__action__PointHead_GetResult_Request__Sequence * lhs, const control_msgs__action__PointHead_GetResult_Request__Sequence * rhs); - -/// Copy an array of action/PointHead messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Request__Sequence__copy( - const control_msgs__action__PointHead_GetResult_Request__Sequence * input, - control_msgs__action__PointHead_GetResult_Request__Sequence * output); - -/// Initialize action/PointHead message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__PointHead_GetResult_Response - * )) before or use - * control_msgs__action__PointHead_GetResult_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Response__init(control_msgs__action__PointHead_GetResult_Response * msg); - -/// Finalize action/PointHead message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_GetResult_Response__fini(control_msgs__action__PointHead_GetResult_Response * msg); - -/// Create action/PointHead message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__PointHead_GetResult_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_GetResult_Response * -control_msgs__action__PointHead_GetResult_Response__create(void); - -/// Destroy action/PointHead message. -/** - * It calls - * control_msgs__action__PointHead_GetResult_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_GetResult_Response__destroy(control_msgs__action__PointHead_GetResult_Response * msg); - -/// Check for action/PointHead message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Response__are_equal(const control_msgs__action__PointHead_GetResult_Response * lhs, const control_msgs__action__PointHead_GetResult_Response * rhs); - -/// Copy a action/PointHead message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Response__copy( - const control_msgs__action__PointHead_GetResult_Response * input, - control_msgs__action__PointHead_GetResult_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__PointHead_GetResult_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__PointHead_GetResult_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__PointHead_GetResult_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__PointHead_GetResult_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/PointHead messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__PointHead_GetResult_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Response__Sequence__init(control_msgs__action__PointHead_GetResult_Response__Sequence * array, size_t size); - -/// Finalize array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_GetResult_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_GetResult_Response__Sequence__fini(control_msgs__action__PointHead_GetResult_Response__Sequence * array); - -/// Create array of action/PointHead messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__PointHead_GetResult_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_GetResult_Response__Sequence * -control_msgs__action__PointHead_GetResult_Response__Sequence__create(size_t size); - -/// Destroy array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_GetResult_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_GetResult_Response__Sequence__destroy(control_msgs__action__PointHead_GetResult_Response__Sequence * array); - -/// Check for action/PointHead message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Response__Sequence__are_equal(const control_msgs__action__PointHead_GetResult_Response__Sequence * lhs, const control_msgs__action__PointHead_GetResult_Response__Sequence * rhs); - -/// Copy an array of action/PointHead messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Response__Sequence__copy( - const control_msgs__action__PointHead_GetResult_Response__Sequence * input, - control_msgs__action__PointHead_GetResult_Response__Sequence * output); - -/// Initialize action/PointHead message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__PointHead_GetResult_Event - * )) before or use - * control_msgs__action__PointHead_GetResult_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Event__init(control_msgs__action__PointHead_GetResult_Event * msg); - -/// Finalize action/PointHead message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_GetResult_Event__fini(control_msgs__action__PointHead_GetResult_Event * msg); - -/// Create action/PointHead message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__PointHead_GetResult_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_GetResult_Event * -control_msgs__action__PointHead_GetResult_Event__create(void); - -/// Destroy action/PointHead message. -/** - * It calls - * control_msgs__action__PointHead_GetResult_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_GetResult_Event__destroy(control_msgs__action__PointHead_GetResult_Event * msg); - -/// Check for action/PointHead message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Event__are_equal(const control_msgs__action__PointHead_GetResult_Event * lhs, const control_msgs__action__PointHead_GetResult_Event * rhs); - -/// Copy a action/PointHead message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Event__copy( - const control_msgs__action__PointHead_GetResult_Event * input, - control_msgs__action__PointHead_GetResult_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__PointHead_GetResult_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__PointHead_GetResult_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__PointHead_GetResult_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__PointHead_GetResult_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/PointHead messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__PointHead_GetResult_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Event__Sequence__init(control_msgs__action__PointHead_GetResult_Event__Sequence * array, size_t size); - -/// Finalize array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_GetResult_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_GetResult_Event__Sequence__fini(control_msgs__action__PointHead_GetResult_Event__Sequence * array); - -/// Create array of action/PointHead messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__PointHead_GetResult_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_GetResult_Event__Sequence * -control_msgs__action__PointHead_GetResult_Event__Sequence__create(size_t size); - -/// Destroy array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_GetResult_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_GetResult_Event__Sequence__destroy(control_msgs__action__PointHead_GetResult_Event__Sequence * array); - -/// Check for action/PointHead message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Event__Sequence__are_equal(const control_msgs__action__PointHead_GetResult_Event__Sequence * lhs, const control_msgs__action__PointHead_GetResult_Event__Sequence * rhs); - -/// Copy an array of action/PointHead messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_GetResult_Event__Sequence__copy( - const control_msgs__action__PointHead_GetResult_Event__Sequence * input, - control_msgs__action__PointHead_GetResult_Event__Sequence * output); - -/// Initialize action/PointHead message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__PointHead_FeedbackMessage - * )) before or use - * control_msgs__action__PointHead_FeedbackMessage__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_FeedbackMessage__init(control_msgs__action__PointHead_FeedbackMessage * msg); - -/// Finalize action/PointHead message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_FeedbackMessage__fini(control_msgs__action__PointHead_FeedbackMessage * msg); - -/// Create action/PointHead message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__PointHead_FeedbackMessage__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_FeedbackMessage * -control_msgs__action__PointHead_FeedbackMessage__create(void); - -/// Destroy action/PointHead message. -/** - * It calls - * control_msgs__action__PointHead_FeedbackMessage__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_FeedbackMessage__destroy(control_msgs__action__PointHead_FeedbackMessage * msg); - -/// Check for action/PointHead message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_FeedbackMessage__are_equal(const control_msgs__action__PointHead_FeedbackMessage * lhs, const control_msgs__action__PointHead_FeedbackMessage * rhs); - -/// Copy a action/PointHead message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_FeedbackMessage__copy( - const control_msgs__action__PointHead_FeedbackMessage * input, - control_msgs__action__PointHead_FeedbackMessage * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__PointHead_FeedbackMessage__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__PointHead_FeedbackMessage__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__PointHead_FeedbackMessage__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__PointHead_FeedbackMessage__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/PointHead messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__PointHead_FeedbackMessage__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_FeedbackMessage__Sequence__init(control_msgs__action__PointHead_FeedbackMessage__Sequence * array, size_t size); - -/// Finalize array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_FeedbackMessage__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_FeedbackMessage__Sequence__fini(control_msgs__action__PointHead_FeedbackMessage__Sequence * array); - -/// Create array of action/PointHead messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__PointHead_FeedbackMessage__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__PointHead_FeedbackMessage__Sequence * -control_msgs__action__PointHead_FeedbackMessage__Sequence__create(size_t size); - -/// Destroy array of action/PointHead messages. -/** - * It calls - * control_msgs__action__PointHead_FeedbackMessage__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__PointHead_FeedbackMessage__Sequence__destroy(control_msgs__action__PointHead_FeedbackMessage__Sequence * array); - -/// Check for action/PointHead message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_FeedbackMessage__Sequence__are_equal(const control_msgs__action__PointHead_FeedbackMessage__Sequence * lhs, const control_msgs__action__PointHead_FeedbackMessage__Sequence * rhs); - -/// Copy an array of action/PointHead messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__PointHead_FeedbackMessage__Sequence__copy( - const control_msgs__action__PointHead_FeedbackMessage__Sequence * input, - control_msgs__action__PointHead_FeedbackMessage__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__POINT_HEAD__FUNCTIONS_H_ diff --git a/src/control_msgs/action/detail/point_head__rosidl_typesupport_introspection_c.h b/src/control_msgs/action/detail/point_head__rosidl_typesupport_introspection_c.h deleted file mode 100755 index a1bfa2222..000000000 --- a/src/control_msgs/action/detail/point_head__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,146 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:action/PointHead.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__ACTION__DETAIL__POINT_HEAD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__ACTION__DETAIL__POINT_HEAD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, PointHead_Goal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, PointHead_Result)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, PointHead_Feedback)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, PointHead_SendGoal_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, PointHead_SendGoal_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, PointHead_SendGoal_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, PointHead_SendGoal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, PointHead_GetResult_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, PointHead_GetResult_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, PointHead_GetResult_Event)(); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, PointHead_GetResult)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, PointHead_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__POINT_HEAD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/action/detail/point_head__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/action/detail/point_head__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index d9ddcddf3..000000000 --- a/src/control_msgs/action/detail/point_head__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,411 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:action/PointHead.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__ACTION__POINT_HEAD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__ACTION__POINT_HEAD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__PointHead_Goal( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__PointHead_Goal( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, PointHead_Goal)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__PointHead_Result( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__PointHead_Result( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, PointHead_Result)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__PointHead_Feedback( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__PointHead_Feedback( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, PointHead_Feedback)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__PointHead_SendGoal_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__PointHead_SendGoal_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, PointHead_SendGoal_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__PointHead_SendGoal_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__PointHead_SendGoal_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, PointHead_SendGoal_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__PointHead_SendGoal_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__PointHead_SendGoal_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, PointHead_SendGoal_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, PointHead_SendGoal)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__PointHead_GetResult_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__PointHead_GetResult_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, PointHead_GetResult_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__PointHead_GetResult_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__PointHead_GetResult_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, PointHead_GetResult_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__PointHead_GetResult_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__PointHead_GetResult_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, PointHead_GetResult_Event)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, PointHead_GetResult)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__PointHead_FeedbackMessage( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__PointHead_FeedbackMessage( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, PointHead_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__ACTION__POINT_HEAD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/action/detail/point_head__struct.h b/src/control_msgs/action/detail/point_head__struct.h deleted file mode 100755 index 40f462ec2..000000000 --- a/src/control_msgs/action/detail/point_head__struct.h +++ /dev/null @@ -1,288 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:action/PointHead.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/point_head.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__POINT_HEAD__STRUCT_H_ -#define CONTROL_MSGS__ACTION__DETAIL__POINT_HEAD__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'target' -#include "geometry_msgs/msg/detail/point_stamped__struct.h" -// Member 'pointing_axis' -#include "geometry_msgs/msg/detail/vector3__struct.h" -// Member 'pointing_frame' -#include "rosidl_runtime_c/string.h" -// Member 'min_duration' -#include "builtin_interfaces/msg/detail/duration__struct.h" - -/// Struct defined in action/PointHead in the package control_msgs. -typedef struct control_msgs__action__PointHead_Goal -{ - geometry_msgs__msg__PointStamped target; - geometry_msgs__msg__Vector3 pointing_axis; - rosidl_runtime_c__String pointing_frame; - builtin_interfaces__msg__Duration min_duration; - double max_velocity; -} control_msgs__action__PointHead_Goal; - -// Struct for a sequence of control_msgs__action__PointHead_Goal. -typedef struct control_msgs__action__PointHead_Goal__Sequence -{ - control_msgs__action__PointHead_Goal * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__PointHead_Goal__Sequence; - -// Constants defined in the message - -/// Struct defined in action/PointHead in the package control_msgs. -typedef struct control_msgs__action__PointHead_Result -{ - uint8_t structure_needs_at_least_one_member; -} control_msgs__action__PointHead_Result; - -// Struct for a sequence of control_msgs__action__PointHead_Result. -typedef struct control_msgs__action__PointHead_Result__Sequence -{ - control_msgs__action__PointHead_Result * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__PointHead_Result__Sequence; - -// Constants defined in the message - -/// Struct defined in action/PointHead in the package control_msgs. -typedef struct control_msgs__action__PointHead_Feedback -{ - double pointing_angle_error; -} control_msgs__action__PointHead_Feedback; - -// Struct for a sequence of control_msgs__action__PointHead_Feedback. -typedef struct control_msgs__action__PointHead_Feedback__Sequence -{ - control_msgs__action__PointHead_Feedback * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__PointHead_Feedback__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -#include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'goal' -#include "control_msgs/action/detail/point_head__struct.h" - -/// Struct defined in action/PointHead in the package control_msgs. -typedef struct control_msgs__action__PointHead_SendGoal_Request -{ - unique_identifier_msgs__msg__UUID goal_id; - control_msgs__action__PointHead_Goal goal; -} control_msgs__action__PointHead_SendGoal_Request; - -// Struct for a sequence of control_msgs__action__PointHead_SendGoal_Request. -typedef struct control_msgs__action__PointHead_SendGoal_Request__Sequence -{ - control_msgs__action__PointHead_SendGoal_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__PointHead_SendGoal_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'stamp' -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in action/PointHead in the package control_msgs. -typedef struct control_msgs__action__PointHead_SendGoal_Response -{ - bool accepted; - builtin_interfaces__msg__Time stamp; -} control_msgs__action__PointHead_SendGoal_Response; - -// Struct for a sequence of control_msgs__action__PointHead_SendGoal_Response. -typedef struct control_msgs__action__PointHead_SendGoal_Response__Sequence -{ - control_msgs__action__PointHead_SendGoal_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__PointHead_SendGoal_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - control_msgs__action__PointHead_SendGoal_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - control_msgs__action__PointHead_SendGoal_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/PointHead in the package control_msgs. -typedef struct control_msgs__action__PointHead_SendGoal_Event -{ - service_msgs__msg__ServiceEventInfo info; - control_msgs__action__PointHead_SendGoal_Request__Sequence request; - control_msgs__action__PointHead_SendGoal_Response__Sequence response; -} control_msgs__action__PointHead_SendGoal_Event; - -// Struct for a sequence of control_msgs__action__PointHead_SendGoal_Event. -typedef struct control_msgs__action__PointHead_SendGoal_Event__Sequence -{ - control_msgs__action__PointHead_SendGoal_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__PointHead_SendGoal_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" - -/// Struct defined in action/PointHead in the package control_msgs. -typedef struct control_msgs__action__PointHead_GetResult_Request -{ - unique_identifier_msgs__msg__UUID goal_id; -} control_msgs__action__PointHead_GetResult_Request; - -// Struct for a sequence of control_msgs__action__PointHead_GetResult_Request. -typedef struct control_msgs__action__PointHead_GetResult_Request__Sequence -{ - control_msgs__action__PointHead_GetResult_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__PointHead_GetResult_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'result' -// already included above -// #include "control_msgs/action/detail/point_head__struct.h" - -/// Struct defined in action/PointHead in the package control_msgs. -typedef struct control_msgs__action__PointHead_GetResult_Response -{ - int8_t status; - control_msgs__action__PointHead_Result result; -} control_msgs__action__PointHead_GetResult_Response; - -// Struct for a sequence of control_msgs__action__PointHead_GetResult_Response. -typedef struct control_msgs__action__PointHead_GetResult_Response__Sequence -{ - control_msgs__action__PointHead_GetResult_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__PointHead_GetResult_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -// already included above -// #include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - control_msgs__action__PointHead_GetResult_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - control_msgs__action__PointHead_GetResult_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/PointHead in the package control_msgs. -typedef struct control_msgs__action__PointHead_GetResult_Event -{ - service_msgs__msg__ServiceEventInfo info; - control_msgs__action__PointHead_GetResult_Request__Sequence request; - control_msgs__action__PointHead_GetResult_Response__Sequence response; -} control_msgs__action__PointHead_GetResult_Event; - -// Struct for a sequence of control_msgs__action__PointHead_GetResult_Event. -typedef struct control_msgs__action__PointHead_GetResult_Event__Sequence -{ - control_msgs__action__PointHead_GetResult_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__PointHead_GetResult_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'feedback' -// already included above -// #include "control_msgs/action/detail/point_head__struct.h" - -/// Struct defined in action/PointHead in the package control_msgs. -typedef struct control_msgs__action__PointHead_FeedbackMessage -{ - unique_identifier_msgs__msg__UUID goal_id; - control_msgs__action__PointHead_Feedback feedback; -} control_msgs__action__PointHead_FeedbackMessage; - -// Struct for a sequence of control_msgs__action__PointHead_FeedbackMessage. -typedef struct control_msgs__action__PointHead_FeedbackMessage__Sequence -{ - control_msgs__action__PointHead_FeedbackMessage * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__PointHead_FeedbackMessage__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__POINT_HEAD__STRUCT_H_ diff --git a/src/control_msgs/action/detail/point_head__type_support.h b/src/control_msgs/action/detail/point_head__type_support.h deleted file mode 100755 index 80a80d5f4..000000000 --- a/src/control_msgs/action/detail/point_head__type_support.h +++ /dev/null @@ -1,242 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:action/PointHead.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/point_head.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__POINT_HEAD__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__ACTION__DETAIL__POINT_HEAD__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/action_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_action_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__ACTION_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead -)(void); - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_Goal -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_Result -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_Feedback -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_SendGoal_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_SendGoal_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_SendGoal_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_SendGoal -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_SendGoal -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_SendGoal -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_GetResult_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_GetResult_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_GetResult_Event -)(void); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_GetResult -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_GetResult -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_GetResult -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - PointHead_FeedbackMessage -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__POINT_HEAD__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/action/detail/single_joint_position__functions.h b/src/control_msgs/action/detail/single_joint_position__functions.h deleted file mode 100755 index 67c1b259c..000000000 --- a/src/control_msgs/action/detail/single_joint_position__functions.h +++ /dev/null @@ -1,1866 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:action/SingleJointPosition.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/single_joint_position.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__SINGLE_JOINT_POSITION__FUNCTIONS_H_ -#define CONTROL_MSGS__ACTION__DETAIL__SINGLE_JOINT_POSITION__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/action/detail/single_joint_position__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__SingleJointPosition__get_type_hash( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__SingleJointPosition__get_type_description( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__SingleJointPosition__get_individual_type_description_source( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__SingleJointPosition__get_type_description_sources( - const rosidl_action_type_support_t * type_support); - -/// Initialize action/SingleJointPosition message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__SingleJointPosition_Goal - * )) before or use - * control_msgs__action__SingleJointPosition_Goal__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Goal__init(control_msgs__action__SingleJointPosition_Goal * msg); - -/// Finalize action/SingleJointPosition message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_Goal__fini(control_msgs__action__SingleJointPosition_Goal * msg); - -/// Create action/SingleJointPosition message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__SingleJointPosition_Goal__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_Goal * -control_msgs__action__SingleJointPosition_Goal__create(void); - -/// Destroy action/SingleJointPosition message. -/** - * It calls - * control_msgs__action__SingleJointPosition_Goal__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_Goal__destroy(control_msgs__action__SingleJointPosition_Goal * msg); - -/// Check for action/SingleJointPosition message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Goal__are_equal(const control_msgs__action__SingleJointPosition_Goal * lhs, const control_msgs__action__SingleJointPosition_Goal * rhs); - -/// Copy a action/SingleJointPosition message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Goal__copy( - const control_msgs__action__SingleJointPosition_Goal * input, - control_msgs__action__SingleJointPosition_Goal * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__SingleJointPosition_Goal__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__SingleJointPosition_Goal__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__SingleJointPosition_Goal__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__SingleJointPosition_Goal__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/SingleJointPosition messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__SingleJointPosition_Goal__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Goal__Sequence__init(control_msgs__action__SingleJointPosition_Goal__Sequence * array, size_t size); - -/// Finalize array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_Goal__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_Goal__Sequence__fini(control_msgs__action__SingleJointPosition_Goal__Sequence * array); - -/// Create array of action/SingleJointPosition messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__SingleJointPosition_Goal__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_Goal__Sequence * -control_msgs__action__SingleJointPosition_Goal__Sequence__create(size_t size); - -/// Destroy array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_Goal__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_Goal__Sequence__destroy(control_msgs__action__SingleJointPosition_Goal__Sequence * array); - -/// Check for action/SingleJointPosition message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Goal__Sequence__are_equal(const control_msgs__action__SingleJointPosition_Goal__Sequence * lhs, const control_msgs__action__SingleJointPosition_Goal__Sequence * rhs); - -/// Copy an array of action/SingleJointPosition messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Goal__Sequence__copy( - const control_msgs__action__SingleJointPosition_Goal__Sequence * input, - control_msgs__action__SingleJointPosition_Goal__Sequence * output); - -/// Initialize action/SingleJointPosition message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__SingleJointPosition_Result - * )) before or use - * control_msgs__action__SingleJointPosition_Result__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Result__init(control_msgs__action__SingleJointPosition_Result * msg); - -/// Finalize action/SingleJointPosition message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_Result__fini(control_msgs__action__SingleJointPosition_Result * msg); - -/// Create action/SingleJointPosition message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__SingleJointPosition_Result__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_Result * -control_msgs__action__SingleJointPosition_Result__create(void); - -/// Destroy action/SingleJointPosition message. -/** - * It calls - * control_msgs__action__SingleJointPosition_Result__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_Result__destroy(control_msgs__action__SingleJointPosition_Result * msg); - -/// Check for action/SingleJointPosition message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Result__are_equal(const control_msgs__action__SingleJointPosition_Result * lhs, const control_msgs__action__SingleJointPosition_Result * rhs); - -/// Copy a action/SingleJointPosition message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Result__copy( - const control_msgs__action__SingleJointPosition_Result * input, - control_msgs__action__SingleJointPosition_Result * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__SingleJointPosition_Result__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__SingleJointPosition_Result__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__SingleJointPosition_Result__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__SingleJointPosition_Result__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/SingleJointPosition messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__SingleJointPosition_Result__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Result__Sequence__init(control_msgs__action__SingleJointPosition_Result__Sequence * array, size_t size); - -/// Finalize array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_Result__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_Result__Sequence__fini(control_msgs__action__SingleJointPosition_Result__Sequence * array); - -/// Create array of action/SingleJointPosition messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__SingleJointPosition_Result__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_Result__Sequence * -control_msgs__action__SingleJointPosition_Result__Sequence__create(size_t size); - -/// Destroy array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_Result__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_Result__Sequence__destroy(control_msgs__action__SingleJointPosition_Result__Sequence * array); - -/// Check for action/SingleJointPosition message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Result__Sequence__are_equal(const control_msgs__action__SingleJointPosition_Result__Sequence * lhs, const control_msgs__action__SingleJointPosition_Result__Sequence * rhs); - -/// Copy an array of action/SingleJointPosition messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Result__Sequence__copy( - const control_msgs__action__SingleJointPosition_Result__Sequence * input, - control_msgs__action__SingleJointPosition_Result__Sequence * output); - -/// Initialize action/SingleJointPosition message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__SingleJointPosition_Feedback - * )) before or use - * control_msgs__action__SingleJointPosition_Feedback__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Feedback__init(control_msgs__action__SingleJointPosition_Feedback * msg); - -/// Finalize action/SingleJointPosition message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_Feedback__fini(control_msgs__action__SingleJointPosition_Feedback * msg); - -/// Create action/SingleJointPosition message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__SingleJointPosition_Feedback__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_Feedback * -control_msgs__action__SingleJointPosition_Feedback__create(void); - -/// Destroy action/SingleJointPosition message. -/** - * It calls - * control_msgs__action__SingleJointPosition_Feedback__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_Feedback__destroy(control_msgs__action__SingleJointPosition_Feedback * msg); - -/// Check for action/SingleJointPosition message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Feedback__are_equal(const control_msgs__action__SingleJointPosition_Feedback * lhs, const control_msgs__action__SingleJointPosition_Feedback * rhs); - -/// Copy a action/SingleJointPosition message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Feedback__copy( - const control_msgs__action__SingleJointPosition_Feedback * input, - control_msgs__action__SingleJointPosition_Feedback * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__SingleJointPosition_Feedback__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__SingleJointPosition_Feedback__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__SingleJointPosition_Feedback__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__SingleJointPosition_Feedback__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/SingleJointPosition messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__SingleJointPosition_Feedback__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Feedback__Sequence__init(control_msgs__action__SingleJointPosition_Feedback__Sequence * array, size_t size); - -/// Finalize array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_Feedback__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_Feedback__Sequence__fini(control_msgs__action__SingleJointPosition_Feedback__Sequence * array); - -/// Create array of action/SingleJointPosition messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__SingleJointPosition_Feedback__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_Feedback__Sequence * -control_msgs__action__SingleJointPosition_Feedback__Sequence__create(size_t size); - -/// Destroy array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_Feedback__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_Feedback__Sequence__destroy(control_msgs__action__SingleJointPosition_Feedback__Sequence * array); - -/// Check for action/SingleJointPosition message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Feedback__Sequence__are_equal(const control_msgs__action__SingleJointPosition_Feedback__Sequence * lhs, const control_msgs__action__SingleJointPosition_Feedback__Sequence * rhs); - -/// Copy an array of action/SingleJointPosition messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_Feedback__Sequence__copy( - const control_msgs__action__SingleJointPosition_Feedback__Sequence * input, - control_msgs__action__SingleJointPosition_Feedback__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__SingleJointPosition_SendGoal__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__SingleJointPosition_SendGoal__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__SingleJointPosition_SendGoal__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__SingleJointPosition_SendGoal__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/SingleJointPosition message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__SingleJointPosition_SendGoal_Request - * )) before or use - * control_msgs__action__SingleJointPosition_SendGoal_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Request__init(control_msgs__action__SingleJointPosition_SendGoal_Request * msg); - -/// Finalize action/SingleJointPosition message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_SendGoal_Request__fini(control_msgs__action__SingleJointPosition_SendGoal_Request * msg); - -/// Create action/SingleJointPosition message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__SingleJointPosition_SendGoal_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_SendGoal_Request * -control_msgs__action__SingleJointPosition_SendGoal_Request__create(void); - -/// Destroy action/SingleJointPosition message. -/** - * It calls - * control_msgs__action__SingleJointPosition_SendGoal_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_SendGoal_Request__destroy(control_msgs__action__SingleJointPosition_SendGoal_Request * msg); - -/// Check for action/SingleJointPosition message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Request__are_equal(const control_msgs__action__SingleJointPosition_SendGoal_Request * lhs, const control_msgs__action__SingleJointPosition_SendGoal_Request * rhs); - -/// Copy a action/SingleJointPosition message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Request__copy( - const control_msgs__action__SingleJointPosition_SendGoal_Request * input, - control_msgs__action__SingleJointPosition_SendGoal_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__SingleJointPosition_SendGoal_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__SingleJointPosition_SendGoal_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__SingleJointPosition_SendGoal_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__SingleJointPosition_SendGoal_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/SingleJointPosition messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__SingleJointPosition_SendGoal_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence__init(control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence * array, size_t size); - -/// Finalize array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_SendGoal_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence__fini(control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence * array); - -/// Create array of action/SingleJointPosition messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence * -control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence__create(size_t size); - -/// Destroy array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence__destroy(control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence * array); - -/// Check for action/SingleJointPosition message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence__are_equal(const control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence * lhs, const control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence * rhs); - -/// Copy an array of action/SingleJointPosition messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence__copy( - const control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence * input, - control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence * output); - -/// Initialize action/SingleJointPosition message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__SingleJointPosition_SendGoal_Response - * )) before or use - * control_msgs__action__SingleJointPosition_SendGoal_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Response__init(control_msgs__action__SingleJointPosition_SendGoal_Response * msg); - -/// Finalize action/SingleJointPosition message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_SendGoal_Response__fini(control_msgs__action__SingleJointPosition_SendGoal_Response * msg); - -/// Create action/SingleJointPosition message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__SingleJointPosition_SendGoal_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_SendGoal_Response * -control_msgs__action__SingleJointPosition_SendGoal_Response__create(void); - -/// Destroy action/SingleJointPosition message. -/** - * It calls - * control_msgs__action__SingleJointPosition_SendGoal_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_SendGoal_Response__destroy(control_msgs__action__SingleJointPosition_SendGoal_Response * msg); - -/// Check for action/SingleJointPosition message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Response__are_equal(const control_msgs__action__SingleJointPosition_SendGoal_Response * lhs, const control_msgs__action__SingleJointPosition_SendGoal_Response * rhs); - -/// Copy a action/SingleJointPosition message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Response__copy( - const control_msgs__action__SingleJointPosition_SendGoal_Response * input, - control_msgs__action__SingleJointPosition_SendGoal_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__SingleJointPosition_SendGoal_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__SingleJointPosition_SendGoal_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__SingleJointPosition_SendGoal_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__SingleJointPosition_SendGoal_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/SingleJointPosition messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__SingleJointPosition_SendGoal_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence__init(control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence * array, size_t size); - -/// Finalize array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_SendGoal_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence__fini(control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence * array); - -/// Create array of action/SingleJointPosition messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence * -control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence__create(size_t size); - -/// Destroy array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence__destroy(control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence * array); - -/// Check for action/SingleJointPosition message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence__are_equal(const control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence * lhs, const control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence * rhs); - -/// Copy an array of action/SingleJointPosition messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence__copy( - const control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence * input, - control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence * output); - -/// Initialize action/SingleJointPosition message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__SingleJointPosition_SendGoal_Event - * )) before or use - * control_msgs__action__SingleJointPosition_SendGoal_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Event__init(control_msgs__action__SingleJointPosition_SendGoal_Event * msg); - -/// Finalize action/SingleJointPosition message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_SendGoal_Event__fini(control_msgs__action__SingleJointPosition_SendGoal_Event * msg); - -/// Create action/SingleJointPosition message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__SingleJointPosition_SendGoal_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_SendGoal_Event * -control_msgs__action__SingleJointPosition_SendGoal_Event__create(void); - -/// Destroy action/SingleJointPosition message. -/** - * It calls - * control_msgs__action__SingleJointPosition_SendGoal_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_SendGoal_Event__destroy(control_msgs__action__SingleJointPosition_SendGoal_Event * msg); - -/// Check for action/SingleJointPosition message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Event__are_equal(const control_msgs__action__SingleJointPosition_SendGoal_Event * lhs, const control_msgs__action__SingleJointPosition_SendGoal_Event * rhs); - -/// Copy a action/SingleJointPosition message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Event__copy( - const control_msgs__action__SingleJointPosition_SendGoal_Event * input, - control_msgs__action__SingleJointPosition_SendGoal_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__SingleJointPosition_SendGoal_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__SingleJointPosition_SendGoal_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__SingleJointPosition_SendGoal_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__SingleJointPosition_SendGoal_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/SingleJointPosition messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__SingleJointPosition_SendGoal_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence__init(control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence * array, size_t size); - -/// Finalize array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_SendGoal_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence__fini(control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence * array); - -/// Create array of action/SingleJointPosition messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence * -control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence__create(size_t size); - -/// Destroy array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence__destroy(control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence * array); - -/// Check for action/SingleJointPosition message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence__are_equal(const control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence * lhs, const control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence * rhs); - -/// Copy an array of action/SingleJointPosition messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence__copy( - const control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence * input, - control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__SingleJointPosition_GetResult__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__SingleJointPosition_GetResult__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__SingleJointPosition_GetResult__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__SingleJointPosition_GetResult__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/SingleJointPosition message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__SingleJointPosition_GetResult_Request - * )) before or use - * control_msgs__action__SingleJointPosition_GetResult_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Request__init(control_msgs__action__SingleJointPosition_GetResult_Request * msg); - -/// Finalize action/SingleJointPosition message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_GetResult_Request__fini(control_msgs__action__SingleJointPosition_GetResult_Request * msg); - -/// Create action/SingleJointPosition message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__SingleJointPosition_GetResult_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_GetResult_Request * -control_msgs__action__SingleJointPosition_GetResult_Request__create(void); - -/// Destroy action/SingleJointPosition message. -/** - * It calls - * control_msgs__action__SingleJointPosition_GetResult_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_GetResult_Request__destroy(control_msgs__action__SingleJointPosition_GetResult_Request * msg); - -/// Check for action/SingleJointPosition message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Request__are_equal(const control_msgs__action__SingleJointPosition_GetResult_Request * lhs, const control_msgs__action__SingleJointPosition_GetResult_Request * rhs); - -/// Copy a action/SingleJointPosition message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Request__copy( - const control_msgs__action__SingleJointPosition_GetResult_Request * input, - control_msgs__action__SingleJointPosition_GetResult_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__SingleJointPosition_GetResult_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__SingleJointPosition_GetResult_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__SingleJointPosition_GetResult_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__SingleJointPosition_GetResult_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/SingleJointPosition messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__SingleJointPosition_GetResult_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Request__Sequence__init(control_msgs__action__SingleJointPosition_GetResult_Request__Sequence * array, size_t size); - -/// Finalize array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_GetResult_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_GetResult_Request__Sequence__fini(control_msgs__action__SingleJointPosition_GetResult_Request__Sequence * array); - -/// Create array of action/SingleJointPosition messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__SingleJointPosition_GetResult_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_GetResult_Request__Sequence * -control_msgs__action__SingleJointPosition_GetResult_Request__Sequence__create(size_t size); - -/// Destroy array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_GetResult_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_GetResult_Request__Sequence__destroy(control_msgs__action__SingleJointPosition_GetResult_Request__Sequence * array); - -/// Check for action/SingleJointPosition message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Request__Sequence__are_equal(const control_msgs__action__SingleJointPosition_GetResult_Request__Sequence * lhs, const control_msgs__action__SingleJointPosition_GetResult_Request__Sequence * rhs); - -/// Copy an array of action/SingleJointPosition messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Request__Sequence__copy( - const control_msgs__action__SingleJointPosition_GetResult_Request__Sequence * input, - control_msgs__action__SingleJointPosition_GetResult_Request__Sequence * output); - -/// Initialize action/SingleJointPosition message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__SingleJointPosition_GetResult_Response - * )) before or use - * control_msgs__action__SingleJointPosition_GetResult_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Response__init(control_msgs__action__SingleJointPosition_GetResult_Response * msg); - -/// Finalize action/SingleJointPosition message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_GetResult_Response__fini(control_msgs__action__SingleJointPosition_GetResult_Response * msg); - -/// Create action/SingleJointPosition message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__SingleJointPosition_GetResult_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_GetResult_Response * -control_msgs__action__SingleJointPosition_GetResult_Response__create(void); - -/// Destroy action/SingleJointPosition message. -/** - * It calls - * control_msgs__action__SingleJointPosition_GetResult_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_GetResult_Response__destroy(control_msgs__action__SingleJointPosition_GetResult_Response * msg); - -/// Check for action/SingleJointPosition message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Response__are_equal(const control_msgs__action__SingleJointPosition_GetResult_Response * lhs, const control_msgs__action__SingleJointPosition_GetResult_Response * rhs); - -/// Copy a action/SingleJointPosition message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Response__copy( - const control_msgs__action__SingleJointPosition_GetResult_Response * input, - control_msgs__action__SingleJointPosition_GetResult_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__SingleJointPosition_GetResult_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__SingleJointPosition_GetResult_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__SingleJointPosition_GetResult_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__SingleJointPosition_GetResult_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/SingleJointPosition messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__SingleJointPosition_GetResult_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Response__Sequence__init(control_msgs__action__SingleJointPosition_GetResult_Response__Sequence * array, size_t size); - -/// Finalize array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_GetResult_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_GetResult_Response__Sequence__fini(control_msgs__action__SingleJointPosition_GetResult_Response__Sequence * array); - -/// Create array of action/SingleJointPosition messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__SingleJointPosition_GetResult_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_GetResult_Response__Sequence * -control_msgs__action__SingleJointPosition_GetResult_Response__Sequence__create(size_t size); - -/// Destroy array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_GetResult_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_GetResult_Response__Sequence__destroy(control_msgs__action__SingleJointPosition_GetResult_Response__Sequence * array); - -/// Check for action/SingleJointPosition message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Response__Sequence__are_equal(const control_msgs__action__SingleJointPosition_GetResult_Response__Sequence * lhs, const control_msgs__action__SingleJointPosition_GetResult_Response__Sequence * rhs); - -/// Copy an array of action/SingleJointPosition messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Response__Sequence__copy( - const control_msgs__action__SingleJointPosition_GetResult_Response__Sequence * input, - control_msgs__action__SingleJointPosition_GetResult_Response__Sequence * output); - -/// Initialize action/SingleJointPosition message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__SingleJointPosition_GetResult_Event - * )) before or use - * control_msgs__action__SingleJointPosition_GetResult_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Event__init(control_msgs__action__SingleJointPosition_GetResult_Event * msg); - -/// Finalize action/SingleJointPosition message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_GetResult_Event__fini(control_msgs__action__SingleJointPosition_GetResult_Event * msg); - -/// Create action/SingleJointPosition message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__SingleJointPosition_GetResult_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_GetResult_Event * -control_msgs__action__SingleJointPosition_GetResult_Event__create(void); - -/// Destroy action/SingleJointPosition message. -/** - * It calls - * control_msgs__action__SingleJointPosition_GetResult_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_GetResult_Event__destroy(control_msgs__action__SingleJointPosition_GetResult_Event * msg); - -/// Check for action/SingleJointPosition message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Event__are_equal(const control_msgs__action__SingleJointPosition_GetResult_Event * lhs, const control_msgs__action__SingleJointPosition_GetResult_Event * rhs); - -/// Copy a action/SingleJointPosition message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Event__copy( - const control_msgs__action__SingleJointPosition_GetResult_Event * input, - control_msgs__action__SingleJointPosition_GetResult_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__SingleJointPosition_GetResult_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__SingleJointPosition_GetResult_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__SingleJointPosition_GetResult_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__SingleJointPosition_GetResult_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/SingleJointPosition messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__SingleJointPosition_GetResult_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Event__Sequence__init(control_msgs__action__SingleJointPosition_GetResult_Event__Sequence * array, size_t size); - -/// Finalize array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_GetResult_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_GetResult_Event__Sequence__fini(control_msgs__action__SingleJointPosition_GetResult_Event__Sequence * array); - -/// Create array of action/SingleJointPosition messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__SingleJointPosition_GetResult_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_GetResult_Event__Sequence * -control_msgs__action__SingleJointPosition_GetResult_Event__Sequence__create(size_t size); - -/// Destroy array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_GetResult_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_GetResult_Event__Sequence__destroy(control_msgs__action__SingleJointPosition_GetResult_Event__Sequence * array); - -/// Check for action/SingleJointPosition message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Event__Sequence__are_equal(const control_msgs__action__SingleJointPosition_GetResult_Event__Sequence * lhs, const control_msgs__action__SingleJointPosition_GetResult_Event__Sequence * rhs); - -/// Copy an array of action/SingleJointPosition messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_GetResult_Event__Sequence__copy( - const control_msgs__action__SingleJointPosition_GetResult_Event__Sequence * input, - control_msgs__action__SingleJointPosition_GetResult_Event__Sequence * output); - -/// Initialize action/SingleJointPosition message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__action__SingleJointPosition_FeedbackMessage - * )) before or use - * control_msgs__action__SingleJointPosition_FeedbackMessage__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_FeedbackMessage__init(control_msgs__action__SingleJointPosition_FeedbackMessage * msg); - -/// Finalize action/SingleJointPosition message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_FeedbackMessage__fini(control_msgs__action__SingleJointPosition_FeedbackMessage * msg); - -/// Create action/SingleJointPosition message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__action__SingleJointPosition_FeedbackMessage__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_FeedbackMessage * -control_msgs__action__SingleJointPosition_FeedbackMessage__create(void); - -/// Destroy action/SingleJointPosition message. -/** - * It calls - * control_msgs__action__SingleJointPosition_FeedbackMessage__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_FeedbackMessage__destroy(control_msgs__action__SingleJointPosition_FeedbackMessage * msg); - -/// Check for action/SingleJointPosition message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_FeedbackMessage__are_equal(const control_msgs__action__SingleJointPosition_FeedbackMessage * lhs, const control_msgs__action__SingleJointPosition_FeedbackMessage * rhs); - -/// Copy a action/SingleJointPosition message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_FeedbackMessage__copy( - const control_msgs__action__SingleJointPosition_FeedbackMessage * input, - control_msgs__action__SingleJointPosition_FeedbackMessage * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__action__SingleJointPosition_FeedbackMessage__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__action__SingleJointPosition_FeedbackMessage__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__action__SingleJointPosition_FeedbackMessage__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__action__SingleJointPosition_FeedbackMessage__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/SingleJointPosition messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__action__SingleJointPosition_FeedbackMessage__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence__init(control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence * array, size_t size); - -/// Finalize array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_FeedbackMessage__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence__fini(control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence * array); - -/// Create array of action/SingleJointPosition messages. -/** - * It allocates the memory for the array and calls - * control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence * -control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence__create(size_t size); - -/// Destroy array of action/SingleJointPosition messages. -/** - * It calls - * control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence__destroy(control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence * array); - -/// Check for action/SingleJointPosition message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence__are_equal(const control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence * lhs, const control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence * rhs); - -/// Copy an array of action/SingleJointPosition messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence__copy( - const control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence * input, - control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__SINGLE_JOINT_POSITION__FUNCTIONS_H_ diff --git a/src/control_msgs/action/detail/single_joint_position__rosidl_typesupport_introspection_c.h b/src/control_msgs/action/detail/single_joint_position__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 346d972ea..000000000 --- a/src/control_msgs/action/detail/single_joint_position__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,146 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:action/SingleJointPosition.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__ACTION__DETAIL__SINGLE_JOINT_POSITION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__ACTION__DETAIL__SINGLE_JOINT_POSITION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, SingleJointPosition_Goal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, SingleJointPosition_Result)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, SingleJointPosition_Feedback)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, SingleJointPosition_SendGoal_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, SingleJointPosition_SendGoal_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, SingleJointPosition_SendGoal_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, SingleJointPosition_SendGoal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, SingleJointPosition_GetResult_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, SingleJointPosition_GetResult_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, SingleJointPosition_GetResult_Event)(); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, SingleJointPosition_GetResult)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, action, SingleJointPosition_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__SINGLE_JOINT_POSITION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/action/detail/single_joint_position__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/action/detail/single_joint_position__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a486b7f1c..000000000 --- a/src/control_msgs/action/detail/single_joint_position__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,411 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:action/SingleJointPosition.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__ACTION__SINGLE_JOINT_POSITION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__ACTION__SINGLE_JOINT_POSITION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__SingleJointPosition_Goal( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__SingleJointPosition_Goal( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, SingleJointPosition_Goal)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__SingleJointPosition_Result( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__SingleJointPosition_Result( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, SingleJointPosition_Result)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__SingleJointPosition_Feedback( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__SingleJointPosition_Feedback( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, SingleJointPosition_Feedback)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__SingleJointPosition_SendGoal_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__SingleJointPosition_SendGoal_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, SingleJointPosition_SendGoal_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__SingleJointPosition_SendGoal_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__SingleJointPosition_SendGoal_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, SingleJointPosition_SendGoal_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__SingleJointPosition_SendGoal_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__SingleJointPosition_SendGoal_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, SingleJointPosition_SendGoal_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, SingleJointPosition_SendGoal)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__SingleJointPosition_GetResult_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__SingleJointPosition_GetResult_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, SingleJointPosition_GetResult_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__SingleJointPosition_GetResult_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__SingleJointPosition_GetResult_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, SingleJointPosition_GetResult_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__SingleJointPosition_GetResult_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__SingleJointPosition_GetResult_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, SingleJointPosition_GetResult_Event)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, SingleJointPosition_GetResult)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__action__SingleJointPosition_FeedbackMessage( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__action__SingleJointPosition_FeedbackMessage( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, action, SingleJointPosition_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__ACTION__SINGLE_JOINT_POSITION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/action/detail/single_joint_position__struct.h b/src/control_msgs/action/detail/single_joint_position__struct.h deleted file mode 100755 index f27a6cb7b..000000000 --- a/src/control_msgs/action/detail/single_joint_position__struct.h +++ /dev/null @@ -1,287 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:action/SingleJointPosition.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/single_joint_position.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__SINGLE_JOINT_POSITION__STRUCT_H_ -#define CONTROL_MSGS__ACTION__DETAIL__SINGLE_JOINT_POSITION__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'min_duration' -#include "builtin_interfaces/msg/detail/duration__struct.h" - -/// Struct defined in action/SingleJointPosition in the package control_msgs. -typedef struct control_msgs__action__SingleJointPosition_Goal -{ - double position; - builtin_interfaces__msg__Duration min_duration; - double max_velocity; -} control_msgs__action__SingleJointPosition_Goal; - -// Struct for a sequence of control_msgs__action__SingleJointPosition_Goal. -typedef struct control_msgs__action__SingleJointPosition_Goal__Sequence -{ - control_msgs__action__SingleJointPosition_Goal * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__SingleJointPosition_Goal__Sequence; - -// Constants defined in the message - -/// Struct defined in action/SingleJointPosition in the package control_msgs. -typedef struct control_msgs__action__SingleJointPosition_Result -{ - uint8_t structure_needs_at_least_one_member; -} control_msgs__action__SingleJointPosition_Result; - -// Struct for a sequence of control_msgs__action__SingleJointPosition_Result. -typedef struct control_msgs__action__SingleJointPosition_Result__Sequence -{ - control_msgs__action__SingleJointPosition_Result * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__SingleJointPosition_Result__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" - -/// Struct defined in action/SingleJointPosition in the package control_msgs. -typedef struct control_msgs__action__SingleJointPosition_Feedback -{ - std_msgs__msg__Header header; - double position; - double velocity; - double error; -} control_msgs__action__SingleJointPosition_Feedback; - -// Struct for a sequence of control_msgs__action__SingleJointPosition_Feedback. -typedef struct control_msgs__action__SingleJointPosition_Feedback__Sequence -{ - control_msgs__action__SingleJointPosition_Feedback * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__SingleJointPosition_Feedback__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -#include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'goal' -#include "control_msgs/action/detail/single_joint_position__struct.h" - -/// Struct defined in action/SingleJointPosition in the package control_msgs. -typedef struct control_msgs__action__SingleJointPosition_SendGoal_Request -{ - unique_identifier_msgs__msg__UUID goal_id; - control_msgs__action__SingleJointPosition_Goal goal; -} control_msgs__action__SingleJointPosition_SendGoal_Request; - -// Struct for a sequence of control_msgs__action__SingleJointPosition_SendGoal_Request. -typedef struct control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence -{ - control_msgs__action__SingleJointPosition_SendGoal_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'stamp' -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in action/SingleJointPosition in the package control_msgs. -typedef struct control_msgs__action__SingleJointPosition_SendGoal_Response -{ - bool accepted; - builtin_interfaces__msg__Time stamp; -} control_msgs__action__SingleJointPosition_SendGoal_Response; - -// Struct for a sequence of control_msgs__action__SingleJointPosition_SendGoal_Response. -typedef struct control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence -{ - control_msgs__action__SingleJointPosition_SendGoal_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - control_msgs__action__SingleJointPosition_SendGoal_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - control_msgs__action__SingleJointPosition_SendGoal_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/SingleJointPosition in the package control_msgs. -typedef struct control_msgs__action__SingleJointPosition_SendGoal_Event -{ - service_msgs__msg__ServiceEventInfo info; - control_msgs__action__SingleJointPosition_SendGoal_Request__Sequence request; - control_msgs__action__SingleJointPosition_SendGoal_Response__Sequence response; -} control_msgs__action__SingleJointPosition_SendGoal_Event; - -// Struct for a sequence of control_msgs__action__SingleJointPosition_SendGoal_Event. -typedef struct control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence -{ - control_msgs__action__SingleJointPosition_SendGoal_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__SingleJointPosition_SendGoal_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" - -/// Struct defined in action/SingleJointPosition in the package control_msgs. -typedef struct control_msgs__action__SingleJointPosition_GetResult_Request -{ - unique_identifier_msgs__msg__UUID goal_id; -} control_msgs__action__SingleJointPosition_GetResult_Request; - -// Struct for a sequence of control_msgs__action__SingleJointPosition_GetResult_Request. -typedef struct control_msgs__action__SingleJointPosition_GetResult_Request__Sequence -{ - control_msgs__action__SingleJointPosition_GetResult_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__SingleJointPosition_GetResult_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'result' -// already included above -// #include "control_msgs/action/detail/single_joint_position__struct.h" - -/// Struct defined in action/SingleJointPosition in the package control_msgs. -typedef struct control_msgs__action__SingleJointPosition_GetResult_Response -{ - int8_t status; - control_msgs__action__SingleJointPosition_Result result; -} control_msgs__action__SingleJointPosition_GetResult_Response; - -// Struct for a sequence of control_msgs__action__SingleJointPosition_GetResult_Response. -typedef struct control_msgs__action__SingleJointPosition_GetResult_Response__Sequence -{ - control_msgs__action__SingleJointPosition_GetResult_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__SingleJointPosition_GetResult_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -// already included above -// #include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - control_msgs__action__SingleJointPosition_GetResult_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - control_msgs__action__SingleJointPosition_GetResult_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/SingleJointPosition in the package control_msgs. -typedef struct control_msgs__action__SingleJointPosition_GetResult_Event -{ - service_msgs__msg__ServiceEventInfo info; - control_msgs__action__SingleJointPosition_GetResult_Request__Sequence request; - control_msgs__action__SingleJointPosition_GetResult_Response__Sequence response; -} control_msgs__action__SingleJointPosition_GetResult_Event; - -// Struct for a sequence of control_msgs__action__SingleJointPosition_GetResult_Event. -typedef struct control_msgs__action__SingleJointPosition_GetResult_Event__Sequence -{ - control_msgs__action__SingleJointPosition_GetResult_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__SingleJointPosition_GetResult_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'feedback' -// already included above -// #include "control_msgs/action/detail/single_joint_position__struct.h" - -/// Struct defined in action/SingleJointPosition in the package control_msgs. -typedef struct control_msgs__action__SingleJointPosition_FeedbackMessage -{ - unique_identifier_msgs__msg__UUID goal_id; - control_msgs__action__SingleJointPosition_Feedback feedback; -} control_msgs__action__SingleJointPosition_FeedbackMessage; - -// Struct for a sequence of control_msgs__action__SingleJointPosition_FeedbackMessage. -typedef struct control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence -{ - control_msgs__action__SingleJointPosition_FeedbackMessage * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__action__SingleJointPosition_FeedbackMessage__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__SINGLE_JOINT_POSITION__STRUCT_H_ diff --git a/src/control_msgs/action/detail/single_joint_position__type_support.h b/src/control_msgs/action/detail/single_joint_position__type_support.h deleted file mode 100755 index 58da5f8aa..000000000 --- a/src/control_msgs/action/detail/single_joint_position__type_support.h +++ /dev/null @@ -1,242 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:action/SingleJointPosition.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/action/single_joint_position.h" - - -#ifndef CONTROL_MSGS__ACTION__DETAIL__SINGLE_JOINT_POSITION__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__ACTION__DETAIL__SINGLE_JOINT_POSITION__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/action_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_action_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__ACTION_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition -)(void); - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_Goal -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_Result -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_Feedback -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_SendGoal_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_SendGoal_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_SendGoal_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_SendGoal -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_SendGoal -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_SendGoal -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_GetResult_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_GetResult_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_GetResult_Event -)(void); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_GetResult -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_GetResult -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_GetResult -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - action, - SingleJointPosition_FeedbackMessage -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__ACTION__DETAIL__SINGLE_JOINT_POSITION__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/action/follow_joint_trajectory.h b/src/control_msgs/action/follow_joint_trajectory.h deleted file mode 100755 index c5986a0fe..000000000 --- a/src/control_msgs/action/follow_joint_trajectory.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:action/FollowJointTrajectory.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__ACTION__FOLLOW_JOINT_TRAJECTORY_H_ -#define CONTROL_MSGS__ACTION__FOLLOW_JOINT_TRAJECTORY_H_ - -#include "control_msgs/action/detail/follow_joint_trajectory__struct.h" -#include "control_msgs/action/detail/follow_joint_trajectory__functions.h" -#include "control_msgs/action/detail/follow_joint_trajectory__type_support.h" - -#endif // CONTROL_MSGS__ACTION__FOLLOW_JOINT_TRAJECTORY_H_ diff --git a/src/control_msgs/action/gripper_command.h b/src/control_msgs/action/gripper_command.h deleted file mode 100755 index d3ed8d24e..000000000 --- a/src/control_msgs/action/gripper_command.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:action/GripperCommand.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__ACTION__GRIPPER_COMMAND_H_ -#define CONTROL_MSGS__ACTION__GRIPPER_COMMAND_H_ - -#include "control_msgs/action/detail/gripper_command__struct.h" -#include "control_msgs/action/detail/gripper_command__functions.h" -#include "control_msgs/action/detail/gripper_command__type_support.h" - -#endif // CONTROL_MSGS__ACTION__GRIPPER_COMMAND_H_ diff --git a/src/control_msgs/action/joint_trajectory.h b/src/control_msgs/action/joint_trajectory.h deleted file mode 100755 index c5d9eea65..000000000 --- a/src/control_msgs/action/joint_trajectory.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:action/JointTrajectory.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__ACTION__JOINT_TRAJECTORY_H_ -#define CONTROL_MSGS__ACTION__JOINT_TRAJECTORY_H_ - -#include "control_msgs/action/detail/joint_trajectory__struct.h" -#include "control_msgs/action/detail/joint_trajectory__functions.h" -#include "control_msgs/action/detail/joint_trajectory__type_support.h" - -#endif // CONTROL_MSGS__ACTION__JOINT_TRAJECTORY_H_ diff --git a/src/control_msgs/action/point_head.h b/src/control_msgs/action/point_head.h deleted file mode 100755 index 150375dc7..000000000 --- a/src/control_msgs/action/point_head.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:action/PointHead.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__ACTION__POINT_HEAD_H_ -#define CONTROL_MSGS__ACTION__POINT_HEAD_H_ - -#include "control_msgs/action/detail/point_head__struct.h" -#include "control_msgs/action/detail/point_head__functions.h" -#include "control_msgs/action/detail/point_head__type_support.h" - -#endif // CONTROL_MSGS__ACTION__POINT_HEAD_H_ diff --git a/src/control_msgs/action/single_joint_position.h b/src/control_msgs/action/single_joint_position.h deleted file mode 100755 index 3bc876b63..000000000 --- a/src/control_msgs/action/single_joint_position.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:action/SingleJointPosition.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__ACTION__SINGLE_JOINT_POSITION_H_ -#define CONTROL_MSGS__ACTION__SINGLE_JOINT_POSITION_H_ - -#include "control_msgs/action/detail/single_joint_position__struct.h" -#include "control_msgs/action/detail/single_joint_position__functions.h" -#include "control_msgs/action/detail/single_joint_position__type_support.h" - -#endif // CONTROL_MSGS__ACTION__SINGLE_JOINT_POSITION_H_ diff --git a/src/control_msgs/msg/detail/dynamic_joint_state__functions.h b/src/control_msgs/msg/detail/dynamic_joint_state__functions.h deleted file mode 100755 index a01828314..000000000 --- a/src/control_msgs/msg/detail/dynamic_joint_state__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:msg/DynamicJointState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/dynamic_joint_state.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__DYNAMIC_JOINT_STATE__FUNCTIONS_H_ -#define CONTROL_MSGS__MSG__DETAIL__DYNAMIC_JOINT_STATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/msg/detail/dynamic_joint_state__struct.h" - -/// Initialize msg/DynamicJointState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__msg__DynamicJointState - * )) before or use - * control_msgs__msg__DynamicJointState__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__DynamicJointState__init(control_msgs__msg__DynamicJointState * msg); - -/// Finalize msg/DynamicJointState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__DynamicJointState__fini(control_msgs__msg__DynamicJointState * msg); - -/// Create msg/DynamicJointState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__msg__DynamicJointState__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__DynamicJointState * -control_msgs__msg__DynamicJointState__create(void); - -/// Destroy msg/DynamicJointState message. -/** - * It calls - * control_msgs__msg__DynamicJointState__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__DynamicJointState__destroy(control_msgs__msg__DynamicJointState * msg); - -/// Check for msg/DynamicJointState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__DynamicJointState__are_equal(const control_msgs__msg__DynamicJointState * lhs, const control_msgs__msg__DynamicJointState * rhs); - -/// Copy a msg/DynamicJointState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__DynamicJointState__copy( - const control_msgs__msg__DynamicJointState * input, - control_msgs__msg__DynamicJointState * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__msg__DynamicJointState__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__msg__DynamicJointState__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__msg__DynamicJointState__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__msg__DynamicJointState__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/DynamicJointState messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__msg__DynamicJointState__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__DynamicJointState__Sequence__init(control_msgs__msg__DynamicJointState__Sequence * array, size_t size); - -/// Finalize array of msg/DynamicJointState messages. -/** - * It calls - * control_msgs__msg__DynamicJointState__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__DynamicJointState__Sequence__fini(control_msgs__msg__DynamicJointState__Sequence * array); - -/// Create array of msg/DynamicJointState messages. -/** - * It allocates the memory for the array and calls - * control_msgs__msg__DynamicJointState__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__DynamicJointState__Sequence * -control_msgs__msg__DynamicJointState__Sequence__create(size_t size); - -/// Destroy array of msg/DynamicJointState messages. -/** - * It calls - * control_msgs__msg__DynamicJointState__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__DynamicJointState__Sequence__destroy(control_msgs__msg__DynamicJointState__Sequence * array); - -/// Check for msg/DynamicJointState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__DynamicJointState__Sequence__are_equal(const control_msgs__msg__DynamicJointState__Sequence * lhs, const control_msgs__msg__DynamicJointState__Sequence * rhs); - -/// Copy an array of msg/DynamicJointState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__DynamicJointState__Sequence__copy( - const control_msgs__msg__DynamicJointState__Sequence * input, - control_msgs__msg__DynamicJointState__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__DYNAMIC_JOINT_STATE__FUNCTIONS_H_ diff --git a/src/control_msgs/msg/detail/dynamic_joint_state__rosidl_typesupport_introspection_c.h b/src/control_msgs/msg/detail/dynamic_joint_state__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 2a58f463d..000000000 --- a/src/control_msgs/msg/detail/dynamic_joint_state__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:msg/DynamicJointState.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__DETAIL__DYNAMIC_JOINT_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__MSG__DETAIL__DYNAMIC_JOINT_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, msg, DynamicJointState)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__DYNAMIC_JOINT_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/msg/detail/dynamic_joint_state__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/msg/detail/dynamic_joint_state__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 2cfcdc093..000000000 --- a/src/control_msgs/msg/detail/dynamic_joint_state__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:msg/DynamicJointState.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__MSG__DYNAMIC_JOINT_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__MSG__DYNAMIC_JOINT_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__msg__DynamicJointState( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__msg__DynamicJointState( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, msg, DynamicJointState)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__MSG__DYNAMIC_JOINT_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/msg/detail/dynamic_joint_state__struct.h b/src/control_msgs/msg/detail/dynamic_joint_state__struct.h deleted file mode 100755 index 8e127bfae..000000000 --- a/src/control_msgs/msg/detail/dynamic_joint_state__struct.h +++ /dev/null @@ -1,54 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:msg/DynamicJointState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/dynamic_joint_state.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__DYNAMIC_JOINT_STATE__STRUCT_H_ -#define CONTROL_MSGS__MSG__DETAIL__DYNAMIC_JOINT_STATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'joint_names' -#include "rosidl_runtime_c/string.h" -// Member 'interface_values' -#include "control_msgs/msg/detail/interface_value__struct.h" - -/// Struct defined in msg/DynamicJointState in the package control_msgs. -typedef struct control_msgs__msg__DynamicJointState -{ - std_msgs__msg__Header header; - /// List of resource names, e.g. ["arm_joint_1", "arm_joint_2", "gripper_joint"] - rosidl_runtime_c__String__Sequence joint_names; - /// Key-value pairs representing interfaces and their corresponding values for each joint listed in `joint_names` - control_msgs__msg__InterfaceValue__Sequence interface_values; -} control_msgs__msg__DynamicJointState; - -// Struct for a sequence of control_msgs__msg__DynamicJointState. -typedef struct control_msgs__msg__DynamicJointState__Sequence -{ - control_msgs__msg__DynamicJointState * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__msg__DynamicJointState__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__DYNAMIC_JOINT_STATE__STRUCT_H_ diff --git a/src/control_msgs/msg/detail/dynamic_joint_state__type_support.h b/src/control_msgs/msg/detail/dynamic_joint_state__type_support.h deleted file mode 100755 index 40547ecb7..000000000 --- a/src/control_msgs/msg/detail/dynamic_joint_state__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:msg/DynamicJointState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/dynamic_joint_state.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__DYNAMIC_JOINT_STATE__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__MSG__DETAIL__DYNAMIC_JOINT_STATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - msg, - DynamicJointState -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__DYNAMIC_JOINT_STATE__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/msg/detail/gripper_command__functions.h b/src/control_msgs/msg/detail/gripper_command__functions.h deleted file mode 100755 index 508640fa2..000000000 --- a/src/control_msgs/msg/detail/gripper_command__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:msg/GripperCommand.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/gripper_command.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__GRIPPER_COMMAND__FUNCTIONS_H_ -#define CONTROL_MSGS__MSG__DETAIL__GRIPPER_COMMAND__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/msg/detail/gripper_command__struct.h" - -/// Initialize msg/GripperCommand message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__msg__GripperCommand - * )) before or use - * control_msgs__msg__GripperCommand__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__GripperCommand__init(control_msgs__msg__GripperCommand * msg); - -/// Finalize msg/GripperCommand message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__GripperCommand__fini(control_msgs__msg__GripperCommand * msg); - -/// Create msg/GripperCommand message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__msg__GripperCommand__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__GripperCommand * -control_msgs__msg__GripperCommand__create(void); - -/// Destroy msg/GripperCommand message. -/** - * It calls - * control_msgs__msg__GripperCommand__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__GripperCommand__destroy(control_msgs__msg__GripperCommand * msg); - -/// Check for msg/GripperCommand message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__GripperCommand__are_equal(const control_msgs__msg__GripperCommand * lhs, const control_msgs__msg__GripperCommand * rhs); - -/// Copy a msg/GripperCommand message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__GripperCommand__copy( - const control_msgs__msg__GripperCommand * input, - control_msgs__msg__GripperCommand * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__msg__GripperCommand__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__msg__GripperCommand__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__msg__GripperCommand__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__msg__GripperCommand__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/GripperCommand messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__msg__GripperCommand__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__GripperCommand__Sequence__init(control_msgs__msg__GripperCommand__Sequence * array, size_t size); - -/// Finalize array of msg/GripperCommand messages. -/** - * It calls - * control_msgs__msg__GripperCommand__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__GripperCommand__Sequence__fini(control_msgs__msg__GripperCommand__Sequence * array); - -/// Create array of msg/GripperCommand messages. -/** - * It allocates the memory for the array and calls - * control_msgs__msg__GripperCommand__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__GripperCommand__Sequence * -control_msgs__msg__GripperCommand__Sequence__create(size_t size); - -/// Destroy array of msg/GripperCommand messages. -/** - * It calls - * control_msgs__msg__GripperCommand__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__GripperCommand__Sequence__destroy(control_msgs__msg__GripperCommand__Sequence * array); - -/// Check for msg/GripperCommand message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__GripperCommand__Sequence__are_equal(const control_msgs__msg__GripperCommand__Sequence * lhs, const control_msgs__msg__GripperCommand__Sequence * rhs); - -/// Copy an array of msg/GripperCommand messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__GripperCommand__Sequence__copy( - const control_msgs__msg__GripperCommand__Sequence * input, - control_msgs__msg__GripperCommand__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__GRIPPER_COMMAND__FUNCTIONS_H_ diff --git a/src/control_msgs/msg/detail/gripper_command__rosidl_typesupport_introspection_c.h b/src/control_msgs/msg/detail/gripper_command__rosidl_typesupport_introspection_c.h deleted file mode 100755 index ff6580e89..000000000 --- a/src/control_msgs/msg/detail/gripper_command__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:msg/GripperCommand.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__DETAIL__GRIPPER_COMMAND__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__MSG__DETAIL__GRIPPER_COMMAND__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, msg, GripperCommand)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__GRIPPER_COMMAND__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/msg/detail/gripper_command__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/msg/detail/gripper_command__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 2f426f54b..000000000 --- a/src/control_msgs/msg/detail/gripper_command__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:msg/GripperCommand.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__MSG__GRIPPER_COMMAND__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__MSG__GRIPPER_COMMAND__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__msg__GripperCommand( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__msg__GripperCommand( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, msg, GripperCommand)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__MSG__GRIPPER_COMMAND__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/msg/detail/gripper_command__struct.h b/src/control_msgs/msg/detail/gripper_command__struct.h deleted file mode 100755 index 1933a2469..000000000 --- a/src/control_msgs/msg/detail/gripper_command__struct.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:msg/GripperCommand.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/gripper_command.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__GRIPPER_COMMAND__STRUCT_H_ -#define CONTROL_MSGS__MSG__DETAIL__GRIPPER_COMMAND__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/GripperCommand in the package control_msgs. -typedef struct control_msgs__msg__GripperCommand -{ - double position; - double max_effort; -} control_msgs__msg__GripperCommand; - -// Struct for a sequence of control_msgs__msg__GripperCommand. -typedef struct control_msgs__msg__GripperCommand__Sequence -{ - control_msgs__msg__GripperCommand * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__msg__GripperCommand__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__GRIPPER_COMMAND__STRUCT_H_ diff --git a/src/control_msgs/msg/detail/gripper_command__type_support.h b/src/control_msgs/msg/detail/gripper_command__type_support.h deleted file mode 100755 index 1da03bb72..000000000 --- a/src/control_msgs/msg/detail/gripper_command__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:msg/GripperCommand.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/gripper_command.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__GRIPPER_COMMAND__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__MSG__DETAIL__GRIPPER_COMMAND__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - msg, - GripperCommand -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__GRIPPER_COMMAND__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/msg/detail/interface_value__functions.h b/src/control_msgs/msg/detail/interface_value__functions.h deleted file mode 100755 index 768081bda..000000000 --- a/src/control_msgs/msg/detail/interface_value__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:msg/InterfaceValue.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/interface_value.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__INTERFACE_VALUE__FUNCTIONS_H_ -#define CONTROL_MSGS__MSG__DETAIL__INTERFACE_VALUE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/msg/detail/interface_value__struct.h" - -/// Initialize msg/InterfaceValue message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__msg__InterfaceValue - * )) before or use - * control_msgs__msg__InterfaceValue__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__InterfaceValue__init(control_msgs__msg__InterfaceValue * msg); - -/// Finalize msg/InterfaceValue message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__InterfaceValue__fini(control_msgs__msg__InterfaceValue * msg); - -/// Create msg/InterfaceValue message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__msg__InterfaceValue__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__InterfaceValue * -control_msgs__msg__InterfaceValue__create(void); - -/// Destroy msg/InterfaceValue message. -/** - * It calls - * control_msgs__msg__InterfaceValue__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__InterfaceValue__destroy(control_msgs__msg__InterfaceValue * msg); - -/// Check for msg/InterfaceValue message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__InterfaceValue__are_equal(const control_msgs__msg__InterfaceValue * lhs, const control_msgs__msg__InterfaceValue * rhs); - -/// Copy a msg/InterfaceValue message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__InterfaceValue__copy( - const control_msgs__msg__InterfaceValue * input, - control_msgs__msg__InterfaceValue * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__msg__InterfaceValue__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__msg__InterfaceValue__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__msg__InterfaceValue__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__msg__InterfaceValue__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/InterfaceValue messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__msg__InterfaceValue__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__InterfaceValue__Sequence__init(control_msgs__msg__InterfaceValue__Sequence * array, size_t size); - -/// Finalize array of msg/InterfaceValue messages. -/** - * It calls - * control_msgs__msg__InterfaceValue__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__InterfaceValue__Sequence__fini(control_msgs__msg__InterfaceValue__Sequence * array); - -/// Create array of msg/InterfaceValue messages. -/** - * It allocates the memory for the array and calls - * control_msgs__msg__InterfaceValue__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__InterfaceValue__Sequence * -control_msgs__msg__InterfaceValue__Sequence__create(size_t size); - -/// Destroy array of msg/InterfaceValue messages. -/** - * It calls - * control_msgs__msg__InterfaceValue__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__InterfaceValue__Sequence__destroy(control_msgs__msg__InterfaceValue__Sequence * array); - -/// Check for msg/InterfaceValue message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__InterfaceValue__Sequence__are_equal(const control_msgs__msg__InterfaceValue__Sequence * lhs, const control_msgs__msg__InterfaceValue__Sequence * rhs); - -/// Copy an array of msg/InterfaceValue messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__InterfaceValue__Sequence__copy( - const control_msgs__msg__InterfaceValue__Sequence * input, - control_msgs__msg__InterfaceValue__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__INTERFACE_VALUE__FUNCTIONS_H_ diff --git a/src/control_msgs/msg/detail/interface_value__rosidl_typesupport_introspection_c.h b/src/control_msgs/msg/detail/interface_value__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 83011eeac..000000000 --- a/src/control_msgs/msg/detail/interface_value__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:msg/InterfaceValue.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__DETAIL__INTERFACE_VALUE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__MSG__DETAIL__INTERFACE_VALUE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, msg, InterfaceValue)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__INTERFACE_VALUE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/msg/detail/interface_value__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/msg/detail/interface_value__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 1f25c7f09..000000000 --- a/src/control_msgs/msg/detail/interface_value__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:msg/InterfaceValue.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__MSG__INTERFACE_VALUE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__MSG__INTERFACE_VALUE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__msg__InterfaceValue( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__msg__InterfaceValue( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, msg, InterfaceValue)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__MSG__INTERFACE_VALUE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/msg/detail/interface_value__struct.h b/src/control_msgs/msg/detail/interface_value__struct.h deleted file mode 100755 index 8a0c3dde9..000000000 --- a/src/control_msgs/msg/detail/interface_value__struct.h +++ /dev/null @@ -1,53 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:msg/InterfaceValue.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/interface_value.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__INTERFACE_VALUE__STRUCT_H_ -#define CONTROL_MSGS__MSG__DETAIL__INTERFACE_VALUE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'interface_names' -#include "rosidl_runtime_c/string.h" -// Member 'values' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/InterfaceValue in the package control_msgs. -/** - * List of resource interface names - */ -typedef struct control_msgs__msg__InterfaceValue -{ - rosidl_runtime_c__String__Sequence interface_names; - /// Values corresponding to the list of interfaces in `interface_names`, [1.0, 0.0] for example - rosidl_runtime_c__double__Sequence values; -} control_msgs__msg__InterfaceValue; - -// Struct for a sequence of control_msgs__msg__InterfaceValue. -typedef struct control_msgs__msg__InterfaceValue__Sequence -{ - control_msgs__msg__InterfaceValue * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__msg__InterfaceValue__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__INTERFACE_VALUE__STRUCT_H_ diff --git a/src/control_msgs/msg/detail/interface_value__type_support.h b/src/control_msgs/msg/detail/interface_value__type_support.h deleted file mode 100755 index 83901555d..000000000 --- a/src/control_msgs/msg/detail/interface_value__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:msg/InterfaceValue.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/interface_value.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__INTERFACE_VALUE__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__MSG__DETAIL__INTERFACE_VALUE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - msg, - InterfaceValue -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__INTERFACE_VALUE__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/msg/detail/joint_component_tolerance__functions.h b/src/control_msgs/msg/detail/joint_component_tolerance__functions.h deleted file mode 100755 index dbe76b76e..000000000 --- a/src/control_msgs/msg/detail/joint_component_tolerance__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:msg/JointComponentTolerance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_component_tolerance.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_COMPONENT_TOLERANCE__FUNCTIONS_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_COMPONENT_TOLERANCE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/msg/detail/joint_component_tolerance__struct.h" - -/// Initialize msg/JointComponentTolerance message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__msg__JointComponentTolerance - * )) before or use - * control_msgs__msg__JointComponentTolerance__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointComponentTolerance__init(control_msgs__msg__JointComponentTolerance * msg); - -/// Finalize msg/JointComponentTolerance message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointComponentTolerance__fini(control_msgs__msg__JointComponentTolerance * msg); - -/// Create msg/JointComponentTolerance message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__msg__JointComponentTolerance__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__JointComponentTolerance * -control_msgs__msg__JointComponentTolerance__create(void); - -/// Destroy msg/JointComponentTolerance message. -/** - * It calls - * control_msgs__msg__JointComponentTolerance__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointComponentTolerance__destroy(control_msgs__msg__JointComponentTolerance * msg); - -/// Check for msg/JointComponentTolerance message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointComponentTolerance__are_equal(const control_msgs__msg__JointComponentTolerance * lhs, const control_msgs__msg__JointComponentTolerance * rhs); - -/// Copy a msg/JointComponentTolerance message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointComponentTolerance__copy( - const control_msgs__msg__JointComponentTolerance * input, - control_msgs__msg__JointComponentTolerance * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__msg__JointComponentTolerance__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__msg__JointComponentTolerance__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__msg__JointComponentTolerance__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__msg__JointComponentTolerance__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/JointComponentTolerance messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__msg__JointComponentTolerance__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointComponentTolerance__Sequence__init(control_msgs__msg__JointComponentTolerance__Sequence * array, size_t size); - -/// Finalize array of msg/JointComponentTolerance messages. -/** - * It calls - * control_msgs__msg__JointComponentTolerance__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointComponentTolerance__Sequence__fini(control_msgs__msg__JointComponentTolerance__Sequence * array); - -/// Create array of msg/JointComponentTolerance messages. -/** - * It allocates the memory for the array and calls - * control_msgs__msg__JointComponentTolerance__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__JointComponentTolerance__Sequence * -control_msgs__msg__JointComponentTolerance__Sequence__create(size_t size); - -/// Destroy array of msg/JointComponentTolerance messages. -/** - * It calls - * control_msgs__msg__JointComponentTolerance__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointComponentTolerance__Sequence__destroy(control_msgs__msg__JointComponentTolerance__Sequence * array); - -/// Check for msg/JointComponentTolerance message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointComponentTolerance__Sequence__are_equal(const control_msgs__msg__JointComponentTolerance__Sequence * lhs, const control_msgs__msg__JointComponentTolerance__Sequence * rhs); - -/// Copy an array of msg/JointComponentTolerance messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointComponentTolerance__Sequence__copy( - const control_msgs__msg__JointComponentTolerance__Sequence * input, - control_msgs__msg__JointComponentTolerance__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_COMPONENT_TOLERANCE__FUNCTIONS_H_ diff --git a/src/control_msgs/msg/detail/joint_component_tolerance__rosidl_typesupport_introspection_c.h b/src/control_msgs/msg/detail/joint_component_tolerance__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 456e9dfeb..000000000 --- a/src/control_msgs/msg/detail/joint_component_tolerance__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:msg/JointComponentTolerance.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_COMPONENT_TOLERANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_COMPONENT_TOLERANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, msg, JointComponentTolerance)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_COMPONENT_TOLERANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/msg/detail/joint_component_tolerance__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/msg/detail/joint_component_tolerance__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 7a9c816ab..000000000 --- a/src/control_msgs/msg/detail/joint_component_tolerance__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:msg/JointComponentTolerance.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__MSG__JOINT_COMPONENT_TOLERANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__MSG__JOINT_COMPONENT_TOLERANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__msg__JointComponentTolerance( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__msg__JointComponentTolerance( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, msg, JointComponentTolerance)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__MSG__JOINT_COMPONENT_TOLERANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/msg/detail/joint_component_tolerance__struct.h b/src/control_msgs/msg/detail/joint_component_tolerance__struct.h deleted file mode 100755 index 700079df0..000000000 --- a/src/control_msgs/msg/detail/joint_component_tolerance__struct.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:msg/JointComponentTolerance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_component_tolerance.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_COMPONENT_TOLERANCE__STRUCT_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_COMPONENT_TOLERANCE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'X_AXIS'. -/** - * Since each joint has multiple degrees of freedom, - * there can be multiple tolerances for each joint, each looking - * at different components. - * If the component is X_AXIS, Y_AXIS, or Z_AXIS, then the tolerance - * is only applied for the specific axis. - * However, if the component is TRANSLATION, then the tolerance is for - * the overall Euclidean distance. - * For these components, the units are meters, meters/sec and meters/sec^2. - * Z_AXIS is only valid with a floating joint, not planar. - * If the component is ROTATION the tolerance is measured in - * radians, radians/sec and radians/sec^2, computed - * between the difference in quaternions. - */ -enum -{ - control_msgs__msg__JointComponentTolerance__X_AXIS = 1 -}; - -/// Constant 'Y_AXIS'. -enum -{ - control_msgs__msg__JointComponentTolerance__Y_AXIS = 2 -}; - -/// Constant 'Z_AXIS'. -enum -{ - control_msgs__msg__JointComponentTolerance__Z_AXIS = 3 -}; - -/// Constant 'TRANSLATION'. -enum -{ - control_msgs__msg__JointComponentTolerance__TRANSLATION = 4 -}; - -/// Constant 'ROTATION'. -enum -{ - control_msgs__msg__JointComponentTolerance__ROTATION = 5 -}; - -// Include directives for member types -// Member 'joint_name' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/JointComponentTolerance in the package control_msgs. -/** - * Version of JointTolerance.msg with added component field for joints with multiple degrees of freedom - * The difference between two MultiDOFJointTrajectoryPoint cannot be represented as a single number, - * hence we use the component field to represent how to calculate the difference in a way that can - * be represented as a single number. - */ -typedef struct control_msgs__msg__JointComponentTolerance -{ - rosidl_runtime_c__String joint_name; - uint16_t component; - double position; - double velocity; - double acceleration; -} control_msgs__msg__JointComponentTolerance; - -// Struct for a sequence of control_msgs__msg__JointComponentTolerance. -typedef struct control_msgs__msg__JointComponentTolerance__Sequence -{ - control_msgs__msg__JointComponentTolerance * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__msg__JointComponentTolerance__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_COMPONENT_TOLERANCE__STRUCT_H_ diff --git a/src/control_msgs/msg/detail/joint_component_tolerance__type_support.h b/src/control_msgs/msg/detail/joint_component_tolerance__type_support.h deleted file mode 100755 index c2eb84cf9..000000000 --- a/src/control_msgs/msg/detail/joint_component_tolerance__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:msg/JointComponentTolerance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_component_tolerance.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_COMPONENT_TOLERANCE__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_COMPONENT_TOLERANCE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - msg, - JointComponentTolerance -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_COMPONENT_TOLERANCE__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/msg/detail/joint_controller_state__functions.h b/src/control_msgs/msg/detail/joint_controller_state__functions.h deleted file mode 100755 index abcb4d064..000000000 --- a/src/control_msgs/msg/detail/joint_controller_state__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:msg/JointControllerState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_controller_state.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_CONTROLLER_STATE__FUNCTIONS_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_CONTROLLER_STATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/msg/detail/joint_controller_state__struct.h" - -/// Initialize msg/JointControllerState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__msg__JointControllerState - * )) before or use - * control_msgs__msg__JointControllerState__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointControllerState__init(control_msgs__msg__JointControllerState * msg); - -/// Finalize msg/JointControllerState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointControllerState__fini(control_msgs__msg__JointControllerState * msg); - -/// Create msg/JointControllerState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__msg__JointControllerState__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__JointControllerState * -control_msgs__msg__JointControllerState__create(void); - -/// Destroy msg/JointControllerState message. -/** - * It calls - * control_msgs__msg__JointControllerState__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointControllerState__destroy(control_msgs__msg__JointControllerState * msg); - -/// Check for msg/JointControllerState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointControllerState__are_equal(const control_msgs__msg__JointControllerState * lhs, const control_msgs__msg__JointControllerState * rhs); - -/// Copy a msg/JointControllerState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointControllerState__copy( - const control_msgs__msg__JointControllerState * input, - control_msgs__msg__JointControllerState * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__msg__JointControllerState__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__msg__JointControllerState__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__msg__JointControllerState__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__msg__JointControllerState__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/JointControllerState messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__msg__JointControllerState__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointControllerState__Sequence__init(control_msgs__msg__JointControllerState__Sequence * array, size_t size); - -/// Finalize array of msg/JointControllerState messages. -/** - * It calls - * control_msgs__msg__JointControllerState__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointControllerState__Sequence__fini(control_msgs__msg__JointControllerState__Sequence * array); - -/// Create array of msg/JointControllerState messages. -/** - * It allocates the memory for the array and calls - * control_msgs__msg__JointControllerState__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__JointControllerState__Sequence * -control_msgs__msg__JointControllerState__Sequence__create(size_t size); - -/// Destroy array of msg/JointControllerState messages. -/** - * It calls - * control_msgs__msg__JointControllerState__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointControllerState__Sequence__destroy(control_msgs__msg__JointControllerState__Sequence * array); - -/// Check for msg/JointControllerState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointControllerState__Sequence__are_equal(const control_msgs__msg__JointControllerState__Sequence * lhs, const control_msgs__msg__JointControllerState__Sequence * rhs); - -/// Copy an array of msg/JointControllerState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointControllerState__Sequence__copy( - const control_msgs__msg__JointControllerState__Sequence * input, - control_msgs__msg__JointControllerState__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_CONTROLLER_STATE__FUNCTIONS_H_ diff --git a/src/control_msgs/msg/detail/joint_controller_state__rosidl_typesupport_introspection_c.h b/src/control_msgs/msg/detail/joint_controller_state__rosidl_typesupport_introspection_c.h deleted file mode 100755 index ef67082ee..000000000 --- a/src/control_msgs/msg/detail/joint_controller_state__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:msg/JointControllerState.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_CONTROLLER_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_CONTROLLER_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, msg, JointControllerState)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_CONTROLLER_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/msg/detail/joint_controller_state__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/msg/detail/joint_controller_state__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 7e413cc20..000000000 --- a/src/control_msgs/msg/detail/joint_controller_state__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:msg/JointControllerState.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__MSG__JOINT_CONTROLLER_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__MSG__JOINT_CONTROLLER_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__msg__JointControllerState( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__msg__JointControllerState( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, msg, JointControllerState)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__MSG__JOINT_CONTROLLER_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/msg/detail/joint_controller_state__struct.h b/src/control_msgs/msg/detail/joint_controller_state__struct.h deleted file mode 100755 index 3d650c984..000000000 --- a/src/control_msgs/msg/detail/joint_controller_state__struct.h +++ /dev/null @@ -1,68 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:msg/JointControllerState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_controller_state.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_CONTROLLER_STATE__STRUCT_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_CONTROLLER_STATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" - -/// Struct defined in msg/JointControllerState in the package control_msgs. -/** - * This message presents current controller state of one joint. - */ -typedef struct control_msgs__msg__JointControllerState -{ - /// Header timestamp should be update time of controller state - std_msgs__msg__Header header; - /// The set point, that is, desired state. - double set_point; - /// Current value of the process (ie: latest sensor measurement on the controlled value). - double process_value; - /// First time-derivative of the process value. - double process_value_dot; - /// The error of the controlled value, essentially process_value - set_point (for a regular PID implementation). - double error; - /// Time between two consecutive updates/execution of the control law. - double time_step; - /// Current output of the controller. - double command; - /// Current PID parameters of the controller. - double p; - double i; - double d; - double i_clamp; - bool antiwindup; -} control_msgs__msg__JointControllerState; - -// Struct for a sequence of control_msgs__msg__JointControllerState. -typedef struct control_msgs__msg__JointControllerState__Sequence -{ - control_msgs__msg__JointControllerState * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__msg__JointControllerState__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_CONTROLLER_STATE__STRUCT_H_ diff --git a/src/control_msgs/msg/detail/joint_controller_state__type_support.h b/src/control_msgs/msg/detail/joint_controller_state__type_support.h deleted file mode 100755 index b0bc359bc..000000000 --- a/src/control_msgs/msg/detail/joint_controller_state__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:msg/JointControllerState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_controller_state.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_CONTROLLER_STATE__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_CONTROLLER_STATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - msg, - JointControllerState -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_CONTROLLER_STATE__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/msg/detail/joint_jog__functions.h b/src/control_msgs/msg/detail/joint_jog__functions.h deleted file mode 100755 index 3bca0d3ea..000000000 --- a/src/control_msgs/msg/detail/joint_jog__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:msg/JointJog.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_jog.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_JOG__FUNCTIONS_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_JOG__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/msg/detail/joint_jog__struct.h" - -/// Initialize msg/JointJog message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__msg__JointJog - * )) before or use - * control_msgs__msg__JointJog__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointJog__init(control_msgs__msg__JointJog * msg); - -/// Finalize msg/JointJog message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointJog__fini(control_msgs__msg__JointJog * msg); - -/// Create msg/JointJog message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__msg__JointJog__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__JointJog * -control_msgs__msg__JointJog__create(void); - -/// Destroy msg/JointJog message. -/** - * It calls - * control_msgs__msg__JointJog__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointJog__destroy(control_msgs__msg__JointJog * msg); - -/// Check for msg/JointJog message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointJog__are_equal(const control_msgs__msg__JointJog * lhs, const control_msgs__msg__JointJog * rhs); - -/// Copy a msg/JointJog message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointJog__copy( - const control_msgs__msg__JointJog * input, - control_msgs__msg__JointJog * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__msg__JointJog__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__msg__JointJog__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__msg__JointJog__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__msg__JointJog__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/JointJog messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__msg__JointJog__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointJog__Sequence__init(control_msgs__msg__JointJog__Sequence * array, size_t size); - -/// Finalize array of msg/JointJog messages. -/** - * It calls - * control_msgs__msg__JointJog__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointJog__Sequence__fini(control_msgs__msg__JointJog__Sequence * array); - -/// Create array of msg/JointJog messages. -/** - * It allocates the memory for the array and calls - * control_msgs__msg__JointJog__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__JointJog__Sequence * -control_msgs__msg__JointJog__Sequence__create(size_t size); - -/// Destroy array of msg/JointJog messages. -/** - * It calls - * control_msgs__msg__JointJog__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointJog__Sequence__destroy(control_msgs__msg__JointJog__Sequence * array); - -/// Check for msg/JointJog message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointJog__Sequence__are_equal(const control_msgs__msg__JointJog__Sequence * lhs, const control_msgs__msg__JointJog__Sequence * rhs); - -/// Copy an array of msg/JointJog messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointJog__Sequence__copy( - const control_msgs__msg__JointJog__Sequence * input, - control_msgs__msg__JointJog__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_JOG__FUNCTIONS_H_ diff --git a/src/control_msgs/msg/detail/joint_jog__rosidl_typesupport_introspection_c.h b/src/control_msgs/msg/detail/joint_jog__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 573e036e8..000000000 --- a/src/control_msgs/msg/detail/joint_jog__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:msg/JointJog.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_JOG__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_JOG__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, msg, JointJog)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_JOG__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/msg/detail/joint_jog__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/msg/detail/joint_jog__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 0aca25528..000000000 --- a/src/control_msgs/msg/detail/joint_jog__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:msg/JointJog.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__MSG__JOINT_JOG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__MSG__JOINT_JOG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__msg__JointJog( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__msg__JointJog( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, msg, JointJog)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__MSG__JOINT_JOG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/msg/detail/joint_jog__struct.h b/src/control_msgs/msg/detail/joint_jog__struct.h deleted file mode 100755 index 7503ca28e..000000000 --- a/src/control_msgs/msg/detail/joint_jog__struct.h +++ /dev/null @@ -1,69 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:msg/JointJog.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_jog.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_JOG__STRUCT_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_JOG__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'joint_names' -#include "rosidl_runtime_c/string.h" -// Member 'displacements' -// Member 'velocities' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/JointJog in the package control_msgs. -/** - * Used in time-stamping the message. - */ -typedef struct control_msgs__msg__JointJog -{ - std_msgs__msg__Header header; - /// Name list of the joints. You don't need to specify all joints of the - /// robot. Joint names are case-sensitive. - rosidl_runtime_c__String__Sequence joint_names; - /// A position command to the joints listed in joint_names. - /// The order must be identical. - /// Units are meters or radians. - /// If displacements and velocities are filled, a profiled motion is requested. - /// or position_deltas - rosidl_runtime_c__double__Sequence displacements; - /// A velocity command to the joints listed in joint_names. - /// The order must be identical. - /// Units are m/s or rad/s. - /// If displacements and velocities are filled, a profiled motion is requested. - rosidl_runtime_c__double__Sequence velocities; - double duration; -} control_msgs__msg__JointJog; - -// Struct for a sequence of control_msgs__msg__JointJog. -typedef struct control_msgs__msg__JointJog__Sequence -{ - control_msgs__msg__JointJog * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__msg__JointJog__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_JOG__STRUCT_H_ diff --git a/src/control_msgs/msg/detail/joint_jog__type_support.h b/src/control_msgs/msg/detail/joint_jog__type_support.h deleted file mode 100755 index 83bfd8d1a..000000000 --- a/src/control_msgs/msg/detail/joint_jog__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:msg/JointJog.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_jog.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_JOG__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_JOG__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - msg, - JointJog -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_JOG__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/msg/detail/joint_tolerance__functions.h b/src/control_msgs/msg/detail/joint_tolerance__functions.h deleted file mode 100755 index 6dc3abfb8..000000000 --- a/src/control_msgs/msg/detail/joint_tolerance__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:msg/JointTolerance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_tolerance.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_TOLERANCE__FUNCTIONS_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_TOLERANCE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/msg/detail/joint_tolerance__struct.h" - -/// Initialize msg/JointTolerance message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__msg__JointTolerance - * )) before or use - * control_msgs__msg__JointTolerance__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointTolerance__init(control_msgs__msg__JointTolerance * msg); - -/// Finalize msg/JointTolerance message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointTolerance__fini(control_msgs__msg__JointTolerance * msg); - -/// Create msg/JointTolerance message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__msg__JointTolerance__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__JointTolerance * -control_msgs__msg__JointTolerance__create(void); - -/// Destroy msg/JointTolerance message. -/** - * It calls - * control_msgs__msg__JointTolerance__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointTolerance__destroy(control_msgs__msg__JointTolerance * msg); - -/// Check for msg/JointTolerance message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointTolerance__are_equal(const control_msgs__msg__JointTolerance * lhs, const control_msgs__msg__JointTolerance * rhs); - -/// Copy a msg/JointTolerance message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointTolerance__copy( - const control_msgs__msg__JointTolerance * input, - control_msgs__msg__JointTolerance * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__msg__JointTolerance__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__msg__JointTolerance__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__msg__JointTolerance__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__msg__JointTolerance__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/JointTolerance messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__msg__JointTolerance__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointTolerance__Sequence__init(control_msgs__msg__JointTolerance__Sequence * array, size_t size); - -/// Finalize array of msg/JointTolerance messages. -/** - * It calls - * control_msgs__msg__JointTolerance__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointTolerance__Sequence__fini(control_msgs__msg__JointTolerance__Sequence * array); - -/// Create array of msg/JointTolerance messages. -/** - * It allocates the memory for the array and calls - * control_msgs__msg__JointTolerance__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__JointTolerance__Sequence * -control_msgs__msg__JointTolerance__Sequence__create(size_t size); - -/// Destroy array of msg/JointTolerance messages. -/** - * It calls - * control_msgs__msg__JointTolerance__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointTolerance__Sequence__destroy(control_msgs__msg__JointTolerance__Sequence * array); - -/// Check for msg/JointTolerance message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointTolerance__Sequence__are_equal(const control_msgs__msg__JointTolerance__Sequence * lhs, const control_msgs__msg__JointTolerance__Sequence * rhs); - -/// Copy an array of msg/JointTolerance messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointTolerance__Sequence__copy( - const control_msgs__msg__JointTolerance__Sequence * input, - control_msgs__msg__JointTolerance__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_TOLERANCE__FUNCTIONS_H_ diff --git a/src/control_msgs/msg/detail/joint_tolerance__rosidl_typesupport_introspection_c.h b/src/control_msgs/msg/detail/joint_tolerance__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 9c25f8a02..000000000 --- a/src/control_msgs/msg/detail/joint_tolerance__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:msg/JointTolerance.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_TOLERANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_TOLERANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, msg, JointTolerance)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_TOLERANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/msg/detail/joint_tolerance__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/msg/detail/joint_tolerance__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 6170dba2e..000000000 --- a/src/control_msgs/msg/detail/joint_tolerance__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:msg/JointTolerance.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__MSG__JOINT_TOLERANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__MSG__JOINT_TOLERANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__msg__JointTolerance( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__msg__JointTolerance( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, msg, JointTolerance)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__MSG__JOINT_TOLERANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/msg/detail/joint_tolerance__struct.h b/src/control_msgs/msg/detail/joint_tolerance__struct.h deleted file mode 100755 index 9ae7de3dc..000000000 --- a/src/control_msgs/msg/detail/joint_tolerance__struct.h +++ /dev/null @@ -1,64 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:msg/JointTolerance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_tolerance.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_TOLERANCE__STRUCT_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_TOLERANCE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'name' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/JointTolerance in the package control_msgs. -/** - * The tolerances specify the amount the position, velocity, and - * accelerations can vary from the setpoints. For example, in the case - * of trajectory control, when the actual position varies beyond - * (desired position + position tolerance), the trajectory goal may - * abort. - * - * There are two special values for tolerances: - * * 0 - The tolerance is unspecified and will remain at whatever the default is - * * -1 - The tolerance is "erased". If there was a default, the joint will be - * allowed to move without restriction. - */ -typedef struct control_msgs__msg__JointTolerance -{ - rosidl_runtime_c__String name; - /// in radians or meters (for a revolute or prismatic joint, respectively) - double position; - /// in rad/sec or m/sec - double velocity; - /// in rad/sec^2 or m/sec^2 - double acceleration; -} control_msgs__msg__JointTolerance; - -// Struct for a sequence of control_msgs__msg__JointTolerance. -typedef struct control_msgs__msg__JointTolerance__Sequence -{ - control_msgs__msg__JointTolerance * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__msg__JointTolerance__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_TOLERANCE__STRUCT_H_ diff --git a/src/control_msgs/msg/detail/joint_tolerance__type_support.h b/src/control_msgs/msg/detail/joint_tolerance__type_support.h deleted file mode 100755 index d01919140..000000000 --- a/src/control_msgs/msg/detail/joint_tolerance__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:msg/JointTolerance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_tolerance.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_TOLERANCE__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_TOLERANCE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - msg, - JointTolerance -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_TOLERANCE__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/msg/detail/joint_trajectory_controller_state__functions.h b/src/control_msgs/msg/detail/joint_trajectory_controller_state__functions.h deleted file mode 100755 index ef2083779..000000000 --- a/src/control_msgs/msg/detail/joint_trajectory_controller_state__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:msg/JointTrajectoryControllerState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_trajectory_controller_state.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_CONTROLLER_STATE__FUNCTIONS_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_CONTROLLER_STATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/msg/detail/joint_trajectory_controller_state__struct.h" - -/// Initialize msg/JointTrajectoryControllerState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__msg__JointTrajectoryControllerState - * )) before or use - * control_msgs__msg__JointTrajectoryControllerState__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointTrajectoryControllerState__init(control_msgs__msg__JointTrajectoryControllerState * msg); - -/// Finalize msg/JointTrajectoryControllerState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointTrajectoryControllerState__fini(control_msgs__msg__JointTrajectoryControllerState * msg); - -/// Create msg/JointTrajectoryControllerState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__msg__JointTrajectoryControllerState__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__JointTrajectoryControllerState * -control_msgs__msg__JointTrajectoryControllerState__create(void); - -/// Destroy msg/JointTrajectoryControllerState message. -/** - * It calls - * control_msgs__msg__JointTrajectoryControllerState__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointTrajectoryControllerState__destroy(control_msgs__msg__JointTrajectoryControllerState * msg); - -/// Check for msg/JointTrajectoryControllerState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointTrajectoryControllerState__are_equal(const control_msgs__msg__JointTrajectoryControllerState * lhs, const control_msgs__msg__JointTrajectoryControllerState * rhs); - -/// Copy a msg/JointTrajectoryControllerState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointTrajectoryControllerState__copy( - const control_msgs__msg__JointTrajectoryControllerState * input, - control_msgs__msg__JointTrajectoryControllerState * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__msg__JointTrajectoryControllerState__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__msg__JointTrajectoryControllerState__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__msg__JointTrajectoryControllerState__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__msg__JointTrajectoryControllerState__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/JointTrajectoryControllerState messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__msg__JointTrajectoryControllerState__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointTrajectoryControllerState__Sequence__init(control_msgs__msg__JointTrajectoryControllerState__Sequence * array, size_t size); - -/// Finalize array of msg/JointTrajectoryControllerState messages. -/** - * It calls - * control_msgs__msg__JointTrajectoryControllerState__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointTrajectoryControllerState__Sequence__fini(control_msgs__msg__JointTrajectoryControllerState__Sequence * array); - -/// Create array of msg/JointTrajectoryControllerState messages. -/** - * It allocates the memory for the array and calls - * control_msgs__msg__JointTrajectoryControllerState__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__JointTrajectoryControllerState__Sequence * -control_msgs__msg__JointTrajectoryControllerState__Sequence__create(size_t size); - -/// Destroy array of msg/JointTrajectoryControllerState messages. -/** - * It calls - * control_msgs__msg__JointTrajectoryControllerState__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__JointTrajectoryControllerState__Sequence__destroy(control_msgs__msg__JointTrajectoryControllerState__Sequence * array); - -/// Check for msg/JointTrajectoryControllerState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointTrajectoryControllerState__Sequence__are_equal(const control_msgs__msg__JointTrajectoryControllerState__Sequence * lhs, const control_msgs__msg__JointTrajectoryControllerState__Sequence * rhs); - -/// Copy an array of msg/JointTrajectoryControllerState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__JointTrajectoryControllerState__Sequence__copy( - const control_msgs__msg__JointTrajectoryControllerState__Sequence * input, - control_msgs__msg__JointTrajectoryControllerState__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_CONTROLLER_STATE__FUNCTIONS_H_ diff --git a/src/control_msgs/msg/detail/joint_trajectory_controller_state__rosidl_typesupport_introspection_c.h b/src/control_msgs/msg/detail/joint_trajectory_controller_state__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 834db3320..000000000 --- a/src/control_msgs/msg/detail/joint_trajectory_controller_state__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:msg/JointTrajectoryControllerState.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_CONTROLLER_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_CONTROLLER_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, msg, JointTrajectoryControllerState)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_CONTROLLER_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/msg/detail/joint_trajectory_controller_state__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/msg/detail/joint_trajectory_controller_state__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 45c99deb6..000000000 --- a/src/control_msgs/msg/detail/joint_trajectory_controller_state__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:msg/JointTrajectoryControllerState.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__MSG__JOINT_TRAJECTORY_CONTROLLER_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__MSG__JOINT_TRAJECTORY_CONTROLLER_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__msg__JointTrajectoryControllerState( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__msg__JointTrajectoryControllerState( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, msg, JointTrajectoryControllerState)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__MSG__JOINT_TRAJECTORY_CONTROLLER_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/msg/detail/joint_trajectory_controller_state__struct.h b/src/control_msgs/msg/detail/joint_trajectory_controller_state__struct.h deleted file mode 100755 index 0d1198ac2..000000000 --- a/src/control_msgs/msg/detail/joint_trajectory_controller_state__struct.h +++ /dev/null @@ -1,57 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:msg/JointTrajectoryControllerState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_trajectory_controller_state.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_CONTROLLER_STATE__STRUCT_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_CONTROLLER_STATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'joint_names' -#include "rosidl_runtime_c/string.h" -// Member 'desired' -// Member 'actual' -// Member 'error' -#include "trajectory_msgs/msg/detail/joint_trajectory_point__struct.h" - -/// Struct defined in msg/JointTrajectoryControllerState in the package control_msgs. -typedef struct control_msgs__msg__JointTrajectoryControllerState -{ - std_msgs__msg__Header header; - rosidl_runtime_c__String__Sequence joint_names; - trajectory_msgs__msg__JointTrajectoryPoint desired; - trajectory_msgs__msg__JointTrajectoryPoint actual; - /// Redundant, but useful - trajectory_msgs__msg__JointTrajectoryPoint error; -} control_msgs__msg__JointTrajectoryControllerState; - -// Struct for a sequence of control_msgs__msg__JointTrajectoryControllerState. -typedef struct control_msgs__msg__JointTrajectoryControllerState__Sequence -{ - control_msgs__msg__JointTrajectoryControllerState * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__msg__JointTrajectoryControllerState__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_CONTROLLER_STATE__STRUCT_H_ diff --git a/src/control_msgs/msg/detail/joint_trajectory_controller_state__type_support.h b/src/control_msgs/msg/detail/joint_trajectory_controller_state__type_support.h deleted file mode 100755 index e2c2ab321..000000000 --- a/src/control_msgs/msg/detail/joint_trajectory_controller_state__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:msg/JointTrajectoryControllerState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/joint_trajectory_controller_state.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_CONTROLLER_STATE__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_CONTROLLER_STATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - msg, - JointTrajectoryControllerState -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_CONTROLLER_STATE__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/msg/detail/pid_state__functions.h b/src/control_msgs/msg/detail/pid_state__functions.h deleted file mode 100755 index 0feebdeb0..000000000 --- a/src/control_msgs/msg/detail/pid_state__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:msg/PidState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/pid_state.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__PID_STATE__FUNCTIONS_H_ -#define CONTROL_MSGS__MSG__DETAIL__PID_STATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/msg/detail/pid_state__struct.h" - -/// Initialize msg/PidState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__msg__PidState - * )) before or use - * control_msgs__msg__PidState__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__PidState__init(control_msgs__msg__PidState * msg); - -/// Finalize msg/PidState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__PidState__fini(control_msgs__msg__PidState * msg); - -/// Create msg/PidState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__msg__PidState__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__PidState * -control_msgs__msg__PidState__create(void); - -/// Destroy msg/PidState message. -/** - * It calls - * control_msgs__msg__PidState__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__PidState__destroy(control_msgs__msg__PidState * msg); - -/// Check for msg/PidState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__PidState__are_equal(const control_msgs__msg__PidState * lhs, const control_msgs__msg__PidState * rhs); - -/// Copy a msg/PidState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__PidState__copy( - const control_msgs__msg__PidState * input, - control_msgs__msg__PidState * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__msg__PidState__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__msg__PidState__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__msg__PidState__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__msg__PidState__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/PidState messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__msg__PidState__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__PidState__Sequence__init(control_msgs__msg__PidState__Sequence * array, size_t size); - -/// Finalize array of msg/PidState messages. -/** - * It calls - * control_msgs__msg__PidState__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__PidState__Sequence__fini(control_msgs__msg__PidState__Sequence * array); - -/// Create array of msg/PidState messages. -/** - * It allocates the memory for the array and calls - * control_msgs__msg__PidState__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__msg__PidState__Sequence * -control_msgs__msg__PidState__Sequence__create(size_t size); - -/// Destroy array of msg/PidState messages. -/** - * It calls - * control_msgs__msg__PidState__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__msg__PidState__Sequence__destroy(control_msgs__msg__PidState__Sequence * array); - -/// Check for msg/PidState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__PidState__Sequence__are_equal(const control_msgs__msg__PidState__Sequence * lhs, const control_msgs__msg__PidState__Sequence * rhs); - -/// Copy an array of msg/PidState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__msg__PidState__Sequence__copy( - const control_msgs__msg__PidState__Sequence * input, - control_msgs__msg__PidState__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__PID_STATE__FUNCTIONS_H_ diff --git a/src/control_msgs/msg/detail/pid_state__rosidl_typesupport_introspection_c.h b/src/control_msgs/msg/detail/pid_state__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 565cbf801..000000000 --- a/src/control_msgs/msg/detail/pid_state__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:msg/PidState.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__DETAIL__PID_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__MSG__DETAIL__PID_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, msg, PidState)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__PID_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/msg/detail/pid_state__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/msg/detail/pid_state__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 10f0aa9cb..000000000 --- a/src/control_msgs/msg/detail/pid_state__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:msg/PidState.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__MSG__PID_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__MSG__PID_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__msg__PidState( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__msg__PidState( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, msg, PidState)(); - -#ifdef __cplusplus -} -#endif - - -#endif // CONTROL_MSGS__MSG__PID_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/msg/detail/pid_state__struct.h b/src/control_msgs/msg/detail/pid_state__struct.h deleted file mode 100755 index c7dd1f590..000000000 --- a/src/control_msgs/msg/detail/pid_state__struct.h +++ /dev/null @@ -1,60 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:msg/PidState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/pid_state.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__PID_STATE__STRUCT_H_ -#define CONTROL_MSGS__MSG__DETAIL__PID_STATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'timestep' -#include "builtin_interfaces/msg/detail/duration__struct.h" - -/// Struct defined in msg/PidState in the package control_msgs. -typedef struct control_msgs__msg__PidState -{ - std_msgs__msg__Header header; - builtin_interfaces__msg__Duration timestep; - double error; - double error_dot; - double p_error; - double i_error; - double d_error; - double p_term; - double i_term; - double d_term; - double i_max; - double i_min; - double output; -} control_msgs__msg__PidState; - -// Struct for a sequence of control_msgs__msg__PidState. -typedef struct control_msgs__msg__PidState__Sequence -{ - control_msgs__msg__PidState * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__msg__PidState__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__PID_STATE__STRUCT_H_ diff --git a/src/control_msgs/msg/detail/pid_state__type_support.h b/src/control_msgs/msg/detail/pid_state__type_support.h deleted file mode 100755 index e880cada2..000000000 --- a/src/control_msgs/msg/detail/pid_state__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:msg/PidState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/msg/pid_state.h" - - -#ifndef CONTROL_MSGS__MSG__DETAIL__PID_STATE__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__MSG__DETAIL__PID_STATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - msg, - PidState -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__DETAIL__PID_STATE__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/msg/dynamic_joint_state.h b/src/control_msgs/msg/dynamic_joint_state.h deleted file mode 100755 index 912c7df8e..000000000 --- a/src/control_msgs/msg/dynamic_joint_state.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:msg/DynamicJointState.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__DYNAMIC_JOINT_STATE_H_ -#define CONTROL_MSGS__MSG__DYNAMIC_JOINT_STATE_H_ - -#include "control_msgs/msg/detail/dynamic_joint_state__struct.h" -#include "control_msgs/msg/detail/dynamic_joint_state__functions.h" -#include "control_msgs/msg/detail/dynamic_joint_state__type_support.h" - -#endif // CONTROL_MSGS__MSG__DYNAMIC_JOINT_STATE_H_ diff --git a/src/control_msgs/msg/gripper_command.h b/src/control_msgs/msg/gripper_command.h deleted file mode 100755 index e7556ec01..000000000 --- a/src/control_msgs/msg/gripper_command.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:msg/GripperCommand.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__GRIPPER_COMMAND_H_ -#define CONTROL_MSGS__MSG__GRIPPER_COMMAND_H_ - -#include "control_msgs/msg/detail/gripper_command__struct.h" -#include "control_msgs/msg/detail/gripper_command__functions.h" -#include "control_msgs/msg/detail/gripper_command__type_support.h" - -#endif // CONTROL_MSGS__MSG__GRIPPER_COMMAND_H_ diff --git a/src/control_msgs/msg/interface_value.h b/src/control_msgs/msg/interface_value.h deleted file mode 100755 index 1f58952eb..000000000 --- a/src/control_msgs/msg/interface_value.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:msg/InterfaceValue.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__INTERFACE_VALUE_H_ -#define CONTROL_MSGS__MSG__INTERFACE_VALUE_H_ - -#include "control_msgs/msg/detail/interface_value__struct.h" -#include "control_msgs/msg/detail/interface_value__functions.h" -#include "control_msgs/msg/detail/interface_value__type_support.h" - -#endif // CONTROL_MSGS__MSG__INTERFACE_VALUE_H_ diff --git a/src/control_msgs/msg/joint_component_tolerance.h b/src/control_msgs/msg/joint_component_tolerance.h deleted file mode 100755 index ba4a14400..000000000 --- a/src/control_msgs/msg/joint_component_tolerance.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:msg/JointComponentTolerance.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__JOINT_COMPONENT_TOLERANCE_H_ -#define CONTROL_MSGS__MSG__JOINT_COMPONENT_TOLERANCE_H_ - -#include "control_msgs/msg/detail/joint_component_tolerance__struct.h" -#include "control_msgs/msg/detail/joint_component_tolerance__functions.h" -#include "control_msgs/msg/detail/joint_component_tolerance__type_support.h" - -#endif // CONTROL_MSGS__MSG__JOINT_COMPONENT_TOLERANCE_H_ diff --git a/src/control_msgs/msg/joint_controller_state.h b/src/control_msgs/msg/joint_controller_state.h deleted file mode 100755 index 1b1b06989..000000000 --- a/src/control_msgs/msg/joint_controller_state.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:msg/JointControllerState.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__JOINT_CONTROLLER_STATE_H_ -#define CONTROL_MSGS__MSG__JOINT_CONTROLLER_STATE_H_ - -#include "control_msgs/msg/detail/joint_controller_state__struct.h" -#include "control_msgs/msg/detail/joint_controller_state__functions.h" -#include "control_msgs/msg/detail/joint_controller_state__type_support.h" - -#endif // CONTROL_MSGS__MSG__JOINT_CONTROLLER_STATE_H_ diff --git a/src/control_msgs/msg/joint_jog.h b/src/control_msgs/msg/joint_jog.h deleted file mode 100755 index d2bce7b11..000000000 --- a/src/control_msgs/msg/joint_jog.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:msg/JointJog.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__JOINT_JOG_H_ -#define CONTROL_MSGS__MSG__JOINT_JOG_H_ - -#include "control_msgs/msg/detail/joint_jog__struct.h" -#include "control_msgs/msg/detail/joint_jog__functions.h" -#include "control_msgs/msg/detail/joint_jog__type_support.h" - -#endif // CONTROL_MSGS__MSG__JOINT_JOG_H_ diff --git a/src/control_msgs/msg/joint_tolerance.h b/src/control_msgs/msg/joint_tolerance.h deleted file mode 100755 index 6e673fdf4..000000000 --- a/src/control_msgs/msg/joint_tolerance.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:msg/JointTolerance.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__JOINT_TOLERANCE_H_ -#define CONTROL_MSGS__MSG__JOINT_TOLERANCE_H_ - -#include "control_msgs/msg/detail/joint_tolerance__struct.h" -#include "control_msgs/msg/detail/joint_tolerance__functions.h" -#include "control_msgs/msg/detail/joint_tolerance__type_support.h" - -#endif // CONTROL_MSGS__MSG__JOINT_TOLERANCE_H_ diff --git a/src/control_msgs/msg/joint_trajectory_controller_state.h b/src/control_msgs/msg/joint_trajectory_controller_state.h deleted file mode 100755 index 478190425..000000000 --- a/src/control_msgs/msg/joint_trajectory_controller_state.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:msg/JointTrajectoryControllerState.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__JOINT_TRAJECTORY_CONTROLLER_STATE_H_ -#define CONTROL_MSGS__MSG__JOINT_TRAJECTORY_CONTROLLER_STATE_H_ - -#include "control_msgs/msg/detail/joint_trajectory_controller_state__struct.h" -#include "control_msgs/msg/detail/joint_trajectory_controller_state__functions.h" -#include "control_msgs/msg/detail/joint_trajectory_controller_state__type_support.h" - -#endif // CONTROL_MSGS__MSG__JOINT_TRAJECTORY_CONTROLLER_STATE_H_ diff --git a/src/control_msgs/msg/pid_state.h b/src/control_msgs/msg/pid_state.h deleted file mode 100755 index d6eb5584d..000000000 --- a/src/control_msgs/msg/pid_state.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:msg/PidState.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__PID_STATE_H_ -#define CONTROL_MSGS__MSG__PID_STATE_H_ - -#include "control_msgs/msg/detail/pid_state__struct.h" -#include "control_msgs/msg/detail/pid_state__functions.h" -#include "control_msgs/msg/detail/pid_state__type_support.h" - -#endif // CONTROL_MSGS__MSG__PID_STATE_H_ diff --git a/src/control_msgs/msg/rosidl_generator_c__visibility_control.h b/src/control_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index a47c0393f..000000000 --- a/src/control_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define CONTROL_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_control_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_control_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_control_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_control_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_control_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_control_msgs ROSIDL_GENERATOR_C_EXPORT_control_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_control_msgs ROSIDL_GENERATOR_C_IMPORT_control_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_control_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_control_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_control_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_control_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index c1c23cbb6..000000000 --- a/src/control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define CONTROL_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_control_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_control_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_control_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_control_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_control_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_control_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_control_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_control_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_control_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 08037f7e3..000000000 --- a/src/control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define CONTROL_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_control_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_control_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_control_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_control_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_control_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_control_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_control_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_control_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_control_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/control_msgs/srv/detail/query_calibration_state__functions.h b/src/control_msgs/srv/detail/query_calibration_state__functions.h deleted file mode 100755 index 53d1ac9a3..000000000 --- a/src/control_msgs/srv/detail/query_calibration_state__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:srv/QueryCalibrationState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/srv/query_calibration_state.h" - - -#ifndef CONTROL_MSGS__SRV__DETAIL__QUERY_CALIBRATION_STATE__FUNCTIONS_H_ -#define CONTROL_MSGS__SRV__DETAIL__QUERY_CALIBRATION_STATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/srv/detail/query_calibration_state__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__srv__QueryCalibrationState__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__srv__QueryCalibrationState__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__srv__QueryCalibrationState__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__srv__QueryCalibrationState__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/QueryCalibrationState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__srv__QueryCalibrationState_Request - * )) before or use - * control_msgs__srv__QueryCalibrationState_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Request__init(control_msgs__srv__QueryCalibrationState_Request * msg); - -/// Finalize srv/QueryCalibrationState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryCalibrationState_Request__fini(control_msgs__srv__QueryCalibrationState_Request * msg); - -/// Create srv/QueryCalibrationState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__srv__QueryCalibrationState_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__srv__QueryCalibrationState_Request * -control_msgs__srv__QueryCalibrationState_Request__create(void); - -/// Destroy srv/QueryCalibrationState message. -/** - * It calls - * control_msgs__srv__QueryCalibrationState_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryCalibrationState_Request__destroy(control_msgs__srv__QueryCalibrationState_Request * msg); - -/// Check for srv/QueryCalibrationState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Request__are_equal(const control_msgs__srv__QueryCalibrationState_Request * lhs, const control_msgs__srv__QueryCalibrationState_Request * rhs); - -/// Copy a srv/QueryCalibrationState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Request__copy( - const control_msgs__srv__QueryCalibrationState_Request * input, - control_msgs__srv__QueryCalibrationState_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__srv__QueryCalibrationState_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__srv__QueryCalibrationState_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__srv__QueryCalibrationState_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__srv__QueryCalibrationState_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/QueryCalibrationState messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__srv__QueryCalibrationState_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Request__Sequence__init(control_msgs__srv__QueryCalibrationState_Request__Sequence * array, size_t size); - -/// Finalize array of srv/QueryCalibrationState messages. -/** - * It calls - * control_msgs__srv__QueryCalibrationState_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryCalibrationState_Request__Sequence__fini(control_msgs__srv__QueryCalibrationState_Request__Sequence * array); - -/// Create array of srv/QueryCalibrationState messages. -/** - * It allocates the memory for the array and calls - * control_msgs__srv__QueryCalibrationState_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__srv__QueryCalibrationState_Request__Sequence * -control_msgs__srv__QueryCalibrationState_Request__Sequence__create(size_t size); - -/// Destroy array of srv/QueryCalibrationState messages. -/** - * It calls - * control_msgs__srv__QueryCalibrationState_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryCalibrationState_Request__Sequence__destroy(control_msgs__srv__QueryCalibrationState_Request__Sequence * array); - -/// Check for srv/QueryCalibrationState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Request__Sequence__are_equal(const control_msgs__srv__QueryCalibrationState_Request__Sequence * lhs, const control_msgs__srv__QueryCalibrationState_Request__Sequence * rhs); - -/// Copy an array of srv/QueryCalibrationState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Request__Sequence__copy( - const control_msgs__srv__QueryCalibrationState_Request__Sequence * input, - control_msgs__srv__QueryCalibrationState_Request__Sequence * output); - -/// Initialize srv/QueryCalibrationState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__srv__QueryCalibrationState_Response - * )) before or use - * control_msgs__srv__QueryCalibrationState_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Response__init(control_msgs__srv__QueryCalibrationState_Response * msg); - -/// Finalize srv/QueryCalibrationState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryCalibrationState_Response__fini(control_msgs__srv__QueryCalibrationState_Response * msg); - -/// Create srv/QueryCalibrationState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__srv__QueryCalibrationState_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__srv__QueryCalibrationState_Response * -control_msgs__srv__QueryCalibrationState_Response__create(void); - -/// Destroy srv/QueryCalibrationState message. -/** - * It calls - * control_msgs__srv__QueryCalibrationState_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryCalibrationState_Response__destroy(control_msgs__srv__QueryCalibrationState_Response * msg); - -/// Check for srv/QueryCalibrationState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Response__are_equal(const control_msgs__srv__QueryCalibrationState_Response * lhs, const control_msgs__srv__QueryCalibrationState_Response * rhs); - -/// Copy a srv/QueryCalibrationState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Response__copy( - const control_msgs__srv__QueryCalibrationState_Response * input, - control_msgs__srv__QueryCalibrationState_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__srv__QueryCalibrationState_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__srv__QueryCalibrationState_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__srv__QueryCalibrationState_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__srv__QueryCalibrationState_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/QueryCalibrationState messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__srv__QueryCalibrationState_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Response__Sequence__init(control_msgs__srv__QueryCalibrationState_Response__Sequence * array, size_t size); - -/// Finalize array of srv/QueryCalibrationState messages. -/** - * It calls - * control_msgs__srv__QueryCalibrationState_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryCalibrationState_Response__Sequence__fini(control_msgs__srv__QueryCalibrationState_Response__Sequence * array); - -/// Create array of srv/QueryCalibrationState messages. -/** - * It allocates the memory for the array and calls - * control_msgs__srv__QueryCalibrationState_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__srv__QueryCalibrationState_Response__Sequence * -control_msgs__srv__QueryCalibrationState_Response__Sequence__create(size_t size); - -/// Destroy array of srv/QueryCalibrationState messages. -/** - * It calls - * control_msgs__srv__QueryCalibrationState_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryCalibrationState_Response__Sequence__destroy(control_msgs__srv__QueryCalibrationState_Response__Sequence * array); - -/// Check for srv/QueryCalibrationState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Response__Sequence__are_equal(const control_msgs__srv__QueryCalibrationState_Response__Sequence * lhs, const control_msgs__srv__QueryCalibrationState_Response__Sequence * rhs); - -/// Copy an array of srv/QueryCalibrationState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Response__Sequence__copy( - const control_msgs__srv__QueryCalibrationState_Response__Sequence * input, - control_msgs__srv__QueryCalibrationState_Response__Sequence * output); - -/// Initialize srv/QueryCalibrationState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__srv__QueryCalibrationState_Event - * )) before or use - * control_msgs__srv__QueryCalibrationState_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Event__init(control_msgs__srv__QueryCalibrationState_Event * msg); - -/// Finalize srv/QueryCalibrationState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryCalibrationState_Event__fini(control_msgs__srv__QueryCalibrationState_Event * msg); - -/// Create srv/QueryCalibrationState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__srv__QueryCalibrationState_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__srv__QueryCalibrationState_Event * -control_msgs__srv__QueryCalibrationState_Event__create(void); - -/// Destroy srv/QueryCalibrationState message. -/** - * It calls - * control_msgs__srv__QueryCalibrationState_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryCalibrationState_Event__destroy(control_msgs__srv__QueryCalibrationState_Event * msg); - -/// Check for srv/QueryCalibrationState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Event__are_equal(const control_msgs__srv__QueryCalibrationState_Event * lhs, const control_msgs__srv__QueryCalibrationState_Event * rhs); - -/// Copy a srv/QueryCalibrationState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Event__copy( - const control_msgs__srv__QueryCalibrationState_Event * input, - control_msgs__srv__QueryCalibrationState_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__srv__QueryCalibrationState_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__srv__QueryCalibrationState_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__srv__QueryCalibrationState_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__srv__QueryCalibrationState_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/QueryCalibrationState messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__srv__QueryCalibrationState_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Event__Sequence__init(control_msgs__srv__QueryCalibrationState_Event__Sequence * array, size_t size); - -/// Finalize array of srv/QueryCalibrationState messages. -/** - * It calls - * control_msgs__srv__QueryCalibrationState_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryCalibrationState_Event__Sequence__fini(control_msgs__srv__QueryCalibrationState_Event__Sequence * array); - -/// Create array of srv/QueryCalibrationState messages. -/** - * It allocates the memory for the array and calls - * control_msgs__srv__QueryCalibrationState_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__srv__QueryCalibrationState_Event__Sequence * -control_msgs__srv__QueryCalibrationState_Event__Sequence__create(size_t size); - -/// Destroy array of srv/QueryCalibrationState messages. -/** - * It calls - * control_msgs__srv__QueryCalibrationState_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryCalibrationState_Event__Sequence__destroy(control_msgs__srv__QueryCalibrationState_Event__Sequence * array); - -/// Check for srv/QueryCalibrationState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Event__Sequence__are_equal(const control_msgs__srv__QueryCalibrationState_Event__Sequence * lhs, const control_msgs__srv__QueryCalibrationState_Event__Sequence * rhs); - -/// Copy an array of srv/QueryCalibrationState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryCalibrationState_Event__Sequence__copy( - const control_msgs__srv__QueryCalibrationState_Event__Sequence * input, - control_msgs__srv__QueryCalibrationState_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__SRV__DETAIL__QUERY_CALIBRATION_STATE__FUNCTIONS_H_ diff --git a/src/control_msgs/srv/detail/query_calibration_state__rosidl_typesupport_introspection_c.h b/src/control_msgs/srv/detail/query_calibration_state__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 778a664b4..000000000 --- a/src/control_msgs/srv/detail/query_calibration_state__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:srv/QueryCalibrationState.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__SRV__DETAIL__QUERY_CALIBRATION_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__SRV__DETAIL__QUERY_CALIBRATION_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, srv, QueryCalibrationState_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, srv, QueryCalibrationState_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, srv, QueryCalibrationState_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, srv, QueryCalibrationState)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__SRV__DETAIL__QUERY_CALIBRATION_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/srv/detail/query_calibration_state__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/srv/detail/query_calibration_state__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index bf06ad488..000000000 --- a/src/control_msgs/srv/detail/query_calibration_state__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:srv/QueryCalibrationState.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__SRV__QUERY_CALIBRATION_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__SRV__QUERY_CALIBRATION_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__srv__QueryCalibrationState_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__srv__QueryCalibrationState_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, srv, QueryCalibrationState_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__srv__QueryCalibrationState_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__srv__QueryCalibrationState_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, srv, QueryCalibrationState_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__srv__QueryCalibrationState_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__srv__QueryCalibrationState_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, srv, QueryCalibrationState_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, srv, QueryCalibrationState)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__SRV__QUERY_CALIBRATION_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/srv/detail/query_calibration_state__struct.h b/src/control_msgs/srv/detail/query_calibration_state__struct.h deleted file mode 100755 index b4c1e6a2f..000000000 --- a/src/control_msgs/srv/detail/query_calibration_state__struct.h +++ /dev/null @@ -1,97 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:srv/QueryCalibrationState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/srv/query_calibration_state.h" - - -#ifndef CONTROL_MSGS__SRV__DETAIL__QUERY_CALIBRATION_STATE__STRUCT_H_ -#define CONTROL_MSGS__SRV__DETAIL__QUERY_CALIBRATION_STATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/QueryCalibrationState in the package control_msgs. -typedef struct control_msgs__srv__QueryCalibrationState_Request -{ - uint8_t structure_needs_at_least_one_member; -} control_msgs__srv__QueryCalibrationState_Request; - -// Struct for a sequence of control_msgs__srv__QueryCalibrationState_Request. -typedef struct control_msgs__srv__QueryCalibrationState_Request__Sequence -{ - control_msgs__srv__QueryCalibrationState_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__srv__QueryCalibrationState_Request__Sequence; - -// Constants defined in the message - -/// Struct defined in srv/QueryCalibrationState in the package control_msgs. -typedef struct control_msgs__srv__QueryCalibrationState_Response -{ - bool is_calibrated; -} control_msgs__srv__QueryCalibrationState_Response; - -// Struct for a sequence of control_msgs__srv__QueryCalibrationState_Response. -typedef struct control_msgs__srv__QueryCalibrationState_Response__Sequence -{ - control_msgs__srv__QueryCalibrationState_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__srv__QueryCalibrationState_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - control_msgs__srv__QueryCalibrationState_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - control_msgs__srv__QueryCalibrationState_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/QueryCalibrationState in the package control_msgs. -typedef struct control_msgs__srv__QueryCalibrationState_Event -{ - service_msgs__msg__ServiceEventInfo info; - control_msgs__srv__QueryCalibrationState_Request__Sequence request; - control_msgs__srv__QueryCalibrationState_Response__Sequence response; -} control_msgs__srv__QueryCalibrationState_Event; - -// Struct for a sequence of control_msgs__srv__QueryCalibrationState_Event. -typedef struct control_msgs__srv__QueryCalibrationState_Event__Sequence -{ - control_msgs__srv__QueryCalibrationState_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__srv__QueryCalibrationState_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__SRV__DETAIL__QUERY_CALIBRATION_STATE__STRUCT_H_ diff --git a/src/control_msgs/srv/detail/query_calibration_state__type_support.h b/src/control_msgs/srv/detail/query_calibration_state__type_support.h deleted file mode 100755 index 9b75e4ecd..000000000 --- a/src/control_msgs/srv/detail/query_calibration_state__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:srv/QueryCalibrationState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/srv/query_calibration_state.h" - - -#ifndef CONTROL_MSGS__SRV__DETAIL__QUERY_CALIBRATION_STATE__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__SRV__DETAIL__QUERY_CALIBRATION_STATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - srv, - QueryCalibrationState_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - srv, - QueryCalibrationState_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - srv, - QueryCalibrationState_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - srv, - QueryCalibrationState -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - srv, - QueryCalibrationState -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - srv, - QueryCalibrationState -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__SRV__DETAIL__QUERY_CALIBRATION_STATE__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/srv/detail/query_trajectory_state__functions.h b/src/control_msgs/srv/detail/query_trajectory_state__functions.h deleted file mode 100755 index 0d21cecda..000000000 --- a/src/control_msgs/srv/detail/query_trajectory_state__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from control_msgs:srv/QueryTrajectoryState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/srv/query_trajectory_state.h" - - -#ifndef CONTROL_MSGS__SRV__DETAIL__QUERY_TRAJECTORY_STATE__FUNCTIONS_H_ -#define CONTROL_MSGS__SRV__DETAIL__QUERY_TRAJECTORY_STATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "control_msgs/srv/detail/query_trajectory_state__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__srv__QueryTrajectoryState__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__srv__QueryTrajectoryState__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__srv__QueryTrajectoryState__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__srv__QueryTrajectoryState__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/QueryTrajectoryState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__srv__QueryTrajectoryState_Request - * )) before or use - * control_msgs__srv__QueryTrajectoryState_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Request__init(control_msgs__srv__QueryTrajectoryState_Request * msg); - -/// Finalize srv/QueryTrajectoryState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryTrajectoryState_Request__fini(control_msgs__srv__QueryTrajectoryState_Request * msg); - -/// Create srv/QueryTrajectoryState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__srv__QueryTrajectoryState_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__srv__QueryTrajectoryState_Request * -control_msgs__srv__QueryTrajectoryState_Request__create(void); - -/// Destroy srv/QueryTrajectoryState message. -/** - * It calls - * control_msgs__srv__QueryTrajectoryState_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryTrajectoryState_Request__destroy(control_msgs__srv__QueryTrajectoryState_Request * msg); - -/// Check for srv/QueryTrajectoryState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Request__are_equal(const control_msgs__srv__QueryTrajectoryState_Request * lhs, const control_msgs__srv__QueryTrajectoryState_Request * rhs); - -/// Copy a srv/QueryTrajectoryState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Request__copy( - const control_msgs__srv__QueryTrajectoryState_Request * input, - control_msgs__srv__QueryTrajectoryState_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__srv__QueryTrajectoryState_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__srv__QueryTrajectoryState_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__srv__QueryTrajectoryState_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__srv__QueryTrajectoryState_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/QueryTrajectoryState messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__srv__QueryTrajectoryState_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Request__Sequence__init(control_msgs__srv__QueryTrajectoryState_Request__Sequence * array, size_t size); - -/// Finalize array of srv/QueryTrajectoryState messages. -/** - * It calls - * control_msgs__srv__QueryTrajectoryState_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryTrajectoryState_Request__Sequence__fini(control_msgs__srv__QueryTrajectoryState_Request__Sequence * array); - -/// Create array of srv/QueryTrajectoryState messages. -/** - * It allocates the memory for the array and calls - * control_msgs__srv__QueryTrajectoryState_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__srv__QueryTrajectoryState_Request__Sequence * -control_msgs__srv__QueryTrajectoryState_Request__Sequence__create(size_t size); - -/// Destroy array of srv/QueryTrajectoryState messages. -/** - * It calls - * control_msgs__srv__QueryTrajectoryState_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryTrajectoryState_Request__Sequence__destroy(control_msgs__srv__QueryTrajectoryState_Request__Sequence * array); - -/// Check for srv/QueryTrajectoryState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Request__Sequence__are_equal(const control_msgs__srv__QueryTrajectoryState_Request__Sequence * lhs, const control_msgs__srv__QueryTrajectoryState_Request__Sequence * rhs); - -/// Copy an array of srv/QueryTrajectoryState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Request__Sequence__copy( - const control_msgs__srv__QueryTrajectoryState_Request__Sequence * input, - control_msgs__srv__QueryTrajectoryState_Request__Sequence * output); - -/// Initialize srv/QueryTrajectoryState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__srv__QueryTrajectoryState_Response - * )) before or use - * control_msgs__srv__QueryTrajectoryState_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Response__init(control_msgs__srv__QueryTrajectoryState_Response * msg); - -/// Finalize srv/QueryTrajectoryState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryTrajectoryState_Response__fini(control_msgs__srv__QueryTrajectoryState_Response * msg); - -/// Create srv/QueryTrajectoryState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__srv__QueryTrajectoryState_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__srv__QueryTrajectoryState_Response * -control_msgs__srv__QueryTrajectoryState_Response__create(void); - -/// Destroy srv/QueryTrajectoryState message. -/** - * It calls - * control_msgs__srv__QueryTrajectoryState_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryTrajectoryState_Response__destroy(control_msgs__srv__QueryTrajectoryState_Response * msg); - -/// Check for srv/QueryTrajectoryState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Response__are_equal(const control_msgs__srv__QueryTrajectoryState_Response * lhs, const control_msgs__srv__QueryTrajectoryState_Response * rhs); - -/// Copy a srv/QueryTrajectoryState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Response__copy( - const control_msgs__srv__QueryTrajectoryState_Response * input, - control_msgs__srv__QueryTrajectoryState_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__srv__QueryTrajectoryState_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__srv__QueryTrajectoryState_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__srv__QueryTrajectoryState_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__srv__QueryTrajectoryState_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/QueryTrajectoryState messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__srv__QueryTrajectoryState_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Response__Sequence__init(control_msgs__srv__QueryTrajectoryState_Response__Sequence * array, size_t size); - -/// Finalize array of srv/QueryTrajectoryState messages. -/** - * It calls - * control_msgs__srv__QueryTrajectoryState_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryTrajectoryState_Response__Sequence__fini(control_msgs__srv__QueryTrajectoryState_Response__Sequence * array); - -/// Create array of srv/QueryTrajectoryState messages. -/** - * It allocates the memory for the array and calls - * control_msgs__srv__QueryTrajectoryState_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__srv__QueryTrajectoryState_Response__Sequence * -control_msgs__srv__QueryTrajectoryState_Response__Sequence__create(size_t size); - -/// Destroy array of srv/QueryTrajectoryState messages. -/** - * It calls - * control_msgs__srv__QueryTrajectoryState_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryTrajectoryState_Response__Sequence__destroy(control_msgs__srv__QueryTrajectoryState_Response__Sequence * array); - -/// Check for srv/QueryTrajectoryState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Response__Sequence__are_equal(const control_msgs__srv__QueryTrajectoryState_Response__Sequence * lhs, const control_msgs__srv__QueryTrajectoryState_Response__Sequence * rhs); - -/// Copy an array of srv/QueryTrajectoryState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Response__Sequence__copy( - const control_msgs__srv__QueryTrajectoryState_Response__Sequence * input, - control_msgs__srv__QueryTrajectoryState_Response__Sequence * output); - -/// Initialize srv/QueryTrajectoryState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * control_msgs__srv__QueryTrajectoryState_Event - * )) before or use - * control_msgs__srv__QueryTrajectoryState_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Event__init(control_msgs__srv__QueryTrajectoryState_Event * msg); - -/// Finalize srv/QueryTrajectoryState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryTrajectoryState_Event__fini(control_msgs__srv__QueryTrajectoryState_Event * msg); - -/// Create srv/QueryTrajectoryState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * control_msgs__srv__QueryTrajectoryState_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__srv__QueryTrajectoryState_Event * -control_msgs__srv__QueryTrajectoryState_Event__create(void); - -/// Destroy srv/QueryTrajectoryState message. -/** - * It calls - * control_msgs__srv__QueryTrajectoryState_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryTrajectoryState_Event__destroy(control_msgs__srv__QueryTrajectoryState_Event * msg); - -/// Check for srv/QueryTrajectoryState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Event__are_equal(const control_msgs__srv__QueryTrajectoryState_Event * lhs, const control_msgs__srv__QueryTrajectoryState_Event * rhs); - -/// Copy a srv/QueryTrajectoryState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Event__copy( - const control_msgs__srv__QueryTrajectoryState_Event * input, - control_msgs__srv__QueryTrajectoryState_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_type_hash_t * -control_msgs__srv__QueryTrajectoryState_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeDescription * -control_msgs__srv__QueryTrajectoryState_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource * -control_msgs__srv__QueryTrajectoryState_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -control_msgs__srv__QueryTrajectoryState_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/QueryTrajectoryState messages. -/** - * It allocates the memory for the number of elements and calls - * control_msgs__srv__QueryTrajectoryState_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Event__Sequence__init(control_msgs__srv__QueryTrajectoryState_Event__Sequence * array, size_t size); - -/// Finalize array of srv/QueryTrajectoryState messages. -/** - * It calls - * control_msgs__srv__QueryTrajectoryState_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryTrajectoryState_Event__Sequence__fini(control_msgs__srv__QueryTrajectoryState_Event__Sequence * array); - -/// Create array of srv/QueryTrajectoryState messages. -/** - * It allocates the memory for the array and calls - * control_msgs__srv__QueryTrajectoryState_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -control_msgs__srv__QueryTrajectoryState_Event__Sequence * -control_msgs__srv__QueryTrajectoryState_Event__Sequence__create(size_t size); - -/// Destroy array of srv/QueryTrajectoryState messages. -/** - * It calls - * control_msgs__srv__QueryTrajectoryState_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void -control_msgs__srv__QueryTrajectoryState_Event__Sequence__destroy(control_msgs__srv__QueryTrajectoryState_Event__Sequence * array); - -/// Check for srv/QueryTrajectoryState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Event__Sequence__are_equal(const control_msgs__srv__QueryTrajectoryState_Event__Sequence * lhs, const control_msgs__srv__QueryTrajectoryState_Event__Sequence * rhs); - -/// Copy an array of srv/QueryTrajectoryState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -control_msgs__srv__QueryTrajectoryState_Event__Sequence__copy( - const control_msgs__srv__QueryTrajectoryState_Event__Sequence * input, - control_msgs__srv__QueryTrajectoryState_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__SRV__DETAIL__QUERY_TRAJECTORY_STATE__FUNCTIONS_H_ diff --git a/src/control_msgs/srv/detail/query_trajectory_state__rosidl_typesupport_introspection_c.h b/src/control_msgs/srv/detail/query_trajectory_state__rosidl_typesupport_introspection_c.h deleted file mode 100755 index ca0b2f9ec..000000000 --- a/src/control_msgs/srv/detail/query_trajectory_state__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from control_msgs:srv/QueryTrajectoryState.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__SRV__DETAIL__QUERY_TRAJECTORY_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define CONTROL_MSGS__SRV__DETAIL__QUERY_TRAJECTORY_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, srv, QueryTrajectoryState_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, srv, QueryTrajectoryState_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, srv, QueryTrajectoryState_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, control_msgs, srv, QueryTrajectoryState)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__SRV__DETAIL__QUERY_TRAJECTORY_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/control_msgs/srv/detail/query_trajectory_state__rosidl_typesupport_microxrcedds_c.h b/src/control_msgs/srv/detail/query_trajectory_state__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 8f166b15a..000000000 --- a/src/control_msgs/srv/detail/query_trajectory_state__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from control_msgs:srv/QueryTrajectoryState.idl -// generated code does not contain a copyright notice -#ifndef CONTROL_MSGS__SRV__QUERY_TRAJECTORY_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define CONTROL_MSGS__SRV__QUERY_TRAJECTORY_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__srv__QueryTrajectoryState_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__srv__QueryTrajectoryState_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, srv, QueryTrajectoryState_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__srv__QueryTrajectoryState_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__srv__QueryTrajectoryState_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, srv, QueryTrajectoryState_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t get_serialized_size_control_msgs__srv__QueryTrajectoryState_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -size_t max_serialized_size_control_msgs__srv__QueryTrajectoryState_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, srv, QueryTrajectoryState_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "control_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, control_msgs, srv, QueryTrajectoryState)(); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__SRV__QUERY_TRAJECTORY_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/control_msgs/srv/detail/query_trajectory_state__struct.h b/src/control_msgs/srv/detail/query_trajectory_state__struct.h deleted file mode 100755 index 3f6b93973..000000000 --- a/src/control_msgs/srv/detail/query_trajectory_state__struct.h +++ /dev/null @@ -1,117 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from control_msgs:srv/QueryTrajectoryState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/srv/query_trajectory_state.h" - - -#ifndef CONTROL_MSGS__SRV__DETAIL__QUERY_TRAJECTORY_STATE__STRUCT_H_ -#define CONTROL_MSGS__SRV__DETAIL__QUERY_TRAJECTORY_STATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'time' -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in srv/QueryTrajectoryState in the package control_msgs. -typedef struct control_msgs__srv__QueryTrajectoryState_Request -{ - builtin_interfaces__msg__Time time; -} control_msgs__srv__QueryTrajectoryState_Request; - -// Struct for a sequence of control_msgs__srv__QueryTrajectoryState_Request. -typedef struct control_msgs__srv__QueryTrajectoryState_Request__Sequence -{ - control_msgs__srv__QueryTrajectoryState_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__srv__QueryTrajectoryState_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'message' -// Member 'name' -#include "rosidl_runtime_c/string.h" -// Member 'position' -// Member 'velocity' -// Member 'acceleration' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in srv/QueryTrajectoryState in the package control_msgs. -typedef struct control_msgs__srv__QueryTrajectoryState_Response -{ - /// indicate successful run of triggered service - bool success; - /// informational, e.g. for error messages - rosidl_runtime_c__String message; - rosidl_runtime_c__String__Sequence name; - rosidl_runtime_c__double__Sequence position; - rosidl_runtime_c__double__Sequence velocity; - rosidl_runtime_c__double__Sequence acceleration; -} control_msgs__srv__QueryTrajectoryState_Response; - -// Struct for a sequence of control_msgs__srv__QueryTrajectoryState_Response. -typedef struct control_msgs__srv__QueryTrajectoryState_Response__Sequence -{ - control_msgs__srv__QueryTrajectoryState_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__srv__QueryTrajectoryState_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - control_msgs__srv__QueryTrajectoryState_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - control_msgs__srv__QueryTrajectoryState_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/QueryTrajectoryState in the package control_msgs. -typedef struct control_msgs__srv__QueryTrajectoryState_Event -{ - service_msgs__msg__ServiceEventInfo info; - control_msgs__srv__QueryTrajectoryState_Request__Sequence request; - control_msgs__srv__QueryTrajectoryState_Response__Sequence response; -} control_msgs__srv__QueryTrajectoryState_Event; - -// Struct for a sequence of control_msgs__srv__QueryTrajectoryState_Event. -typedef struct control_msgs__srv__QueryTrajectoryState_Event__Sequence -{ - control_msgs__srv__QueryTrajectoryState_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} control_msgs__srv__QueryTrajectoryState_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__SRV__DETAIL__QUERY_TRAJECTORY_STATE__STRUCT_H_ diff --git a/src/control_msgs/srv/detail/query_trajectory_state__type_support.h b/src/control_msgs/srv/detail/query_trajectory_state__type_support.h deleted file mode 100755 index 69636d74a..000000000 --- a/src/control_msgs/srv/detail/query_trajectory_state__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from control_msgs:srv/QueryTrajectoryState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "control_msgs/srv/query_trajectory_state.h" - - -#ifndef CONTROL_MSGS__SRV__DETAIL__QUERY_TRAJECTORY_STATE__TYPE_SUPPORT_H_ -#define CONTROL_MSGS__SRV__DETAIL__QUERY_TRAJECTORY_STATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "control_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - srv, - QueryTrajectoryState_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - srv, - QueryTrajectoryState_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - srv, - QueryTrajectoryState_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - srv, - QueryTrajectoryState -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - srv, - QueryTrajectoryState -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_control_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - control_msgs, - srv, - QueryTrajectoryState -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // CONTROL_MSGS__SRV__DETAIL__QUERY_TRAJECTORY_STATE__TYPE_SUPPORT_H_ diff --git a/src/control_msgs/srv/query_calibration_state.h b/src/control_msgs/srv/query_calibration_state.h deleted file mode 100755 index 20cdd0167..000000000 --- a/src/control_msgs/srv/query_calibration_state.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:srv/QueryCalibrationState.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__SRV__QUERY_CALIBRATION_STATE_H_ -#define CONTROL_MSGS__SRV__QUERY_CALIBRATION_STATE_H_ - -#include "control_msgs/srv/detail/query_calibration_state__struct.h" -#include "control_msgs/srv/detail/query_calibration_state__functions.h" -#include "control_msgs/srv/detail/query_calibration_state__type_support.h" - -#endif // CONTROL_MSGS__SRV__QUERY_CALIBRATION_STATE_H_ diff --git a/src/control_msgs/srv/query_trajectory_state.h b/src/control_msgs/srv/query_trajectory_state.h deleted file mode 100755 index 42f5e76fa..000000000 --- a/src/control_msgs/srv/query_trajectory_state.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from control_msgs:srv/QueryTrajectoryState.idl -// generated code does not contain a copyright notice - -#ifndef CONTROL_MSGS__SRV__QUERY_TRAJECTORY_STATE_H_ -#define CONTROL_MSGS__SRV__QUERY_TRAJECTORY_STATE_H_ - -#include "control_msgs/srv/detail/query_trajectory_state__struct.h" -#include "control_msgs/srv/detail/query_trajectory_state__functions.h" -#include "control_msgs/srv/detail/query_trajectory_state__type_support.h" - -#endif // CONTROL_MSGS__SRV__QUERY_TRAJECTORY_STATE_H_ diff --git a/src/cortex-m0plus/libmicroros.a b/src/cortex-m0plus/libmicroros.a deleted file mode 100755 index c43168ec5..000000000 Binary files a/src/cortex-m0plus/libmicroros.a and /dev/null differ diff --git a/src/cortex-m3/libmicroros.a b/src/cortex-m3/libmicroros.a deleted file mode 100755 index ff28ef6e6..000000000 Binary files a/src/cortex-m3/libmicroros.a and /dev/null differ diff --git a/src/cortex-m4/libmicroros.a b/src/cortex-m4/libmicroros.a deleted file mode 100755 index 54ef4f375..000000000 Binary files a/src/cortex-m4/libmicroros.a and /dev/null differ diff --git a/src/cortex-m7/fpv5-d16-softfp/libmicroros.a b/src/cortex-m7/fpv5-d16-softfp/libmicroros.a deleted file mode 100755 index 1783e3b0d..000000000 Binary files a/src/cortex-m7/fpv5-d16-softfp/libmicroros.a and /dev/null differ diff --git a/src/cortex-m7/fpv5-sp-d16-hardfp/libmicroros.a b/src/cortex-m7/fpv5-sp-d16-hardfp/libmicroros.a deleted file mode 100755 index 9f048bc01..000000000 Binary files a/src/cortex-m7/fpv5-sp-d16-hardfp/libmicroros.a and /dev/null differ diff --git a/src/cortex-m7/fpv5-sp-d16-softfp/libmicroros.a b/src/cortex-m7/fpv5-sp-d16-softfp/libmicroros.a deleted file mode 100755 index e559586da..000000000 Binary files a/src/cortex-m7/fpv5-sp-d16-softfp/libmicroros.a and /dev/null differ diff --git a/src/diagnostic_msgs/msg/detail/diagnostic_array__functions.h b/src/diagnostic_msgs/msg/detail/diagnostic_array__functions.h deleted file mode 100755 index 8eca54442..000000000 --- a/src/diagnostic_msgs/msg/detail/diagnostic_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from diagnostic_msgs:msg/DiagnosticArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/msg/diagnostic_array.h" - - -#ifndef DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_ARRAY__FUNCTIONS_H_ -#define DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "diagnostic_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "diagnostic_msgs/msg/detail/diagnostic_array__struct.h" - -/// Initialize msg/DiagnosticArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * diagnostic_msgs__msg__DiagnosticArray - * )) before or use - * diagnostic_msgs__msg__DiagnosticArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__DiagnosticArray__init(diagnostic_msgs__msg__DiagnosticArray * msg); - -/// Finalize msg/DiagnosticArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__msg__DiagnosticArray__fini(diagnostic_msgs__msg__DiagnosticArray * msg); - -/// Create msg/DiagnosticArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * diagnostic_msgs__msg__DiagnosticArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__msg__DiagnosticArray * -diagnostic_msgs__msg__DiagnosticArray__create(void); - -/// Destroy msg/DiagnosticArray message. -/** - * It calls - * diagnostic_msgs__msg__DiagnosticArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__msg__DiagnosticArray__destroy(diagnostic_msgs__msg__DiagnosticArray * msg); - -/// Check for msg/DiagnosticArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__DiagnosticArray__are_equal(const diagnostic_msgs__msg__DiagnosticArray * lhs, const diagnostic_msgs__msg__DiagnosticArray * rhs); - -/// Copy a msg/DiagnosticArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__DiagnosticArray__copy( - const diagnostic_msgs__msg__DiagnosticArray * input, - diagnostic_msgs__msg__DiagnosticArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_type_hash_t * -diagnostic_msgs__msg__DiagnosticArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeDescription * -diagnostic_msgs__msg__DiagnosticArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource * -diagnostic_msgs__msg__DiagnosticArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -diagnostic_msgs__msg__DiagnosticArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/DiagnosticArray messages. -/** - * It allocates the memory for the number of elements and calls - * diagnostic_msgs__msg__DiagnosticArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__DiagnosticArray__Sequence__init(diagnostic_msgs__msg__DiagnosticArray__Sequence * array, size_t size); - -/// Finalize array of msg/DiagnosticArray messages. -/** - * It calls - * diagnostic_msgs__msg__DiagnosticArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__msg__DiagnosticArray__Sequence__fini(diagnostic_msgs__msg__DiagnosticArray__Sequence * array); - -/// Create array of msg/DiagnosticArray messages. -/** - * It allocates the memory for the array and calls - * diagnostic_msgs__msg__DiagnosticArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__msg__DiagnosticArray__Sequence * -diagnostic_msgs__msg__DiagnosticArray__Sequence__create(size_t size); - -/// Destroy array of msg/DiagnosticArray messages. -/** - * It calls - * diagnostic_msgs__msg__DiagnosticArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__msg__DiagnosticArray__Sequence__destroy(diagnostic_msgs__msg__DiagnosticArray__Sequence * array); - -/// Check for msg/DiagnosticArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__DiagnosticArray__Sequence__are_equal(const diagnostic_msgs__msg__DiagnosticArray__Sequence * lhs, const diagnostic_msgs__msg__DiagnosticArray__Sequence * rhs); - -/// Copy an array of msg/DiagnosticArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__DiagnosticArray__Sequence__copy( - const diagnostic_msgs__msg__DiagnosticArray__Sequence * input, - diagnostic_msgs__msg__DiagnosticArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_ARRAY__FUNCTIONS_H_ diff --git a/src/diagnostic_msgs/msg/detail/diagnostic_array__rosidl_typesupport_introspection_c.h b/src/diagnostic_msgs/msg/detail/diagnostic_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 6bd1b16dc..000000000 --- a/src/diagnostic_msgs/msg/detail/diagnostic_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from diagnostic_msgs:msg/DiagnosticArray.idl -// generated code does not contain a copyright notice - -#ifndef DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, diagnostic_msgs, msg, DiagnosticArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/diagnostic_msgs/msg/detail/diagnostic_array__rosidl_typesupport_microxrcedds_c.h b/src/diagnostic_msgs/msg/detail/diagnostic_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index b8b567d68..000000000 --- a/src/diagnostic_msgs/msg/detail/diagnostic_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from diagnostic_msgs:msg/DiagnosticArray.idl -// generated code does not contain a copyright notice -#ifndef DIAGNOSTIC_MSGS__MSG__DIAGNOSTIC_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define DIAGNOSTIC_MSGS__MSG__DIAGNOSTIC_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t get_serialized_size_diagnostic_msgs__msg__DiagnosticArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t max_serialized_size_diagnostic_msgs__msg__DiagnosticArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, diagnostic_msgs, msg, DiagnosticArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // DIAGNOSTIC_MSGS__MSG__DIAGNOSTIC_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/diagnostic_msgs/msg/detail/diagnostic_array__struct.h b/src/diagnostic_msgs/msg/detail/diagnostic_array__struct.h deleted file mode 100755 index 726e2ae56..000000000 --- a/src/diagnostic_msgs/msg/detail/diagnostic_array__struct.h +++ /dev/null @@ -1,54 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from diagnostic_msgs:msg/DiagnosticArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/msg/diagnostic_array.h" - - -#ifndef DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_ARRAY__STRUCT_H_ -#define DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'status' -#include "diagnostic_msgs/msg/detail/diagnostic_status__struct.h" - -/// Struct defined in msg/DiagnosticArray in the package diagnostic_msgs. -/** - * This message is used to send diagnostic information about the state of the robot. - */ -typedef struct diagnostic_msgs__msg__DiagnosticArray -{ - /// for timestamp - std_msgs__msg__Header header; - /// an array of components being reported on - diagnostic_msgs__msg__DiagnosticStatus__Sequence status; -} diagnostic_msgs__msg__DiagnosticArray; - -// Struct for a sequence of diagnostic_msgs__msg__DiagnosticArray. -typedef struct diagnostic_msgs__msg__DiagnosticArray__Sequence -{ - diagnostic_msgs__msg__DiagnosticArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} diagnostic_msgs__msg__DiagnosticArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_ARRAY__STRUCT_H_ diff --git a/src/diagnostic_msgs/msg/detail/diagnostic_array__type_support.h b/src/diagnostic_msgs/msg/detail/diagnostic_array__type_support.h deleted file mode 100755 index 3e10b5da6..000000000 --- a/src/diagnostic_msgs/msg/detail/diagnostic_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from diagnostic_msgs:msg/DiagnosticArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/msg/diagnostic_array.h" - - -#ifndef DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_ARRAY__TYPE_SUPPORT_H_ -#define DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "diagnostic_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - msg, - DiagnosticArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/diagnostic_msgs/msg/detail/diagnostic_status__functions.h b/src/diagnostic_msgs/msg/detail/diagnostic_status__functions.h deleted file mode 100755 index bd5ad9b43..000000000 --- a/src/diagnostic_msgs/msg/detail/diagnostic_status__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from diagnostic_msgs:msg/DiagnosticStatus.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/msg/diagnostic_status.h" - - -#ifndef DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_STATUS__FUNCTIONS_H_ -#define DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_STATUS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "diagnostic_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "diagnostic_msgs/msg/detail/diagnostic_status__struct.h" - -/// Initialize msg/DiagnosticStatus message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * diagnostic_msgs__msg__DiagnosticStatus - * )) before or use - * diagnostic_msgs__msg__DiagnosticStatus__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__DiagnosticStatus__init(diagnostic_msgs__msg__DiagnosticStatus * msg); - -/// Finalize msg/DiagnosticStatus message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__msg__DiagnosticStatus__fini(diagnostic_msgs__msg__DiagnosticStatus * msg); - -/// Create msg/DiagnosticStatus message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * diagnostic_msgs__msg__DiagnosticStatus__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__msg__DiagnosticStatus * -diagnostic_msgs__msg__DiagnosticStatus__create(void); - -/// Destroy msg/DiagnosticStatus message. -/** - * It calls - * diagnostic_msgs__msg__DiagnosticStatus__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__msg__DiagnosticStatus__destroy(diagnostic_msgs__msg__DiagnosticStatus * msg); - -/// Check for msg/DiagnosticStatus message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__DiagnosticStatus__are_equal(const diagnostic_msgs__msg__DiagnosticStatus * lhs, const diagnostic_msgs__msg__DiagnosticStatus * rhs); - -/// Copy a msg/DiagnosticStatus message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__DiagnosticStatus__copy( - const diagnostic_msgs__msg__DiagnosticStatus * input, - diagnostic_msgs__msg__DiagnosticStatus * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_type_hash_t * -diagnostic_msgs__msg__DiagnosticStatus__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeDescription * -diagnostic_msgs__msg__DiagnosticStatus__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource * -diagnostic_msgs__msg__DiagnosticStatus__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -diagnostic_msgs__msg__DiagnosticStatus__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/DiagnosticStatus messages. -/** - * It allocates the memory for the number of elements and calls - * diagnostic_msgs__msg__DiagnosticStatus__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__DiagnosticStatus__Sequence__init(diagnostic_msgs__msg__DiagnosticStatus__Sequence * array, size_t size); - -/// Finalize array of msg/DiagnosticStatus messages. -/** - * It calls - * diagnostic_msgs__msg__DiagnosticStatus__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__msg__DiagnosticStatus__Sequence__fini(diagnostic_msgs__msg__DiagnosticStatus__Sequence * array); - -/// Create array of msg/DiagnosticStatus messages. -/** - * It allocates the memory for the array and calls - * diagnostic_msgs__msg__DiagnosticStatus__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__msg__DiagnosticStatus__Sequence * -diagnostic_msgs__msg__DiagnosticStatus__Sequence__create(size_t size); - -/// Destroy array of msg/DiagnosticStatus messages. -/** - * It calls - * diagnostic_msgs__msg__DiagnosticStatus__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__msg__DiagnosticStatus__Sequence__destroy(diagnostic_msgs__msg__DiagnosticStatus__Sequence * array); - -/// Check for msg/DiagnosticStatus message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__DiagnosticStatus__Sequence__are_equal(const diagnostic_msgs__msg__DiagnosticStatus__Sequence * lhs, const diagnostic_msgs__msg__DiagnosticStatus__Sequence * rhs); - -/// Copy an array of msg/DiagnosticStatus messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__DiagnosticStatus__Sequence__copy( - const diagnostic_msgs__msg__DiagnosticStatus__Sequence * input, - diagnostic_msgs__msg__DiagnosticStatus__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_STATUS__FUNCTIONS_H_ diff --git a/src/diagnostic_msgs/msg/detail/diagnostic_status__rosidl_typesupport_introspection_c.h b/src/diagnostic_msgs/msg/detail/diagnostic_status__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 9ae6bb693..000000000 --- a/src/diagnostic_msgs/msg/detail/diagnostic_status__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from diagnostic_msgs:msg/DiagnosticStatus.idl -// generated code does not contain a copyright notice - -#ifndef DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_STATUS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_STATUS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, diagnostic_msgs, msg, DiagnosticStatus)(); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_STATUS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/diagnostic_msgs/msg/detail/diagnostic_status__rosidl_typesupport_microxrcedds_c.h b/src/diagnostic_msgs/msg/detail/diagnostic_status__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 8501ddb79..000000000 --- a/src/diagnostic_msgs/msg/detail/diagnostic_status__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from diagnostic_msgs:msg/DiagnosticStatus.idl -// generated code does not contain a copyright notice -#ifndef DIAGNOSTIC_MSGS__MSG__DIAGNOSTIC_STATUS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define DIAGNOSTIC_MSGS__MSG__DIAGNOSTIC_STATUS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t get_serialized_size_diagnostic_msgs__msg__DiagnosticStatus( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t max_serialized_size_diagnostic_msgs__msg__DiagnosticStatus( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, diagnostic_msgs, msg, DiagnosticStatus)(); - -#ifdef __cplusplus -} -#endif - - -#endif // DIAGNOSTIC_MSGS__MSG__DIAGNOSTIC_STATUS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/diagnostic_msgs/msg/detail/diagnostic_status__struct.h b/src/diagnostic_msgs/msg/detail/diagnostic_status__struct.h deleted file mode 100755 index a933bb43f..000000000 --- a/src/diagnostic_msgs/msg/detail/diagnostic_status__struct.h +++ /dev/null @@ -1,89 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from diagnostic_msgs:msg/DiagnosticStatus.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/msg/diagnostic_status.h" - - -#ifndef DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_STATUS__STRUCT_H_ -#define DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_STATUS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'OK'. -/** - * Possible levels of operations. - */ -enum -{ - diagnostic_msgs__msg__DiagnosticStatus__OK = 0 -}; - -/// Constant 'WARN'. -enum -{ - diagnostic_msgs__msg__DiagnosticStatus__WARN = 1 -}; - -/// Constant 'ERROR'. -enum -{ - diagnostic_msgs__msg__DiagnosticStatus__ERROR = 2 -}; - -/// Constant 'STALE'. -enum -{ - diagnostic_msgs__msg__DiagnosticStatus__STALE = 3 -}; - -// Include directives for member types -// Member 'name' -// Member 'message' -// Member 'hardware_id' -#include "rosidl_runtime_c/string.h" -// Member 'values' -#include "diagnostic_msgs/msg/detail/key_value__struct.h" - -/// Struct defined in msg/DiagnosticStatus in the package diagnostic_msgs. -/** - * This message holds the status of an individual component of the robot. - */ -typedef struct diagnostic_msgs__msg__DiagnosticStatus -{ - /// Level of operation enumerated above. - uint8_t level; - /// A description of the test/component reporting. - rosidl_runtime_c__String name; - /// A description of the status. - rosidl_runtime_c__String message; - /// A hardware unique string. - rosidl_runtime_c__String hardware_id; - /// An array of values associated with the status. - diagnostic_msgs__msg__KeyValue__Sequence values; -} diagnostic_msgs__msg__DiagnosticStatus; - -// Struct for a sequence of diagnostic_msgs__msg__DiagnosticStatus. -typedef struct diagnostic_msgs__msg__DiagnosticStatus__Sequence -{ - diagnostic_msgs__msg__DiagnosticStatus * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} diagnostic_msgs__msg__DiagnosticStatus__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_STATUS__STRUCT_H_ diff --git a/src/diagnostic_msgs/msg/detail/diagnostic_status__type_support.h b/src/diagnostic_msgs/msg/detail/diagnostic_status__type_support.h deleted file mode 100755 index 48cf286ee..000000000 --- a/src/diagnostic_msgs/msg/detail/diagnostic_status__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from diagnostic_msgs:msg/DiagnosticStatus.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/msg/diagnostic_status.h" - - -#ifndef DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_STATUS__TYPE_SUPPORT_H_ -#define DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_STATUS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "diagnostic_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - msg, - DiagnosticStatus -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__DETAIL__DIAGNOSTIC_STATUS__TYPE_SUPPORT_H_ diff --git a/src/diagnostic_msgs/msg/detail/key_value__functions.h b/src/diagnostic_msgs/msg/detail/key_value__functions.h deleted file mode 100755 index 609f885c6..000000000 --- a/src/diagnostic_msgs/msg/detail/key_value__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from diagnostic_msgs:msg/KeyValue.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/msg/key_value.h" - - -#ifndef DIAGNOSTIC_MSGS__MSG__DETAIL__KEY_VALUE__FUNCTIONS_H_ -#define DIAGNOSTIC_MSGS__MSG__DETAIL__KEY_VALUE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "diagnostic_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "diagnostic_msgs/msg/detail/key_value__struct.h" - -/// Initialize msg/KeyValue message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * diagnostic_msgs__msg__KeyValue - * )) before or use - * diagnostic_msgs__msg__KeyValue__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__KeyValue__init(diagnostic_msgs__msg__KeyValue * msg); - -/// Finalize msg/KeyValue message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__msg__KeyValue__fini(diagnostic_msgs__msg__KeyValue * msg); - -/// Create msg/KeyValue message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * diagnostic_msgs__msg__KeyValue__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__msg__KeyValue * -diagnostic_msgs__msg__KeyValue__create(void); - -/// Destroy msg/KeyValue message. -/** - * It calls - * diagnostic_msgs__msg__KeyValue__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__msg__KeyValue__destroy(diagnostic_msgs__msg__KeyValue * msg); - -/// Check for msg/KeyValue message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__KeyValue__are_equal(const diagnostic_msgs__msg__KeyValue * lhs, const diagnostic_msgs__msg__KeyValue * rhs); - -/// Copy a msg/KeyValue message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__KeyValue__copy( - const diagnostic_msgs__msg__KeyValue * input, - diagnostic_msgs__msg__KeyValue * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_type_hash_t * -diagnostic_msgs__msg__KeyValue__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeDescription * -diagnostic_msgs__msg__KeyValue__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource * -diagnostic_msgs__msg__KeyValue__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -diagnostic_msgs__msg__KeyValue__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/KeyValue messages. -/** - * It allocates the memory for the number of elements and calls - * diagnostic_msgs__msg__KeyValue__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__KeyValue__Sequence__init(diagnostic_msgs__msg__KeyValue__Sequence * array, size_t size); - -/// Finalize array of msg/KeyValue messages. -/** - * It calls - * diagnostic_msgs__msg__KeyValue__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__msg__KeyValue__Sequence__fini(diagnostic_msgs__msg__KeyValue__Sequence * array); - -/// Create array of msg/KeyValue messages. -/** - * It allocates the memory for the array and calls - * diagnostic_msgs__msg__KeyValue__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__msg__KeyValue__Sequence * -diagnostic_msgs__msg__KeyValue__Sequence__create(size_t size); - -/// Destroy array of msg/KeyValue messages. -/** - * It calls - * diagnostic_msgs__msg__KeyValue__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__msg__KeyValue__Sequence__destroy(diagnostic_msgs__msg__KeyValue__Sequence * array); - -/// Check for msg/KeyValue message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__KeyValue__Sequence__are_equal(const diagnostic_msgs__msg__KeyValue__Sequence * lhs, const diagnostic_msgs__msg__KeyValue__Sequence * rhs); - -/// Copy an array of msg/KeyValue messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__msg__KeyValue__Sequence__copy( - const diagnostic_msgs__msg__KeyValue__Sequence * input, - diagnostic_msgs__msg__KeyValue__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__DETAIL__KEY_VALUE__FUNCTIONS_H_ diff --git a/src/diagnostic_msgs/msg/detail/key_value__rosidl_typesupport_introspection_c.h b/src/diagnostic_msgs/msg/detail/key_value__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 10bd142c0..000000000 --- a/src/diagnostic_msgs/msg/detail/key_value__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from diagnostic_msgs:msg/KeyValue.idl -// generated code does not contain a copyright notice - -#ifndef DIAGNOSTIC_MSGS__MSG__DETAIL__KEY_VALUE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define DIAGNOSTIC_MSGS__MSG__DETAIL__KEY_VALUE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, diagnostic_msgs, msg, KeyValue)(); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__DETAIL__KEY_VALUE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/diagnostic_msgs/msg/detail/key_value__rosidl_typesupport_microxrcedds_c.h b/src/diagnostic_msgs/msg/detail/key_value__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index d31475a6c..000000000 --- a/src/diagnostic_msgs/msg/detail/key_value__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from diagnostic_msgs:msg/KeyValue.idl -// generated code does not contain a copyright notice -#ifndef DIAGNOSTIC_MSGS__MSG__KEY_VALUE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define DIAGNOSTIC_MSGS__MSG__KEY_VALUE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t get_serialized_size_diagnostic_msgs__msg__KeyValue( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t max_serialized_size_diagnostic_msgs__msg__KeyValue( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, diagnostic_msgs, msg, KeyValue)(); - -#ifdef __cplusplus -} -#endif - - -#endif // DIAGNOSTIC_MSGS__MSG__KEY_VALUE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/diagnostic_msgs/msg/detail/key_value__struct.h b/src/diagnostic_msgs/msg/detail/key_value__struct.h deleted file mode 100755 index 3eb22627a..000000000 --- a/src/diagnostic_msgs/msg/detail/key_value__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from diagnostic_msgs:msg/KeyValue.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/msg/key_value.h" - - -#ifndef DIAGNOSTIC_MSGS__MSG__DETAIL__KEY_VALUE__STRUCT_H_ -#define DIAGNOSTIC_MSGS__MSG__DETAIL__KEY_VALUE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'key' -// Member 'value' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/KeyValue in the package diagnostic_msgs. -/** - * What to label this value when viewing. - */ -typedef struct diagnostic_msgs__msg__KeyValue -{ - rosidl_runtime_c__String key; - /// A value to track over time. - rosidl_runtime_c__String value; -} diagnostic_msgs__msg__KeyValue; - -// Struct for a sequence of diagnostic_msgs__msg__KeyValue. -typedef struct diagnostic_msgs__msg__KeyValue__Sequence -{ - diagnostic_msgs__msg__KeyValue * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} diagnostic_msgs__msg__KeyValue__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__DETAIL__KEY_VALUE__STRUCT_H_ diff --git a/src/diagnostic_msgs/msg/detail/key_value__type_support.h b/src/diagnostic_msgs/msg/detail/key_value__type_support.h deleted file mode 100755 index 052ba4aa8..000000000 --- a/src/diagnostic_msgs/msg/detail/key_value__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from diagnostic_msgs:msg/KeyValue.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/msg/key_value.h" - - -#ifndef DIAGNOSTIC_MSGS__MSG__DETAIL__KEY_VALUE__TYPE_SUPPORT_H_ -#define DIAGNOSTIC_MSGS__MSG__DETAIL__KEY_VALUE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "diagnostic_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - msg, - KeyValue -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__DETAIL__KEY_VALUE__TYPE_SUPPORT_H_ diff --git a/src/diagnostic_msgs/msg/diagnostic_array.h b/src/diagnostic_msgs/msg/diagnostic_array.h deleted file mode 100755 index 785d11553..000000000 --- a/src/diagnostic_msgs/msg/diagnostic_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from diagnostic_msgs:msg/DiagnosticArray.idl -// generated code does not contain a copyright notice - -#ifndef DIAGNOSTIC_MSGS__MSG__DIAGNOSTIC_ARRAY_H_ -#define DIAGNOSTIC_MSGS__MSG__DIAGNOSTIC_ARRAY_H_ - -#include "diagnostic_msgs/msg/detail/diagnostic_array__struct.h" -#include "diagnostic_msgs/msg/detail/diagnostic_array__functions.h" -#include "diagnostic_msgs/msg/detail/diagnostic_array__type_support.h" - -#endif // DIAGNOSTIC_MSGS__MSG__DIAGNOSTIC_ARRAY_H_ diff --git a/src/diagnostic_msgs/msg/diagnostic_status.h b/src/diagnostic_msgs/msg/diagnostic_status.h deleted file mode 100755 index fd76bda6f..000000000 --- a/src/diagnostic_msgs/msg/diagnostic_status.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from diagnostic_msgs:msg/DiagnosticStatus.idl -// generated code does not contain a copyright notice - -#ifndef DIAGNOSTIC_MSGS__MSG__DIAGNOSTIC_STATUS_H_ -#define DIAGNOSTIC_MSGS__MSG__DIAGNOSTIC_STATUS_H_ - -#include "diagnostic_msgs/msg/detail/diagnostic_status__struct.h" -#include "diagnostic_msgs/msg/detail/diagnostic_status__functions.h" -#include "diagnostic_msgs/msg/detail/diagnostic_status__type_support.h" - -#endif // DIAGNOSTIC_MSGS__MSG__DIAGNOSTIC_STATUS_H_ diff --git a/src/diagnostic_msgs/msg/key_value.h b/src/diagnostic_msgs/msg/key_value.h deleted file mode 100755 index 68d390b23..000000000 --- a/src/diagnostic_msgs/msg/key_value.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from diagnostic_msgs:msg/KeyValue.idl -// generated code does not contain a copyright notice - -#ifndef DIAGNOSTIC_MSGS__MSG__KEY_VALUE_H_ -#define DIAGNOSTIC_MSGS__MSG__KEY_VALUE_H_ - -#include "diagnostic_msgs/msg/detail/key_value__struct.h" -#include "diagnostic_msgs/msg/detail/key_value__functions.h" -#include "diagnostic_msgs/msg/detail/key_value__type_support.h" - -#endif // DIAGNOSTIC_MSGS__MSG__KEY_VALUE_H_ diff --git a/src/diagnostic_msgs/msg/rosidl_generator_c__visibility_control.h b/src/diagnostic_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index ec807aeb9..000000000 --- a/src/diagnostic_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef DIAGNOSTIC_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define DIAGNOSTIC_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_diagnostic_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_diagnostic_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_diagnostic_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_diagnostic_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_diagnostic_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs ROSIDL_GENERATOR_C_EXPORT_diagnostic_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs ROSIDL_GENERATOR_C_IMPORT_diagnostic_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_diagnostic_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_diagnostic_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index a6600e89d..000000000 --- a/src/diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef DIAGNOSTIC_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define DIAGNOSTIC_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_diagnostic_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_diagnostic_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_diagnostic_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_diagnostic_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_diagnostic_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_diagnostic_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_diagnostic_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_diagnostic_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_diagnostic_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index cfe4ed9bd..000000000 --- a/src/diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef DIAGNOSTIC_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define DIAGNOSTIC_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_diagnostic_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_diagnostic_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_diagnostic_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_diagnostic_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_diagnostic_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_diagnostic_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_diagnostic_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_diagnostic_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_diagnostic_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/diagnostic_msgs/srv/add_diagnostics.h b/src/diagnostic_msgs/srv/add_diagnostics.h deleted file mode 100755 index cc05db401..000000000 --- a/src/diagnostic_msgs/srv/add_diagnostics.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from diagnostic_msgs:srv/AddDiagnostics.idl -// generated code does not contain a copyright notice - -#ifndef DIAGNOSTIC_MSGS__SRV__ADD_DIAGNOSTICS_H_ -#define DIAGNOSTIC_MSGS__SRV__ADD_DIAGNOSTICS_H_ - -#include "diagnostic_msgs/srv/detail/add_diagnostics__struct.h" -#include "diagnostic_msgs/srv/detail/add_diagnostics__functions.h" -#include "diagnostic_msgs/srv/detail/add_diagnostics__type_support.h" - -#endif // DIAGNOSTIC_MSGS__SRV__ADD_DIAGNOSTICS_H_ diff --git a/src/diagnostic_msgs/srv/detail/add_diagnostics__functions.h b/src/diagnostic_msgs/srv/detail/add_diagnostics__functions.h deleted file mode 100755 index 6e3a737b0..000000000 --- a/src/diagnostic_msgs/srv/detail/add_diagnostics__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from diagnostic_msgs:srv/AddDiagnostics.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/srv/add_diagnostics.h" - - -#ifndef DIAGNOSTIC_MSGS__SRV__DETAIL__ADD_DIAGNOSTICS__FUNCTIONS_H_ -#define DIAGNOSTIC_MSGS__SRV__DETAIL__ADD_DIAGNOSTICS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "diagnostic_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "diagnostic_msgs/srv/detail/add_diagnostics__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_type_hash_t * -diagnostic_msgs__srv__AddDiagnostics__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeDescription * -diagnostic_msgs__srv__AddDiagnostics__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource * -diagnostic_msgs__srv__AddDiagnostics__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -diagnostic_msgs__srv__AddDiagnostics__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/AddDiagnostics message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * diagnostic_msgs__srv__AddDiagnostics_Request - * )) before or use - * diagnostic_msgs__srv__AddDiagnostics_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Request__init(diagnostic_msgs__srv__AddDiagnostics_Request * msg); - -/// Finalize srv/AddDiagnostics message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__AddDiagnostics_Request__fini(diagnostic_msgs__srv__AddDiagnostics_Request * msg); - -/// Create srv/AddDiagnostics message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * diagnostic_msgs__srv__AddDiagnostics_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__srv__AddDiagnostics_Request * -diagnostic_msgs__srv__AddDiagnostics_Request__create(void); - -/// Destroy srv/AddDiagnostics message. -/** - * It calls - * diagnostic_msgs__srv__AddDiagnostics_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__AddDiagnostics_Request__destroy(diagnostic_msgs__srv__AddDiagnostics_Request * msg); - -/// Check for srv/AddDiagnostics message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Request__are_equal(const diagnostic_msgs__srv__AddDiagnostics_Request * lhs, const diagnostic_msgs__srv__AddDiagnostics_Request * rhs); - -/// Copy a srv/AddDiagnostics message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Request__copy( - const diagnostic_msgs__srv__AddDiagnostics_Request * input, - diagnostic_msgs__srv__AddDiagnostics_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_type_hash_t * -diagnostic_msgs__srv__AddDiagnostics_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeDescription * -diagnostic_msgs__srv__AddDiagnostics_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource * -diagnostic_msgs__srv__AddDiagnostics_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -diagnostic_msgs__srv__AddDiagnostics_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/AddDiagnostics messages. -/** - * It allocates the memory for the number of elements and calls - * diagnostic_msgs__srv__AddDiagnostics_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Request__Sequence__init(diagnostic_msgs__srv__AddDiagnostics_Request__Sequence * array, size_t size); - -/// Finalize array of srv/AddDiagnostics messages. -/** - * It calls - * diagnostic_msgs__srv__AddDiagnostics_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__AddDiagnostics_Request__Sequence__fini(diagnostic_msgs__srv__AddDiagnostics_Request__Sequence * array); - -/// Create array of srv/AddDiagnostics messages. -/** - * It allocates the memory for the array and calls - * diagnostic_msgs__srv__AddDiagnostics_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__srv__AddDiagnostics_Request__Sequence * -diagnostic_msgs__srv__AddDiagnostics_Request__Sequence__create(size_t size); - -/// Destroy array of srv/AddDiagnostics messages. -/** - * It calls - * diagnostic_msgs__srv__AddDiagnostics_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__AddDiagnostics_Request__Sequence__destroy(diagnostic_msgs__srv__AddDiagnostics_Request__Sequence * array); - -/// Check for srv/AddDiagnostics message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Request__Sequence__are_equal(const diagnostic_msgs__srv__AddDiagnostics_Request__Sequence * lhs, const diagnostic_msgs__srv__AddDiagnostics_Request__Sequence * rhs); - -/// Copy an array of srv/AddDiagnostics messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Request__Sequence__copy( - const diagnostic_msgs__srv__AddDiagnostics_Request__Sequence * input, - diagnostic_msgs__srv__AddDiagnostics_Request__Sequence * output); - -/// Initialize srv/AddDiagnostics message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * diagnostic_msgs__srv__AddDiagnostics_Response - * )) before or use - * diagnostic_msgs__srv__AddDiagnostics_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Response__init(diagnostic_msgs__srv__AddDiagnostics_Response * msg); - -/// Finalize srv/AddDiagnostics message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__AddDiagnostics_Response__fini(diagnostic_msgs__srv__AddDiagnostics_Response * msg); - -/// Create srv/AddDiagnostics message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * diagnostic_msgs__srv__AddDiagnostics_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__srv__AddDiagnostics_Response * -diagnostic_msgs__srv__AddDiagnostics_Response__create(void); - -/// Destroy srv/AddDiagnostics message. -/** - * It calls - * diagnostic_msgs__srv__AddDiagnostics_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__AddDiagnostics_Response__destroy(diagnostic_msgs__srv__AddDiagnostics_Response * msg); - -/// Check for srv/AddDiagnostics message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Response__are_equal(const diagnostic_msgs__srv__AddDiagnostics_Response * lhs, const diagnostic_msgs__srv__AddDiagnostics_Response * rhs); - -/// Copy a srv/AddDiagnostics message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Response__copy( - const diagnostic_msgs__srv__AddDiagnostics_Response * input, - diagnostic_msgs__srv__AddDiagnostics_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_type_hash_t * -diagnostic_msgs__srv__AddDiagnostics_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeDescription * -diagnostic_msgs__srv__AddDiagnostics_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource * -diagnostic_msgs__srv__AddDiagnostics_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -diagnostic_msgs__srv__AddDiagnostics_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/AddDiagnostics messages. -/** - * It allocates the memory for the number of elements and calls - * diagnostic_msgs__srv__AddDiagnostics_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Response__Sequence__init(diagnostic_msgs__srv__AddDiagnostics_Response__Sequence * array, size_t size); - -/// Finalize array of srv/AddDiagnostics messages. -/** - * It calls - * diagnostic_msgs__srv__AddDiagnostics_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__AddDiagnostics_Response__Sequence__fini(diagnostic_msgs__srv__AddDiagnostics_Response__Sequence * array); - -/// Create array of srv/AddDiagnostics messages. -/** - * It allocates the memory for the array and calls - * diagnostic_msgs__srv__AddDiagnostics_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__srv__AddDiagnostics_Response__Sequence * -diagnostic_msgs__srv__AddDiagnostics_Response__Sequence__create(size_t size); - -/// Destroy array of srv/AddDiagnostics messages. -/** - * It calls - * diagnostic_msgs__srv__AddDiagnostics_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__AddDiagnostics_Response__Sequence__destroy(diagnostic_msgs__srv__AddDiagnostics_Response__Sequence * array); - -/// Check for srv/AddDiagnostics message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Response__Sequence__are_equal(const diagnostic_msgs__srv__AddDiagnostics_Response__Sequence * lhs, const diagnostic_msgs__srv__AddDiagnostics_Response__Sequence * rhs); - -/// Copy an array of srv/AddDiagnostics messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Response__Sequence__copy( - const diagnostic_msgs__srv__AddDiagnostics_Response__Sequence * input, - diagnostic_msgs__srv__AddDiagnostics_Response__Sequence * output); - -/// Initialize srv/AddDiagnostics message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * diagnostic_msgs__srv__AddDiagnostics_Event - * )) before or use - * diagnostic_msgs__srv__AddDiagnostics_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Event__init(diagnostic_msgs__srv__AddDiagnostics_Event * msg); - -/// Finalize srv/AddDiagnostics message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__AddDiagnostics_Event__fini(diagnostic_msgs__srv__AddDiagnostics_Event * msg); - -/// Create srv/AddDiagnostics message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * diagnostic_msgs__srv__AddDiagnostics_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__srv__AddDiagnostics_Event * -diagnostic_msgs__srv__AddDiagnostics_Event__create(void); - -/// Destroy srv/AddDiagnostics message. -/** - * It calls - * diagnostic_msgs__srv__AddDiagnostics_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__AddDiagnostics_Event__destroy(diagnostic_msgs__srv__AddDiagnostics_Event * msg); - -/// Check for srv/AddDiagnostics message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Event__are_equal(const diagnostic_msgs__srv__AddDiagnostics_Event * lhs, const diagnostic_msgs__srv__AddDiagnostics_Event * rhs); - -/// Copy a srv/AddDiagnostics message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Event__copy( - const diagnostic_msgs__srv__AddDiagnostics_Event * input, - diagnostic_msgs__srv__AddDiagnostics_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_type_hash_t * -diagnostic_msgs__srv__AddDiagnostics_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeDescription * -diagnostic_msgs__srv__AddDiagnostics_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource * -diagnostic_msgs__srv__AddDiagnostics_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -diagnostic_msgs__srv__AddDiagnostics_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/AddDiagnostics messages. -/** - * It allocates the memory for the number of elements and calls - * diagnostic_msgs__srv__AddDiagnostics_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Event__Sequence__init(diagnostic_msgs__srv__AddDiagnostics_Event__Sequence * array, size_t size); - -/// Finalize array of srv/AddDiagnostics messages. -/** - * It calls - * diagnostic_msgs__srv__AddDiagnostics_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__AddDiagnostics_Event__Sequence__fini(diagnostic_msgs__srv__AddDiagnostics_Event__Sequence * array); - -/// Create array of srv/AddDiagnostics messages. -/** - * It allocates the memory for the array and calls - * diagnostic_msgs__srv__AddDiagnostics_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__srv__AddDiagnostics_Event__Sequence * -diagnostic_msgs__srv__AddDiagnostics_Event__Sequence__create(size_t size); - -/// Destroy array of srv/AddDiagnostics messages. -/** - * It calls - * diagnostic_msgs__srv__AddDiagnostics_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__AddDiagnostics_Event__Sequence__destroy(diagnostic_msgs__srv__AddDiagnostics_Event__Sequence * array); - -/// Check for srv/AddDiagnostics message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Event__Sequence__are_equal(const diagnostic_msgs__srv__AddDiagnostics_Event__Sequence * lhs, const diagnostic_msgs__srv__AddDiagnostics_Event__Sequence * rhs); - -/// Copy an array of srv/AddDiagnostics messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__AddDiagnostics_Event__Sequence__copy( - const diagnostic_msgs__srv__AddDiagnostics_Event__Sequence * input, - diagnostic_msgs__srv__AddDiagnostics_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__SRV__DETAIL__ADD_DIAGNOSTICS__FUNCTIONS_H_ diff --git a/src/diagnostic_msgs/srv/detail/add_diagnostics__rosidl_typesupport_introspection_c.h b/src/diagnostic_msgs/srv/detail/add_diagnostics__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 6a38b0f52..000000000 --- a/src/diagnostic_msgs/srv/detail/add_diagnostics__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from diagnostic_msgs:srv/AddDiagnostics.idl -// generated code does not contain a copyright notice - -#ifndef DIAGNOSTIC_MSGS__SRV__DETAIL__ADD_DIAGNOSTICS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define DIAGNOSTIC_MSGS__SRV__DETAIL__ADD_DIAGNOSTICS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, diagnostic_msgs, srv, AddDiagnostics_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, diagnostic_msgs, srv, AddDiagnostics_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, diagnostic_msgs, srv, AddDiagnostics_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, diagnostic_msgs, srv, AddDiagnostics)(); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__SRV__DETAIL__ADD_DIAGNOSTICS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/diagnostic_msgs/srv/detail/add_diagnostics__rosidl_typesupport_microxrcedds_c.h b/src/diagnostic_msgs/srv/detail/add_diagnostics__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 7f018ba05..000000000 --- a/src/diagnostic_msgs/srv/detail/add_diagnostics__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from diagnostic_msgs:srv/AddDiagnostics.idl -// generated code does not contain a copyright notice -#ifndef DIAGNOSTIC_MSGS__SRV__ADD_DIAGNOSTICS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define DIAGNOSTIC_MSGS__SRV__ADD_DIAGNOSTICS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t get_serialized_size_diagnostic_msgs__srv__AddDiagnostics_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t max_serialized_size_diagnostic_msgs__srv__AddDiagnostics_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, diagnostic_msgs, srv, AddDiagnostics_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t get_serialized_size_diagnostic_msgs__srv__AddDiagnostics_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t max_serialized_size_diagnostic_msgs__srv__AddDiagnostics_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, diagnostic_msgs, srv, AddDiagnostics_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t get_serialized_size_diagnostic_msgs__srv__AddDiagnostics_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t max_serialized_size_diagnostic_msgs__srv__AddDiagnostics_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, diagnostic_msgs, srv, AddDiagnostics_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, diagnostic_msgs, srv, AddDiagnostics)(); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__SRV__ADD_DIAGNOSTICS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/diagnostic_msgs/srv/detail/add_diagnostics__struct.h b/src/diagnostic_msgs/srv/detail/add_diagnostics__struct.h deleted file mode 100755 index 660337416..000000000 --- a/src/diagnostic_msgs/srv/detail/add_diagnostics__struct.h +++ /dev/null @@ -1,123 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from diagnostic_msgs:srv/AddDiagnostics.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/srv/add_diagnostics.h" - - -#ifndef DIAGNOSTIC_MSGS__SRV__DETAIL__ADD_DIAGNOSTICS__STRUCT_H_ -#define DIAGNOSTIC_MSGS__SRV__DETAIL__ADD_DIAGNOSTICS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'load_namespace' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/AddDiagnostics in the package diagnostic_msgs. -typedef struct diagnostic_msgs__srv__AddDiagnostics_Request -{ - /// The load_namespace parameter defines the namespace where parameters for the - /// initialization of analyzers in the diagnostic aggregator have been loaded. The - /// value should be a global name (i.e. /my/name/space), not a relative - /// (my/name/space) or private (~my/name/space) name. Analyzers will not be added - /// if a non-global name is used. The call will also fail if the namespace - /// contains parameters that follow a namespace structure that does not conform to - /// that expected by the analyzer definitions. See - /// http://wiki.ros.org/diagnostics/Tutorials/Configuring%20Diagnostic%20Aggregators - /// and http://wiki.ros.org/diagnostics/Tutorials/Using%20the%20GenericAnalyzer - /// for examples of the structure of yaml files which are expected to have been - /// loaded into the namespace. - rosidl_runtime_c__String load_namespace; -} diagnostic_msgs__srv__AddDiagnostics_Request; - -// Struct for a sequence of diagnostic_msgs__srv__AddDiagnostics_Request. -typedef struct diagnostic_msgs__srv__AddDiagnostics_Request__Sequence -{ - diagnostic_msgs__srv__AddDiagnostics_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} diagnostic_msgs__srv__AddDiagnostics_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'message' -// already included above -// #include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/AddDiagnostics in the package diagnostic_msgs. -typedef struct diagnostic_msgs__srv__AddDiagnostics_Response -{ - /// True if diagnostic aggregator was updated with new diagnostics, False - /// otherwise. A false return value means that either there is a bond in the - /// aggregator which already used the requested namespace, or the initialization - /// of analyzers failed. - bool success; - /// Message with additional information about the success or failure - rosidl_runtime_c__String message; -} diagnostic_msgs__srv__AddDiagnostics_Response; - -// Struct for a sequence of diagnostic_msgs__srv__AddDiagnostics_Response. -typedef struct diagnostic_msgs__srv__AddDiagnostics_Response__Sequence -{ - diagnostic_msgs__srv__AddDiagnostics_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} diagnostic_msgs__srv__AddDiagnostics_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - diagnostic_msgs__srv__AddDiagnostics_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - diagnostic_msgs__srv__AddDiagnostics_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/AddDiagnostics in the package diagnostic_msgs. -typedef struct diagnostic_msgs__srv__AddDiagnostics_Event -{ - service_msgs__msg__ServiceEventInfo info; - diagnostic_msgs__srv__AddDiagnostics_Request__Sequence request; - diagnostic_msgs__srv__AddDiagnostics_Response__Sequence response; -} diagnostic_msgs__srv__AddDiagnostics_Event; - -// Struct for a sequence of diagnostic_msgs__srv__AddDiagnostics_Event. -typedef struct diagnostic_msgs__srv__AddDiagnostics_Event__Sequence -{ - diagnostic_msgs__srv__AddDiagnostics_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} diagnostic_msgs__srv__AddDiagnostics_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__SRV__DETAIL__ADD_DIAGNOSTICS__STRUCT_H_ diff --git a/src/diagnostic_msgs/srv/detail/add_diagnostics__type_support.h b/src/diagnostic_msgs/srv/detail/add_diagnostics__type_support.h deleted file mode 100755 index f7ce4098e..000000000 --- a/src/diagnostic_msgs/srv/detail/add_diagnostics__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from diagnostic_msgs:srv/AddDiagnostics.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/srv/add_diagnostics.h" - - -#ifndef DIAGNOSTIC_MSGS__SRV__DETAIL__ADD_DIAGNOSTICS__TYPE_SUPPORT_H_ -#define DIAGNOSTIC_MSGS__SRV__DETAIL__ADD_DIAGNOSTICS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "diagnostic_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - srv, - AddDiagnostics_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - srv, - AddDiagnostics_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - srv, - AddDiagnostics_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - srv, - AddDiagnostics -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - srv, - AddDiagnostics -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - srv, - AddDiagnostics -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__SRV__DETAIL__ADD_DIAGNOSTICS__TYPE_SUPPORT_H_ diff --git a/src/diagnostic_msgs/srv/detail/self_test__functions.h b/src/diagnostic_msgs/srv/detail/self_test__functions.h deleted file mode 100755 index 77f9ca1a1..000000000 --- a/src/diagnostic_msgs/srv/detail/self_test__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from diagnostic_msgs:srv/SelfTest.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/srv/self_test.h" - - -#ifndef DIAGNOSTIC_MSGS__SRV__DETAIL__SELF_TEST__FUNCTIONS_H_ -#define DIAGNOSTIC_MSGS__SRV__DETAIL__SELF_TEST__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "diagnostic_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "diagnostic_msgs/srv/detail/self_test__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_type_hash_t * -diagnostic_msgs__srv__SelfTest__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeDescription * -diagnostic_msgs__srv__SelfTest__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource * -diagnostic_msgs__srv__SelfTest__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -diagnostic_msgs__srv__SelfTest__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/SelfTest message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * diagnostic_msgs__srv__SelfTest_Request - * )) before or use - * diagnostic_msgs__srv__SelfTest_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Request__init(diagnostic_msgs__srv__SelfTest_Request * msg); - -/// Finalize srv/SelfTest message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__SelfTest_Request__fini(diagnostic_msgs__srv__SelfTest_Request * msg); - -/// Create srv/SelfTest message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * diagnostic_msgs__srv__SelfTest_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__srv__SelfTest_Request * -diagnostic_msgs__srv__SelfTest_Request__create(void); - -/// Destroy srv/SelfTest message. -/** - * It calls - * diagnostic_msgs__srv__SelfTest_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__SelfTest_Request__destroy(diagnostic_msgs__srv__SelfTest_Request * msg); - -/// Check for srv/SelfTest message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Request__are_equal(const diagnostic_msgs__srv__SelfTest_Request * lhs, const diagnostic_msgs__srv__SelfTest_Request * rhs); - -/// Copy a srv/SelfTest message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Request__copy( - const diagnostic_msgs__srv__SelfTest_Request * input, - diagnostic_msgs__srv__SelfTest_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_type_hash_t * -diagnostic_msgs__srv__SelfTest_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeDescription * -diagnostic_msgs__srv__SelfTest_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource * -diagnostic_msgs__srv__SelfTest_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -diagnostic_msgs__srv__SelfTest_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SelfTest messages. -/** - * It allocates the memory for the number of elements and calls - * diagnostic_msgs__srv__SelfTest_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Request__Sequence__init(diagnostic_msgs__srv__SelfTest_Request__Sequence * array, size_t size); - -/// Finalize array of srv/SelfTest messages. -/** - * It calls - * diagnostic_msgs__srv__SelfTest_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__SelfTest_Request__Sequence__fini(diagnostic_msgs__srv__SelfTest_Request__Sequence * array); - -/// Create array of srv/SelfTest messages. -/** - * It allocates the memory for the array and calls - * diagnostic_msgs__srv__SelfTest_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__srv__SelfTest_Request__Sequence * -diagnostic_msgs__srv__SelfTest_Request__Sequence__create(size_t size); - -/// Destroy array of srv/SelfTest messages. -/** - * It calls - * diagnostic_msgs__srv__SelfTest_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__SelfTest_Request__Sequence__destroy(diagnostic_msgs__srv__SelfTest_Request__Sequence * array); - -/// Check for srv/SelfTest message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Request__Sequence__are_equal(const diagnostic_msgs__srv__SelfTest_Request__Sequence * lhs, const diagnostic_msgs__srv__SelfTest_Request__Sequence * rhs); - -/// Copy an array of srv/SelfTest messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Request__Sequence__copy( - const diagnostic_msgs__srv__SelfTest_Request__Sequence * input, - diagnostic_msgs__srv__SelfTest_Request__Sequence * output); - -/// Initialize srv/SelfTest message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * diagnostic_msgs__srv__SelfTest_Response - * )) before or use - * diagnostic_msgs__srv__SelfTest_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Response__init(diagnostic_msgs__srv__SelfTest_Response * msg); - -/// Finalize srv/SelfTest message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__SelfTest_Response__fini(diagnostic_msgs__srv__SelfTest_Response * msg); - -/// Create srv/SelfTest message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * diagnostic_msgs__srv__SelfTest_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__srv__SelfTest_Response * -diagnostic_msgs__srv__SelfTest_Response__create(void); - -/// Destroy srv/SelfTest message. -/** - * It calls - * diagnostic_msgs__srv__SelfTest_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__SelfTest_Response__destroy(diagnostic_msgs__srv__SelfTest_Response * msg); - -/// Check for srv/SelfTest message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Response__are_equal(const diagnostic_msgs__srv__SelfTest_Response * lhs, const diagnostic_msgs__srv__SelfTest_Response * rhs); - -/// Copy a srv/SelfTest message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Response__copy( - const diagnostic_msgs__srv__SelfTest_Response * input, - diagnostic_msgs__srv__SelfTest_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_type_hash_t * -diagnostic_msgs__srv__SelfTest_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeDescription * -diagnostic_msgs__srv__SelfTest_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource * -diagnostic_msgs__srv__SelfTest_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -diagnostic_msgs__srv__SelfTest_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SelfTest messages. -/** - * It allocates the memory for the number of elements and calls - * diagnostic_msgs__srv__SelfTest_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Response__Sequence__init(diagnostic_msgs__srv__SelfTest_Response__Sequence * array, size_t size); - -/// Finalize array of srv/SelfTest messages. -/** - * It calls - * diagnostic_msgs__srv__SelfTest_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__SelfTest_Response__Sequence__fini(diagnostic_msgs__srv__SelfTest_Response__Sequence * array); - -/// Create array of srv/SelfTest messages. -/** - * It allocates the memory for the array and calls - * diagnostic_msgs__srv__SelfTest_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__srv__SelfTest_Response__Sequence * -diagnostic_msgs__srv__SelfTest_Response__Sequence__create(size_t size); - -/// Destroy array of srv/SelfTest messages. -/** - * It calls - * diagnostic_msgs__srv__SelfTest_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__SelfTest_Response__Sequence__destroy(diagnostic_msgs__srv__SelfTest_Response__Sequence * array); - -/// Check for srv/SelfTest message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Response__Sequence__are_equal(const diagnostic_msgs__srv__SelfTest_Response__Sequence * lhs, const diagnostic_msgs__srv__SelfTest_Response__Sequence * rhs); - -/// Copy an array of srv/SelfTest messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Response__Sequence__copy( - const diagnostic_msgs__srv__SelfTest_Response__Sequence * input, - diagnostic_msgs__srv__SelfTest_Response__Sequence * output); - -/// Initialize srv/SelfTest message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * diagnostic_msgs__srv__SelfTest_Event - * )) before or use - * diagnostic_msgs__srv__SelfTest_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Event__init(diagnostic_msgs__srv__SelfTest_Event * msg); - -/// Finalize srv/SelfTest message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__SelfTest_Event__fini(diagnostic_msgs__srv__SelfTest_Event * msg); - -/// Create srv/SelfTest message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * diagnostic_msgs__srv__SelfTest_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__srv__SelfTest_Event * -diagnostic_msgs__srv__SelfTest_Event__create(void); - -/// Destroy srv/SelfTest message. -/** - * It calls - * diagnostic_msgs__srv__SelfTest_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__SelfTest_Event__destroy(diagnostic_msgs__srv__SelfTest_Event * msg); - -/// Check for srv/SelfTest message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Event__are_equal(const diagnostic_msgs__srv__SelfTest_Event * lhs, const diagnostic_msgs__srv__SelfTest_Event * rhs); - -/// Copy a srv/SelfTest message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Event__copy( - const diagnostic_msgs__srv__SelfTest_Event * input, - diagnostic_msgs__srv__SelfTest_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_type_hash_t * -diagnostic_msgs__srv__SelfTest_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeDescription * -diagnostic_msgs__srv__SelfTest_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource * -diagnostic_msgs__srv__SelfTest_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -diagnostic_msgs__srv__SelfTest_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SelfTest messages. -/** - * It allocates the memory for the number of elements and calls - * diagnostic_msgs__srv__SelfTest_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Event__Sequence__init(diagnostic_msgs__srv__SelfTest_Event__Sequence * array, size_t size); - -/// Finalize array of srv/SelfTest messages. -/** - * It calls - * diagnostic_msgs__srv__SelfTest_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__SelfTest_Event__Sequence__fini(diagnostic_msgs__srv__SelfTest_Event__Sequence * array); - -/// Create array of srv/SelfTest messages. -/** - * It allocates the memory for the array and calls - * diagnostic_msgs__srv__SelfTest_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -diagnostic_msgs__srv__SelfTest_Event__Sequence * -diagnostic_msgs__srv__SelfTest_Event__Sequence__create(size_t size); - -/// Destroy array of srv/SelfTest messages. -/** - * It calls - * diagnostic_msgs__srv__SelfTest_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void -diagnostic_msgs__srv__SelfTest_Event__Sequence__destroy(diagnostic_msgs__srv__SelfTest_Event__Sequence * array); - -/// Check for srv/SelfTest message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Event__Sequence__are_equal(const diagnostic_msgs__srv__SelfTest_Event__Sequence * lhs, const diagnostic_msgs__srv__SelfTest_Event__Sequence * rhs); - -/// Copy an array of srv/SelfTest messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -diagnostic_msgs__srv__SelfTest_Event__Sequence__copy( - const diagnostic_msgs__srv__SelfTest_Event__Sequence * input, - diagnostic_msgs__srv__SelfTest_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__SRV__DETAIL__SELF_TEST__FUNCTIONS_H_ diff --git a/src/diagnostic_msgs/srv/detail/self_test__rosidl_typesupport_introspection_c.h b/src/diagnostic_msgs/srv/detail/self_test__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 7b18b9a99..000000000 --- a/src/diagnostic_msgs/srv/detail/self_test__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from diagnostic_msgs:srv/SelfTest.idl -// generated code does not contain a copyright notice - -#ifndef DIAGNOSTIC_MSGS__SRV__DETAIL__SELF_TEST__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define DIAGNOSTIC_MSGS__SRV__DETAIL__SELF_TEST__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, diagnostic_msgs, srv, SelfTest_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, diagnostic_msgs, srv, SelfTest_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, diagnostic_msgs, srv, SelfTest_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "diagnostic_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_diagnostic_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, diagnostic_msgs, srv, SelfTest)(); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__SRV__DETAIL__SELF_TEST__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/diagnostic_msgs/srv/detail/self_test__rosidl_typesupport_microxrcedds_c.h b/src/diagnostic_msgs/srv/detail/self_test__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index d38e30c2e..000000000 --- a/src/diagnostic_msgs/srv/detail/self_test__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from diagnostic_msgs:srv/SelfTest.idl -// generated code does not contain a copyright notice -#ifndef DIAGNOSTIC_MSGS__SRV__SELF_TEST__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define DIAGNOSTIC_MSGS__SRV__SELF_TEST__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t get_serialized_size_diagnostic_msgs__srv__SelfTest_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t max_serialized_size_diagnostic_msgs__srv__SelfTest_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, diagnostic_msgs, srv, SelfTest_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t get_serialized_size_diagnostic_msgs__srv__SelfTest_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t max_serialized_size_diagnostic_msgs__srv__SelfTest_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, diagnostic_msgs, srv, SelfTest_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t get_serialized_size_diagnostic_msgs__srv__SelfTest_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -size_t max_serialized_size_diagnostic_msgs__srv__SelfTest_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, diagnostic_msgs, srv, SelfTest_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "diagnostic_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_diagnostic_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, diagnostic_msgs, srv, SelfTest)(); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__SRV__SELF_TEST__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/diagnostic_msgs/srv/detail/self_test__struct.h b/src/diagnostic_msgs/srv/detail/self_test__struct.h deleted file mode 100755 index 57a19c675..000000000 --- a/src/diagnostic_msgs/srv/detail/self_test__struct.h +++ /dev/null @@ -1,105 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from diagnostic_msgs:srv/SelfTest.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/srv/self_test.h" - - -#ifndef DIAGNOSTIC_MSGS__SRV__DETAIL__SELF_TEST__STRUCT_H_ -#define DIAGNOSTIC_MSGS__SRV__DETAIL__SELF_TEST__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/SelfTest in the package diagnostic_msgs. -typedef struct diagnostic_msgs__srv__SelfTest_Request -{ - uint8_t structure_needs_at_least_one_member; -} diagnostic_msgs__srv__SelfTest_Request; - -// Struct for a sequence of diagnostic_msgs__srv__SelfTest_Request. -typedef struct diagnostic_msgs__srv__SelfTest_Request__Sequence -{ - diagnostic_msgs__srv__SelfTest_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} diagnostic_msgs__srv__SelfTest_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'id' -#include "rosidl_runtime_c/string.h" -// Member 'status' -#include "diagnostic_msgs/msg/detail/diagnostic_status__struct.h" - -/// Struct defined in srv/SelfTest in the package diagnostic_msgs. -typedef struct diagnostic_msgs__srv__SelfTest_Response -{ - rosidl_runtime_c__String id; - uint8_t passed; - diagnostic_msgs__msg__DiagnosticStatus__Sequence status; -} diagnostic_msgs__srv__SelfTest_Response; - -// Struct for a sequence of diagnostic_msgs__srv__SelfTest_Response. -typedef struct diagnostic_msgs__srv__SelfTest_Response__Sequence -{ - diagnostic_msgs__srv__SelfTest_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} diagnostic_msgs__srv__SelfTest_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - diagnostic_msgs__srv__SelfTest_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - diagnostic_msgs__srv__SelfTest_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/SelfTest in the package diagnostic_msgs. -typedef struct diagnostic_msgs__srv__SelfTest_Event -{ - service_msgs__msg__ServiceEventInfo info; - diagnostic_msgs__srv__SelfTest_Request__Sequence request; - diagnostic_msgs__srv__SelfTest_Response__Sequence response; -} diagnostic_msgs__srv__SelfTest_Event; - -// Struct for a sequence of diagnostic_msgs__srv__SelfTest_Event. -typedef struct diagnostic_msgs__srv__SelfTest_Event__Sequence -{ - diagnostic_msgs__srv__SelfTest_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} diagnostic_msgs__srv__SelfTest_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__SRV__DETAIL__SELF_TEST__STRUCT_H_ diff --git a/src/diagnostic_msgs/srv/detail/self_test__type_support.h b/src/diagnostic_msgs/srv/detail/self_test__type_support.h deleted file mode 100755 index 898cf39e4..000000000 --- a/src/diagnostic_msgs/srv/detail/self_test__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from diagnostic_msgs:srv/SelfTest.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "diagnostic_msgs/srv/self_test.h" - - -#ifndef DIAGNOSTIC_MSGS__SRV__DETAIL__SELF_TEST__TYPE_SUPPORT_H_ -#define DIAGNOSTIC_MSGS__SRV__DETAIL__SELF_TEST__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "diagnostic_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - srv, - SelfTest_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - srv, - SelfTest_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - srv, - SelfTest_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - srv, - SelfTest -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - srv, - SelfTest -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_diagnostic_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - diagnostic_msgs, - srv, - SelfTest -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // DIAGNOSTIC_MSGS__SRV__DETAIL__SELF_TEST__TYPE_SUPPORT_H_ diff --git a/src/diagnostic_msgs/srv/self_test.h b/src/diagnostic_msgs/srv/self_test.h deleted file mode 100755 index 6ef855097..000000000 --- a/src/diagnostic_msgs/srv/self_test.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from diagnostic_msgs:srv/SelfTest.idl -// generated code does not contain a copyright notice - -#ifndef DIAGNOSTIC_MSGS__SRV__SELF_TEST_H_ -#define DIAGNOSTIC_MSGS__SRV__SELF_TEST_H_ - -#include "diagnostic_msgs/srv/detail/self_test__struct.h" -#include "diagnostic_msgs/srv/detail/self_test__functions.h" -#include "diagnostic_msgs/srv/detail/self_test__type_support.h" - -#endif // DIAGNOSTIC_MSGS__SRV__SELF_TEST_H_ diff --git a/src/esp32/libmicroros.a b/src/esp32/libmicroros.a deleted file mode 100755 index 1001bb121..000000000 Binary files a/src/esp32/libmicroros.a and /dev/null differ diff --git a/src/example_interfaces/action/detail/fibonacci__functions.h b/src/example_interfaces/action/detail/fibonacci__functions.h deleted file mode 100755 index 56cfb5515..000000000 --- a/src/example_interfaces/action/detail/fibonacci__functions.h +++ /dev/null @@ -1,1866 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:action/Fibonacci.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/action/fibonacci.h" - - -#ifndef EXAMPLE_INTERFACES__ACTION__DETAIL__FIBONACCI__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__ACTION__DETAIL__FIBONACCI__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/action/detail/fibonacci__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__action__Fibonacci__get_type_hash( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__action__Fibonacci__get_type_description( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__action__Fibonacci__get_individual_type_description_source( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__action__Fibonacci__get_type_description_sources( - const rosidl_action_type_support_t * type_support); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__action__Fibonacci_Goal - * )) before or use - * example_interfaces__action__Fibonacci_Goal__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Goal__init(example_interfaces__action__Fibonacci_Goal * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_Goal__fini(example_interfaces__action__Fibonacci_Goal * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__action__Fibonacci_Goal__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_Goal * -example_interfaces__action__Fibonacci_Goal__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * example_interfaces__action__Fibonacci_Goal__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_Goal__destroy(example_interfaces__action__Fibonacci_Goal * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Goal__are_equal(const example_interfaces__action__Fibonacci_Goal * lhs, const example_interfaces__action__Fibonacci_Goal * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Goal__copy( - const example_interfaces__action__Fibonacci_Goal * input, - example_interfaces__action__Fibonacci_Goal * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__action__Fibonacci_Goal__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__action__Fibonacci_Goal__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__action__Fibonacci_Goal__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__action__Fibonacci_Goal__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__action__Fibonacci_Goal__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Goal__Sequence__init(example_interfaces__action__Fibonacci_Goal__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_Goal__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_Goal__Sequence__fini(example_interfaces__action__Fibonacci_Goal__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__action__Fibonacci_Goal__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_Goal__Sequence * -example_interfaces__action__Fibonacci_Goal__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_Goal__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_Goal__Sequence__destroy(example_interfaces__action__Fibonacci_Goal__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Goal__Sequence__are_equal(const example_interfaces__action__Fibonacci_Goal__Sequence * lhs, const example_interfaces__action__Fibonacci_Goal__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Goal__Sequence__copy( - const example_interfaces__action__Fibonacci_Goal__Sequence * input, - example_interfaces__action__Fibonacci_Goal__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__action__Fibonacci_Result - * )) before or use - * example_interfaces__action__Fibonacci_Result__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Result__init(example_interfaces__action__Fibonacci_Result * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_Result__fini(example_interfaces__action__Fibonacci_Result * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__action__Fibonacci_Result__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_Result * -example_interfaces__action__Fibonacci_Result__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * example_interfaces__action__Fibonacci_Result__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_Result__destroy(example_interfaces__action__Fibonacci_Result * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Result__are_equal(const example_interfaces__action__Fibonacci_Result * lhs, const example_interfaces__action__Fibonacci_Result * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Result__copy( - const example_interfaces__action__Fibonacci_Result * input, - example_interfaces__action__Fibonacci_Result * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__action__Fibonacci_Result__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__action__Fibonacci_Result__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__action__Fibonacci_Result__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__action__Fibonacci_Result__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__action__Fibonacci_Result__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Result__Sequence__init(example_interfaces__action__Fibonacci_Result__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_Result__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_Result__Sequence__fini(example_interfaces__action__Fibonacci_Result__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__action__Fibonacci_Result__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_Result__Sequence * -example_interfaces__action__Fibonacci_Result__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_Result__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_Result__Sequence__destroy(example_interfaces__action__Fibonacci_Result__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Result__Sequence__are_equal(const example_interfaces__action__Fibonacci_Result__Sequence * lhs, const example_interfaces__action__Fibonacci_Result__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Result__Sequence__copy( - const example_interfaces__action__Fibonacci_Result__Sequence * input, - example_interfaces__action__Fibonacci_Result__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__action__Fibonacci_Feedback - * )) before or use - * example_interfaces__action__Fibonacci_Feedback__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Feedback__init(example_interfaces__action__Fibonacci_Feedback * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_Feedback__fini(example_interfaces__action__Fibonacci_Feedback * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__action__Fibonacci_Feedback__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_Feedback * -example_interfaces__action__Fibonacci_Feedback__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * example_interfaces__action__Fibonacci_Feedback__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_Feedback__destroy(example_interfaces__action__Fibonacci_Feedback * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Feedback__are_equal(const example_interfaces__action__Fibonacci_Feedback * lhs, const example_interfaces__action__Fibonacci_Feedback * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Feedback__copy( - const example_interfaces__action__Fibonacci_Feedback * input, - example_interfaces__action__Fibonacci_Feedback * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__action__Fibonacci_Feedback__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__action__Fibonacci_Feedback__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__action__Fibonacci_Feedback__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__action__Fibonacci_Feedback__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__action__Fibonacci_Feedback__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Feedback__Sequence__init(example_interfaces__action__Fibonacci_Feedback__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_Feedback__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_Feedback__Sequence__fini(example_interfaces__action__Fibonacci_Feedback__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__action__Fibonacci_Feedback__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_Feedback__Sequence * -example_interfaces__action__Fibonacci_Feedback__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_Feedback__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_Feedback__Sequence__destroy(example_interfaces__action__Fibonacci_Feedback__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Feedback__Sequence__are_equal(const example_interfaces__action__Fibonacci_Feedback__Sequence * lhs, const example_interfaces__action__Fibonacci_Feedback__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_Feedback__Sequence__copy( - const example_interfaces__action__Fibonacci_Feedback__Sequence * input, - example_interfaces__action__Fibonacci_Feedback__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__action__Fibonacci_SendGoal__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__action__Fibonacci_SendGoal__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__action__Fibonacci_SendGoal__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__action__Fibonacci_SendGoal__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__action__Fibonacci_SendGoal_Request - * )) before or use - * example_interfaces__action__Fibonacci_SendGoal_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Request__init(example_interfaces__action__Fibonacci_SendGoal_Request * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_SendGoal_Request__fini(example_interfaces__action__Fibonacci_SendGoal_Request * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__action__Fibonacci_SendGoal_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_SendGoal_Request * -example_interfaces__action__Fibonacci_SendGoal_Request__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * example_interfaces__action__Fibonacci_SendGoal_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_SendGoal_Request__destroy(example_interfaces__action__Fibonacci_SendGoal_Request * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Request__are_equal(const example_interfaces__action__Fibonacci_SendGoal_Request * lhs, const example_interfaces__action__Fibonacci_SendGoal_Request * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Request__copy( - const example_interfaces__action__Fibonacci_SendGoal_Request * input, - example_interfaces__action__Fibonacci_SendGoal_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__action__Fibonacci_SendGoal_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__action__Fibonacci_SendGoal_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__action__Fibonacci_SendGoal_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__action__Fibonacci_SendGoal_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__action__Fibonacci_SendGoal_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Request__Sequence__init(example_interfaces__action__Fibonacci_SendGoal_Request__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_SendGoal_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_SendGoal_Request__Sequence__fini(example_interfaces__action__Fibonacci_SendGoal_Request__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__action__Fibonacci_SendGoal_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_SendGoal_Request__Sequence * -example_interfaces__action__Fibonacci_SendGoal_Request__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_SendGoal_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_SendGoal_Request__Sequence__destroy(example_interfaces__action__Fibonacci_SendGoal_Request__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Request__Sequence__are_equal(const example_interfaces__action__Fibonacci_SendGoal_Request__Sequence * lhs, const example_interfaces__action__Fibonacci_SendGoal_Request__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Request__Sequence__copy( - const example_interfaces__action__Fibonacci_SendGoal_Request__Sequence * input, - example_interfaces__action__Fibonacci_SendGoal_Request__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__action__Fibonacci_SendGoal_Response - * )) before or use - * example_interfaces__action__Fibonacci_SendGoal_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Response__init(example_interfaces__action__Fibonacci_SendGoal_Response * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_SendGoal_Response__fini(example_interfaces__action__Fibonacci_SendGoal_Response * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__action__Fibonacci_SendGoal_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_SendGoal_Response * -example_interfaces__action__Fibonacci_SendGoal_Response__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * example_interfaces__action__Fibonacci_SendGoal_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_SendGoal_Response__destroy(example_interfaces__action__Fibonacci_SendGoal_Response * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Response__are_equal(const example_interfaces__action__Fibonacci_SendGoal_Response * lhs, const example_interfaces__action__Fibonacci_SendGoal_Response * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Response__copy( - const example_interfaces__action__Fibonacci_SendGoal_Response * input, - example_interfaces__action__Fibonacci_SendGoal_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__action__Fibonacci_SendGoal_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__action__Fibonacci_SendGoal_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__action__Fibonacci_SendGoal_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__action__Fibonacci_SendGoal_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__action__Fibonacci_SendGoal_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Response__Sequence__init(example_interfaces__action__Fibonacci_SendGoal_Response__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_SendGoal_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_SendGoal_Response__Sequence__fini(example_interfaces__action__Fibonacci_SendGoal_Response__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__action__Fibonacci_SendGoal_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_SendGoal_Response__Sequence * -example_interfaces__action__Fibonacci_SendGoal_Response__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_SendGoal_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_SendGoal_Response__Sequence__destroy(example_interfaces__action__Fibonacci_SendGoal_Response__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Response__Sequence__are_equal(const example_interfaces__action__Fibonacci_SendGoal_Response__Sequence * lhs, const example_interfaces__action__Fibonacci_SendGoal_Response__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Response__Sequence__copy( - const example_interfaces__action__Fibonacci_SendGoal_Response__Sequence * input, - example_interfaces__action__Fibonacci_SendGoal_Response__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__action__Fibonacci_SendGoal_Event - * )) before or use - * example_interfaces__action__Fibonacci_SendGoal_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Event__init(example_interfaces__action__Fibonacci_SendGoal_Event * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_SendGoal_Event__fini(example_interfaces__action__Fibonacci_SendGoal_Event * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__action__Fibonacci_SendGoal_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_SendGoal_Event * -example_interfaces__action__Fibonacci_SendGoal_Event__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * example_interfaces__action__Fibonacci_SendGoal_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_SendGoal_Event__destroy(example_interfaces__action__Fibonacci_SendGoal_Event * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Event__are_equal(const example_interfaces__action__Fibonacci_SendGoal_Event * lhs, const example_interfaces__action__Fibonacci_SendGoal_Event * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Event__copy( - const example_interfaces__action__Fibonacci_SendGoal_Event * input, - example_interfaces__action__Fibonacci_SendGoal_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__action__Fibonacci_SendGoal_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__action__Fibonacci_SendGoal_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__action__Fibonacci_SendGoal_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__action__Fibonacci_SendGoal_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__action__Fibonacci_SendGoal_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Event__Sequence__init(example_interfaces__action__Fibonacci_SendGoal_Event__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_SendGoal_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_SendGoal_Event__Sequence__fini(example_interfaces__action__Fibonacci_SendGoal_Event__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__action__Fibonacci_SendGoal_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_SendGoal_Event__Sequence * -example_interfaces__action__Fibonacci_SendGoal_Event__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_SendGoal_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_SendGoal_Event__Sequence__destroy(example_interfaces__action__Fibonacci_SendGoal_Event__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Event__Sequence__are_equal(const example_interfaces__action__Fibonacci_SendGoal_Event__Sequence * lhs, const example_interfaces__action__Fibonacci_SendGoal_Event__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_SendGoal_Event__Sequence__copy( - const example_interfaces__action__Fibonacci_SendGoal_Event__Sequence * input, - example_interfaces__action__Fibonacci_SendGoal_Event__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__action__Fibonacci_GetResult__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__action__Fibonacci_GetResult__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__action__Fibonacci_GetResult__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__action__Fibonacci_GetResult__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__action__Fibonacci_GetResult_Request - * )) before or use - * example_interfaces__action__Fibonacci_GetResult_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Request__init(example_interfaces__action__Fibonacci_GetResult_Request * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_GetResult_Request__fini(example_interfaces__action__Fibonacci_GetResult_Request * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__action__Fibonacci_GetResult_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_GetResult_Request * -example_interfaces__action__Fibonacci_GetResult_Request__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * example_interfaces__action__Fibonacci_GetResult_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_GetResult_Request__destroy(example_interfaces__action__Fibonacci_GetResult_Request * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Request__are_equal(const example_interfaces__action__Fibonacci_GetResult_Request * lhs, const example_interfaces__action__Fibonacci_GetResult_Request * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Request__copy( - const example_interfaces__action__Fibonacci_GetResult_Request * input, - example_interfaces__action__Fibonacci_GetResult_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__action__Fibonacci_GetResult_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__action__Fibonacci_GetResult_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__action__Fibonacci_GetResult_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__action__Fibonacci_GetResult_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__action__Fibonacci_GetResult_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Request__Sequence__init(example_interfaces__action__Fibonacci_GetResult_Request__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_GetResult_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_GetResult_Request__Sequence__fini(example_interfaces__action__Fibonacci_GetResult_Request__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__action__Fibonacci_GetResult_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_GetResult_Request__Sequence * -example_interfaces__action__Fibonacci_GetResult_Request__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_GetResult_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_GetResult_Request__Sequence__destroy(example_interfaces__action__Fibonacci_GetResult_Request__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Request__Sequence__are_equal(const example_interfaces__action__Fibonacci_GetResult_Request__Sequence * lhs, const example_interfaces__action__Fibonacci_GetResult_Request__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Request__Sequence__copy( - const example_interfaces__action__Fibonacci_GetResult_Request__Sequence * input, - example_interfaces__action__Fibonacci_GetResult_Request__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__action__Fibonacci_GetResult_Response - * )) before or use - * example_interfaces__action__Fibonacci_GetResult_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Response__init(example_interfaces__action__Fibonacci_GetResult_Response * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_GetResult_Response__fini(example_interfaces__action__Fibonacci_GetResult_Response * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__action__Fibonacci_GetResult_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_GetResult_Response * -example_interfaces__action__Fibonacci_GetResult_Response__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * example_interfaces__action__Fibonacci_GetResult_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_GetResult_Response__destroy(example_interfaces__action__Fibonacci_GetResult_Response * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Response__are_equal(const example_interfaces__action__Fibonacci_GetResult_Response * lhs, const example_interfaces__action__Fibonacci_GetResult_Response * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Response__copy( - const example_interfaces__action__Fibonacci_GetResult_Response * input, - example_interfaces__action__Fibonacci_GetResult_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__action__Fibonacci_GetResult_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__action__Fibonacci_GetResult_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__action__Fibonacci_GetResult_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__action__Fibonacci_GetResult_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__action__Fibonacci_GetResult_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Response__Sequence__init(example_interfaces__action__Fibonacci_GetResult_Response__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_GetResult_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_GetResult_Response__Sequence__fini(example_interfaces__action__Fibonacci_GetResult_Response__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__action__Fibonacci_GetResult_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_GetResult_Response__Sequence * -example_interfaces__action__Fibonacci_GetResult_Response__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_GetResult_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_GetResult_Response__Sequence__destroy(example_interfaces__action__Fibonacci_GetResult_Response__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Response__Sequence__are_equal(const example_interfaces__action__Fibonacci_GetResult_Response__Sequence * lhs, const example_interfaces__action__Fibonacci_GetResult_Response__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Response__Sequence__copy( - const example_interfaces__action__Fibonacci_GetResult_Response__Sequence * input, - example_interfaces__action__Fibonacci_GetResult_Response__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__action__Fibonacci_GetResult_Event - * )) before or use - * example_interfaces__action__Fibonacci_GetResult_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Event__init(example_interfaces__action__Fibonacci_GetResult_Event * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_GetResult_Event__fini(example_interfaces__action__Fibonacci_GetResult_Event * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__action__Fibonacci_GetResult_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_GetResult_Event * -example_interfaces__action__Fibonacci_GetResult_Event__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * example_interfaces__action__Fibonacci_GetResult_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_GetResult_Event__destroy(example_interfaces__action__Fibonacci_GetResult_Event * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Event__are_equal(const example_interfaces__action__Fibonacci_GetResult_Event * lhs, const example_interfaces__action__Fibonacci_GetResult_Event * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Event__copy( - const example_interfaces__action__Fibonacci_GetResult_Event * input, - example_interfaces__action__Fibonacci_GetResult_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__action__Fibonacci_GetResult_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__action__Fibonacci_GetResult_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__action__Fibonacci_GetResult_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__action__Fibonacci_GetResult_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__action__Fibonacci_GetResult_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Event__Sequence__init(example_interfaces__action__Fibonacci_GetResult_Event__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_GetResult_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_GetResult_Event__Sequence__fini(example_interfaces__action__Fibonacci_GetResult_Event__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__action__Fibonacci_GetResult_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_GetResult_Event__Sequence * -example_interfaces__action__Fibonacci_GetResult_Event__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_GetResult_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_GetResult_Event__Sequence__destroy(example_interfaces__action__Fibonacci_GetResult_Event__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Event__Sequence__are_equal(const example_interfaces__action__Fibonacci_GetResult_Event__Sequence * lhs, const example_interfaces__action__Fibonacci_GetResult_Event__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_GetResult_Event__Sequence__copy( - const example_interfaces__action__Fibonacci_GetResult_Event__Sequence * input, - example_interfaces__action__Fibonacci_GetResult_Event__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__action__Fibonacci_FeedbackMessage - * )) before or use - * example_interfaces__action__Fibonacci_FeedbackMessage__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_FeedbackMessage__init(example_interfaces__action__Fibonacci_FeedbackMessage * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_FeedbackMessage__fini(example_interfaces__action__Fibonacci_FeedbackMessage * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__action__Fibonacci_FeedbackMessage__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_FeedbackMessage * -example_interfaces__action__Fibonacci_FeedbackMessage__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * example_interfaces__action__Fibonacci_FeedbackMessage__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_FeedbackMessage__destroy(example_interfaces__action__Fibonacci_FeedbackMessage * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_FeedbackMessage__are_equal(const example_interfaces__action__Fibonacci_FeedbackMessage * lhs, const example_interfaces__action__Fibonacci_FeedbackMessage * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_FeedbackMessage__copy( - const example_interfaces__action__Fibonacci_FeedbackMessage * input, - example_interfaces__action__Fibonacci_FeedbackMessage * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__action__Fibonacci_FeedbackMessage__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__action__Fibonacci_FeedbackMessage__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__action__Fibonacci_FeedbackMessage__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__action__Fibonacci_FeedbackMessage__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__action__Fibonacci_FeedbackMessage__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_FeedbackMessage__Sequence__init(example_interfaces__action__Fibonacci_FeedbackMessage__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_FeedbackMessage__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_FeedbackMessage__Sequence__fini(example_interfaces__action__Fibonacci_FeedbackMessage__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__action__Fibonacci_FeedbackMessage__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__action__Fibonacci_FeedbackMessage__Sequence * -example_interfaces__action__Fibonacci_FeedbackMessage__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * example_interfaces__action__Fibonacci_FeedbackMessage__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__action__Fibonacci_FeedbackMessage__Sequence__destroy(example_interfaces__action__Fibonacci_FeedbackMessage__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_FeedbackMessage__Sequence__are_equal(const example_interfaces__action__Fibonacci_FeedbackMessage__Sequence * lhs, const example_interfaces__action__Fibonacci_FeedbackMessage__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__action__Fibonacci_FeedbackMessage__Sequence__copy( - const example_interfaces__action__Fibonacci_FeedbackMessage__Sequence * input, - example_interfaces__action__Fibonacci_FeedbackMessage__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__ACTION__DETAIL__FIBONACCI__FUNCTIONS_H_ diff --git a/src/example_interfaces/action/detail/fibonacci__rosidl_typesupport_introspection_c.h b/src/example_interfaces/action/detail/fibonacci__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 02f36a2a5..000000000 --- a/src/example_interfaces/action/detail/fibonacci__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,146 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:action/Fibonacci.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__ACTION__DETAIL__FIBONACCI__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__ACTION__DETAIL__FIBONACCI__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, action, Fibonacci_Goal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, action, Fibonacci_Result)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, action, Fibonacci_Feedback)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, action, Fibonacci_SendGoal_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, action, Fibonacci_SendGoal_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, action, Fibonacci_SendGoal_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, action, Fibonacci_SendGoal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, action, Fibonacci_GetResult_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, action, Fibonacci_GetResult_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, action, Fibonacci_GetResult_Event)(); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, action, Fibonacci_GetResult)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, action, Fibonacci_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__ACTION__DETAIL__FIBONACCI__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/action/detail/fibonacci__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/action/detail/fibonacci__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 1d5feb27f..000000000 --- a/src/example_interfaces/action/detail/fibonacci__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,411 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:action/Fibonacci.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__ACTION__FIBONACCI__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__ACTION__FIBONACCI__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__action__Fibonacci_Goal( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__action__Fibonacci_Goal( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, action, Fibonacci_Goal)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__action__Fibonacci_Result( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__action__Fibonacci_Result( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, action, Fibonacci_Result)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__action__Fibonacci_Feedback( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__action__Fibonacci_Feedback( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, action, Fibonacci_Feedback)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__action__Fibonacci_SendGoal_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__action__Fibonacci_SendGoal_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, action, Fibonacci_SendGoal_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__action__Fibonacci_SendGoal_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__action__Fibonacci_SendGoal_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, action, Fibonacci_SendGoal_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__action__Fibonacci_SendGoal_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__action__Fibonacci_SendGoal_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, action, Fibonacci_SendGoal_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, action, Fibonacci_SendGoal)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__action__Fibonacci_GetResult_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__action__Fibonacci_GetResult_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, action, Fibonacci_GetResult_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__action__Fibonacci_GetResult_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__action__Fibonacci_GetResult_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, action, Fibonacci_GetResult_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__action__Fibonacci_GetResult_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__action__Fibonacci_GetResult_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, action, Fibonacci_GetResult_Event)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, action, Fibonacci_GetResult)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__action__Fibonacci_FeedbackMessage( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__action__Fibonacci_FeedbackMessage( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, action, Fibonacci_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__ACTION__FIBONACCI__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/action/detail/fibonacci__struct.h b/src/example_interfaces/action/detail/fibonacci__struct.h deleted file mode 100755 index 262aba15b..000000000 --- a/src/example_interfaces/action/detail/fibonacci__struct.h +++ /dev/null @@ -1,283 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:action/Fibonacci.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/action/fibonacci.h" - - -#ifndef EXAMPLE_INTERFACES__ACTION__DETAIL__FIBONACCI__STRUCT_H_ -#define EXAMPLE_INTERFACES__ACTION__DETAIL__FIBONACCI__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in action/Fibonacci in the package example_interfaces. -typedef struct example_interfaces__action__Fibonacci_Goal -{ - int32_t order; -} example_interfaces__action__Fibonacci_Goal; - -// Struct for a sequence of example_interfaces__action__Fibonacci_Goal. -typedef struct example_interfaces__action__Fibonacci_Goal__Sequence -{ - example_interfaces__action__Fibonacci_Goal * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__action__Fibonacci_Goal__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'sequence' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in action/Fibonacci in the package example_interfaces. -typedef struct example_interfaces__action__Fibonacci_Result -{ - rosidl_runtime_c__int32__Sequence sequence; -} example_interfaces__action__Fibonacci_Result; - -// Struct for a sequence of example_interfaces__action__Fibonacci_Result. -typedef struct example_interfaces__action__Fibonacci_Result__Sequence -{ - example_interfaces__action__Fibonacci_Result * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__action__Fibonacci_Result__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'sequence' -// already included above -// #include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in action/Fibonacci in the package example_interfaces. -typedef struct example_interfaces__action__Fibonacci_Feedback -{ - rosidl_runtime_c__int32__Sequence sequence; -} example_interfaces__action__Fibonacci_Feedback; - -// Struct for a sequence of example_interfaces__action__Fibonacci_Feedback. -typedef struct example_interfaces__action__Fibonacci_Feedback__Sequence -{ - example_interfaces__action__Fibonacci_Feedback * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__action__Fibonacci_Feedback__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -#include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'goal' -#include "example_interfaces/action/detail/fibonacci__struct.h" - -/// Struct defined in action/Fibonacci in the package example_interfaces. -typedef struct example_interfaces__action__Fibonacci_SendGoal_Request -{ - unique_identifier_msgs__msg__UUID goal_id; - example_interfaces__action__Fibonacci_Goal goal; -} example_interfaces__action__Fibonacci_SendGoal_Request; - -// Struct for a sequence of example_interfaces__action__Fibonacci_SendGoal_Request. -typedef struct example_interfaces__action__Fibonacci_SendGoal_Request__Sequence -{ - example_interfaces__action__Fibonacci_SendGoal_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__action__Fibonacci_SendGoal_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'stamp' -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in action/Fibonacci in the package example_interfaces. -typedef struct example_interfaces__action__Fibonacci_SendGoal_Response -{ - bool accepted; - builtin_interfaces__msg__Time stamp; -} example_interfaces__action__Fibonacci_SendGoal_Response; - -// Struct for a sequence of example_interfaces__action__Fibonacci_SendGoal_Response. -typedef struct example_interfaces__action__Fibonacci_SendGoal_Response__Sequence -{ - example_interfaces__action__Fibonacci_SendGoal_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__action__Fibonacci_SendGoal_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - example_interfaces__action__Fibonacci_SendGoal_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - example_interfaces__action__Fibonacci_SendGoal_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/Fibonacci in the package example_interfaces. -typedef struct example_interfaces__action__Fibonacci_SendGoal_Event -{ - service_msgs__msg__ServiceEventInfo info; - example_interfaces__action__Fibonacci_SendGoal_Request__Sequence request; - example_interfaces__action__Fibonacci_SendGoal_Response__Sequence response; -} example_interfaces__action__Fibonacci_SendGoal_Event; - -// Struct for a sequence of example_interfaces__action__Fibonacci_SendGoal_Event. -typedef struct example_interfaces__action__Fibonacci_SendGoal_Event__Sequence -{ - example_interfaces__action__Fibonacci_SendGoal_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__action__Fibonacci_SendGoal_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" - -/// Struct defined in action/Fibonacci in the package example_interfaces. -typedef struct example_interfaces__action__Fibonacci_GetResult_Request -{ - unique_identifier_msgs__msg__UUID goal_id; -} example_interfaces__action__Fibonacci_GetResult_Request; - -// Struct for a sequence of example_interfaces__action__Fibonacci_GetResult_Request. -typedef struct example_interfaces__action__Fibonacci_GetResult_Request__Sequence -{ - example_interfaces__action__Fibonacci_GetResult_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__action__Fibonacci_GetResult_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'result' -// already included above -// #include "example_interfaces/action/detail/fibonacci__struct.h" - -/// Struct defined in action/Fibonacci in the package example_interfaces. -typedef struct example_interfaces__action__Fibonacci_GetResult_Response -{ - int8_t status; - example_interfaces__action__Fibonacci_Result result; -} example_interfaces__action__Fibonacci_GetResult_Response; - -// Struct for a sequence of example_interfaces__action__Fibonacci_GetResult_Response. -typedef struct example_interfaces__action__Fibonacci_GetResult_Response__Sequence -{ - example_interfaces__action__Fibonacci_GetResult_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__action__Fibonacci_GetResult_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -// already included above -// #include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - example_interfaces__action__Fibonacci_GetResult_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - example_interfaces__action__Fibonacci_GetResult_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/Fibonacci in the package example_interfaces. -typedef struct example_interfaces__action__Fibonacci_GetResult_Event -{ - service_msgs__msg__ServiceEventInfo info; - example_interfaces__action__Fibonacci_GetResult_Request__Sequence request; - example_interfaces__action__Fibonacci_GetResult_Response__Sequence response; -} example_interfaces__action__Fibonacci_GetResult_Event; - -// Struct for a sequence of example_interfaces__action__Fibonacci_GetResult_Event. -typedef struct example_interfaces__action__Fibonacci_GetResult_Event__Sequence -{ - example_interfaces__action__Fibonacci_GetResult_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__action__Fibonacci_GetResult_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'feedback' -// already included above -// #include "example_interfaces/action/detail/fibonacci__struct.h" - -/// Struct defined in action/Fibonacci in the package example_interfaces. -typedef struct example_interfaces__action__Fibonacci_FeedbackMessage -{ - unique_identifier_msgs__msg__UUID goal_id; - example_interfaces__action__Fibonacci_Feedback feedback; -} example_interfaces__action__Fibonacci_FeedbackMessage; - -// Struct for a sequence of example_interfaces__action__Fibonacci_FeedbackMessage. -typedef struct example_interfaces__action__Fibonacci_FeedbackMessage__Sequence -{ - example_interfaces__action__Fibonacci_FeedbackMessage * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__action__Fibonacci_FeedbackMessage__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__ACTION__DETAIL__FIBONACCI__STRUCT_H_ diff --git a/src/example_interfaces/action/detail/fibonacci__type_support.h b/src/example_interfaces/action/detail/fibonacci__type_support.h deleted file mode 100755 index f44661964..000000000 --- a/src/example_interfaces/action/detail/fibonacci__type_support.h +++ /dev/null @@ -1,242 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:action/Fibonacci.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/action/fibonacci.h" - - -#ifndef EXAMPLE_INTERFACES__ACTION__DETAIL__FIBONACCI__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__ACTION__DETAIL__FIBONACCI__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/action_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_action_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__ACTION_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci -)(void); - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_Goal -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_Result -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_Feedback -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_SendGoal_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_SendGoal_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_SendGoal_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_SendGoal -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_SendGoal -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_SendGoal -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_GetResult_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_GetResult_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_GetResult_Event -)(void); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_GetResult -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_GetResult -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_GetResult -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - action, - Fibonacci_FeedbackMessage -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__ACTION__DETAIL__FIBONACCI__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/action/fibonacci.h b/src/example_interfaces/action/fibonacci.h deleted file mode 100755 index 1f3c71c19..000000000 --- a/src/example_interfaces/action/fibonacci.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:action/Fibonacci.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__ACTION__FIBONACCI_H_ -#define EXAMPLE_INTERFACES__ACTION__FIBONACCI_H_ - -#include "example_interfaces/action/detail/fibonacci__struct.h" -#include "example_interfaces/action/detail/fibonacci__functions.h" -#include "example_interfaces/action/detail/fibonacci__type_support.h" - -#endif // EXAMPLE_INTERFACES__ACTION__FIBONACCI_H_ diff --git a/src/example_interfaces/msg/bool.h b/src/example_interfaces/msg/bool.h deleted file mode 100755 index 24de43c7a..000000000 --- a/src/example_interfaces/msg/bool.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Bool.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__BOOL_H_ -#define EXAMPLE_INTERFACES__MSG__BOOL_H_ - -#include "example_interfaces/msg/detail/bool__struct.h" -#include "example_interfaces/msg/detail/bool__functions.h" -#include "example_interfaces/msg/detail/bool__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__BOOL_H_ diff --git a/src/example_interfaces/msg/byte.h b/src/example_interfaces/msg/byte.h deleted file mode 100755 index b84b3212f..000000000 --- a/src/example_interfaces/msg/byte.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Byte.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__BYTE_H_ -#define EXAMPLE_INTERFACES__MSG__BYTE_H_ - -#include "example_interfaces/msg/detail/byte__struct.h" -#include "example_interfaces/msg/detail/byte__functions.h" -#include "example_interfaces/msg/detail/byte__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__BYTE_H_ diff --git a/src/example_interfaces/msg/byte_multi_array.h b/src/example_interfaces/msg/byte_multi_array.h deleted file mode 100755 index d48f93e64..000000000 --- a/src/example_interfaces/msg/byte_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/ByteMultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__BYTE_MULTI_ARRAY_H_ -#define EXAMPLE_INTERFACES__MSG__BYTE_MULTI_ARRAY_H_ - -#include "example_interfaces/msg/detail/byte_multi_array__struct.h" -#include "example_interfaces/msg/detail/byte_multi_array__functions.h" -#include "example_interfaces/msg/detail/byte_multi_array__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__BYTE_MULTI_ARRAY_H_ diff --git a/src/example_interfaces/msg/char.h b/src/example_interfaces/msg/char.h deleted file mode 100755 index 407221ff5..000000000 --- a/src/example_interfaces/msg/char.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Char.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__CHAR_H_ -#define EXAMPLE_INTERFACES__MSG__CHAR_H_ - -#include "example_interfaces/msg/detail/char__struct.h" -#include "example_interfaces/msg/detail/char__functions.h" -#include "example_interfaces/msg/detail/char__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__CHAR_H_ diff --git a/src/example_interfaces/msg/detail/bool__functions.h b/src/example_interfaces/msg/detail/bool__functions.h deleted file mode 100755 index f413acc83..000000000 --- a/src/example_interfaces/msg/detail/bool__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Bool.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/bool.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__BOOL__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__BOOL__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/bool__struct.h" - -/// Initialize msg/Bool message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Bool - * )) before or use - * example_interfaces__msg__Bool__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Bool__init(example_interfaces__msg__Bool * msg); - -/// Finalize msg/Bool message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Bool__fini(example_interfaces__msg__Bool * msg); - -/// Create msg/Bool message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Bool__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Bool * -example_interfaces__msg__Bool__create(void); - -/// Destroy msg/Bool message. -/** - * It calls - * example_interfaces__msg__Bool__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Bool__destroy(example_interfaces__msg__Bool * msg); - -/// Check for msg/Bool message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Bool__are_equal(const example_interfaces__msg__Bool * lhs, const example_interfaces__msg__Bool * rhs); - -/// Copy a msg/Bool message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Bool__copy( - const example_interfaces__msg__Bool * input, - example_interfaces__msg__Bool * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Bool__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Bool__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Bool__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Bool__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Bool messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Bool__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Bool__Sequence__init(example_interfaces__msg__Bool__Sequence * array, size_t size); - -/// Finalize array of msg/Bool messages. -/** - * It calls - * example_interfaces__msg__Bool__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Bool__Sequence__fini(example_interfaces__msg__Bool__Sequence * array); - -/// Create array of msg/Bool messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Bool__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Bool__Sequence * -example_interfaces__msg__Bool__Sequence__create(size_t size); - -/// Destroy array of msg/Bool messages. -/** - * It calls - * example_interfaces__msg__Bool__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Bool__Sequence__destroy(example_interfaces__msg__Bool__Sequence * array); - -/// Check for msg/Bool message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Bool__Sequence__are_equal(const example_interfaces__msg__Bool__Sequence * lhs, const example_interfaces__msg__Bool__Sequence * rhs); - -/// Copy an array of msg/Bool messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Bool__Sequence__copy( - const example_interfaces__msg__Bool__Sequence * input, - example_interfaces__msg__Bool__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__BOOL__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/bool__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/bool__rosidl_typesupport_introspection_c.h deleted file mode 100755 index ee5154452..000000000 --- a/src/example_interfaces/msg/detail/bool__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Bool.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__BOOL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__BOOL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Bool)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__BOOL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/bool__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/bool__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ab1aa1ad0..000000000 --- a/src/example_interfaces/msg/detail/bool__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Bool.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__BOOL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__BOOL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Bool( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Bool( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Bool)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__BOOL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/bool__struct.h b/src/example_interfaces/msg/detail/bool__struct.h deleted file mode 100755 index 5e054e2ec..000000000 --- a/src/example_interfaces/msg/detail/bool__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Bool.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/bool.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__BOOL__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__BOOL__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Bool in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, bool. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__Bool -{ - bool data; -} example_interfaces__msg__Bool; - -// Struct for a sequence of example_interfaces__msg__Bool. -typedef struct example_interfaces__msg__Bool__Sequence -{ - example_interfaces__msg__Bool * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Bool__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__BOOL__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/bool__type_support.h b/src/example_interfaces/msg/detail/bool__type_support.h deleted file mode 100755 index 5242fb215..000000000 --- a/src/example_interfaces/msg/detail/bool__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Bool.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/bool.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__BOOL__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__BOOL__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Bool -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__BOOL__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/byte__functions.h b/src/example_interfaces/msg/detail/byte__functions.h deleted file mode 100755 index 178b0f57c..000000000 --- a/src/example_interfaces/msg/detail/byte__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Byte.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/byte.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__BYTE__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__BYTE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/byte__struct.h" - -/// Initialize msg/Byte message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Byte - * )) before or use - * example_interfaces__msg__Byte__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Byte__init(example_interfaces__msg__Byte * msg); - -/// Finalize msg/Byte message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Byte__fini(example_interfaces__msg__Byte * msg); - -/// Create msg/Byte message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Byte__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Byte * -example_interfaces__msg__Byte__create(void); - -/// Destroy msg/Byte message. -/** - * It calls - * example_interfaces__msg__Byte__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Byte__destroy(example_interfaces__msg__Byte * msg); - -/// Check for msg/Byte message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Byte__are_equal(const example_interfaces__msg__Byte * lhs, const example_interfaces__msg__Byte * rhs); - -/// Copy a msg/Byte message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Byte__copy( - const example_interfaces__msg__Byte * input, - example_interfaces__msg__Byte * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Byte__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Byte__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Byte__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Byte__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Byte messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Byte__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Byte__Sequence__init(example_interfaces__msg__Byte__Sequence * array, size_t size); - -/// Finalize array of msg/Byte messages. -/** - * It calls - * example_interfaces__msg__Byte__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Byte__Sequence__fini(example_interfaces__msg__Byte__Sequence * array); - -/// Create array of msg/Byte messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Byte__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Byte__Sequence * -example_interfaces__msg__Byte__Sequence__create(size_t size); - -/// Destroy array of msg/Byte messages. -/** - * It calls - * example_interfaces__msg__Byte__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Byte__Sequence__destroy(example_interfaces__msg__Byte__Sequence * array); - -/// Check for msg/Byte message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Byte__Sequence__are_equal(const example_interfaces__msg__Byte__Sequence * lhs, const example_interfaces__msg__Byte__Sequence * rhs); - -/// Copy an array of msg/Byte messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Byte__Sequence__copy( - const example_interfaces__msg__Byte__Sequence * input, - example_interfaces__msg__Byte__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__BYTE__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/byte__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/byte__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5aec62c2f..000000000 --- a/src/example_interfaces/msg/detail/byte__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Byte.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__BYTE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__BYTE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Byte)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__BYTE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/byte__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/byte__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 0b46ee1ba..000000000 --- a/src/example_interfaces/msg/detail/byte__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Byte.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__BYTE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__BYTE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Byte( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Byte( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Byte)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__BYTE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/byte__struct.h b/src/example_interfaces/msg/detail/byte__struct.h deleted file mode 100755 index 95fa285d4..000000000 --- a/src/example_interfaces/msg/detail/byte__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Byte.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/byte.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__BYTE__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__BYTE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Byte in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, byte. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__Byte -{ - uint8_t data; -} example_interfaces__msg__Byte; - -// Struct for a sequence of example_interfaces__msg__Byte. -typedef struct example_interfaces__msg__Byte__Sequence -{ - example_interfaces__msg__Byte * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Byte__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__BYTE__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/byte__type_support.h b/src/example_interfaces/msg/detail/byte__type_support.h deleted file mode 100755 index dc946ba93..000000000 --- a/src/example_interfaces/msg/detail/byte__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Byte.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/byte.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__BYTE__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__BYTE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Byte -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__BYTE__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/byte_multi_array__functions.h b/src/example_interfaces/msg/detail/byte_multi_array__functions.h deleted file mode 100755 index 2f99300df..000000000 --- a/src/example_interfaces/msg/detail/byte_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/ByteMultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/byte_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__BYTE_MULTI_ARRAY__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__BYTE_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/byte_multi_array__struct.h" - -/// Initialize msg/ByteMultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__ByteMultiArray - * )) before or use - * example_interfaces__msg__ByteMultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__ByteMultiArray__init(example_interfaces__msg__ByteMultiArray * msg); - -/// Finalize msg/ByteMultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__ByteMultiArray__fini(example_interfaces__msg__ByteMultiArray * msg); - -/// Create msg/ByteMultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__ByteMultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__ByteMultiArray * -example_interfaces__msg__ByteMultiArray__create(void); - -/// Destroy msg/ByteMultiArray message. -/** - * It calls - * example_interfaces__msg__ByteMultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__ByteMultiArray__destroy(example_interfaces__msg__ByteMultiArray * msg); - -/// Check for msg/ByteMultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__ByteMultiArray__are_equal(const example_interfaces__msg__ByteMultiArray * lhs, const example_interfaces__msg__ByteMultiArray * rhs); - -/// Copy a msg/ByteMultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__ByteMultiArray__copy( - const example_interfaces__msg__ByteMultiArray * input, - example_interfaces__msg__ByteMultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__ByteMultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__ByteMultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__ByteMultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__ByteMultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/ByteMultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__ByteMultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__ByteMultiArray__Sequence__init(example_interfaces__msg__ByteMultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/ByteMultiArray messages. -/** - * It calls - * example_interfaces__msg__ByteMultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__ByteMultiArray__Sequence__fini(example_interfaces__msg__ByteMultiArray__Sequence * array); - -/// Create array of msg/ByteMultiArray messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__ByteMultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__ByteMultiArray__Sequence * -example_interfaces__msg__ByteMultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/ByteMultiArray messages. -/** - * It calls - * example_interfaces__msg__ByteMultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__ByteMultiArray__Sequence__destroy(example_interfaces__msg__ByteMultiArray__Sequence * array); - -/// Check for msg/ByteMultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__ByteMultiArray__Sequence__are_equal(const example_interfaces__msg__ByteMultiArray__Sequence * lhs, const example_interfaces__msg__ByteMultiArray__Sequence * rhs); - -/// Copy an array of msg/ByteMultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__ByteMultiArray__Sequence__copy( - const example_interfaces__msg__ByteMultiArray__Sequence * input, - example_interfaces__msg__ByteMultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__BYTE_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/byte_multi_array__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/byte_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 05a7510a1..000000000 --- a/src/example_interfaces/msg/detail/byte_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/ByteMultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__BYTE_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__BYTE_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, ByteMultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__BYTE_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/byte_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/byte_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index b21cec484..000000000 --- a/src/example_interfaces/msg/detail/byte_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/ByteMultiArray.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__BYTE_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__BYTE_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__ByteMultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__ByteMultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, ByteMultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__BYTE_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/byte_multi_array__struct.h b/src/example_interfaces/msg/detail/byte_multi_array__struct.h deleted file mode 100755 index 7bc53736a..000000000 --- a/src/example_interfaces/msg/detail/byte_multi_array__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/ByteMultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/byte_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__BYTE_MULTI_ARRAY__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__BYTE_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "example_interfaces/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/ByteMultiArray in the package example_interfaces. -/** - * This is an example of using complex datatypes. - * It is not recommended to use directly. - * To use a similar datastruct please define a custom message with appropriate semantic meaning. - */ -typedef struct example_interfaces__msg__ByteMultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - example_interfaces__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__octet__Sequence data; -} example_interfaces__msg__ByteMultiArray; - -// Struct for a sequence of example_interfaces__msg__ByteMultiArray. -typedef struct example_interfaces__msg__ByteMultiArray__Sequence -{ - example_interfaces__msg__ByteMultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__ByteMultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__BYTE_MULTI_ARRAY__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/byte_multi_array__type_support.h b/src/example_interfaces/msg/detail/byte_multi_array__type_support.h deleted file mode 100755 index 37e0ab0ff..000000000 --- a/src/example_interfaces/msg/detail/byte_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/ByteMultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/byte_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__BYTE_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__BYTE_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - ByteMultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__BYTE_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/char__functions.h b/src/example_interfaces/msg/detail/char__functions.h deleted file mode 100755 index 9b38ebff4..000000000 --- a/src/example_interfaces/msg/detail/char__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Char.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/char.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__CHAR__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__CHAR__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/char__struct.h" - -/// Initialize msg/Char message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Char - * )) before or use - * example_interfaces__msg__Char__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Char__init(example_interfaces__msg__Char * msg); - -/// Finalize msg/Char message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Char__fini(example_interfaces__msg__Char * msg); - -/// Create msg/Char message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Char__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Char * -example_interfaces__msg__Char__create(void); - -/// Destroy msg/Char message. -/** - * It calls - * example_interfaces__msg__Char__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Char__destroy(example_interfaces__msg__Char * msg); - -/// Check for msg/Char message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Char__are_equal(const example_interfaces__msg__Char * lhs, const example_interfaces__msg__Char * rhs); - -/// Copy a msg/Char message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Char__copy( - const example_interfaces__msg__Char * input, - example_interfaces__msg__Char * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Char__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Char__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Char__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Char__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Char messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Char__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Char__Sequence__init(example_interfaces__msg__Char__Sequence * array, size_t size); - -/// Finalize array of msg/Char messages. -/** - * It calls - * example_interfaces__msg__Char__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Char__Sequence__fini(example_interfaces__msg__Char__Sequence * array); - -/// Create array of msg/Char messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Char__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Char__Sequence * -example_interfaces__msg__Char__Sequence__create(size_t size); - -/// Destroy array of msg/Char messages. -/** - * It calls - * example_interfaces__msg__Char__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Char__Sequence__destroy(example_interfaces__msg__Char__Sequence * array); - -/// Check for msg/Char message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Char__Sequence__are_equal(const example_interfaces__msg__Char__Sequence * lhs, const example_interfaces__msg__Char__Sequence * rhs); - -/// Copy an array of msg/Char messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Char__Sequence__copy( - const example_interfaces__msg__Char__Sequence * input, - example_interfaces__msg__Char__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__CHAR__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/char__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/char__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 98e9f5a37..000000000 --- a/src/example_interfaces/msg/detail/char__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Char.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__CHAR__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__CHAR__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Char)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__CHAR__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/char__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/char__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 665f1adc3..000000000 --- a/src/example_interfaces/msg/detail/char__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Char.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__CHAR__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__CHAR__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Char( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Char( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Char)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__CHAR__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/char__struct.h b/src/example_interfaces/msg/detail/char__struct.h deleted file mode 100755 index a68f89195..000000000 --- a/src/example_interfaces/msg/detail/char__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Char.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/char.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__CHAR__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__CHAR__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Char in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, char. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__Char -{ - uint8_t data; -} example_interfaces__msg__Char; - -// Struct for a sequence of example_interfaces__msg__Char. -typedef struct example_interfaces__msg__Char__Sequence -{ - example_interfaces__msg__Char * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Char__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__CHAR__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/char__type_support.h b/src/example_interfaces/msg/detail/char__type_support.h deleted file mode 100755 index 4fcec9de0..000000000 --- a/src/example_interfaces/msg/detail/char__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Char.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/char.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__CHAR__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__CHAR__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Char -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__CHAR__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/empty__functions.h b/src/example_interfaces/msg/detail/empty__functions.h deleted file mode 100755 index 35dcecaf0..000000000 --- a/src/example_interfaces/msg/detail/empty__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/empty.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__EMPTY__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__EMPTY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/empty__struct.h" - -/// Initialize msg/Empty message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Empty - * )) before or use - * example_interfaces__msg__Empty__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Empty__init(example_interfaces__msg__Empty * msg); - -/// Finalize msg/Empty message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Empty__fini(example_interfaces__msg__Empty * msg); - -/// Create msg/Empty message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Empty__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Empty * -example_interfaces__msg__Empty__create(void); - -/// Destroy msg/Empty message. -/** - * It calls - * example_interfaces__msg__Empty__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Empty__destroy(example_interfaces__msg__Empty * msg); - -/// Check for msg/Empty message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Empty__are_equal(const example_interfaces__msg__Empty * lhs, const example_interfaces__msg__Empty * rhs); - -/// Copy a msg/Empty message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Empty__copy( - const example_interfaces__msg__Empty * input, - example_interfaces__msg__Empty * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Empty__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Empty__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Empty__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Empty__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Empty messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Empty__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Empty__Sequence__init(example_interfaces__msg__Empty__Sequence * array, size_t size); - -/// Finalize array of msg/Empty messages. -/** - * It calls - * example_interfaces__msg__Empty__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Empty__Sequence__fini(example_interfaces__msg__Empty__Sequence * array); - -/// Create array of msg/Empty messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Empty__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Empty__Sequence * -example_interfaces__msg__Empty__Sequence__create(size_t size); - -/// Destroy array of msg/Empty messages. -/** - * It calls - * example_interfaces__msg__Empty__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Empty__Sequence__destroy(example_interfaces__msg__Empty__Sequence * array); - -/// Check for msg/Empty message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Empty__Sequence__are_equal(const example_interfaces__msg__Empty__Sequence * lhs, const example_interfaces__msg__Empty__Sequence * rhs); - -/// Copy an array of msg/Empty messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Empty__Sequence__copy( - const example_interfaces__msg__Empty__Sequence * input, - example_interfaces__msg__Empty__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__EMPTY__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/empty__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/empty__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 3dbdb6830..000000000 --- a/src/example_interfaces/msg/detail/empty__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Empty.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Empty)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/empty__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/empty__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 04c7677a8..000000000 --- a/src/example_interfaces/msg/detail/empty__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Empty.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Empty( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Empty( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Empty)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/empty__struct.h b/src/example_interfaces/msg/detail/empty__struct.h deleted file mode 100755 index faffefd69..000000000 --- a/src/example_interfaces/msg/detail/empty__struct.h +++ /dev/null @@ -1,46 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/empty.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__EMPTY__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__EMPTY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Empty in the package example_interfaces. -/** - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - */ -typedef struct example_interfaces__msg__Empty -{ - uint8_t structure_needs_at_least_one_member; -} example_interfaces__msg__Empty; - -// Struct for a sequence of example_interfaces__msg__Empty. -typedef struct example_interfaces__msg__Empty__Sequence -{ - example_interfaces__msg__Empty * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Empty__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__EMPTY__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/empty__type_support.h b/src/example_interfaces/msg/detail/empty__type_support.h deleted file mode 100755 index d31630d31..000000000 --- a/src/example_interfaces/msg/detail/empty__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/empty.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__EMPTY__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__EMPTY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Empty -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__EMPTY__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/float32__functions.h b/src/example_interfaces/msg/detail/float32__functions.h deleted file mode 100755 index cdaa0639b..000000000 --- a/src/example_interfaces/msg/detail/float32__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Float32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/float32.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/float32__struct.h" - -/// Initialize msg/Float32 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Float32 - * )) before or use - * example_interfaces__msg__Float32__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float32__init(example_interfaces__msg__Float32 * msg); - -/// Finalize msg/Float32 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float32__fini(example_interfaces__msg__Float32 * msg); - -/// Create msg/Float32 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Float32__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Float32 * -example_interfaces__msg__Float32__create(void); - -/// Destroy msg/Float32 message. -/** - * It calls - * example_interfaces__msg__Float32__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float32__destroy(example_interfaces__msg__Float32 * msg); - -/// Check for msg/Float32 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float32__are_equal(const example_interfaces__msg__Float32 * lhs, const example_interfaces__msg__Float32 * rhs); - -/// Copy a msg/Float32 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float32__copy( - const example_interfaces__msg__Float32 * input, - example_interfaces__msg__Float32 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Float32__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Float32__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Float32__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Float32__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Float32 messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Float32__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float32__Sequence__init(example_interfaces__msg__Float32__Sequence * array, size_t size); - -/// Finalize array of msg/Float32 messages. -/** - * It calls - * example_interfaces__msg__Float32__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float32__Sequence__fini(example_interfaces__msg__Float32__Sequence * array); - -/// Create array of msg/Float32 messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Float32__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Float32__Sequence * -example_interfaces__msg__Float32__Sequence__create(size_t size); - -/// Destroy array of msg/Float32 messages. -/** - * It calls - * example_interfaces__msg__Float32__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float32__Sequence__destroy(example_interfaces__msg__Float32__Sequence * array); - -/// Check for msg/Float32 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float32__Sequence__are_equal(const example_interfaces__msg__Float32__Sequence * lhs, const example_interfaces__msg__Float32__Sequence * rhs); - -/// Copy an array of msg/Float32 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float32__Sequence__copy( - const example_interfaces__msg__Float32__Sequence * input, - example_interfaces__msg__Float32__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/float32__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/float32__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c46d5366d..000000000 --- a/src/example_interfaces/msg/detail/float32__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Float32.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Float32)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/float32__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/float32__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 33eb176d2..000000000 --- a/src/example_interfaces/msg/detail/float32__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Float32.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__FLOAT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__FLOAT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Float32( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Float32( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Float32)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__FLOAT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/float32__struct.h b/src/example_interfaces/msg/detail/float32__struct.h deleted file mode 100755 index 7ef8692b3..000000000 --- a/src/example_interfaces/msg/detail/float32__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Float32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/float32.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Float32 in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, float32. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__Float32 -{ - float data; -} example_interfaces__msg__Float32; - -// Struct for a sequence of example_interfaces__msg__Float32. -typedef struct example_interfaces__msg__Float32__Sequence -{ - example_interfaces__msg__Float32 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Float32__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/float32__type_support.h b/src/example_interfaces/msg/detail/float32__type_support.h deleted file mode 100755 index 464f67b9a..000000000 --- a/src/example_interfaces/msg/detail/float32__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Float32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/float32.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Float32 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/float32_multi_array__functions.h b/src/example_interfaces/msg/detail/float32_multi_array__functions.h deleted file mode 100755 index a7ce3e6ad..000000000 --- a/src/example_interfaces/msg/detail/float32_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Float32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/float32_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32_MULTI_ARRAY__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/float32_multi_array__struct.h" - -/// Initialize msg/Float32MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Float32MultiArray - * )) before or use - * example_interfaces__msg__Float32MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float32MultiArray__init(example_interfaces__msg__Float32MultiArray * msg); - -/// Finalize msg/Float32MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float32MultiArray__fini(example_interfaces__msg__Float32MultiArray * msg); - -/// Create msg/Float32MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Float32MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Float32MultiArray * -example_interfaces__msg__Float32MultiArray__create(void); - -/// Destroy msg/Float32MultiArray message. -/** - * It calls - * example_interfaces__msg__Float32MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float32MultiArray__destroy(example_interfaces__msg__Float32MultiArray * msg); - -/// Check for msg/Float32MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float32MultiArray__are_equal(const example_interfaces__msg__Float32MultiArray * lhs, const example_interfaces__msg__Float32MultiArray * rhs); - -/// Copy a msg/Float32MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float32MultiArray__copy( - const example_interfaces__msg__Float32MultiArray * input, - example_interfaces__msg__Float32MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Float32MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Float32MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Float32MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Float32MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Float32MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Float32MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float32MultiArray__Sequence__init(example_interfaces__msg__Float32MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/Float32MultiArray messages. -/** - * It calls - * example_interfaces__msg__Float32MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float32MultiArray__Sequence__fini(example_interfaces__msg__Float32MultiArray__Sequence * array); - -/// Create array of msg/Float32MultiArray messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Float32MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Float32MultiArray__Sequence * -example_interfaces__msg__Float32MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/Float32MultiArray messages. -/** - * It calls - * example_interfaces__msg__Float32MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float32MultiArray__Sequence__destroy(example_interfaces__msg__Float32MultiArray__Sequence * array); - -/// Check for msg/Float32MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float32MultiArray__Sequence__are_equal(const example_interfaces__msg__Float32MultiArray__Sequence * lhs, const example_interfaces__msg__Float32MultiArray__Sequence * rhs); - -/// Copy an array of msg/Float32MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float32MultiArray__Sequence__copy( - const example_interfaces__msg__Float32MultiArray__Sequence * input, - example_interfaces__msg__Float32MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/float32_multi_array__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/float32_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 1b2a4a594..000000000 --- a/src/example_interfaces/msg/detail/float32_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Float32MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Float32MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/float32_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/float32_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 165539c0d..000000000 --- a/src/example_interfaces/msg/detail/float32_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Float32MultiArray.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__FLOAT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__FLOAT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Float32MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Float32MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Float32MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__FLOAT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/float32_multi_array__struct.h b/src/example_interfaces/msg/detail/float32_multi_array__struct.h deleted file mode 100755 index 526d88cda..000000000 --- a/src/example_interfaces/msg/detail/float32_multi_array__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Float32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/float32_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32_MULTI_ARRAY__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "example_interfaces/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Float32MultiArray in the package example_interfaces. -/** - * This is an example of using complex datatypes. - * It is not recommended to use directly. - * To use a similar datastruct please define a custom message with appropriate semantic meaning. - */ -typedef struct example_interfaces__msg__Float32MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - example_interfaces__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__float__Sequence data; -} example_interfaces__msg__Float32MultiArray; - -// Struct for a sequence of example_interfaces__msg__Float32MultiArray. -typedef struct example_interfaces__msg__Float32MultiArray__Sequence -{ - example_interfaces__msg__Float32MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Float32MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32_MULTI_ARRAY__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/float32_multi_array__type_support.h b/src/example_interfaces/msg/detail/float32_multi_array__type_support.h deleted file mode 100755 index 1d7bed182..000000000 --- a/src/example_interfaces/msg/detail/float32_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Float32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/float32_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Float32MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT32_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/float64__functions.h b/src/example_interfaces/msg/detail/float64__functions.h deleted file mode 100755 index 65d25db1c..000000000 --- a/src/example_interfaces/msg/detail/float64__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Float64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/float64.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/float64__struct.h" - -/// Initialize msg/Float64 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Float64 - * )) before or use - * example_interfaces__msg__Float64__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float64__init(example_interfaces__msg__Float64 * msg); - -/// Finalize msg/Float64 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float64__fini(example_interfaces__msg__Float64 * msg); - -/// Create msg/Float64 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Float64__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Float64 * -example_interfaces__msg__Float64__create(void); - -/// Destroy msg/Float64 message. -/** - * It calls - * example_interfaces__msg__Float64__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float64__destroy(example_interfaces__msg__Float64 * msg); - -/// Check for msg/Float64 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float64__are_equal(const example_interfaces__msg__Float64 * lhs, const example_interfaces__msg__Float64 * rhs); - -/// Copy a msg/Float64 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float64__copy( - const example_interfaces__msg__Float64 * input, - example_interfaces__msg__Float64 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Float64__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Float64__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Float64__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Float64__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Float64 messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Float64__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float64__Sequence__init(example_interfaces__msg__Float64__Sequence * array, size_t size); - -/// Finalize array of msg/Float64 messages. -/** - * It calls - * example_interfaces__msg__Float64__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float64__Sequence__fini(example_interfaces__msg__Float64__Sequence * array); - -/// Create array of msg/Float64 messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Float64__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Float64__Sequence * -example_interfaces__msg__Float64__Sequence__create(size_t size); - -/// Destroy array of msg/Float64 messages. -/** - * It calls - * example_interfaces__msg__Float64__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float64__Sequence__destroy(example_interfaces__msg__Float64__Sequence * array); - -/// Check for msg/Float64 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float64__Sequence__are_equal(const example_interfaces__msg__Float64__Sequence * lhs, const example_interfaces__msg__Float64__Sequence * rhs); - -/// Copy an array of msg/Float64 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float64__Sequence__copy( - const example_interfaces__msg__Float64__Sequence * input, - example_interfaces__msg__Float64__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/float64__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/float64__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 0610e9a24..000000000 --- a/src/example_interfaces/msg/detail/float64__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Float64.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Float64)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/float64__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/float64__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index eb6a29283..000000000 --- a/src/example_interfaces/msg/detail/float64__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Float64.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__FLOAT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__FLOAT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Float64( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Float64( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Float64)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__FLOAT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/float64__struct.h b/src/example_interfaces/msg/detail/float64__struct.h deleted file mode 100755 index 15697da06..000000000 --- a/src/example_interfaces/msg/detail/float64__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Float64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/float64.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Float64 in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, float64. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__Float64 -{ - double data; -} example_interfaces__msg__Float64; - -// Struct for a sequence of example_interfaces__msg__Float64. -typedef struct example_interfaces__msg__Float64__Sequence -{ - example_interfaces__msg__Float64 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Float64__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/float64__type_support.h b/src/example_interfaces/msg/detail/float64__type_support.h deleted file mode 100755 index ba98bb354..000000000 --- a/src/example_interfaces/msg/detail/float64__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Float64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/float64.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Float64 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/float64_multi_array__functions.h b/src/example_interfaces/msg/detail/float64_multi_array__functions.h deleted file mode 100755 index 9ca200fcb..000000000 --- a/src/example_interfaces/msg/detail/float64_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Float64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/float64_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64_MULTI_ARRAY__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/float64_multi_array__struct.h" - -/// Initialize msg/Float64MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Float64MultiArray - * )) before or use - * example_interfaces__msg__Float64MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float64MultiArray__init(example_interfaces__msg__Float64MultiArray * msg); - -/// Finalize msg/Float64MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float64MultiArray__fini(example_interfaces__msg__Float64MultiArray * msg); - -/// Create msg/Float64MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Float64MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Float64MultiArray * -example_interfaces__msg__Float64MultiArray__create(void); - -/// Destroy msg/Float64MultiArray message. -/** - * It calls - * example_interfaces__msg__Float64MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float64MultiArray__destroy(example_interfaces__msg__Float64MultiArray * msg); - -/// Check for msg/Float64MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float64MultiArray__are_equal(const example_interfaces__msg__Float64MultiArray * lhs, const example_interfaces__msg__Float64MultiArray * rhs); - -/// Copy a msg/Float64MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float64MultiArray__copy( - const example_interfaces__msg__Float64MultiArray * input, - example_interfaces__msg__Float64MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Float64MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Float64MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Float64MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Float64MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Float64MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Float64MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float64MultiArray__Sequence__init(example_interfaces__msg__Float64MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/Float64MultiArray messages. -/** - * It calls - * example_interfaces__msg__Float64MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float64MultiArray__Sequence__fini(example_interfaces__msg__Float64MultiArray__Sequence * array); - -/// Create array of msg/Float64MultiArray messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Float64MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Float64MultiArray__Sequence * -example_interfaces__msg__Float64MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/Float64MultiArray messages. -/** - * It calls - * example_interfaces__msg__Float64MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Float64MultiArray__Sequence__destroy(example_interfaces__msg__Float64MultiArray__Sequence * array); - -/// Check for msg/Float64MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float64MultiArray__Sequence__are_equal(const example_interfaces__msg__Float64MultiArray__Sequence * lhs, const example_interfaces__msg__Float64MultiArray__Sequence * rhs); - -/// Copy an array of msg/Float64MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Float64MultiArray__Sequence__copy( - const example_interfaces__msg__Float64MultiArray__Sequence * input, - example_interfaces__msg__Float64MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/float64_multi_array__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/float64_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index be9f68827..000000000 --- a/src/example_interfaces/msg/detail/float64_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Float64MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Float64MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/float64_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/float64_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 7f0e4a381..000000000 --- a/src/example_interfaces/msg/detail/float64_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Float64MultiArray.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__FLOAT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__FLOAT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Float64MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Float64MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Float64MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__FLOAT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/float64_multi_array__struct.h b/src/example_interfaces/msg/detail/float64_multi_array__struct.h deleted file mode 100755 index e0069381d..000000000 --- a/src/example_interfaces/msg/detail/float64_multi_array__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Float64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/float64_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64_MULTI_ARRAY__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "example_interfaces/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Float64MultiArray in the package example_interfaces. -/** - * This is an example of using complex datatypes. - * It is not recommended to use directly. - * To use a similar datastruct please define a custom message with appropriate semantic meaning. - */ -typedef struct example_interfaces__msg__Float64MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - example_interfaces__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__double__Sequence data; -} example_interfaces__msg__Float64MultiArray; - -// Struct for a sequence of example_interfaces__msg__Float64MultiArray. -typedef struct example_interfaces__msg__Float64MultiArray__Sequence -{ - example_interfaces__msg__Float64MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Float64MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64_MULTI_ARRAY__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/float64_multi_array__type_support.h b/src/example_interfaces/msg/detail/float64_multi_array__type_support.h deleted file mode 100755 index 3f9e8be10..000000000 --- a/src/example_interfaces/msg/detail/float64_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Float64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/float64_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Float64MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__FLOAT64_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/int16__functions.h b/src/example_interfaces/msg/detail/int16__functions.h deleted file mode 100755 index a1fbb061e..000000000 --- a/src/example_interfaces/msg/detail/int16__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Int16.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int16.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT16__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT16__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/int16__struct.h" - -/// Initialize msg/Int16 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Int16 - * )) before or use - * example_interfaces__msg__Int16__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int16__init(example_interfaces__msg__Int16 * msg); - -/// Finalize msg/Int16 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int16__fini(example_interfaces__msg__Int16 * msg); - -/// Create msg/Int16 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Int16__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int16 * -example_interfaces__msg__Int16__create(void); - -/// Destroy msg/Int16 message. -/** - * It calls - * example_interfaces__msg__Int16__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int16__destroy(example_interfaces__msg__Int16 * msg); - -/// Check for msg/Int16 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int16__are_equal(const example_interfaces__msg__Int16 * lhs, const example_interfaces__msg__Int16 * rhs); - -/// Copy a msg/Int16 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int16__copy( - const example_interfaces__msg__Int16 * input, - example_interfaces__msg__Int16 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Int16__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Int16__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Int16__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Int16__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int16 messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Int16__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int16__Sequence__init(example_interfaces__msg__Int16__Sequence * array, size_t size); - -/// Finalize array of msg/Int16 messages. -/** - * It calls - * example_interfaces__msg__Int16__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int16__Sequence__fini(example_interfaces__msg__Int16__Sequence * array); - -/// Create array of msg/Int16 messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Int16__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int16__Sequence * -example_interfaces__msg__Int16__Sequence__create(size_t size); - -/// Destroy array of msg/Int16 messages. -/** - * It calls - * example_interfaces__msg__Int16__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int16__Sequence__destroy(example_interfaces__msg__Int16__Sequence * array); - -/// Check for msg/Int16 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int16__Sequence__are_equal(const example_interfaces__msg__Int16__Sequence * lhs, const example_interfaces__msg__Int16__Sequence * rhs); - -/// Copy an array of msg/Int16 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int16__Sequence__copy( - const example_interfaces__msg__Int16__Sequence * input, - example_interfaces__msg__Int16__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT16__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/int16__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/int16__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 7b7ec3791..000000000 --- a/src/example_interfaces/msg/detail/int16__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Int16.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT16__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT16__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Int16)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT16__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/int16__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/int16__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 3954ed43a..000000000 --- a/src/example_interfaces/msg/detail/int16__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Int16.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__INT16__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__INT16__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Int16( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Int16( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Int16)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__INT16__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/int16__struct.h b/src/example_interfaces/msg/detail/int16__struct.h deleted file mode 100755 index eb02fb35f..000000000 --- a/src/example_interfaces/msg/detail/int16__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Int16.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int16.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT16__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT16__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Int16 in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, int16. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__Int16 -{ - int16_t data; -} example_interfaces__msg__Int16; - -// Struct for a sequence of example_interfaces__msg__Int16. -typedef struct example_interfaces__msg__Int16__Sequence -{ - example_interfaces__msg__Int16 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Int16__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT16__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/int16__type_support.h b/src/example_interfaces/msg/detail/int16__type_support.h deleted file mode 100755 index 96fb51ed8..000000000 --- a/src/example_interfaces/msg/detail/int16__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Int16.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int16.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT16__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT16__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Int16 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT16__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/int16_multi_array__functions.h b/src/example_interfaces/msg/detail/int16_multi_array__functions.h deleted file mode 100755 index 9db983122..000000000 --- a/src/example_interfaces/msg/detail/int16_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Int16MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int16_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT16_MULTI_ARRAY__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT16_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/int16_multi_array__struct.h" - -/// Initialize msg/Int16MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Int16MultiArray - * )) before or use - * example_interfaces__msg__Int16MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int16MultiArray__init(example_interfaces__msg__Int16MultiArray * msg); - -/// Finalize msg/Int16MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int16MultiArray__fini(example_interfaces__msg__Int16MultiArray * msg); - -/// Create msg/Int16MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Int16MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int16MultiArray * -example_interfaces__msg__Int16MultiArray__create(void); - -/// Destroy msg/Int16MultiArray message. -/** - * It calls - * example_interfaces__msg__Int16MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int16MultiArray__destroy(example_interfaces__msg__Int16MultiArray * msg); - -/// Check for msg/Int16MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int16MultiArray__are_equal(const example_interfaces__msg__Int16MultiArray * lhs, const example_interfaces__msg__Int16MultiArray * rhs); - -/// Copy a msg/Int16MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int16MultiArray__copy( - const example_interfaces__msg__Int16MultiArray * input, - example_interfaces__msg__Int16MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Int16MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Int16MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Int16MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Int16MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int16MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Int16MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int16MultiArray__Sequence__init(example_interfaces__msg__Int16MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/Int16MultiArray messages. -/** - * It calls - * example_interfaces__msg__Int16MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int16MultiArray__Sequence__fini(example_interfaces__msg__Int16MultiArray__Sequence * array); - -/// Create array of msg/Int16MultiArray messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Int16MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int16MultiArray__Sequence * -example_interfaces__msg__Int16MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/Int16MultiArray messages. -/** - * It calls - * example_interfaces__msg__Int16MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int16MultiArray__Sequence__destroy(example_interfaces__msg__Int16MultiArray__Sequence * array); - -/// Check for msg/Int16MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int16MultiArray__Sequence__are_equal(const example_interfaces__msg__Int16MultiArray__Sequence * lhs, const example_interfaces__msg__Int16MultiArray__Sequence * rhs); - -/// Copy an array of msg/Int16MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int16MultiArray__Sequence__copy( - const example_interfaces__msg__Int16MultiArray__Sequence * input, - example_interfaces__msg__Int16MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT16_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/int16_multi_array__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/int16_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 4160037c3..000000000 --- a/src/example_interfaces/msg/detail/int16_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Int16MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Int16MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/int16_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/int16_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 2798de60e..000000000 --- a/src/example_interfaces/msg/detail/int16_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Int16MultiArray.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Int16MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Int16MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Int16MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/int16_multi_array__struct.h b/src/example_interfaces/msg/detail/int16_multi_array__struct.h deleted file mode 100755 index 4b365ac5a..000000000 --- a/src/example_interfaces/msg/detail/int16_multi_array__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Int16MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int16_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT16_MULTI_ARRAY__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT16_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "example_interfaces/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Int16MultiArray in the package example_interfaces. -/** - * This is an example of using complex datatypes. - * It is not recommended to use directly. - * To use a similar datastruct please define a custom message with appropriate semantic meaning. - */ -typedef struct example_interfaces__msg__Int16MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - example_interfaces__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__int16__Sequence data; -} example_interfaces__msg__Int16MultiArray; - -// Struct for a sequence of example_interfaces__msg__Int16MultiArray. -typedef struct example_interfaces__msg__Int16MultiArray__Sequence -{ - example_interfaces__msg__Int16MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Int16MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT16_MULTI_ARRAY__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/int16_multi_array__type_support.h b/src/example_interfaces/msg/detail/int16_multi_array__type_support.h deleted file mode 100755 index 933946960..000000000 --- a/src/example_interfaces/msg/detail/int16_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Int16MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int16_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT16_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT16_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Int16MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT16_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/int32__functions.h b/src/example_interfaces/msg/detail/int32__functions.h deleted file mode 100755 index 221db2898..000000000 --- a/src/example_interfaces/msg/detail/int32__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Int32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int32.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT32__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT32__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/int32__struct.h" - -/// Initialize msg/Int32 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Int32 - * )) before or use - * example_interfaces__msg__Int32__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int32__init(example_interfaces__msg__Int32 * msg); - -/// Finalize msg/Int32 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int32__fini(example_interfaces__msg__Int32 * msg); - -/// Create msg/Int32 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Int32__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int32 * -example_interfaces__msg__Int32__create(void); - -/// Destroy msg/Int32 message. -/** - * It calls - * example_interfaces__msg__Int32__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int32__destroy(example_interfaces__msg__Int32 * msg); - -/// Check for msg/Int32 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int32__are_equal(const example_interfaces__msg__Int32 * lhs, const example_interfaces__msg__Int32 * rhs); - -/// Copy a msg/Int32 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int32__copy( - const example_interfaces__msg__Int32 * input, - example_interfaces__msg__Int32 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Int32__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Int32__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Int32__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Int32__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int32 messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Int32__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int32__Sequence__init(example_interfaces__msg__Int32__Sequence * array, size_t size); - -/// Finalize array of msg/Int32 messages. -/** - * It calls - * example_interfaces__msg__Int32__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int32__Sequence__fini(example_interfaces__msg__Int32__Sequence * array); - -/// Create array of msg/Int32 messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Int32__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int32__Sequence * -example_interfaces__msg__Int32__Sequence__create(size_t size); - -/// Destroy array of msg/Int32 messages. -/** - * It calls - * example_interfaces__msg__Int32__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int32__Sequence__destroy(example_interfaces__msg__Int32__Sequence * array); - -/// Check for msg/Int32 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int32__Sequence__are_equal(const example_interfaces__msg__Int32__Sequence * lhs, const example_interfaces__msg__Int32__Sequence * rhs); - -/// Copy an array of msg/Int32 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int32__Sequence__copy( - const example_interfaces__msg__Int32__Sequence * input, - example_interfaces__msg__Int32__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT32__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/int32__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/int32__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 7e7b00a8f..000000000 --- a/src/example_interfaces/msg/detail/int32__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Int32.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Int32)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/int32__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/int32__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 1a647e047..000000000 --- a/src/example_interfaces/msg/detail/int32__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Int32.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__INT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__INT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Int32( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Int32( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Int32)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__INT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/int32__struct.h b/src/example_interfaces/msg/detail/int32__struct.h deleted file mode 100755 index 148dc361a..000000000 --- a/src/example_interfaces/msg/detail/int32__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Int32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int32.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT32__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT32__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Int32 in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, int32. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__Int32 -{ - int32_t data; -} example_interfaces__msg__Int32; - -// Struct for a sequence of example_interfaces__msg__Int32. -typedef struct example_interfaces__msg__Int32__Sequence -{ - example_interfaces__msg__Int32 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Int32__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT32__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/int32__type_support.h b/src/example_interfaces/msg/detail/int32__type_support.h deleted file mode 100755 index 5abc0d366..000000000 --- a/src/example_interfaces/msg/detail/int32__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Int32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int32.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT32__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT32__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Int32 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT32__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/int32_multi_array__functions.h b/src/example_interfaces/msg/detail/int32_multi_array__functions.h deleted file mode 100755 index b731329c0..000000000 --- a/src/example_interfaces/msg/detail/int32_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Int32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int32_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT32_MULTI_ARRAY__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT32_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/int32_multi_array__struct.h" - -/// Initialize msg/Int32MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Int32MultiArray - * )) before or use - * example_interfaces__msg__Int32MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int32MultiArray__init(example_interfaces__msg__Int32MultiArray * msg); - -/// Finalize msg/Int32MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int32MultiArray__fini(example_interfaces__msg__Int32MultiArray * msg); - -/// Create msg/Int32MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Int32MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int32MultiArray * -example_interfaces__msg__Int32MultiArray__create(void); - -/// Destroy msg/Int32MultiArray message. -/** - * It calls - * example_interfaces__msg__Int32MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int32MultiArray__destroy(example_interfaces__msg__Int32MultiArray * msg); - -/// Check for msg/Int32MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int32MultiArray__are_equal(const example_interfaces__msg__Int32MultiArray * lhs, const example_interfaces__msg__Int32MultiArray * rhs); - -/// Copy a msg/Int32MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int32MultiArray__copy( - const example_interfaces__msg__Int32MultiArray * input, - example_interfaces__msg__Int32MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Int32MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Int32MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Int32MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Int32MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int32MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Int32MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int32MultiArray__Sequence__init(example_interfaces__msg__Int32MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/Int32MultiArray messages. -/** - * It calls - * example_interfaces__msg__Int32MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int32MultiArray__Sequence__fini(example_interfaces__msg__Int32MultiArray__Sequence * array); - -/// Create array of msg/Int32MultiArray messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Int32MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int32MultiArray__Sequence * -example_interfaces__msg__Int32MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/Int32MultiArray messages. -/** - * It calls - * example_interfaces__msg__Int32MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int32MultiArray__Sequence__destroy(example_interfaces__msg__Int32MultiArray__Sequence * array); - -/// Check for msg/Int32MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int32MultiArray__Sequence__are_equal(const example_interfaces__msg__Int32MultiArray__Sequence * lhs, const example_interfaces__msg__Int32MultiArray__Sequence * rhs); - -/// Copy an array of msg/Int32MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int32MultiArray__Sequence__copy( - const example_interfaces__msg__Int32MultiArray__Sequence * input, - example_interfaces__msg__Int32MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT32_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/int32_multi_array__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/int32_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 0e2a58268..000000000 --- a/src/example_interfaces/msg/detail/int32_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Int32MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Int32MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/int32_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/int32_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 8c13513ed..000000000 --- a/src/example_interfaces/msg/detail/int32_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Int32MultiArray.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Int32MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Int32MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Int32MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/int32_multi_array__struct.h b/src/example_interfaces/msg/detail/int32_multi_array__struct.h deleted file mode 100755 index 708d24a2b..000000000 --- a/src/example_interfaces/msg/detail/int32_multi_array__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Int32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int32_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT32_MULTI_ARRAY__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT32_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "example_interfaces/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Int32MultiArray in the package example_interfaces. -/** - * This is an example of using complex datatypes. - * It is not recommended to use directly. - * To use a similar datastruct please define a custom message with appropriate semantic meaning. - */ -typedef struct example_interfaces__msg__Int32MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - example_interfaces__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__int32__Sequence data; -} example_interfaces__msg__Int32MultiArray; - -// Struct for a sequence of example_interfaces__msg__Int32MultiArray. -typedef struct example_interfaces__msg__Int32MultiArray__Sequence -{ - example_interfaces__msg__Int32MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Int32MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT32_MULTI_ARRAY__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/int32_multi_array__type_support.h b/src/example_interfaces/msg/detail/int32_multi_array__type_support.h deleted file mode 100755 index 3c4954ab9..000000000 --- a/src/example_interfaces/msg/detail/int32_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Int32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int32_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT32_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT32_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Int32MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT32_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/int64__functions.h b/src/example_interfaces/msg/detail/int64__functions.h deleted file mode 100755 index e278ff9b2..000000000 --- a/src/example_interfaces/msg/detail/int64__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Int64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int64.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT64__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT64__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/int64__struct.h" - -/// Initialize msg/Int64 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Int64 - * )) before or use - * example_interfaces__msg__Int64__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int64__init(example_interfaces__msg__Int64 * msg); - -/// Finalize msg/Int64 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int64__fini(example_interfaces__msg__Int64 * msg); - -/// Create msg/Int64 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Int64__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int64 * -example_interfaces__msg__Int64__create(void); - -/// Destroy msg/Int64 message. -/** - * It calls - * example_interfaces__msg__Int64__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int64__destroy(example_interfaces__msg__Int64 * msg); - -/// Check for msg/Int64 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int64__are_equal(const example_interfaces__msg__Int64 * lhs, const example_interfaces__msg__Int64 * rhs); - -/// Copy a msg/Int64 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int64__copy( - const example_interfaces__msg__Int64 * input, - example_interfaces__msg__Int64 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Int64__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Int64__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Int64__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Int64__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int64 messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Int64__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int64__Sequence__init(example_interfaces__msg__Int64__Sequence * array, size_t size); - -/// Finalize array of msg/Int64 messages. -/** - * It calls - * example_interfaces__msg__Int64__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int64__Sequence__fini(example_interfaces__msg__Int64__Sequence * array); - -/// Create array of msg/Int64 messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Int64__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int64__Sequence * -example_interfaces__msg__Int64__Sequence__create(size_t size); - -/// Destroy array of msg/Int64 messages. -/** - * It calls - * example_interfaces__msg__Int64__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int64__Sequence__destroy(example_interfaces__msg__Int64__Sequence * array); - -/// Check for msg/Int64 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int64__Sequence__are_equal(const example_interfaces__msg__Int64__Sequence * lhs, const example_interfaces__msg__Int64__Sequence * rhs); - -/// Copy an array of msg/Int64 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int64__Sequence__copy( - const example_interfaces__msg__Int64__Sequence * input, - example_interfaces__msg__Int64__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT64__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/int64__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/int64__rosidl_typesupport_introspection_c.h deleted file mode 100755 index fb7709109..000000000 --- a/src/example_interfaces/msg/detail/int64__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Int64.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Int64)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/int64__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/int64__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 604b2d600..000000000 --- a/src/example_interfaces/msg/detail/int64__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Int64.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__INT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__INT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Int64( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Int64( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Int64)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__INT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/int64__struct.h b/src/example_interfaces/msg/detail/int64__struct.h deleted file mode 100755 index 1af65b7c2..000000000 --- a/src/example_interfaces/msg/detail/int64__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Int64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int64.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT64__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT64__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Int64 in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, int64. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__Int64 -{ - int64_t data; -} example_interfaces__msg__Int64; - -// Struct for a sequence of example_interfaces__msg__Int64. -typedef struct example_interfaces__msg__Int64__Sequence -{ - example_interfaces__msg__Int64 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Int64__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT64__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/int64__type_support.h b/src/example_interfaces/msg/detail/int64__type_support.h deleted file mode 100755 index a6fc05da9..000000000 --- a/src/example_interfaces/msg/detail/int64__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Int64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int64.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT64__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT64__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Int64 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT64__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/int64_multi_array__functions.h b/src/example_interfaces/msg/detail/int64_multi_array__functions.h deleted file mode 100755 index bc087630d..000000000 --- a/src/example_interfaces/msg/detail/int64_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Int64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int64_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT64_MULTI_ARRAY__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT64_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/int64_multi_array__struct.h" - -/// Initialize msg/Int64MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Int64MultiArray - * )) before or use - * example_interfaces__msg__Int64MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int64MultiArray__init(example_interfaces__msg__Int64MultiArray * msg); - -/// Finalize msg/Int64MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int64MultiArray__fini(example_interfaces__msg__Int64MultiArray * msg); - -/// Create msg/Int64MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Int64MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int64MultiArray * -example_interfaces__msg__Int64MultiArray__create(void); - -/// Destroy msg/Int64MultiArray message. -/** - * It calls - * example_interfaces__msg__Int64MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int64MultiArray__destroy(example_interfaces__msg__Int64MultiArray * msg); - -/// Check for msg/Int64MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int64MultiArray__are_equal(const example_interfaces__msg__Int64MultiArray * lhs, const example_interfaces__msg__Int64MultiArray * rhs); - -/// Copy a msg/Int64MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int64MultiArray__copy( - const example_interfaces__msg__Int64MultiArray * input, - example_interfaces__msg__Int64MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Int64MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Int64MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Int64MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Int64MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int64MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Int64MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int64MultiArray__Sequence__init(example_interfaces__msg__Int64MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/Int64MultiArray messages. -/** - * It calls - * example_interfaces__msg__Int64MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int64MultiArray__Sequence__fini(example_interfaces__msg__Int64MultiArray__Sequence * array); - -/// Create array of msg/Int64MultiArray messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Int64MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int64MultiArray__Sequence * -example_interfaces__msg__Int64MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/Int64MultiArray messages. -/** - * It calls - * example_interfaces__msg__Int64MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int64MultiArray__Sequence__destroy(example_interfaces__msg__Int64MultiArray__Sequence * array); - -/// Check for msg/Int64MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int64MultiArray__Sequence__are_equal(const example_interfaces__msg__Int64MultiArray__Sequence * lhs, const example_interfaces__msg__Int64MultiArray__Sequence * rhs); - -/// Copy an array of msg/Int64MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int64MultiArray__Sequence__copy( - const example_interfaces__msg__Int64MultiArray__Sequence * input, - example_interfaces__msg__Int64MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT64_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/int64_multi_array__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/int64_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index a4b932e33..000000000 --- a/src/example_interfaces/msg/detail/int64_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Int64MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Int64MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/int64_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/int64_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 68a96e98d..000000000 --- a/src/example_interfaces/msg/detail/int64_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Int64MultiArray.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Int64MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Int64MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Int64MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/int64_multi_array__struct.h b/src/example_interfaces/msg/detail/int64_multi_array__struct.h deleted file mode 100755 index 3857b9ca6..000000000 --- a/src/example_interfaces/msg/detail/int64_multi_array__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Int64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int64_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT64_MULTI_ARRAY__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT64_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "example_interfaces/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Int64MultiArray in the package example_interfaces. -/** - * This is an example of using complex datatypes. - * It is not recommended to use directly. - * To use a similar datastruct please define a custom message with appropriate semantic meaning. - */ -typedef struct example_interfaces__msg__Int64MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - example_interfaces__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__int64__Sequence data; -} example_interfaces__msg__Int64MultiArray; - -// Struct for a sequence of example_interfaces__msg__Int64MultiArray. -typedef struct example_interfaces__msg__Int64MultiArray__Sequence -{ - example_interfaces__msg__Int64MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Int64MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT64_MULTI_ARRAY__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/int64_multi_array__type_support.h b/src/example_interfaces/msg/detail/int64_multi_array__type_support.h deleted file mode 100755 index f0caa888a..000000000 --- a/src/example_interfaces/msg/detail/int64_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Int64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int64_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT64_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT64_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Int64MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT64_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/int8__functions.h b/src/example_interfaces/msg/detail/int8__functions.h deleted file mode 100755 index 296292bb6..000000000 --- a/src/example_interfaces/msg/detail/int8__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Int8.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int8.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT8__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT8__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/int8__struct.h" - -/// Initialize msg/Int8 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Int8 - * )) before or use - * example_interfaces__msg__Int8__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int8__init(example_interfaces__msg__Int8 * msg); - -/// Finalize msg/Int8 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int8__fini(example_interfaces__msg__Int8 * msg); - -/// Create msg/Int8 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Int8__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int8 * -example_interfaces__msg__Int8__create(void); - -/// Destroy msg/Int8 message. -/** - * It calls - * example_interfaces__msg__Int8__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int8__destroy(example_interfaces__msg__Int8 * msg); - -/// Check for msg/Int8 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int8__are_equal(const example_interfaces__msg__Int8 * lhs, const example_interfaces__msg__Int8 * rhs); - -/// Copy a msg/Int8 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int8__copy( - const example_interfaces__msg__Int8 * input, - example_interfaces__msg__Int8 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Int8__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Int8__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Int8__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Int8__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int8 messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Int8__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int8__Sequence__init(example_interfaces__msg__Int8__Sequence * array, size_t size); - -/// Finalize array of msg/Int8 messages. -/** - * It calls - * example_interfaces__msg__Int8__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int8__Sequence__fini(example_interfaces__msg__Int8__Sequence * array); - -/// Create array of msg/Int8 messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Int8__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int8__Sequence * -example_interfaces__msg__Int8__Sequence__create(size_t size); - -/// Destroy array of msg/Int8 messages. -/** - * It calls - * example_interfaces__msg__Int8__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int8__Sequence__destroy(example_interfaces__msg__Int8__Sequence * array); - -/// Check for msg/Int8 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int8__Sequence__are_equal(const example_interfaces__msg__Int8__Sequence * lhs, const example_interfaces__msg__Int8__Sequence * rhs); - -/// Copy an array of msg/Int8 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int8__Sequence__copy( - const example_interfaces__msg__Int8__Sequence * input, - example_interfaces__msg__Int8__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT8__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/int8__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/int8__rosidl_typesupport_introspection_c.h deleted file mode 100755 index bae6774d4..000000000 --- a/src/example_interfaces/msg/detail/int8__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Int8.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT8__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT8__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Int8)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT8__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/int8__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/int8__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 1d87764ce..000000000 --- a/src/example_interfaces/msg/detail/int8__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Int8.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__INT8__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__INT8__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Int8( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Int8( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Int8)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__INT8__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/int8__struct.h b/src/example_interfaces/msg/detail/int8__struct.h deleted file mode 100755 index 2f27f7e28..000000000 --- a/src/example_interfaces/msg/detail/int8__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Int8.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int8.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT8__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT8__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Int8 in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, in8. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__Int8 -{ - int8_t data; -} example_interfaces__msg__Int8; - -// Struct for a sequence of example_interfaces__msg__Int8. -typedef struct example_interfaces__msg__Int8__Sequence -{ - example_interfaces__msg__Int8 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Int8__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT8__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/int8__type_support.h b/src/example_interfaces/msg/detail/int8__type_support.h deleted file mode 100755 index 5391a659d..000000000 --- a/src/example_interfaces/msg/detail/int8__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Int8.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int8.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT8__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT8__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Int8 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT8__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/int8_multi_array__functions.h b/src/example_interfaces/msg/detail/int8_multi_array__functions.h deleted file mode 100755 index 9a7910581..000000000 --- a/src/example_interfaces/msg/detail/int8_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/Int8MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int8_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT8_MULTI_ARRAY__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT8_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/int8_multi_array__struct.h" - -/// Initialize msg/Int8MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__Int8MultiArray - * )) before or use - * example_interfaces__msg__Int8MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int8MultiArray__init(example_interfaces__msg__Int8MultiArray * msg); - -/// Finalize msg/Int8MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int8MultiArray__fini(example_interfaces__msg__Int8MultiArray * msg); - -/// Create msg/Int8MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__Int8MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int8MultiArray * -example_interfaces__msg__Int8MultiArray__create(void); - -/// Destroy msg/Int8MultiArray message. -/** - * It calls - * example_interfaces__msg__Int8MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int8MultiArray__destroy(example_interfaces__msg__Int8MultiArray * msg); - -/// Check for msg/Int8MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int8MultiArray__are_equal(const example_interfaces__msg__Int8MultiArray * lhs, const example_interfaces__msg__Int8MultiArray * rhs); - -/// Copy a msg/Int8MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int8MultiArray__copy( - const example_interfaces__msg__Int8MultiArray * input, - example_interfaces__msg__Int8MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__Int8MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__Int8MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__Int8MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__Int8MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int8MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__Int8MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int8MultiArray__Sequence__init(example_interfaces__msg__Int8MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/Int8MultiArray messages. -/** - * It calls - * example_interfaces__msg__Int8MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int8MultiArray__Sequence__fini(example_interfaces__msg__Int8MultiArray__Sequence * array); - -/// Create array of msg/Int8MultiArray messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__Int8MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__Int8MultiArray__Sequence * -example_interfaces__msg__Int8MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/Int8MultiArray messages. -/** - * It calls - * example_interfaces__msg__Int8MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__Int8MultiArray__Sequence__destroy(example_interfaces__msg__Int8MultiArray__Sequence * array); - -/// Check for msg/Int8MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int8MultiArray__Sequence__are_equal(const example_interfaces__msg__Int8MultiArray__Sequence * lhs, const example_interfaces__msg__Int8MultiArray__Sequence * rhs); - -/// Copy an array of msg/Int8MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__Int8MultiArray__Sequence__copy( - const example_interfaces__msg__Int8MultiArray__Sequence * input, - example_interfaces__msg__Int8MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT8_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/int8_multi_array__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/int8_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 149b5582f..000000000 --- a/src/example_interfaces/msg/detail/int8_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/Int8MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, Int8MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/int8_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/int8_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 45fa4fa56..000000000 --- a/src/example_interfaces/msg/detail/int8_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/Int8MultiArray.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__Int8MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__Int8MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, Int8MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/int8_multi_array__struct.h b/src/example_interfaces/msg/detail/int8_multi_array__struct.h deleted file mode 100755 index 2ece53f35..000000000 --- a/src/example_interfaces/msg/detail/int8_multi_array__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/Int8MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int8_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT8_MULTI_ARRAY__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT8_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "example_interfaces/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Int8MultiArray in the package example_interfaces. -/** - * This is an example of using complex datatypes. - * It is not recommended to use directly. - * To use a similar datastruct please define a custom message with appropriate semantic meaning. - */ -typedef struct example_interfaces__msg__Int8MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - example_interfaces__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__int8__Sequence data; -} example_interfaces__msg__Int8MultiArray; - -// Struct for a sequence of example_interfaces__msg__Int8MultiArray. -typedef struct example_interfaces__msg__Int8MultiArray__Sequence -{ - example_interfaces__msg__Int8MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__Int8MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT8_MULTI_ARRAY__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/int8_multi_array__type_support.h b/src/example_interfaces/msg/detail/int8_multi_array__type_support.h deleted file mode 100755 index 9778a5bd6..000000000 --- a/src/example_interfaces/msg/detail/int8_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/Int8MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/int8_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__INT8_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__INT8_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - Int8MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__INT8_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/multi_array_dimension__functions.h b/src/example_interfaces/msg/detail/multi_array_dimension__functions.h deleted file mode 100755 index c096c00cc..000000000 --- a/src/example_interfaces/msg/detail/multi_array_dimension__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/MultiArrayDimension.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/multi_array_dimension.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_DIMENSION__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_DIMENSION__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/multi_array_dimension__struct.h" - -/// Initialize msg/MultiArrayDimension message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__MultiArrayDimension - * )) before or use - * example_interfaces__msg__MultiArrayDimension__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__MultiArrayDimension__init(example_interfaces__msg__MultiArrayDimension * msg); - -/// Finalize msg/MultiArrayDimension message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__MultiArrayDimension__fini(example_interfaces__msg__MultiArrayDimension * msg); - -/// Create msg/MultiArrayDimension message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__MultiArrayDimension__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__MultiArrayDimension * -example_interfaces__msg__MultiArrayDimension__create(void); - -/// Destroy msg/MultiArrayDimension message. -/** - * It calls - * example_interfaces__msg__MultiArrayDimension__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__MultiArrayDimension__destroy(example_interfaces__msg__MultiArrayDimension * msg); - -/// Check for msg/MultiArrayDimension message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__MultiArrayDimension__are_equal(const example_interfaces__msg__MultiArrayDimension * lhs, const example_interfaces__msg__MultiArrayDimension * rhs); - -/// Copy a msg/MultiArrayDimension message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__MultiArrayDimension__copy( - const example_interfaces__msg__MultiArrayDimension * input, - example_interfaces__msg__MultiArrayDimension * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__MultiArrayDimension__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__MultiArrayDimension__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__MultiArrayDimension__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__MultiArrayDimension__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MultiArrayDimension messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__MultiArrayDimension__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__MultiArrayDimension__Sequence__init(example_interfaces__msg__MultiArrayDimension__Sequence * array, size_t size); - -/// Finalize array of msg/MultiArrayDimension messages. -/** - * It calls - * example_interfaces__msg__MultiArrayDimension__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__MultiArrayDimension__Sequence__fini(example_interfaces__msg__MultiArrayDimension__Sequence * array); - -/// Create array of msg/MultiArrayDimension messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__MultiArrayDimension__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__MultiArrayDimension__Sequence * -example_interfaces__msg__MultiArrayDimension__Sequence__create(size_t size); - -/// Destroy array of msg/MultiArrayDimension messages. -/** - * It calls - * example_interfaces__msg__MultiArrayDimension__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__MultiArrayDimension__Sequence__destroy(example_interfaces__msg__MultiArrayDimension__Sequence * array); - -/// Check for msg/MultiArrayDimension message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__MultiArrayDimension__Sequence__are_equal(const example_interfaces__msg__MultiArrayDimension__Sequence * lhs, const example_interfaces__msg__MultiArrayDimension__Sequence * rhs); - -/// Copy an array of msg/MultiArrayDimension messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__MultiArrayDimension__Sequence__copy( - const example_interfaces__msg__MultiArrayDimension__Sequence * input, - example_interfaces__msg__MultiArrayDimension__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_DIMENSION__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/multi_array_dimension__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/multi_array_dimension__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 3522ce83b..000000000 --- a/src/example_interfaces/msg/detail/multi_array_dimension__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/MultiArrayDimension.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_DIMENSION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_DIMENSION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, MultiArrayDimension)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_DIMENSION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/multi_array_dimension__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/multi_array_dimension__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index d01fe6ec2..000000000 --- a/src/example_interfaces/msg/detail/multi_array_dimension__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/MultiArrayDimension.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__MULTI_ARRAY_DIMENSION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__MULTI_ARRAY_DIMENSION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__MultiArrayDimension( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__MultiArrayDimension( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, MultiArrayDimension)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__MULTI_ARRAY_DIMENSION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/multi_array_dimension__struct.h b/src/example_interfaces/msg/detail/multi_array_dimension__struct.h deleted file mode 100755 index 8eb36f38b..000000000 --- a/src/example_interfaces/msg/detail/multi_array_dimension__struct.h +++ /dev/null @@ -1,56 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/MultiArrayDimension.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/multi_array_dimension.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_DIMENSION__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_DIMENSION__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'label' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/MultiArrayDimension in the package example_interfaces. -/** - * This is an example of using complex datatypes. - * It is not recommended to use directly. - * To use a similar datastruct please define a custom message with appropriate semantic meaning. - */ -typedef struct example_interfaces__msg__MultiArrayDimension -{ - /// label of given dimension - rosidl_runtime_c__String label; - /// size of given dimension (in type units) - uint32_t size; - /// stride of given dimension - uint32_t stride; -} example_interfaces__msg__MultiArrayDimension; - -// Struct for a sequence of example_interfaces__msg__MultiArrayDimension. -typedef struct example_interfaces__msg__MultiArrayDimension__Sequence -{ - example_interfaces__msg__MultiArrayDimension * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__MultiArrayDimension__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_DIMENSION__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/multi_array_dimension__type_support.h b/src/example_interfaces/msg/detail/multi_array_dimension__type_support.h deleted file mode 100755 index 0cc398e6e..000000000 --- a/src/example_interfaces/msg/detail/multi_array_dimension__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/MultiArrayDimension.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/multi_array_dimension.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_DIMENSION__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_DIMENSION__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - MultiArrayDimension -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_DIMENSION__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/multi_array_layout__functions.h b/src/example_interfaces/msg/detail/multi_array_layout__functions.h deleted file mode 100755 index 01ada8d02..000000000 --- a/src/example_interfaces/msg/detail/multi_array_layout__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/MultiArrayLayout.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/multi_array_layout.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_LAYOUT__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_LAYOUT__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/multi_array_layout__struct.h" - -/// Initialize msg/MultiArrayLayout message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__MultiArrayLayout - * )) before or use - * example_interfaces__msg__MultiArrayLayout__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__MultiArrayLayout__init(example_interfaces__msg__MultiArrayLayout * msg); - -/// Finalize msg/MultiArrayLayout message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__MultiArrayLayout__fini(example_interfaces__msg__MultiArrayLayout * msg); - -/// Create msg/MultiArrayLayout message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__MultiArrayLayout__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__MultiArrayLayout * -example_interfaces__msg__MultiArrayLayout__create(void); - -/// Destroy msg/MultiArrayLayout message. -/** - * It calls - * example_interfaces__msg__MultiArrayLayout__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__MultiArrayLayout__destroy(example_interfaces__msg__MultiArrayLayout * msg); - -/// Check for msg/MultiArrayLayout message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__MultiArrayLayout__are_equal(const example_interfaces__msg__MultiArrayLayout * lhs, const example_interfaces__msg__MultiArrayLayout * rhs); - -/// Copy a msg/MultiArrayLayout message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__MultiArrayLayout__copy( - const example_interfaces__msg__MultiArrayLayout * input, - example_interfaces__msg__MultiArrayLayout * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__MultiArrayLayout__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__MultiArrayLayout__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__MultiArrayLayout__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__MultiArrayLayout__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MultiArrayLayout messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__MultiArrayLayout__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__MultiArrayLayout__Sequence__init(example_interfaces__msg__MultiArrayLayout__Sequence * array, size_t size); - -/// Finalize array of msg/MultiArrayLayout messages. -/** - * It calls - * example_interfaces__msg__MultiArrayLayout__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__MultiArrayLayout__Sequence__fini(example_interfaces__msg__MultiArrayLayout__Sequence * array); - -/// Create array of msg/MultiArrayLayout messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__MultiArrayLayout__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__MultiArrayLayout__Sequence * -example_interfaces__msg__MultiArrayLayout__Sequence__create(size_t size); - -/// Destroy array of msg/MultiArrayLayout messages. -/** - * It calls - * example_interfaces__msg__MultiArrayLayout__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__MultiArrayLayout__Sequence__destroy(example_interfaces__msg__MultiArrayLayout__Sequence * array); - -/// Check for msg/MultiArrayLayout message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__MultiArrayLayout__Sequence__are_equal(const example_interfaces__msg__MultiArrayLayout__Sequence * lhs, const example_interfaces__msg__MultiArrayLayout__Sequence * rhs); - -/// Copy an array of msg/MultiArrayLayout messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__MultiArrayLayout__Sequence__copy( - const example_interfaces__msg__MultiArrayLayout__Sequence * input, - example_interfaces__msg__MultiArrayLayout__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_LAYOUT__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/multi_array_layout__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/multi_array_layout__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 68d62eeb0..000000000 --- a/src/example_interfaces/msg/detail/multi_array_layout__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/MultiArrayLayout.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_LAYOUT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_LAYOUT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, MultiArrayLayout)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_LAYOUT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/multi_array_layout__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/multi_array_layout__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 5f0bfe529..000000000 --- a/src/example_interfaces/msg/detail/multi_array_layout__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/MultiArrayLayout.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__MULTI_ARRAY_LAYOUT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__MULTI_ARRAY_LAYOUT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__MultiArrayLayout( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__MultiArrayLayout( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, MultiArrayLayout)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__MULTI_ARRAY_LAYOUT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/multi_array_layout__struct.h b/src/example_interfaces/msg/detail/multi_array_layout__struct.h deleted file mode 100755 index 27a885f8e..000000000 --- a/src/example_interfaces/msg/detail/multi_array_layout__struct.h +++ /dev/null @@ -1,77 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/MultiArrayLayout.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/multi_array_layout.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_LAYOUT__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_LAYOUT__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'dim' -#include "example_interfaces/msg/detail/multi_array_dimension__struct.h" - -/// Struct defined in msg/MultiArrayLayout in the package example_interfaces. -/** - * This is an example of using complex datatypes. - * It is not recommended to use directly. - * To use a similar datastruct please define a custom message with appropriate semantic meaning. - */ -typedef struct example_interfaces__msg__MultiArrayLayout -{ - /// The multiarray declares a generic multi-dimensional array of a - /// particular data type. Dimensions are ordered from outer most - /// to inner most. - /// - /// Accessors should ALWAYS be written in terms of dimension stride - /// and specified outer-most dimension first. - /// - /// multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k] - /// - /// A standard, 3-channel 640x480 image with interleaved color channels - /// would be specified as: - /// - /// dim[0].label = "height" - /// dim[0].size = 480 - /// dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image) - /// dim[1].label = "width" - /// dim[1].size = 640 - /// dim[1].stride = 3*640 = 1920 - /// dim[2].label = "channel" - /// dim[2].size = 3 - /// dim[2].stride = 3 - /// - /// multiarray(i,j,k) refers to the ith row, jth column, and kth channel. - /// Array of dimension properties - example_interfaces__msg__MultiArrayDimension__Sequence dim; - /// padding bytes at front of data - uint32_t data_offset; -} example_interfaces__msg__MultiArrayLayout; - -// Struct for a sequence of example_interfaces__msg__MultiArrayLayout. -typedef struct example_interfaces__msg__MultiArrayLayout__Sequence -{ - example_interfaces__msg__MultiArrayLayout * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__MultiArrayLayout__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_LAYOUT__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/multi_array_layout__type_support.h b/src/example_interfaces/msg/detail/multi_array_layout__type_support.h deleted file mode 100755 index 6f277320b..000000000 --- a/src/example_interfaces/msg/detail/multi_array_layout__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/MultiArrayLayout.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/multi_array_layout.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_LAYOUT__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_LAYOUT__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - MultiArrayLayout -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__MULTI_ARRAY_LAYOUT__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/string__functions.h b/src/example_interfaces/msg/detail/string__functions.h deleted file mode 100755 index 642c9d9f5..000000000 --- a/src/example_interfaces/msg/detail/string__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/String.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/string.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__STRING__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__STRING__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/string__struct.h" - -/// Initialize msg/String message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__String - * )) before or use - * example_interfaces__msg__String__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__String__init(example_interfaces__msg__String * msg); - -/// Finalize msg/String message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__String__fini(example_interfaces__msg__String * msg); - -/// Create msg/String message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__String__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__String * -example_interfaces__msg__String__create(void); - -/// Destroy msg/String message. -/** - * It calls - * example_interfaces__msg__String__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__String__destroy(example_interfaces__msg__String * msg); - -/// Check for msg/String message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__String__are_equal(const example_interfaces__msg__String * lhs, const example_interfaces__msg__String * rhs); - -/// Copy a msg/String message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__String__copy( - const example_interfaces__msg__String * input, - example_interfaces__msg__String * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__String__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__String__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__String__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__String__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/String messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__String__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__String__Sequence__init(example_interfaces__msg__String__Sequence * array, size_t size); - -/// Finalize array of msg/String messages. -/** - * It calls - * example_interfaces__msg__String__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__String__Sequence__fini(example_interfaces__msg__String__Sequence * array); - -/// Create array of msg/String messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__String__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__String__Sequence * -example_interfaces__msg__String__Sequence__create(size_t size); - -/// Destroy array of msg/String messages. -/** - * It calls - * example_interfaces__msg__String__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__String__Sequence__destroy(example_interfaces__msg__String__Sequence * array); - -/// Check for msg/String message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__String__Sequence__are_equal(const example_interfaces__msg__String__Sequence * lhs, const example_interfaces__msg__String__Sequence * rhs); - -/// Copy an array of msg/String messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__String__Sequence__copy( - const example_interfaces__msg__String__Sequence * input, - example_interfaces__msg__String__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__STRING__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/string__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/string__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 2da0d1e52..000000000 --- a/src/example_interfaces/msg/detail/string__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/String.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__STRING__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__STRING__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, String)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__STRING__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/string__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/string__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 12080eb1f..000000000 --- a/src/example_interfaces/msg/detail/string__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/String.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__STRING__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__STRING__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__String( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__String( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, String)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__STRING__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/string__struct.h b/src/example_interfaces/msg/detail/string__struct.h deleted file mode 100755 index 87c52c487..000000000 --- a/src/example_interfaces/msg/detail/string__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/String.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/string.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__STRING__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__STRING__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'data' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/String in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, string. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__String -{ - rosidl_runtime_c__String data; -} example_interfaces__msg__String; - -// Struct for a sequence of example_interfaces__msg__String. -typedef struct example_interfaces__msg__String__Sequence -{ - example_interfaces__msg__String * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__String__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__STRING__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/string__type_support.h b/src/example_interfaces/msg/detail/string__type_support.h deleted file mode 100755 index c091f7ca3..000000000 --- a/src/example_interfaces/msg/detail/string__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/String.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/string.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__STRING__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__STRING__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - String -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__STRING__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/u_int16__functions.h b/src/example_interfaces/msg/detail/u_int16__functions.h deleted file mode 100755 index 3e055eed8..000000000 --- a/src/example_interfaces/msg/detail/u_int16__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/UInt16.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int16.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/u_int16__struct.h" - -/// Initialize msg/UInt16 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__UInt16 - * )) before or use - * example_interfaces__msg__UInt16__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt16__init(example_interfaces__msg__UInt16 * msg); - -/// Finalize msg/UInt16 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt16__fini(example_interfaces__msg__UInt16 * msg); - -/// Create msg/UInt16 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__UInt16__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt16 * -example_interfaces__msg__UInt16__create(void); - -/// Destroy msg/UInt16 message. -/** - * It calls - * example_interfaces__msg__UInt16__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt16__destroy(example_interfaces__msg__UInt16 * msg); - -/// Check for msg/UInt16 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt16__are_equal(const example_interfaces__msg__UInt16 * lhs, const example_interfaces__msg__UInt16 * rhs); - -/// Copy a msg/UInt16 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt16__copy( - const example_interfaces__msg__UInt16 * input, - example_interfaces__msg__UInt16 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__UInt16__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__UInt16__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__UInt16__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__UInt16__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt16 messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__UInt16__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt16__Sequence__init(example_interfaces__msg__UInt16__Sequence * array, size_t size); - -/// Finalize array of msg/UInt16 messages. -/** - * It calls - * example_interfaces__msg__UInt16__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt16__Sequence__fini(example_interfaces__msg__UInt16__Sequence * array); - -/// Create array of msg/UInt16 messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__UInt16__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt16__Sequence * -example_interfaces__msg__UInt16__Sequence__create(size_t size); - -/// Destroy array of msg/UInt16 messages. -/** - * It calls - * example_interfaces__msg__UInt16__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt16__Sequence__destroy(example_interfaces__msg__UInt16__Sequence * array); - -/// Check for msg/UInt16 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt16__Sequence__are_equal(const example_interfaces__msg__UInt16__Sequence * lhs, const example_interfaces__msg__UInt16__Sequence * rhs); - -/// Copy an array of msg/UInt16 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt16__Sequence__copy( - const example_interfaces__msg__UInt16__Sequence * input, - example_interfaces__msg__UInt16__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/u_int16__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/u_int16__rosidl_typesupport_introspection_c.h deleted file mode 100755 index f6fa1fb40..000000000 --- a/src/example_interfaces/msg/detail/u_int16__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/UInt16.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, UInt16)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int16__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/u_int16__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a04190064..000000000 --- a/src/example_interfaces/msg/detail/u_int16__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/UInt16.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__U_INT16__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT16__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__UInt16( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__UInt16( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, UInt16)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__U_INT16__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int16__struct.h b/src/example_interfaces/msg/detail/u_int16__struct.h deleted file mode 100755 index c7c44da87..000000000 --- a/src/example_interfaces/msg/detail/u_int16__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/UInt16.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int16.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/UInt16 in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, uint16. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__UInt16 -{ - uint16_t data; -} example_interfaces__msg__UInt16; - -// Struct for a sequence of example_interfaces__msg__UInt16. -typedef struct example_interfaces__msg__UInt16__Sequence -{ - example_interfaces__msg__UInt16 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__UInt16__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/u_int16__type_support.h b/src/example_interfaces/msg/detail/u_int16__type_support.h deleted file mode 100755 index 6f4e43bc3..000000000 --- a/src/example_interfaces/msg/detail/u_int16__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/UInt16.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int16.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - UInt16 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/u_int16_multi_array__functions.h b/src/example_interfaces/msg/detail/u_int16_multi_array__functions.h deleted file mode 100755 index 46de6b10a..000000000 --- a/src/example_interfaces/msg/detail/u_int16_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/UInt16MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int16_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16_MULTI_ARRAY__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/u_int16_multi_array__struct.h" - -/// Initialize msg/UInt16MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__UInt16MultiArray - * )) before or use - * example_interfaces__msg__UInt16MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt16MultiArray__init(example_interfaces__msg__UInt16MultiArray * msg); - -/// Finalize msg/UInt16MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt16MultiArray__fini(example_interfaces__msg__UInt16MultiArray * msg); - -/// Create msg/UInt16MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__UInt16MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt16MultiArray * -example_interfaces__msg__UInt16MultiArray__create(void); - -/// Destroy msg/UInt16MultiArray message. -/** - * It calls - * example_interfaces__msg__UInt16MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt16MultiArray__destroy(example_interfaces__msg__UInt16MultiArray * msg); - -/// Check for msg/UInt16MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt16MultiArray__are_equal(const example_interfaces__msg__UInt16MultiArray * lhs, const example_interfaces__msg__UInt16MultiArray * rhs); - -/// Copy a msg/UInt16MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt16MultiArray__copy( - const example_interfaces__msg__UInt16MultiArray * input, - example_interfaces__msg__UInt16MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__UInt16MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__UInt16MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__UInt16MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__UInt16MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt16MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__UInt16MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt16MultiArray__Sequence__init(example_interfaces__msg__UInt16MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/UInt16MultiArray messages. -/** - * It calls - * example_interfaces__msg__UInt16MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt16MultiArray__Sequence__fini(example_interfaces__msg__UInt16MultiArray__Sequence * array); - -/// Create array of msg/UInt16MultiArray messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__UInt16MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt16MultiArray__Sequence * -example_interfaces__msg__UInt16MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/UInt16MultiArray messages. -/** - * It calls - * example_interfaces__msg__UInt16MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt16MultiArray__Sequence__destroy(example_interfaces__msg__UInt16MultiArray__Sequence * array); - -/// Check for msg/UInt16MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt16MultiArray__Sequence__are_equal(const example_interfaces__msg__UInt16MultiArray__Sequence * lhs, const example_interfaces__msg__UInt16MultiArray__Sequence * rhs); - -/// Copy an array of msg/UInt16MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt16MultiArray__Sequence__copy( - const example_interfaces__msg__UInt16MultiArray__Sequence * input, - example_interfaces__msg__UInt16MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/u_int16_multi_array__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/u_int16_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5fe6804b3..000000000 --- a/src/example_interfaces/msg/detail/u_int16_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/UInt16MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, UInt16MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int16_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/u_int16_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 7e20d2d47..000000000 --- a/src/example_interfaces/msg/detail/u_int16_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/UInt16MultiArray.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__U_INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__UInt16MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__UInt16MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, UInt16MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__U_INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int16_multi_array__struct.h b/src/example_interfaces/msg/detail/u_int16_multi_array__struct.h deleted file mode 100755 index 0f3c2b8d2..000000000 --- a/src/example_interfaces/msg/detail/u_int16_multi_array__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/UInt16MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int16_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16_MULTI_ARRAY__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "example_interfaces/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/UInt16MultiArray in the package example_interfaces. -/** - * This is an example of using complex datatypes. - * It is not recommended to use directly. - * To use a similar datastruct please define a custom message with appropriate semantic meaning. - */ -typedef struct example_interfaces__msg__UInt16MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - example_interfaces__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__uint16__Sequence data; -} example_interfaces__msg__UInt16MultiArray; - -// Struct for a sequence of example_interfaces__msg__UInt16MultiArray. -typedef struct example_interfaces__msg__UInt16MultiArray__Sequence -{ - example_interfaces__msg__UInt16MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__UInt16MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16_MULTI_ARRAY__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/u_int16_multi_array__type_support.h b/src/example_interfaces/msg/detail/u_int16_multi_array__type_support.h deleted file mode 100755 index a83548851..000000000 --- a/src/example_interfaces/msg/detail/u_int16_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/UInt16MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int16_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - UInt16MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT16_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/u_int32__functions.h b/src/example_interfaces/msg/detail/u_int32__functions.h deleted file mode 100755 index 228127e38..000000000 --- a/src/example_interfaces/msg/detail/u_int32__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/UInt32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int32.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/u_int32__struct.h" - -/// Initialize msg/UInt32 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__UInt32 - * )) before or use - * example_interfaces__msg__UInt32__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt32__init(example_interfaces__msg__UInt32 * msg); - -/// Finalize msg/UInt32 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt32__fini(example_interfaces__msg__UInt32 * msg); - -/// Create msg/UInt32 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__UInt32__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt32 * -example_interfaces__msg__UInt32__create(void); - -/// Destroy msg/UInt32 message. -/** - * It calls - * example_interfaces__msg__UInt32__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt32__destroy(example_interfaces__msg__UInt32 * msg); - -/// Check for msg/UInt32 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt32__are_equal(const example_interfaces__msg__UInt32 * lhs, const example_interfaces__msg__UInt32 * rhs); - -/// Copy a msg/UInt32 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt32__copy( - const example_interfaces__msg__UInt32 * input, - example_interfaces__msg__UInt32 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__UInt32__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__UInt32__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__UInt32__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__UInt32__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt32 messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__UInt32__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt32__Sequence__init(example_interfaces__msg__UInt32__Sequence * array, size_t size); - -/// Finalize array of msg/UInt32 messages. -/** - * It calls - * example_interfaces__msg__UInt32__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt32__Sequence__fini(example_interfaces__msg__UInt32__Sequence * array); - -/// Create array of msg/UInt32 messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__UInt32__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt32__Sequence * -example_interfaces__msg__UInt32__Sequence__create(size_t size); - -/// Destroy array of msg/UInt32 messages. -/** - * It calls - * example_interfaces__msg__UInt32__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt32__Sequence__destroy(example_interfaces__msg__UInt32__Sequence * array); - -/// Check for msg/UInt32 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt32__Sequence__are_equal(const example_interfaces__msg__UInt32__Sequence * lhs, const example_interfaces__msg__UInt32__Sequence * rhs); - -/// Copy an array of msg/UInt32 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt32__Sequence__copy( - const example_interfaces__msg__UInt32__Sequence * input, - example_interfaces__msg__UInt32__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/u_int32__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/u_int32__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c05f7a990..000000000 --- a/src/example_interfaces/msg/detail/u_int32__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/UInt32.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, UInt32)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int32__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/u_int32__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index b960fda72..000000000 --- a/src/example_interfaces/msg/detail/u_int32__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/UInt32.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__U_INT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__UInt32( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__UInt32( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, UInt32)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__U_INT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int32__struct.h b/src/example_interfaces/msg/detail/u_int32__struct.h deleted file mode 100755 index 0fc8c0e1b..000000000 --- a/src/example_interfaces/msg/detail/u_int32__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/UInt32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int32.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/UInt32 in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, uint32. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__UInt32 -{ - uint32_t data; -} example_interfaces__msg__UInt32; - -// Struct for a sequence of example_interfaces__msg__UInt32. -typedef struct example_interfaces__msg__UInt32__Sequence -{ - example_interfaces__msg__UInt32 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__UInt32__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/u_int32__type_support.h b/src/example_interfaces/msg/detail/u_int32__type_support.h deleted file mode 100755 index 936ad2b29..000000000 --- a/src/example_interfaces/msg/detail/u_int32__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/UInt32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int32.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - UInt32 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/u_int32_multi_array__functions.h b/src/example_interfaces/msg/detail/u_int32_multi_array__functions.h deleted file mode 100755 index e10907509..000000000 --- a/src/example_interfaces/msg/detail/u_int32_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/UInt32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int32_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32_MULTI_ARRAY__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/u_int32_multi_array__struct.h" - -/// Initialize msg/UInt32MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__UInt32MultiArray - * )) before or use - * example_interfaces__msg__UInt32MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt32MultiArray__init(example_interfaces__msg__UInt32MultiArray * msg); - -/// Finalize msg/UInt32MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt32MultiArray__fini(example_interfaces__msg__UInt32MultiArray * msg); - -/// Create msg/UInt32MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__UInt32MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt32MultiArray * -example_interfaces__msg__UInt32MultiArray__create(void); - -/// Destroy msg/UInt32MultiArray message. -/** - * It calls - * example_interfaces__msg__UInt32MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt32MultiArray__destroy(example_interfaces__msg__UInt32MultiArray * msg); - -/// Check for msg/UInt32MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt32MultiArray__are_equal(const example_interfaces__msg__UInt32MultiArray * lhs, const example_interfaces__msg__UInt32MultiArray * rhs); - -/// Copy a msg/UInt32MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt32MultiArray__copy( - const example_interfaces__msg__UInt32MultiArray * input, - example_interfaces__msg__UInt32MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__UInt32MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__UInt32MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__UInt32MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__UInt32MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt32MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__UInt32MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt32MultiArray__Sequence__init(example_interfaces__msg__UInt32MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/UInt32MultiArray messages. -/** - * It calls - * example_interfaces__msg__UInt32MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt32MultiArray__Sequence__fini(example_interfaces__msg__UInt32MultiArray__Sequence * array); - -/// Create array of msg/UInt32MultiArray messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__UInt32MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt32MultiArray__Sequence * -example_interfaces__msg__UInt32MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/UInt32MultiArray messages. -/** - * It calls - * example_interfaces__msg__UInt32MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt32MultiArray__Sequence__destroy(example_interfaces__msg__UInt32MultiArray__Sequence * array); - -/// Check for msg/UInt32MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt32MultiArray__Sequence__are_equal(const example_interfaces__msg__UInt32MultiArray__Sequence * lhs, const example_interfaces__msg__UInt32MultiArray__Sequence * rhs); - -/// Copy an array of msg/UInt32MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt32MultiArray__Sequence__copy( - const example_interfaces__msg__UInt32MultiArray__Sequence * input, - example_interfaces__msg__UInt32MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/u_int32_multi_array__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/u_int32_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index b55ec6569..000000000 --- a/src/example_interfaces/msg/detail/u_int32_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/UInt32MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, UInt32MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int32_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/u_int32_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 5190ad42a..000000000 --- a/src/example_interfaces/msg/detail/u_int32_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/UInt32MultiArray.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__U_INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__UInt32MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__UInt32MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, UInt32MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__U_INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int32_multi_array__struct.h b/src/example_interfaces/msg/detail/u_int32_multi_array__struct.h deleted file mode 100755 index 18c863285..000000000 --- a/src/example_interfaces/msg/detail/u_int32_multi_array__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/UInt32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int32_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32_MULTI_ARRAY__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "example_interfaces/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/UInt32MultiArray in the package example_interfaces. -/** - * This is an example of using complex datatypes. - * It is not recommended to use directly. - * To use a similar datastruct please define a custom message with appropriate semantic meaning. - */ -typedef struct example_interfaces__msg__UInt32MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - example_interfaces__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__uint32__Sequence data; -} example_interfaces__msg__UInt32MultiArray; - -// Struct for a sequence of example_interfaces__msg__UInt32MultiArray. -typedef struct example_interfaces__msg__UInt32MultiArray__Sequence -{ - example_interfaces__msg__UInt32MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__UInt32MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32_MULTI_ARRAY__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/u_int32_multi_array__type_support.h b/src/example_interfaces/msg/detail/u_int32_multi_array__type_support.h deleted file mode 100755 index d7975eb44..000000000 --- a/src/example_interfaces/msg/detail/u_int32_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/UInt32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int32_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - UInt32MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT32_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/u_int64__functions.h b/src/example_interfaces/msg/detail/u_int64__functions.h deleted file mode 100755 index a57d97de7..000000000 --- a/src/example_interfaces/msg/detail/u_int64__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/UInt64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int64.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/u_int64__struct.h" - -/// Initialize msg/UInt64 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__UInt64 - * )) before or use - * example_interfaces__msg__UInt64__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt64__init(example_interfaces__msg__UInt64 * msg); - -/// Finalize msg/UInt64 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt64__fini(example_interfaces__msg__UInt64 * msg); - -/// Create msg/UInt64 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__UInt64__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt64 * -example_interfaces__msg__UInt64__create(void); - -/// Destroy msg/UInt64 message. -/** - * It calls - * example_interfaces__msg__UInt64__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt64__destroy(example_interfaces__msg__UInt64 * msg); - -/// Check for msg/UInt64 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt64__are_equal(const example_interfaces__msg__UInt64 * lhs, const example_interfaces__msg__UInt64 * rhs); - -/// Copy a msg/UInt64 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt64__copy( - const example_interfaces__msg__UInt64 * input, - example_interfaces__msg__UInt64 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__UInt64__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__UInt64__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__UInt64__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__UInt64__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt64 messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__UInt64__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt64__Sequence__init(example_interfaces__msg__UInt64__Sequence * array, size_t size); - -/// Finalize array of msg/UInt64 messages. -/** - * It calls - * example_interfaces__msg__UInt64__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt64__Sequence__fini(example_interfaces__msg__UInt64__Sequence * array); - -/// Create array of msg/UInt64 messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__UInt64__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt64__Sequence * -example_interfaces__msg__UInt64__Sequence__create(size_t size); - -/// Destroy array of msg/UInt64 messages. -/** - * It calls - * example_interfaces__msg__UInt64__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt64__Sequence__destroy(example_interfaces__msg__UInt64__Sequence * array); - -/// Check for msg/UInt64 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt64__Sequence__are_equal(const example_interfaces__msg__UInt64__Sequence * lhs, const example_interfaces__msg__UInt64__Sequence * rhs); - -/// Copy an array of msg/UInt64 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt64__Sequence__copy( - const example_interfaces__msg__UInt64__Sequence * input, - example_interfaces__msg__UInt64__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/u_int64__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/u_int64__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 1fe338bcb..000000000 --- a/src/example_interfaces/msg/detail/u_int64__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/UInt64.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, UInt64)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int64__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/u_int64__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 0e2e64458..000000000 --- a/src/example_interfaces/msg/detail/u_int64__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/UInt64.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__U_INT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__UInt64( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__UInt64( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, UInt64)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__U_INT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int64__struct.h b/src/example_interfaces/msg/detail/u_int64__struct.h deleted file mode 100755 index fd463711a..000000000 --- a/src/example_interfaces/msg/detail/u_int64__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/UInt64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int64.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/UInt64 in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, unint64. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__UInt64 -{ - uint64_t data; -} example_interfaces__msg__UInt64; - -// Struct for a sequence of example_interfaces__msg__UInt64. -typedef struct example_interfaces__msg__UInt64__Sequence -{ - example_interfaces__msg__UInt64 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__UInt64__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/u_int64__type_support.h b/src/example_interfaces/msg/detail/u_int64__type_support.h deleted file mode 100755 index 93a9b6285..000000000 --- a/src/example_interfaces/msg/detail/u_int64__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/UInt64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int64.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - UInt64 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/u_int64_multi_array__functions.h b/src/example_interfaces/msg/detail/u_int64_multi_array__functions.h deleted file mode 100755 index e623c66ba..000000000 --- a/src/example_interfaces/msg/detail/u_int64_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/UInt64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int64_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64_MULTI_ARRAY__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/u_int64_multi_array__struct.h" - -/// Initialize msg/UInt64MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__UInt64MultiArray - * )) before or use - * example_interfaces__msg__UInt64MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt64MultiArray__init(example_interfaces__msg__UInt64MultiArray * msg); - -/// Finalize msg/UInt64MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt64MultiArray__fini(example_interfaces__msg__UInt64MultiArray * msg); - -/// Create msg/UInt64MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__UInt64MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt64MultiArray * -example_interfaces__msg__UInt64MultiArray__create(void); - -/// Destroy msg/UInt64MultiArray message. -/** - * It calls - * example_interfaces__msg__UInt64MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt64MultiArray__destroy(example_interfaces__msg__UInt64MultiArray * msg); - -/// Check for msg/UInt64MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt64MultiArray__are_equal(const example_interfaces__msg__UInt64MultiArray * lhs, const example_interfaces__msg__UInt64MultiArray * rhs); - -/// Copy a msg/UInt64MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt64MultiArray__copy( - const example_interfaces__msg__UInt64MultiArray * input, - example_interfaces__msg__UInt64MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__UInt64MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__UInt64MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__UInt64MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__UInt64MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt64MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__UInt64MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt64MultiArray__Sequence__init(example_interfaces__msg__UInt64MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/UInt64MultiArray messages. -/** - * It calls - * example_interfaces__msg__UInt64MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt64MultiArray__Sequence__fini(example_interfaces__msg__UInt64MultiArray__Sequence * array); - -/// Create array of msg/UInt64MultiArray messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__UInt64MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt64MultiArray__Sequence * -example_interfaces__msg__UInt64MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/UInt64MultiArray messages. -/** - * It calls - * example_interfaces__msg__UInt64MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt64MultiArray__Sequence__destroy(example_interfaces__msg__UInt64MultiArray__Sequence * array); - -/// Check for msg/UInt64MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt64MultiArray__Sequence__are_equal(const example_interfaces__msg__UInt64MultiArray__Sequence * lhs, const example_interfaces__msg__UInt64MultiArray__Sequence * rhs); - -/// Copy an array of msg/UInt64MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt64MultiArray__Sequence__copy( - const example_interfaces__msg__UInt64MultiArray__Sequence * input, - example_interfaces__msg__UInt64MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/u_int64_multi_array__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/u_int64_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 596148d6f..000000000 --- a/src/example_interfaces/msg/detail/u_int64_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/UInt64MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, UInt64MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int64_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/u_int64_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index f1e7cbcfe..000000000 --- a/src/example_interfaces/msg/detail/u_int64_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/UInt64MultiArray.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__U_INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__UInt64MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__UInt64MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, UInt64MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__U_INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int64_multi_array__struct.h b/src/example_interfaces/msg/detail/u_int64_multi_array__struct.h deleted file mode 100755 index 2fe079553..000000000 --- a/src/example_interfaces/msg/detail/u_int64_multi_array__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/UInt64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int64_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64_MULTI_ARRAY__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "example_interfaces/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/UInt64MultiArray in the package example_interfaces. -/** - * This is an example of using complex datatypes. - * It is not recommended to use directly. - * To use a similar datastruct please define a custom message with appropriate semantic meaning. - */ -typedef struct example_interfaces__msg__UInt64MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - example_interfaces__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__uint64__Sequence data; -} example_interfaces__msg__UInt64MultiArray; - -// Struct for a sequence of example_interfaces__msg__UInt64MultiArray. -typedef struct example_interfaces__msg__UInt64MultiArray__Sequence -{ - example_interfaces__msg__UInt64MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__UInt64MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64_MULTI_ARRAY__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/u_int64_multi_array__type_support.h b/src/example_interfaces/msg/detail/u_int64_multi_array__type_support.h deleted file mode 100755 index b69eaacc8..000000000 --- a/src/example_interfaces/msg/detail/u_int64_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/UInt64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int64_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - UInt64MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT64_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/u_int8__functions.h b/src/example_interfaces/msg/detail/u_int8__functions.h deleted file mode 100755 index 495f93e80..000000000 --- a/src/example_interfaces/msg/detail/u_int8__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/UInt8.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int8.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/u_int8__struct.h" - -/// Initialize msg/UInt8 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__UInt8 - * )) before or use - * example_interfaces__msg__UInt8__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt8__init(example_interfaces__msg__UInt8 * msg); - -/// Finalize msg/UInt8 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt8__fini(example_interfaces__msg__UInt8 * msg); - -/// Create msg/UInt8 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__UInt8__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt8 * -example_interfaces__msg__UInt8__create(void); - -/// Destroy msg/UInt8 message. -/** - * It calls - * example_interfaces__msg__UInt8__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt8__destroy(example_interfaces__msg__UInt8 * msg); - -/// Check for msg/UInt8 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt8__are_equal(const example_interfaces__msg__UInt8 * lhs, const example_interfaces__msg__UInt8 * rhs); - -/// Copy a msg/UInt8 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt8__copy( - const example_interfaces__msg__UInt8 * input, - example_interfaces__msg__UInt8 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__UInt8__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__UInt8__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__UInt8__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__UInt8__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt8 messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__UInt8__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt8__Sequence__init(example_interfaces__msg__UInt8__Sequence * array, size_t size); - -/// Finalize array of msg/UInt8 messages. -/** - * It calls - * example_interfaces__msg__UInt8__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt8__Sequence__fini(example_interfaces__msg__UInt8__Sequence * array); - -/// Create array of msg/UInt8 messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__UInt8__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt8__Sequence * -example_interfaces__msg__UInt8__Sequence__create(size_t size); - -/// Destroy array of msg/UInt8 messages. -/** - * It calls - * example_interfaces__msg__UInt8__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt8__Sequence__destroy(example_interfaces__msg__UInt8__Sequence * array); - -/// Check for msg/UInt8 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt8__Sequence__are_equal(const example_interfaces__msg__UInt8__Sequence * lhs, const example_interfaces__msg__UInt8__Sequence * rhs); - -/// Copy an array of msg/UInt8 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt8__Sequence__copy( - const example_interfaces__msg__UInt8__Sequence * input, - example_interfaces__msg__UInt8__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/u_int8__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/u_int8__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 6c52b4504..000000000 --- a/src/example_interfaces/msg/detail/u_int8__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/UInt8.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, UInt8)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int8__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/u_int8__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 2c4f60eec..000000000 --- a/src/example_interfaces/msg/detail/u_int8__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/UInt8.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__U_INT8__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT8__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__UInt8( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__UInt8( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, UInt8)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__U_INT8__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int8__struct.h b/src/example_interfaces/msg/detail/u_int8__struct.h deleted file mode 100755 index f9c3e3fee..000000000 --- a/src/example_interfaces/msg/detail/u_int8__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/UInt8.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int8.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/UInt8 in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, uint8. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__UInt8 -{ - uint8_t data; -} example_interfaces__msg__UInt8; - -// Struct for a sequence of example_interfaces__msg__UInt8. -typedef struct example_interfaces__msg__UInt8__Sequence -{ - example_interfaces__msg__UInt8 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__UInt8__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/u_int8__type_support.h b/src/example_interfaces/msg/detail/u_int8__type_support.h deleted file mode 100755 index 54e307380..000000000 --- a/src/example_interfaces/msg/detail/u_int8__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/UInt8.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int8.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - UInt8 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/u_int8_multi_array__functions.h b/src/example_interfaces/msg/detail/u_int8_multi_array__functions.h deleted file mode 100755 index 8092bad3a..000000000 --- a/src/example_interfaces/msg/detail/u_int8_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/UInt8MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int8_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8_MULTI_ARRAY__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/u_int8_multi_array__struct.h" - -/// Initialize msg/UInt8MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__UInt8MultiArray - * )) before or use - * example_interfaces__msg__UInt8MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt8MultiArray__init(example_interfaces__msg__UInt8MultiArray * msg); - -/// Finalize msg/UInt8MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt8MultiArray__fini(example_interfaces__msg__UInt8MultiArray * msg); - -/// Create msg/UInt8MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__UInt8MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt8MultiArray * -example_interfaces__msg__UInt8MultiArray__create(void); - -/// Destroy msg/UInt8MultiArray message. -/** - * It calls - * example_interfaces__msg__UInt8MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt8MultiArray__destroy(example_interfaces__msg__UInt8MultiArray * msg); - -/// Check for msg/UInt8MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt8MultiArray__are_equal(const example_interfaces__msg__UInt8MultiArray * lhs, const example_interfaces__msg__UInt8MultiArray * rhs); - -/// Copy a msg/UInt8MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt8MultiArray__copy( - const example_interfaces__msg__UInt8MultiArray * input, - example_interfaces__msg__UInt8MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__UInt8MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__UInt8MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__UInt8MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__UInt8MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt8MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__UInt8MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt8MultiArray__Sequence__init(example_interfaces__msg__UInt8MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/UInt8MultiArray messages. -/** - * It calls - * example_interfaces__msg__UInt8MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt8MultiArray__Sequence__fini(example_interfaces__msg__UInt8MultiArray__Sequence * array); - -/// Create array of msg/UInt8MultiArray messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__UInt8MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__UInt8MultiArray__Sequence * -example_interfaces__msg__UInt8MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/UInt8MultiArray messages. -/** - * It calls - * example_interfaces__msg__UInt8MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__UInt8MultiArray__Sequence__destroy(example_interfaces__msg__UInt8MultiArray__Sequence * array); - -/// Check for msg/UInt8MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt8MultiArray__Sequence__are_equal(const example_interfaces__msg__UInt8MultiArray__Sequence * lhs, const example_interfaces__msg__UInt8MultiArray__Sequence * rhs); - -/// Copy an array of msg/UInt8MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__UInt8MultiArray__Sequence__copy( - const example_interfaces__msg__UInt8MultiArray__Sequence * input, - example_interfaces__msg__UInt8MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/u_int8_multi_array__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/u_int8_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 1f549a6f0..000000000 --- a/src/example_interfaces/msg/detail/u_int8_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/UInt8MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, UInt8MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int8_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/u_int8_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ce03e592b..000000000 --- a/src/example_interfaces/msg/detail/u_int8_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/UInt8MultiArray.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__U_INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__UInt8MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__UInt8MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, UInt8MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__U_INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/u_int8_multi_array__struct.h b/src/example_interfaces/msg/detail/u_int8_multi_array__struct.h deleted file mode 100755 index 2a2b4cf44..000000000 --- a/src/example_interfaces/msg/detail/u_int8_multi_array__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/UInt8MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int8_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8_MULTI_ARRAY__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "example_interfaces/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/UInt8MultiArray in the package example_interfaces. -/** - * This is an example of using complex datatypes. - * It is not recommended to use directly. - * To use a similar datastruct please define a custom message with appropriate semantic meaning. - */ -typedef struct example_interfaces__msg__UInt8MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - example_interfaces__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__uint8__Sequence data; -} example_interfaces__msg__UInt8MultiArray; - -// Struct for a sequence of example_interfaces__msg__UInt8MultiArray. -typedef struct example_interfaces__msg__UInt8MultiArray__Sequence -{ - example_interfaces__msg__UInt8MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__UInt8MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8_MULTI_ARRAY__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/u_int8_multi_array__type_support.h b/src/example_interfaces/msg/detail/u_int8_multi_array__type_support.h deleted file mode 100755 index 123bbf9bf..000000000 --- a/src/example_interfaces/msg/detail/u_int8_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/UInt8MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/u_int8_multi_array.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - UInt8MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__U_INT8_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/detail/w_string__functions.h b/src/example_interfaces/msg/detail/w_string__functions.h deleted file mode 100755 index e8d9ca6d3..000000000 --- a/src/example_interfaces/msg/detail/w_string__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:msg/WString.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/w_string.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__W_STRING__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__W_STRING__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/msg/detail/w_string__struct.h" - -/// Initialize msg/WString message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__msg__WString - * )) before or use - * example_interfaces__msg__WString__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__WString__init(example_interfaces__msg__WString * msg); - -/// Finalize msg/WString message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__WString__fini(example_interfaces__msg__WString * msg); - -/// Create msg/WString message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__msg__WString__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__WString * -example_interfaces__msg__WString__create(void); - -/// Destroy msg/WString message. -/** - * It calls - * example_interfaces__msg__WString__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__WString__destroy(example_interfaces__msg__WString * msg); - -/// Check for msg/WString message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__WString__are_equal(const example_interfaces__msg__WString * lhs, const example_interfaces__msg__WString * rhs); - -/// Copy a msg/WString message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__WString__copy( - const example_interfaces__msg__WString * input, - example_interfaces__msg__WString * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__msg__WString__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__msg__WString__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__msg__WString__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__msg__WString__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/WString messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__msg__WString__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__WString__Sequence__init(example_interfaces__msg__WString__Sequence * array, size_t size); - -/// Finalize array of msg/WString messages. -/** - * It calls - * example_interfaces__msg__WString__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__WString__Sequence__fini(example_interfaces__msg__WString__Sequence * array); - -/// Create array of msg/WString messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__msg__WString__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__msg__WString__Sequence * -example_interfaces__msg__WString__Sequence__create(size_t size); - -/// Destroy array of msg/WString messages. -/** - * It calls - * example_interfaces__msg__WString__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__msg__WString__Sequence__destroy(example_interfaces__msg__WString__Sequence * array); - -/// Check for msg/WString message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__WString__Sequence__are_equal(const example_interfaces__msg__WString__Sequence * lhs, const example_interfaces__msg__WString__Sequence * rhs); - -/// Copy an array of msg/WString messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__msg__WString__Sequence__copy( - const example_interfaces__msg__WString__Sequence * input, - example_interfaces__msg__WString__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__W_STRING__FUNCTIONS_H_ diff --git a/src/example_interfaces/msg/detail/w_string__rosidl_typesupport_introspection_c.h b/src/example_interfaces/msg/detail/w_string__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 812c51a96..000000000 --- a/src/example_interfaces/msg/detail/w_string__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:msg/WString.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__W_STRING__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__W_STRING__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, msg, WString)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__W_STRING__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/msg/detail/w_string__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/msg/detail/w_string__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index e45c0274d..000000000 --- a/src/example_interfaces/msg/detail/w_string__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:msg/WString.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__MSG__W_STRING__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__MSG__W_STRING__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__msg__WString( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__msg__WString( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, msg, WString)(); - -#ifdef __cplusplus -} -#endif - - -#endif // EXAMPLE_INTERFACES__MSG__W_STRING__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/msg/detail/w_string__struct.h b/src/example_interfaces/msg/detail/w_string__struct.h deleted file mode 100755 index d45cc19ce..000000000 --- a/src/example_interfaces/msg/detail/w_string__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:msg/WString.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/w_string.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__W_STRING__STRUCT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__W_STRING__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'data' -#include "rosidl_runtime_c/u16string.h" - -/// Struct defined in msg/WString in the package example_interfaces. -/** - * This is an example message of using a primitive datatype, wstring. - * If you want to test with this that's fine, but if you are deploying - * it into a system you should create a semantically meaningful message type. - * If you want to embed it in another message, use the primitive data type instead. - */ -typedef struct example_interfaces__msg__WString -{ - rosidl_runtime_c__U16String data; -} example_interfaces__msg__WString; - -// Struct for a sequence of example_interfaces__msg__WString. -typedef struct example_interfaces__msg__WString__Sequence -{ - example_interfaces__msg__WString * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__msg__WString__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__W_STRING__STRUCT_H_ diff --git a/src/example_interfaces/msg/detail/w_string__type_support.h b/src/example_interfaces/msg/detail/w_string__type_support.h deleted file mode 100755 index 742773edd..000000000 --- a/src/example_interfaces/msg/detail/w_string__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:msg/WString.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/msg/w_string.h" - - -#ifndef EXAMPLE_INTERFACES__MSG__DETAIL__W_STRING__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__MSG__DETAIL__W_STRING__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - msg, - WString -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__DETAIL__W_STRING__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/msg/empty.h b/src/example_interfaces/msg/empty.h deleted file mode 100755 index bc3bc5f5d..000000000 --- a/src/example_interfaces/msg/empty.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Empty.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__EMPTY_H_ -#define EXAMPLE_INTERFACES__MSG__EMPTY_H_ - -#include "example_interfaces/msg/detail/empty__struct.h" -#include "example_interfaces/msg/detail/empty__functions.h" -#include "example_interfaces/msg/detail/empty__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__EMPTY_H_ diff --git a/src/example_interfaces/msg/float32.h b/src/example_interfaces/msg/float32.h deleted file mode 100755 index dafc53e87..000000000 --- a/src/example_interfaces/msg/float32.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Float32.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__FLOAT32_H_ -#define EXAMPLE_INTERFACES__MSG__FLOAT32_H_ - -#include "example_interfaces/msg/detail/float32__struct.h" -#include "example_interfaces/msg/detail/float32__functions.h" -#include "example_interfaces/msg/detail/float32__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__FLOAT32_H_ diff --git a/src/example_interfaces/msg/float32_multi_array.h b/src/example_interfaces/msg/float32_multi_array.h deleted file mode 100755 index d62b054d4..000000000 --- a/src/example_interfaces/msg/float32_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Float32MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__FLOAT32_MULTI_ARRAY_H_ -#define EXAMPLE_INTERFACES__MSG__FLOAT32_MULTI_ARRAY_H_ - -#include "example_interfaces/msg/detail/float32_multi_array__struct.h" -#include "example_interfaces/msg/detail/float32_multi_array__functions.h" -#include "example_interfaces/msg/detail/float32_multi_array__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__FLOAT32_MULTI_ARRAY_H_ diff --git a/src/example_interfaces/msg/float64.h b/src/example_interfaces/msg/float64.h deleted file mode 100755 index d1641ea38..000000000 --- a/src/example_interfaces/msg/float64.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Float64.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__FLOAT64_H_ -#define EXAMPLE_INTERFACES__MSG__FLOAT64_H_ - -#include "example_interfaces/msg/detail/float64__struct.h" -#include "example_interfaces/msg/detail/float64__functions.h" -#include "example_interfaces/msg/detail/float64__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__FLOAT64_H_ diff --git a/src/example_interfaces/msg/float64_multi_array.h b/src/example_interfaces/msg/float64_multi_array.h deleted file mode 100755 index dc3b7a1e4..000000000 --- a/src/example_interfaces/msg/float64_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Float64MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__FLOAT64_MULTI_ARRAY_H_ -#define EXAMPLE_INTERFACES__MSG__FLOAT64_MULTI_ARRAY_H_ - -#include "example_interfaces/msg/detail/float64_multi_array__struct.h" -#include "example_interfaces/msg/detail/float64_multi_array__functions.h" -#include "example_interfaces/msg/detail/float64_multi_array__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__FLOAT64_MULTI_ARRAY_H_ diff --git a/src/example_interfaces/msg/int16.h b/src/example_interfaces/msg/int16.h deleted file mode 100755 index 1d1cd36a9..000000000 --- a/src/example_interfaces/msg/int16.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Int16.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__INT16_H_ -#define EXAMPLE_INTERFACES__MSG__INT16_H_ - -#include "example_interfaces/msg/detail/int16__struct.h" -#include "example_interfaces/msg/detail/int16__functions.h" -#include "example_interfaces/msg/detail/int16__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__INT16_H_ diff --git a/src/example_interfaces/msg/int16_multi_array.h b/src/example_interfaces/msg/int16_multi_array.h deleted file mode 100755 index 5c0c12d11..000000000 --- a/src/example_interfaces/msg/int16_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Int16MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__INT16_MULTI_ARRAY_H_ -#define EXAMPLE_INTERFACES__MSG__INT16_MULTI_ARRAY_H_ - -#include "example_interfaces/msg/detail/int16_multi_array__struct.h" -#include "example_interfaces/msg/detail/int16_multi_array__functions.h" -#include "example_interfaces/msg/detail/int16_multi_array__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__INT16_MULTI_ARRAY_H_ diff --git a/src/example_interfaces/msg/int32.h b/src/example_interfaces/msg/int32.h deleted file mode 100755 index e7cbc2c9c..000000000 --- a/src/example_interfaces/msg/int32.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Int32.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__INT32_H_ -#define EXAMPLE_INTERFACES__MSG__INT32_H_ - -#include "example_interfaces/msg/detail/int32__struct.h" -#include "example_interfaces/msg/detail/int32__functions.h" -#include "example_interfaces/msg/detail/int32__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__INT32_H_ diff --git a/src/example_interfaces/msg/int32_multi_array.h b/src/example_interfaces/msg/int32_multi_array.h deleted file mode 100755 index f5fdc01d3..000000000 --- a/src/example_interfaces/msg/int32_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Int32MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__INT32_MULTI_ARRAY_H_ -#define EXAMPLE_INTERFACES__MSG__INT32_MULTI_ARRAY_H_ - -#include "example_interfaces/msg/detail/int32_multi_array__struct.h" -#include "example_interfaces/msg/detail/int32_multi_array__functions.h" -#include "example_interfaces/msg/detail/int32_multi_array__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__INT32_MULTI_ARRAY_H_ diff --git a/src/example_interfaces/msg/int64.h b/src/example_interfaces/msg/int64.h deleted file mode 100755 index b044a0170..000000000 --- a/src/example_interfaces/msg/int64.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Int64.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__INT64_H_ -#define EXAMPLE_INTERFACES__MSG__INT64_H_ - -#include "example_interfaces/msg/detail/int64__struct.h" -#include "example_interfaces/msg/detail/int64__functions.h" -#include "example_interfaces/msg/detail/int64__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__INT64_H_ diff --git a/src/example_interfaces/msg/int64_multi_array.h b/src/example_interfaces/msg/int64_multi_array.h deleted file mode 100755 index 9bbd39106..000000000 --- a/src/example_interfaces/msg/int64_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Int64MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__INT64_MULTI_ARRAY_H_ -#define EXAMPLE_INTERFACES__MSG__INT64_MULTI_ARRAY_H_ - -#include "example_interfaces/msg/detail/int64_multi_array__struct.h" -#include "example_interfaces/msg/detail/int64_multi_array__functions.h" -#include "example_interfaces/msg/detail/int64_multi_array__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__INT64_MULTI_ARRAY_H_ diff --git a/src/example_interfaces/msg/int8.h b/src/example_interfaces/msg/int8.h deleted file mode 100755 index 9c839cf81..000000000 --- a/src/example_interfaces/msg/int8.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Int8.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__INT8_H_ -#define EXAMPLE_INTERFACES__MSG__INT8_H_ - -#include "example_interfaces/msg/detail/int8__struct.h" -#include "example_interfaces/msg/detail/int8__functions.h" -#include "example_interfaces/msg/detail/int8__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__INT8_H_ diff --git a/src/example_interfaces/msg/int8_multi_array.h b/src/example_interfaces/msg/int8_multi_array.h deleted file mode 100755 index 0702298f0..000000000 --- a/src/example_interfaces/msg/int8_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/Int8MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__INT8_MULTI_ARRAY_H_ -#define EXAMPLE_INTERFACES__MSG__INT8_MULTI_ARRAY_H_ - -#include "example_interfaces/msg/detail/int8_multi_array__struct.h" -#include "example_interfaces/msg/detail/int8_multi_array__functions.h" -#include "example_interfaces/msg/detail/int8_multi_array__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__INT8_MULTI_ARRAY_H_ diff --git a/src/example_interfaces/msg/multi_array_dimension.h b/src/example_interfaces/msg/multi_array_dimension.h deleted file mode 100755 index 858301d06..000000000 --- a/src/example_interfaces/msg/multi_array_dimension.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/MultiArrayDimension.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__MULTI_ARRAY_DIMENSION_H_ -#define EXAMPLE_INTERFACES__MSG__MULTI_ARRAY_DIMENSION_H_ - -#include "example_interfaces/msg/detail/multi_array_dimension__struct.h" -#include "example_interfaces/msg/detail/multi_array_dimension__functions.h" -#include "example_interfaces/msg/detail/multi_array_dimension__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__MULTI_ARRAY_DIMENSION_H_ diff --git a/src/example_interfaces/msg/multi_array_layout.h b/src/example_interfaces/msg/multi_array_layout.h deleted file mode 100755 index d1e0bb123..000000000 --- a/src/example_interfaces/msg/multi_array_layout.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/MultiArrayLayout.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__MULTI_ARRAY_LAYOUT_H_ -#define EXAMPLE_INTERFACES__MSG__MULTI_ARRAY_LAYOUT_H_ - -#include "example_interfaces/msg/detail/multi_array_layout__struct.h" -#include "example_interfaces/msg/detail/multi_array_layout__functions.h" -#include "example_interfaces/msg/detail/multi_array_layout__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__MULTI_ARRAY_LAYOUT_H_ diff --git a/src/example_interfaces/msg/rosidl_generator_c__visibility_control.h b/src/example_interfaces/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 0d0eff6bf..000000000 --- a/src/example_interfaces/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define EXAMPLE_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_example_interfaces __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_example_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_example_interfaces __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_example_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_example_interfaces - #define ROSIDL_GENERATOR_C_PUBLIC_example_interfaces ROSIDL_GENERATOR_C_EXPORT_example_interfaces - #else - #define ROSIDL_GENERATOR_C_PUBLIC_example_interfaces ROSIDL_GENERATOR_C_IMPORT_example_interfaces - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_example_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_example_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_example_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_example_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 8f6ceffde..000000000 --- a/src/example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define EXAMPLE_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_example_interfaces __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_example_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_example_interfaces __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_example_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_example_interfaces - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_example_interfaces - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_example_interfaces - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_example_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_example_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index ef05e0ef6..000000000 --- a/src/example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define EXAMPLE_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_example_interfaces __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_example_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_example_interfaces __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_example_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_example_interfaces - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_example_interfaces - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_example_interfaces - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_example_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_example_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/example_interfaces/msg/string.h b/src/example_interfaces/msg/string.h deleted file mode 100755 index 639c2f6f9..000000000 --- a/src/example_interfaces/msg/string.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/String.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__STRING_H_ -#define EXAMPLE_INTERFACES__MSG__STRING_H_ - -#include "example_interfaces/msg/detail/string__struct.h" -#include "example_interfaces/msg/detail/string__functions.h" -#include "example_interfaces/msg/detail/string__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__STRING_H_ diff --git a/src/example_interfaces/msg/u_int16.h b/src/example_interfaces/msg/u_int16.h deleted file mode 100755 index 219b0ba47..000000000 --- a/src/example_interfaces/msg/u_int16.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/UInt16.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__U_INT16_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT16_H_ - -#include "example_interfaces/msg/detail/u_int16__struct.h" -#include "example_interfaces/msg/detail/u_int16__functions.h" -#include "example_interfaces/msg/detail/u_int16__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__U_INT16_H_ diff --git a/src/example_interfaces/msg/u_int16_multi_array.h b/src/example_interfaces/msg/u_int16_multi_array.h deleted file mode 100755 index d19f062cd..000000000 --- a/src/example_interfaces/msg/u_int16_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/UInt16MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__U_INT16_MULTI_ARRAY_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT16_MULTI_ARRAY_H_ - -#include "example_interfaces/msg/detail/u_int16_multi_array__struct.h" -#include "example_interfaces/msg/detail/u_int16_multi_array__functions.h" -#include "example_interfaces/msg/detail/u_int16_multi_array__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__U_INT16_MULTI_ARRAY_H_ diff --git a/src/example_interfaces/msg/u_int32.h b/src/example_interfaces/msg/u_int32.h deleted file mode 100755 index 5b41f5d68..000000000 --- a/src/example_interfaces/msg/u_int32.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/UInt32.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__U_INT32_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT32_H_ - -#include "example_interfaces/msg/detail/u_int32__struct.h" -#include "example_interfaces/msg/detail/u_int32__functions.h" -#include "example_interfaces/msg/detail/u_int32__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__U_INT32_H_ diff --git a/src/example_interfaces/msg/u_int32_multi_array.h b/src/example_interfaces/msg/u_int32_multi_array.h deleted file mode 100755 index eb69a5bd1..000000000 --- a/src/example_interfaces/msg/u_int32_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/UInt32MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__U_INT32_MULTI_ARRAY_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT32_MULTI_ARRAY_H_ - -#include "example_interfaces/msg/detail/u_int32_multi_array__struct.h" -#include "example_interfaces/msg/detail/u_int32_multi_array__functions.h" -#include "example_interfaces/msg/detail/u_int32_multi_array__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__U_INT32_MULTI_ARRAY_H_ diff --git a/src/example_interfaces/msg/u_int64.h b/src/example_interfaces/msg/u_int64.h deleted file mode 100755 index 09257f870..000000000 --- a/src/example_interfaces/msg/u_int64.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/UInt64.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__U_INT64_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT64_H_ - -#include "example_interfaces/msg/detail/u_int64__struct.h" -#include "example_interfaces/msg/detail/u_int64__functions.h" -#include "example_interfaces/msg/detail/u_int64__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__U_INT64_H_ diff --git a/src/example_interfaces/msg/u_int64_multi_array.h b/src/example_interfaces/msg/u_int64_multi_array.h deleted file mode 100755 index ba288551e..000000000 --- a/src/example_interfaces/msg/u_int64_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/UInt64MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__U_INT64_MULTI_ARRAY_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT64_MULTI_ARRAY_H_ - -#include "example_interfaces/msg/detail/u_int64_multi_array__struct.h" -#include "example_interfaces/msg/detail/u_int64_multi_array__functions.h" -#include "example_interfaces/msg/detail/u_int64_multi_array__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__U_INT64_MULTI_ARRAY_H_ diff --git a/src/example_interfaces/msg/u_int8.h b/src/example_interfaces/msg/u_int8.h deleted file mode 100755 index 7f4b80802..000000000 --- a/src/example_interfaces/msg/u_int8.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/UInt8.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__U_INT8_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT8_H_ - -#include "example_interfaces/msg/detail/u_int8__struct.h" -#include "example_interfaces/msg/detail/u_int8__functions.h" -#include "example_interfaces/msg/detail/u_int8__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__U_INT8_H_ diff --git a/src/example_interfaces/msg/u_int8_multi_array.h b/src/example_interfaces/msg/u_int8_multi_array.h deleted file mode 100755 index 709c287b7..000000000 --- a/src/example_interfaces/msg/u_int8_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/UInt8MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__U_INT8_MULTI_ARRAY_H_ -#define EXAMPLE_INTERFACES__MSG__U_INT8_MULTI_ARRAY_H_ - -#include "example_interfaces/msg/detail/u_int8_multi_array__struct.h" -#include "example_interfaces/msg/detail/u_int8_multi_array__functions.h" -#include "example_interfaces/msg/detail/u_int8_multi_array__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__U_INT8_MULTI_ARRAY_H_ diff --git a/src/example_interfaces/msg/w_string.h b/src/example_interfaces/msg/w_string.h deleted file mode 100755 index 563804a05..000000000 --- a/src/example_interfaces/msg/w_string.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:msg/WString.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__MSG__W_STRING_H_ -#define EXAMPLE_INTERFACES__MSG__W_STRING_H_ - -#include "example_interfaces/msg/detail/w_string__struct.h" -#include "example_interfaces/msg/detail/w_string__functions.h" -#include "example_interfaces/msg/detail/w_string__type_support.h" - -#endif // EXAMPLE_INTERFACES__MSG__W_STRING_H_ diff --git a/src/example_interfaces/srv/add_two_ints.h b/src/example_interfaces/srv/add_two_ints.h deleted file mode 100755 index 9a53136f6..000000000 --- a/src/example_interfaces/srv/add_two_ints.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:srv/AddTwoInts.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__SRV__ADD_TWO_INTS_H_ -#define EXAMPLE_INTERFACES__SRV__ADD_TWO_INTS_H_ - -#include "example_interfaces/srv/detail/add_two_ints__struct.h" -#include "example_interfaces/srv/detail/add_two_ints__functions.h" -#include "example_interfaces/srv/detail/add_two_ints__type_support.h" - -#endif // EXAMPLE_INTERFACES__SRV__ADD_TWO_INTS_H_ diff --git a/src/example_interfaces/srv/detail/add_two_ints__functions.h b/src/example_interfaces/srv/detail/add_two_ints__functions.h deleted file mode 100755 index 28069297c..000000000 --- a/src/example_interfaces/srv/detail/add_two_ints__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:srv/AddTwoInts.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/srv/add_two_ints.h" - - -#ifndef EXAMPLE_INTERFACES__SRV__DETAIL__ADD_TWO_INTS__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__SRV__DETAIL__ADD_TWO_INTS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/srv/detail/add_two_ints__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__srv__AddTwoInts__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__srv__AddTwoInts__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__srv__AddTwoInts__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__srv__AddTwoInts__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/AddTwoInts message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__srv__AddTwoInts_Request - * )) before or use - * example_interfaces__srv__AddTwoInts_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Request__init(example_interfaces__srv__AddTwoInts_Request * msg); - -/// Finalize srv/AddTwoInts message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__AddTwoInts_Request__fini(example_interfaces__srv__AddTwoInts_Request * msg); - -/// Create srv/AddTwoInts message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__srv__AddTwoInts_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__AddTwoInts_Request * -example_interfaces__srv__AddTwoInts_Request__create(void); - -/// Destroy srv/AddTwoInts message. -/** - * It calls - * example_interfaces__srv__AddTwoInts_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__AddTwoInts_Request__destroy(example_interfaces__srv__AddTwoInts_Request * msg); - -/// Check for srv/AddTwoInts message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Request__are_equal(const example_interfaces__srv__AddTwoInts_Request * lhs, const example_interfaces__srv__AddTwoInts_Request * rhs); - -/// Copy a srv/AddTwoInts message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Request__copy( - const example_interfaces__srv__AddTwoInts_Request * input, - example_interfaces__srv__AddTwoInts_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__srv__AddTwoInts_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__srv__AddTwoInts_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__srv__AddTwoInts_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__srv__AddTwoInts_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/AddTwoInts messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__srv__AddTwoInts_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Request__Sequence__init(example_interfaces__srv__AddTwoInts_Request__Sequence * array, size_t size); - -/// Finalize array of srv/AddTwoInts messages. -/** - * It calls - * example_interfaces__srv__AddTwoInts_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__AddTwoInts_Request__Sequence__fini(example_interfaces__srv__AddTwoInts_Request__Sequence * array); - -/// Create array of srv/AddTwoInts messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__srv__AddTwoInts_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__AddTwoInts_Request__Sequence * -example_interfaces__srv__AddTwoInts_Request__Sequence__create(size_t size); - -/// Destroy array of srv/AddTwoInts messages. -/** - * It calls - * example_interfaces__srv__AddTwoInts_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__AddTwoInts_Request__Sequence__destroy(example_interfaces__srv__AddTwoInts_Request__Sequence * array); - -/// Check for srv/AddTwoInts message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Request__Sequence__are_equal(const example_interfaces__srv__AddTwoInts_Request__Sequence * lhs, const example_interfaces__srv__AddTwoInts_Request__Sequence * rhs); - -/// Copy an array of srv/AddTwoInts messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Request__Sequence__copy( - const example_interfaces__srv__AddTwoInts_Request__Sequence * input, - example_interfaces__srv__AddTwoInts_Request__Sequence * output); - -/// Initialize srv/AddTwoInts message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__srv__AddTwoInts_Response - * )) before or use - * example_interfaces__srv__AddTwoInts_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Response__init(example_interfaces__srv__AddTwoInts_Response * msg); - -/// Finalize srv/AddTwoInts message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__AddTwoInts_Response__fini(example_interfaces__srv__AddTwoInts_Response * msg); - -/// Create srv/AddTwoInts message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__srv__AddTwoInts_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__AddTwoInts_Response * -example_interfaces__srv__AddTwoInts_Response__create(void); - -/// Destroy srv/AddTwoInts message. -/** - * It calls - * example_interfaces__srv__AddTwoInts_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__AddTwoInts_Response__destroy(example_interfaces__srv__AddTwoInts_Response * msg); - -/// Check for srv/AddTwoInts message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Response__are_equal(const example_interfaces__srv__AddTwoInts_Response * lhs, const example_interfaces__srv__AddTwoInts_Response * rhs); - -/// Copy a srv/AddTwoInts message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Response__copy( - const example_interfaces__srv__AddTwoInts_Response * input, - example_interfaces__srv__AddTwoInts_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__srv__AddTwoInts_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__srv__AddTwoInts_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__srv__AddTwoInts_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__srv__AddTwoInts_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/AddTwoInts messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__srv__AddTwoInts_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Response__Sequence__init(example_interfaces__srv__AddTwoInts_Response__Sequence * array, size_t size); - -/// Finalize array of srv/AddTwoInts messages. -/** - * It calls - * example_interfaces__srv__AddTwoInts_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__AddTwoInts_Response__Sequence__fini(example_interfaces__srv__AddTwoInts_Response__Sequence * array); - -/// Create array of srv/AddTwoInts messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__srv__AddTwoInts_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__AddTwoInts_Response__Sequence * -example_interfaces__srv__AddTwoInts_Response__Sequence__create(size_t size); - -/// Destroy array of srv/AddTwoInts messages. -/** - * It calls - * example_interfaces__srv__AddTwoInts_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__AddTwoInts_Response__Sequence__destroy(example_interfaces__srv__AddTwoInts_Response__Sequence * array); - -/// Check for srv/AddTwoInts message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Response__Sequence__are_equal(const example_interfaces__srv__AddTwoInts_Response__Sequence * lhs, const example_interfaces__srv__AddTwoInts_Response__Sequence * rhs); - -/// Copy an array of srv/AddTwoInts messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Response__Sequence__copy( - const example_interfaces__srv__AddTwoInts_Response__Sequence * input, - example_interfaces__srv__AddTwoInts_Response__Sequence * output); - -/// Initialize srv/AddTwoInts message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__srv__AddTwoInts_Event - * )) before or use - * example_interfaces__srv__AddTwoInts_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Event__init(example_interfaces__srv__AddTwoInts_Event * msg); - -/// Finalize srv/AddTwoInts message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__AddTwoInts_Event__fini(example_interfaces__srv__AddTwoInts_Event * msg); - -/// Create srv/AddTwoInts message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__srv__AddTwoInts_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__AddTwoInts_Event * -example_interfaces__srv__AddTwoInts_Event__create(void); - -/// Destroy srv/AddTwoInts message. -/** - * It calls - * example_interfaces__srv__AddTwoInts_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__AddTwoInts_Event__destroy(example_interfaces__srv__AddTwoInts_Event * msg); - -/// Check for srv/AddTwoInts message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Event__are_equal(const example_interfaces__srv__AddTwoInts_Event * lhs, const example_interfaces__srv__AddTwoInts_Event * rhs); - -/// Copy a srv/AddTwoInts message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Event__copy( - const example_interfaces__srv__AddTwoInts_Event * input, - example_interfaces__srv__AddTwoInts_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__srv__AddTwoInts_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__srv__AddTwoInts_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__srv__AddTwoInts_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__srv__AddTwoInts_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/AddTwoInts messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__srv__AddTwoInts_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Event__Sequence__init(example_interfaces__srv__AddTwoInts_Event__Sequence * array, size_t size); - -/// Finalize array of srv/AddTwoInts messages. -/** - * It calls - * example_interfaces__srv__AddTwoInts_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__AddTwoInts_Event__Sequence__fini(example_interfaces__srv__AddTwoInts_Event__Sequence * array); - -/// Create array of srv/AddTwoInts messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__srv__AddTwoInts_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__AddTwoInts_Event__Sequence * -example_interfaces__srv__AddTwoInts_Event__Sequence__create(size_t size); - -/// Destroy array of srv/AddTwoInts messages. -/** - * It calls - * example_interfaces__srv__AddTwoInts_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__AddTwoInts_Event__Sequence__destroy(example_interfaces__srv__AddTwoInts_Event__Sequence * array); - -/// Check for srv/AddTwoInts message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Event__Sequence__are_equal(const example_interfaces__srv__AddTwoInts_Event__Sequence * lhs, const example_interfaces__srv__AddTwoInts_Event__Sequence * rhs); - -/// Copy an array of srv/AddTwoInts messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__AddTwoInts_Event__Sequence__copy( - const example_interfaces__srv__AddTwoInts_Event__Sequence * input, - example_interfaces__srv__AddTwoInts_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__DETAIL__ADD_TWO_INTS__FUNCTIONS_H_ diff --git a/src/example_interfaces/srv/detail/add_two_ints__rosidl_typesupport_introspection_c.h b/src/example_interfaces/srv/detail/add_two_ints__rosidl_typesupport_introspection_c.h deleted file mode 100755 index b14c9a292..000000000 --- a/src/example_interfaces/srv/detail/add_two_ints__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:srv/AddTwoInts.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__SRV__DETAIL__ADD_TWO_INTS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__SRV__DETAIL__ADD_TWO_INTS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, srv, AddTwoInts_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, srv, AddTwoInts_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, srv, AddTwoInts_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, srv, AddTwoInts)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__DETAIL__ADD_TWO_INTS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/srv/detail/add_two_ints__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/srv/detail/add_two_ints__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a09f40610..000000000 --- a/src/example_interfaces/srv/detail/add_two_ints__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:srv/AddTwoInts.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__SRV__ADD_TWO_INTS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__SRV__ADD_TWO_INTS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__srv__AddTwoInts_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__srv__AddTwoInts_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, srv, AddTwoInts_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__srv__AddTwoInts_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__srv__AddTwoInts_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, srv, AddTwoInts_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__srv__AddTwoInts_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__srv__AddTwoInts_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, srv, AddTwoInts_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, srv, AddTwoInts)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__ADD_TWO_INTS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/srv/detail/add_two_ints__struct.h b/src/example_interfaces/srv/detail/add_two_ints__struct.h deleted file mode 100755 index ea50ca487..000000000 --- a/src/example_interfaces/srv/detail/add_two_ints__struct.h +++ /dev/null @@ -1,98 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:srv/AddTwoInts.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/srv/add_two_ints.h" - - -#ifndef EXAMPLE_INTERFACES__SRV__DETAIL__ADD_TWO_INTS__STRUCT_H_ -#define EXAMPLE_INTERFACES__SRV__DETAIL__ADD_TWO_INTS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/AddTwoInts in the package example_interfaces. -typedef struct example_interfaces__srv__AddTwoInts_Request -{ - int64_t a; - int64_t b; -} example_interfaces__srv__AddTwoInts_Request; - -// Struct for a sequence of example_interfaces__srv__AddTwoInts_Request. -typedef struct example_interfaces__srv__AddTwoInts_Request__Sequence -{ - example_interfaces__srv__AddTwoInts_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__srv__AddTwoInts_Request__Sequence; - -// Constants defined in the message - -/// Struct defined in srv/AddTwoInts in the package example_interfaces. -typedef struct example_interfaces__srv__AddTwoInts_Response -{ - int64_t sum; -} example_interfaces__srv__AddTwoInts_Response; - -// Struct for a sequence of example_interfaces__srv__AddTwoInts_Response. -typedef struct example_interfaces__srv__AddTwoInts_Response__Sequence -{ - example_interfaces__srv__AddTwoInts_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__srv__AddTwoInts_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - example_interfaces__srv__AddTwoInts_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - example_interfaces__srv__AddTwoInts_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/AddTwoInts in the package example_interfaces. -typedef struct example_interfaces__srv__AddTwoInts_Event -{ - service_msgs__msg__ServiceEventInfo info; - example_interfaces__srv__AddTwoInts_Request__Sequence request; - example_interfaces__srv__AddTwoInts_Response__Sequence response; -} example_interfaces__srv__AddTwoInts_Event; - -// Struct for a sequence of example_interfaces__srv__AddTwoInts_Event. -typedef struct example_interfaces__srv__AddTwoInts_Event__Sequence -{ - example_interfaces__srv__AddTwoInts_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__srv__AddTwoInts_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__DETAIL__ADD_TWO_INTS__STRUCT_H_ diff --git a/src/example_interfaces/srv/detail/add_two_ints__type_support.h b/src/example_interfaces/srv/detail/add_two_ints__type_support.h deleted file mode 100755 index 5f081b7b2..000000000 --- a/src/example_interfaces/srv/detail/add_two_ints__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:srv/AddTwoInts.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/srv/add_two_ints.h" - - -#ifndef EXAMPLE_INTERFACES__SRV__DETAIL__ADD_TWO_INTS__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__SRV__DETAIL__ADD_TWO_INTS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - AddTwoInts_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - AddTwoInts_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - AddTwoInts_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - AddTwoInts -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - AddTwoInts -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - AddTwoInts -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__DETAIL__ADD_TWO_INTS__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/srv/detail/set_bool__functions.h b/src/example_interfaces/srv/detail/set_bool__functions.h deleted file mode 100755 index cf493e627..000000000 --- a/src/example_interfaces/srv/detail/set_bool__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:srv/SetBool.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/srv/set_bool.h" - - -#ifndef EXAMPLE_INTERFACES__SRV__DETAIL__SET_BOOL__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__SRV__DETAIL__SET_BOOL__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/srv/detail/set_bool__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__srv__SetBool__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__srv__SetBool__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__srv__SetBool__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__srv__SetBool__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/SetBool message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__srv__SetBool_Request - * )) before or use - * example_interfaces__srv__SetBool_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Request__init(example_interfaces__srv__SetBool_Request * msg); - -/// Finalize srv/SetBool message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__SetBool_Request__fini(example_interfaces__srv__SetBool_Request * msg); - -/// Create srv/SetBool message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__srv__SetBool_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__SetBool_Request * -example_interfaces__srv__SetBool_Request__create(void); - -/// Destroy srv/SetBool message. -/** - * It calls - * example_interfaces__srv__SetBool_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__SetBool_Request__destroy(example_interfaces__srv__SetBool_Request * msg); - -/// Check for srv/SetBool message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Request__are_equal(const example_interfaces__srv__SetBool_Request * lhs, const example_interfaces__srv__SetBool_Request * rhs); - -/// Copy a srv/SetBool message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Request__copy( - const example_interfaces__srv__SetBool_Request * input, - example_interfaces__srv__SetBool_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__srv__SetBool_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__srv__SetBool_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__srv__SetBool_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__srv__SetBool_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetBool messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__srv__SetBool_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Request__Sequence__init(example_interfaces__srv__SetBool_Request__Sequence * array, size_t size); - -/// Finalize array of srv/SetBool messages. -/** - * It calls - * example_interfaces__srv__SetBool_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__SetBool_Request__Sequence__fini(example_interfaces__srv__SetBool_Request__Sequence * array); - -/// Create array of srv/SetBool messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__srv__SetBool_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__SetBool_Request__Sequence * -example_interfaces__srv__SetBool_Request__Sequence__create(size_t size); - -/// Destroy array of srv/SetBool messages. -/** - * It calls - * example_interfaces__srv__SetBool_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__SetBool_Request__Sequence__destroy(example_interfaces__srv__SetBool_Request__Sequence * array); - -/// Check for srv/SetBool message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Request__Sequence__are_equal(const example_interfaces__srv__SetBool_Request__Sequence * lhs, const example_interfaces__srv__SetBool_Request__Sequence * rhs); - -/// Copy an array of srv/SetBool messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Request__Sequence__copy( - const example_interfaces__srv__SetBool_Request__Sequence * input, - example_interfaces__srv__SetBool_Request__Sequence * output); - -/// Initialize srv/SetBool message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__srv__SetBool_Response - * )) before or use - * example_interfaces__srv__SetBool_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Response__init(example_interfaces__srv__SetBool_Response * msg); - -/// Finalize srv/SetBool message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__SetBool_Response__fini(example_interfaces__srv__SetBool_Response * msg); - -/// Create srv/SetBool message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__srv__SetBool_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__SetBool_Response * -example_interfaces__srv__SetBool_Response__create(void); - -/// Destroy srv/SetBool message. -/** - * It calls - * example_interfaces__srv__SetBool_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__SetBool_Response__destroy(example_interfaces__srv__SetBool_Response * msg); - -/// Check for srv/SetBool message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Response__are_equal(const example_interfaces__srv__SetBool_Response * lhs, const example_interfaces__srv__SetBool_Response * rhs); - -/// Copy a srv/SetBool message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Response__copy( - const example_interfaces__srv__SetBool_Response * input, - example_interfaces__srv__SetBool_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__srv__SetBool_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__srv__SetBool_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__srv__SetBool_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__srv__SetBool_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetBool messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__srv__SetBool_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Response__Sequence__init(example_interfaces__srv__SetBool_Response__Sequence * array, size_t size); - -/// Finalize array of srv/SetBool messages. -/** - * It calls - * example_interfaces__srv__SetBool_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__SetBool_Response__Sequence__fini(example_interfaces__srv__SetBool_Response__Sequence * array); - -/// Create array of srv/SetBool messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__srv__SetBool_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__SetBool_Response__Sequence * -example_interfaces__srv__SetBool_Response__Sequence__create(size_t size); - -/// Destroy array of srv/SetBool messages. -/** - * It calls - * example_interfaces__srv__SetBool_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__SetBool_Response__Sequence__destroy(example_interfaces__srv__SetBool_Response__Sequence * array); - -/// Check for srv/SetBool message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Response__Sequence__are_equal(const example_interfaces__srv__SetBool_Response__Sequence * lhs, const example_interfaces__srv__SetBool_Response__Sequence * rhs); - -/// Copy an array of srv/SetBool messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Response__Sequence__copy( - const example_interfaces__srv__SetBool_Response__Sequence * input, - example_interfaces__srv__SetBool_Response__Sequence * output); - -/// Initialize srv/SetBool message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__srv__SetBool_Event - * )) before or use - * example_interfaces__srv__SetBool_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Event__init(example_interfaces__srv__SetBool_Event * msg); - -/// Finalize srv/SetBool message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__SetBool_Event__fini(example_interfaces__srv__SetBool_Event * msg); - -/// Create srv/SetBool message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__srv__SetBool_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__SetBool_Event * -example_interfaces__srv__SetBool_Event__create(void); - -/// Destroy srv/SetBool message. -/** - * It calls - * example_interfaces__srv__SetBool_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__SetBool_Event__destroy(example_interfaces__srv__SetBool_Event * msg); - -/// Check for srv/SetBool message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Event__are_equal(const example_interfaces__srv__SetBool_Event * lhs, const example_interfaces__srv__SetBool_Event * rhs); - -/// Copy a srv/SetBool message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Event__copy( - const example_interfaces__srv__SetBool_Event * input, - example_interfaces__srv__SetBool_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__srv__SetBool_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__srv__SetBool_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__srv__SetBool_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__srv__SetBool_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetBool messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__srv__SetBool_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Event__Sequence__init(example_interfaces__srv__SetBool_Event__Sequence * array, size_t size); - -/// Finalize array of srv/SetBool messages. -/** - * It calls - * example_interfaces__srv__SetBool_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__SetBool_Event__Sequence__fini(example_interfaces__srv__SetBool_Event__Sequence * array); - -/// Create array of srv/SetBool messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__srv__SetBool_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__SetBool_Event__Sequence * -example_interfaces__srv__SetBool_Event__Sequence__create(size_t size); - -/// Destroy array of srv/SetBool messages. -/** - * It calls - * example_interfaces__srv__SetBool_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__SetBool_Event__Sequence__destroy(example_interfaces__srv__SetBool_Event__Sequence * array); - -/// Check for srv/SetBool message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Event__Sequence__are_equal(const example_interfaces__srv__SetBool_Event__Sequence * lhs, const example_interfaces__srv__SetBool_Event__Sequence * rhs); - -/// Copy an array of srv/SetBool messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__SetBool_Event__Sequence__copy( - const example_interfaces__srv__SetBool_Event__Sequence * input, - example_interfaces__srv__SetBool_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__DETAIL__SET_BOOL__FUNCTIONS_H_ diff --git a/src/example_interfaces/srv/detail/set_bool__rosidl_typesupport_introspection_c.h b/src/example_interfaces/srv/detail/set_bool__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 62e624d84..000000000 --- a/src/example_interfaces/srv/detail/set_bool__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:srv/SetBool.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__SRV__DETAIL__SET_BOOL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__SRV__DETAIL__SET_BOOL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, srv, SetBool_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, srv, SetBool_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, srv, SetBool_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, srv, SetBool)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__DETAIL__SET_BOOL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/srv/detail/set_bool__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/srv/detail/set_bool__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index eef3ee29b..000000000 --- a/src/example_interfaces/srv/detail/set_bool__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:srv/SetBool.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__SRV__SET_BOOL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__SRV__SET_BOOL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__srv__SetBool_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__srv__SetBool_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, srv, SetBool_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__srv__SetBool_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__srv__SetBool_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, srv, SetBool_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__srv__SetBool_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__srv__SetBool_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, srv, SetBool_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, srv, SetBool)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__SET_BOOL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/srv/detail/set_bool__struct.h b/src/example_interfaces/srv/detail/set_bool__struct.h deleted file mode 100755 index ac0427315..000000000 --- a/src/example_interfaces/srv/detail/set_bool__struct.h +++ /dev/null @@ -1,105 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:srv/SetBool.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/srv/set_bool.h" - - -#ifndef EXAMPLE_INTERFACES__SRV__DETAIL__SET_BOOL__STRUCT_H_ -#define EXAMPLE_INTERFACES__SRV__DETAIL__SET_BOOL__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/SetBool in the package example_interfaces. -typedef struct example_interfaces__srv__SetBool_Request -{ - /// e.g. for hardware enabling / disabling - bool data; -} example_interfaces__srv__SetBool_Request; - -// Struct for a sequence of example_interfaces__srv__SetBool_Request. -typedef struct example_interfaces__srv__SetBool_Request__Sequence -{ - example_interfaces__srv__SetBool_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__srv__SetBool_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'message' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/SetBool in the package example_interfaces. -typedef struct example_interfaces__srv__SetBool_Response -{ - /// indicate successful run of triggered service - bool success; - /// informational, e.g. for error messages - rosidl_runtime_c__String message; -} example_interfaces__srv__SetBool_Response; - -// Struct for a sequence of example_interfaces__srv__SetBool_Response. -typedef struct example_interfaces__srv__SetBool_Response__Sequence -{ - example_interfaces__srv__SetBool_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__srv__SetBool_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - example_interfaces__srv__SetBool_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - example_interfaces__srv__SetBool_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/SetBool in the package example_interfaces. -typedef struct example_interfaces__srv__SetBool_Event -{ - service_msgs__msg__ServiceEventInfo info; - example_interfaces__srv__SetBool_Request__Sequence request; - example_interfaces__srv__SetBool_Response__Sequence response; -} example_interfaces__srv__SetBool_Event; - -// Struct for a sequence of example_interfaces__srv__SetBool_Event. -typedef struct example_interfaces__srv__SetBool_Event__Sequence -{ - example_interfaces__srv__SetBool_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__srv__SetBool_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__DETAIL__SET_BOOL__STRUCT_H_ diff --git a/src/example_interfaces/srv/detail/set_bool__type_support.h b/src/example_interfaces/srv/detail/set_bool__type_support.h deleted file mode 100755 index 7afb84feb..000000000 --- a/src/example_interfaces/srv/detail/set_bool__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:srv/SetBool.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/srv/set_bool.h" - - -#ifndef EXAMPLE_INTERFACES__SRV__DETAIL__SET_BOOL__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__SRV__DETAIL__SET_BOOL__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - SetBool_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - SetBool_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - SetBool_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - SetBool -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - SetBool -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - SetBool -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__DETAIL__SET_BOOL__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/srv/detail/trigger__functions.h b/src/example_interfaces/srv/detail/trigger__functions.h deleted file mode 100755 index 58c93715e..000000000 --- a/src/example_interfaces/srv/detail/trigger__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from example_interfaces:srv/Trigger.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/srv/trigger.h" - - -#ifndef EXAMPLE_INTERFACES__SRV__DETAIL__TRIGGER__FUNCTIONS_H_ -#define EXAMPLE_INTERFACES__SRV__DETAIL__TRIGGER__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "example_interfaces/srv/detail/trigger__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__srv__Trigger__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__srv__Trigger__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__srv__Trigger__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__srv__Trigger__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/Trigger message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__srv__Trigger_Request - * )) before or use - * example_interfaces__srv__Trigger_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Request__init(example_interfaces__srv__Trigger_Request * msg); - -/// Finalize srv/Trigger message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__Trigger_Request__fini(example_interfaces__srv__Trigger_Request * msg); - -/// Create srv/Trigger message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__srv__Trigger_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__Trigger_Request * -example_interfaces__srv__Trigger_Request__create(void); - -/// Destroy srv/Trigger message. -/** - * It calls - * example_interfaces__srv__Trigger_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__Trigger_Request__destroy(example_interfaces__srv__Trigger_Request * msg); - -/// Check for srv/Trigger message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Request__are_equal(const example_interfaces__srv__Trigger_Request * lhs, const example_interfaces__srv__Trigger_Request * rhs); - -/// Copy a srv/Trigger message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Request__copy( - const example_interfaces__srv__Trigger_Request * input, - example_interfaces__srv__Trigger_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__srv__Trigger_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__srv__Trigger_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__srv__Trigger_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__srv__Trigger_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Trigger messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__srv__Trigger_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Request__Sequence__init(example_interfaces__srv__Trigger_Request__Sequence * array, size_t size); - -/// Finalize array of srv/Trigger messages. -/** - * It calls - * example_interfaces__srv__Trigger_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__Trigger_Request__Sequence__fini(example_interfaces__srv__Trigger_Request__Sequence * array); - -/// Create array of srv/Trigger messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__srv__Trigger_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__Trigger_Request__Sequence * -example_interfaces__srv__Trigger_Request__Sequence__create(size_t size); - -/// Destroy array of srv/Trigger messages. -/** - * It calls - * example_interfaces__srv__Trigger_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__Trigger_Request__Sequence__destroy(example_interfaces__srv__Trigger_Request__Sequence * array); - -/// Check for srv/Trigger message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Request__Sequence__are_equal(const example_interfaces__srv__Trigger_Request__Sequence * lhs, const example_interfaces__srv__Trigger_Request__Sequence * rhs); - -/// Copy an array of srv/Trigger messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Request__Sequence__copy( - const example_interfaces__srv__Trigger_Request__Sequence * input, - example_interfaces__srv__Trigger_Request__Sequence * output); - -/// Initialize srv/Trigger message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__srv__Trigger_Response - * )) before or use - * example_interfaces__srv__Trigger_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Response__init(example_interfaces__srv__Trigger_Response * msg); - -/// Finalize srv/Trigger message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__Trigger_Response__fini(example_interfaces__srv__Trigger_Response * msg); - -/// Create srv/Trigger message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__srv__Trigger_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__Trigger_Response * -example_interfaces__srv__Trigger_Response__create(void); - -/// Destroy srv/Trigger message. -/** - * It calls - * example_interfaces__srv__Trigger_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__Trigger_Response__destroy(example_interfaces__srv__Trigger_Response * msg); - -/// Check for srv/Trigger message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Response__are_equal(const example_interfaces__srv__Trigger_Response * lhs, const example_interfaces__srv__Trigger_Response * rhs); - -/// Copy a srv/Trigger message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Response__copy( - const example_interfaces__srv__Trigger_Response * input, - example_interfaces__srv__Trigger_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__srv__Trigger_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__srv__Trigger_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__srv__Trigger_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__srv__Trigger_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Trigger messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__srv__Trigger_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Response__Sequence__init(example_interfaces__srv__Trigger_Response__Sequence * array, size_t size); - -/// Finalize array of srv/Trigger messages. -/** - * It calls - * example_interfaces__srv__Trigger_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__Trigger_Response__Sequence__fini(example_interfaces__srv__Trigger_Response__Sequence * array); - -/// Create array of srv/Trigger messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__srv__Trigger_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__Trigger_Response__Sequence * -example_interfaces__srv__Trigger_Response__Sequence__create(size_t size); - -/// Destroy array of srv/Trigger messages. -/** - * It calls - * example_interfaces__srv__Trigger_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__Trigger_Response__Sequence__destroy(example_interfaces__srv__Trigger_Response__Sequence * array); - -/// Check for srv/Trigger message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Response__Sequence__are_equal(const example_interfaces__srv__Trigger_Response__Sequence * lhs, const example_interfaces__srv__Trigger_Response__Sequence * rhs); - -/// Copy an array of srv/Trigger messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Response__Sequence__copy( - const example_interfaces__srv__Trigger_Response__Sequence * input, - example_interfaces__srv__Trigger_Response__Sequence * output); - -/// Initialize srv/Trigger message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * example_interfaces__srv__Trigger_Event - * )) before or use - * example_interfaces__srv__Trigger_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Event__init(example_interfaces__srv__Trigger_Event * msg); - -/// Finalize srv/Trigger message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__Trigger_Event__fini(example_interfaces__srv__Trigger_Event * msg); - -/// Create srv/Trigger message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * example_interfaces__srv__Trigger_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__Trigger_Event * -example_interfaces__srv__Trigger_Event__create(void); - -/// Destroy srv/Trigger message. -/** - * It calls - * example_interfaces__srv__Trigger_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__Trigger_Event__destroy(example_interfaces__srv__Trigger_Event * msg); - -/// Check for srv/Trigger message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Event__are_equal(const example_interfaces__srv__Trigger_Event * lhs, const example_interfaces__srv__Trigger_Event * rhs); - -/// Copy a srv/Trigger message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Event__copy( - const example_interfaces__srv__Trigger_Event * input, - example_interfaces__srv__Trigger_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_type_hash_t * -example_interfaces__srv__Trigger_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -example_interfaces__srv__Trigger_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource * -example_interfaces__srv__Trigger_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -example_interfaces__srv__Trigger_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Trigger messages. -/** - * It allocates the memory for the number of elements and calls - * example_interfaces__srv__Trigger_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Event__Sequence__init(example_interfaces__srv__Trigger_Event__Sequence * array, size_t size); - -/// Finalize array of srv/Trigger messages. -/** - * It calls - * example_interfaces__srv__Trigger_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__Trigger_Event__Sequence__fini(example_interfaces__srv__Trigger_Event__Sequence * array); - -/// Create array of srv/Trigger messages. -/** - * It allocates the memory for the array and calls - * example_interfaces__srv__Trigger_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -example_interfaces__srv__Trigger_Event__Sequence * -example_interfaces__srv__Trigger_Event__Sequence__create(size_t size); - -/// Destroy array of srv/Trigger messages. -/** - * It calls - * example_interfaces__srv__Trigger_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void -example_interfaces__srv__Trigger_Event__Sequence__destroy(example_interfaces__srv__Trigger_Event__Sequence * array); - -/// Check for srv/Trigger message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Event__Sequence__are_equal(const example_interfaces__srv__Trigger_Event__Sequence * lhs, const example_interfaces__srv__Trigger_Event__Sequence * rhs); - -/// Copy an array of srv/Trigger messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -example_interfaces__srv__Trigger_Event__Sequence__copy( - const example_interfaces__srv__Trigger_Event__Sequence * input, - example_interfaces__srv__Trigger_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__DETAIL__TRIGGER__FUNCTIONS_H_ diff --git a/src/example_interfaces/srv/detail/trigger__rosidl_typesupport_introspection_c.h b/src/example_interfaces/srv/detail/trigger__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 354af1ac9..000000000 --- a/src/example_interfaces/srv/detail/trigger__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from example_interfaces:srv/Trigger.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__SRV__DETAIL__TRIGGER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define EXAMPLE_INTERFACES__SRV__DETAIL__TRIGGER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, srv, Trigger_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, srv, Trigger_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, srv, Trigger_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, example_interfaces, srv, Trigger)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__DETAIL__TRIGGER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/example_interfaces/srv/detail/trigger__rosidl_typesupport_microxrcedds_c.h b/src/example_interfaces/srv/detail/trigger__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index d2962b804..000000000 --- a/src/example_interfaces/srv/detail/trigger__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from example_interfaces:srv/Trigger.idl -// generated code does not contain a copyright notice -#ifndef EXAMPLE_INTERFACES__SRV__TRIGGER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define EXAMPLE_INTERFACES__SRV__TRIGGER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__srv__Trigger_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__srv__Trigger_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, srv, Trigger_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__srv__Trigger_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__srv__Trigger_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, srv, Trigger_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t get_serialized_size_example_interfaces__srv__Trigger_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -size_t max_serialized_size_example_interfaces__srv__Trigger_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, srv, Trigger_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "example_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, example_interfaces, srv, Trigger)(); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__TRIGGER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/example_interfaces/srv/detail/trigger__struct.h b/src/example_interfaces/srv/detail/trigger__struct.h deleted file mode 100755 index b532b3b0f..000000000 --- a/src/example_interfaces/srv/detail/trigger__struct.h +++ /dev/null @@ -1,104 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from example_interfaces:srv/Trigger.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/srv/trigger.h" - - -#ifndef EXAMPLE_INTERFACES__SRV__DETAIL__TRIGGER__STRUCT_H_ -#define EXAMPLE_INTERFACES__SRV__DETAIL__TRIGGER__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/Trigger in the package example_interfaces. -typedef struct example_interfaces__srv__Trigger_Request -{ - uint8_t structure_needs_at_least_one_member; -} example_interfaces__srv__Trigger_Request; - -// Struct for a sequence of example_interfaces__srv__Trigger_Request. -typedef struct example_interfaces__srv__Trigger_Request__Sequence -{ - example_interfaces__srv__Trigger_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__srv__Trigger_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'message' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/Trigger in the package example_interfaces. -typedef struct example_interfaces__srv__Trigger_Response -{ - /// indicate successful run of triggered service - bool success; - /// informational, e.g. for error messages. - rosidl_runtime_c__String message; -} example_interfaces__srv__Trigger_Response; - -// Struct for a sequence of example_interfaces__srv__Trigger_Response. -typedef struct example_interfaces__srv__Trigger_Response__Sequence -{ - example_interfaces__srv__Trigger_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__srv__Trigger_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - example_interfaces__srv__Trigger_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - example_interfaces__srv__Trigger_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/Trigger in the package example_interfaces. -typedef struct example_interfaces__srv__Trigger_Event -{ - service_msgs__msg__ServiceEventInfo info; - example_interfaces__srv__Trigger_Request__Sequence request; - example_interfaces__srv__Trigger_Response__Sequence response; -} example_interfaces__srv__Trigger_Event; - -// Struct for a sequence of example_interfaces__srv__Trigger_Event. -typedef struct example_interfaces__srv__Trigger_Event__Sequence -{ - example_interfaces__srv__Trigger_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} example_interfaces__srv__Trigger_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__DETAIL__TRIGGER__STRUCT_H_ diff --git a/src/example_interfaces/srv/detail/trigger__type_support.h b/src/example_interfaces/srv/detail/trigger__type_support.h deleted file mode 100755 index 03008ea70..000000000 --- a/src/example_interfaces/srv/detail/trigger__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from example_interfaces:srv/Trigger.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "example_interfaces/srv/trigger.h" - - -#ifndef EXAMPLE_INTERFACES__SRV__DETAIL__TRIGGER__TYPE_SUPPORT_H_ -#define EXAMPLE_INTERFACES__SRV__DETAIL__TRIGGER__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "example_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - Trigger_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - Trigger_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - Trigger_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - Trigger -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - Trigger -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_example_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - example_interfaces, - srv, - Trigger -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // EXAMPLE_INTERFACES__SRV__DETAIL__TRIGGER__TYPE_SUPPORT_H_ diff --git a/src/example_interfaces/srv/set_bool.h b/src/example_interfaces/srv/set_bool.h deleted file mode 100755 index 7b94d54ab..000000000 --- a/src/example_interfaces/srv/set_bool.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:srv/SetBool.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__SRV__SET_BOOL_H_ -#define EXAMPLE_INTERFACES__SRV__SET_BOOL_H_ - -#include "example_interfaces/srv/detail/set_bool__struct.h" -#include "example_interfaces/srv/detail/set_bool__functions.h" -#include "example_interfaces/srv/detail/set_bool__type_support.h" - -#endif // EXAMPLE_INTERFACES__SRV__SET_BOOL_H_ diff --git a/src/example_interfaces/srv/trigger.h b/src/example_interfaces/srv/trigger.h deleted file mode 100755 index bcb186fe2..000000000 --- a/src/example_interfaces/srv/trigger.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from example_interfaces:srv/Trigger.idl -// generated code does not contain a copyright notice - -#ifndef EXAMPLE_INTERFACES__SRV__TRIGGER_H_ -#define EXAMPLE_INTERFACES__SRV__TRIGGER_H_ - -#include "example_interfaces/srv/detail/trigger__struct.h" -#include "example_interfaces/srv/detail/trigger__functions.h" -#include "example_interfaces/srv/detail/trigger__type_support.h" - -#endif // EXAMPLE_INTERFACES__SRV__TRIGGER_H_ diff --git a/src/geometry_msgs/msg/accel.h b/src/geometry_msgs/msg/accel.h deleted file mode 100755 index 890c9c114..000000000 --- a/src/geometry_msgs/msg/accel.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/Accel.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__ACCEL_H_ -#define GEOMETRY_MSGS__MSG__ACCEL_H_ - -#include "geometry_msgs/msg/detail/accel__struct.h" -#include "geometry_msgs/msg/detail/accel__functions.h" -#include "geometry_msgs/msg/detail/accel__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__ACCEL_H_ diff --git a/src/geometry_msgs/msg/accel_stamped.h b/src/geometry_msgs/msg/accel_stamped.h deleted file mode 100755 index 262baf03a..000000000 --- a/src/geometry_msgs/msg/accel_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/AccelStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__ACCEL_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__ACCEL_STAMPED_H_ - -#include "geometry_msgs/msg/detail/accel_stamped__struct.h" -#include "geometry_msgs/msg/detail/accel_stamped__functions.h" -#include "geometry_msgs/msg/detail/accel_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__ACCEL_STAMPED_H_ diff --git a/src/geometry_msgs/msg/accel_with_covariance.h b/src/geometry_msgs/msg/accel_with_covariance.h deleted file mode 100755 index 6b49e4fd0..000000000 --- a/src/geometry_msgs/msg/accel_with_covariance.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/AccelWithCovariance.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__ACCEL_WITH_COVARIANCE_H_ -#define GEOMETRY_MSGS__MSG__ACCEL_WITH_COVARIANCE_H_ - -#include "geometry_msgs/msg/detail/accel_with_covariance__struct.h" -#include "geometry_msgs/msg/detail/accel_with_covariance__functions.h" -#include "geometry_msgs/msg/detail/accel_with_covariance__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__ACCEL_WITH_COVARIANCE_H_ diff --git a/src/geometry_msgs/msg/accel_with_covariance_stamped.h b/src/geometry_msgs/msg/accel_with_covariance_stamped.h deleted file mode 100755 index 69f99a33c..000000000 --- a/src/geometry_msgs/msg/accel_with_covariance_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/AccelWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__ACCEL_WITH_COVARIANCE_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__ACCEL_WITH_COVARIANCE_STAMPED_H_ - -#include "geometry_msgs/msg/detail/accel_with_covariance_stamped__struct.h" -#include "geometry_msgs/msg/detail/accel_with_covariance_stamped__functions.h" -#include "geometry_msgs/msg/detail/accel_with_covariance_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__ACCEL_WITH_COVARIANCE_STAMPED_H_ diff --git a/src/geometry_msgs/msg/detail/accel__functions.h b/src/geometry_msgs/msg/detail/accel__functions.h deleted file mode 100755 index 6520ceda9..000000000 --- a/src/geometry_msgs/msg/detail/accel__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/Accel.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/accel.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/accel__struct.h" - -/// Initialize msg/Accel message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__Accel - * )) before or use - * geometry_msgs__msg__Accel__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Accel__init(geometry_msgs__msg__Accel * msg); - -/// Finalize msg/Accel message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Accel__fini(geometry_msgs__msg__Accel * msg); - -/// Create msg/Accel message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__Accel__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Accel * -geometry_msgs__msg__Accel__create(void); - -/// Destroy msg/Accel message. -/** - * It calls - * geometry_msgs__msg__Accel__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Accel__destroy(geometry_msgs__msg__Accel * msg); - -/// Check for msg/Accel message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Accel__are_equal(const geometry_msgs__msg__Accel * lhs, const geometry_msgs__msg__Accel * rhs); - -/// Copy a msg/Accel message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Accel__copy( - const geometry_msgs__msg__Accel * input, - geometry_msgs__msg__Accel * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__Accel__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__Accel__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__Accel__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__Accel__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Accel messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__Accel__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Accel__Sequence__init(geometry_msgs__msg__Accel__Sequence * array, size_t size); - -/// Finalize array of msg/Accel messages. -/** - * It calls - * geometry_msgs__msg__Accel__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Accel__Sequence__fini(geometry_msgs__msg__Accel__Sequence * array); - -/// Create array of msg/Accel messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__Accel__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Accel__Sequence * -geometry_msgs__msg__Accel__Sequence__create(size_t size); - -/// Destroy array of msg/Accel messages. -/** - * It calls - * geometry_msgs__msg__Accel__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Accel__Sequence__destroy(geometry_msgs__msg__Accel__Sequence * array); - -/// Check for msg/Accel message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Accel__Sequence__are_equal(const geometry_msgs__msg__Accel__Sequence * lhs, const geometry_msgs__msg__Accel__Sequence * rhs); - -/// Copy an array of msg/Accel messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Accel__Sequence__copy( - const geometry_msgs__msg__Accel__Sequence * input, - geometry_msgs__msg__Accel__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/accel__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/accel__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c6e68411c..000000000 --- a/src/geometry_msgs/msg/detail/accel__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/Accel.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, Accel)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/accel__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/accel__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index e66637fe2..000000000 --- a/src/geometry_msgs/msg/detail/accel__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/Accel.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__ACCEL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__ACCEL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__Accel( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__Accel( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, Accel)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__ACCEL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/accel__struct.h b/src/geometry_msgs/msg/detail/accel__struct.h deleted file mode 100755 index c575774d5..000000000 --- a/src/geometry_msgs/msg/detail/accel__struct.h +++ /dev/null @@ -1,51 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/Accel.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/accel.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'linear' -// Member 'angular' -#include "geometry_msgs/msg/detail/vector3__struct.h" - -/// Struct defined in msg/Accel in the package geometry_msgs. -/** - * This expresses acceleration in free space broken into its linear and angular parts. - */ -typedef struct geometry_msgs__msg__Accel -{ - geometry_msgs__msg__Vector3 linear; - geometry_msgs__msg__Vector3 angular; -} geometry_msgs__msg__Accel; - -// Struct for a sequence of geometry_msgs__msg__Accel. -typedef struct geometry_msgs__msg__Accel__Sequence -{ - geometry_msgs__msg__Accel * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__Accel__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/accel__type_support.h b/src/geometry_msgs/msg/detail/accel__type_support.h deleted file mode 100755 index b405ec2ba..000000000 --- a/src/geometry_msgs/msg/detail/accel__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/Accel.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/accel.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - Accel -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/accel_stamped__functions.h b/src/geometry_msgs/msg/detail/accel_stamped__functions.h deleted file mode 100755 index 3ab02a0b0..000000000 --- a/src/geometry_msgs/msg/detail/accel_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/AccelStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/accel_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/accel_stamped__struct.h" - -/// Initialize msg/AccelStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__AccelStamped - * )) before or use - * geometry_msgs__msg__AccelStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelStamped__init(geometry_msgs__msg__AccelStamped * msg); - -/// Finalize msg/AccelStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__AccelStamped__fini(geometry_msgs__msg__AccelStamped * msg); - -/// Create msg/AccelStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__AccelStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__AccelStamped * -geometry_msgs__msg__AccelStamped__create(void); - -/// Destroy msg/AccelStamped message. -/** - * It calls - * geometry_msgs__msg__AccelStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__AccelStamped__destroy(geometry_msgs__msg__AccelStamped * msg); - -/// Check for msg/AccelStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelStamped__are_equal(const geometry_msgs__msg__AccelStamped * lhs, const geometry_msgs__msg__AccelStamped * rhs); - -/// Copy a msg/AccelStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelStamped__copy( - const geometry_msgs__msg__AccelStamped * input, - geometry_msgs__msg__AccelStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__AccelStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__AccelStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__AccelStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__AccelStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/AccelStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__AccelStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelStamped__Sequence__init(geometry_msgs__msg__AccelStamped__Sequence * array, size_t size); - -/// Finalize array of msg/AccelStamped messages. -/** - * It calls - * geometry_msgs__msg__AccelStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__AccelStamped__Sequence__fini(geometry_msgs__msg__AccelStamped__Sequence * array); - -/// Create array of msg/AccelStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__AccelStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__AccelStamped__Sequence * -geometry_msgs__msg__AccelStamped__Sequence__create(size_t size); - -/// Destroy array of msg/AccelStamped messages. -/** - * It calls - * geometry_msgs__msg__AccelStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__AccelStamped__Sequence__destroy(geometry_msgs__msg__AccelStamped__Sequence * array); - -/// Check for msg/AccelStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelStamped__Sequence__are_equal(const geometry_msgs__msg__AccelStamped__Sequence * lhs, const geometry_msgs__msg__AccelStamped__Sequence * rhs); - -/// Copy an array of msg/AccelStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelStamped__Sequence__copy( - const geometry_msgs__msg__AccelStamped__Sequence * input, - geometry_msgs__msg__AccelStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/accel_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/accel_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index b79a9b8de..000000000 --- a/src/geometry_msgs/msg/detail/accel_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/AccelStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, AccelStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/accel_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/accel_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 391b4980b..000000000 --- a/src/geometry_msgs/msg/detail/accel_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/AccelStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__ACCEL_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__ACCEL_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__AccelStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__AccelStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, AccelStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__ACCEL_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/accel_stamped__struct.h b/src/geometry_msgs/msg/detail/accel_stamped__struct.h deleted file mode 100755 index 2483a6e5b..000000000 --- a/src/geometry_msgs/msg/detail/accel_stamped__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/AccelStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/accel_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'accel' -#include "geometry_msgs/msg/detail/accel__struct.h" - -/// Struct defined in msg/AccelStamped in the package geometry_msgs. -/** - * An accel with reference coordinate frame and timestamp - */ -typedef struct geometry_msgs__msg__AccelStamped -{ - std_msgs__msg__Header header; - geometry_msgs__msg__Accel accel; -} geometry_msgs__msg__AccelStamped; - -// Struct for a sequence of geometry_msgs__msg__AccelStamped. -typedef struct geometry_msgs__msg__AccelStamped__Sequence -{ - geometry_msgs__msg__AccelStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__AccelStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/accel_stamped__type_support.h b/src/geometry_msgs/msg/detail/accel_stamped__type_support.h deleted file mode 100755 index 174d1d758..000000000 --- a/src/geometry_msgs/msg/detail/accel_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/AccelStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/accel_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - AccelStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/accel_with_covariance__functions.h b/src/geometry_msgs/msg/detail/accel_with_covariance__functions.h deleted file mode 100755 index 8e153a2f7..000000000 --- a/src/geometry_msgs/msg/detail/accel_with_covariance__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/AccelWithCovariance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/accel_with_covariance.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/accel_with_covariance__struct.h" - -/// Initialize msg/AccelWithCovariance message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__AccelWithCovariance - * )) before or use - * geometry_msgs__msg__AccelWithCovariance__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelWithCovariance__init(geometry_msgs__msg__AccelWithCovariance * msg); - -/// Finalize msg/AccelWithCovariance message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__AccelWithCovariance__fini(geometry_msgs__msg__AccelWithCovariance * msg); - -/// Create msg/AccelWithCovariance message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__AccelWithCovariance__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__AccelWithCovariance * -geometry_msgs__msg__AccelWithCovariance__create(void); - -/// Destroy msg/AccelWithCovariance message. -/** - * It calls - * geometry_msgs__msg__AccelWithCovariance__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__AccelWithCovariance__destroy(geometry_msgs__msg__AccelWithCovariance * msg); - -/// Check for msg/AccelWithCovariance message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelWithCovariance__are_equal(const geometry_msgs__msg__AccelWithCovariance * lhs, const geometry_msgs__msg__AccelWithCovariance * rhs); - -/// Copy a msg/AccelWithCovariance message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelWithCovariance__copy( - const geometry_msgs__msg__AccelWithCovariance * input, - geometry_msgs__msg__AccelWithCovariance * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__AccelWithCovariance__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__AccelWithCovariance__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__AccelWithCovariance__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__AccelWithCovariance__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/AccelWithCovariance messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__AccelWithCovariance__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelWithCovariance__Sequence__init(geometry_msgs__msg__AccelWithCovariance__Sequence * array, size_t size); - -/// Finalize array of msg/AccelWithCovariance messages. -/** - * It calls - * geometry_msgs__msg__AccelWithCovariance__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__AccelWithCovariance__Sequence__fini(geometry_msgs__msg__AccelWithCovariance__Sequence * array); - -/// Create array of msg/AccelWithCovariance messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__AccelWithCovariance__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__AccelWithCovariance__Sequence * -geometry_msgs__msg__AccelWithCovariance__Sequence__create(size_t size); - -/// Destroy array of msg/AccelWithCovariance messages. -/** - * It calls - * geometry_msgs__msg__AccelWithCovariance__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__AccelWithCovariance__Sequence__destroy(geometry_msgs__msg__AccelWithCovariance__Sequence * array); - -/// Check for msg/AccelWithCovariance message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelWithCovariance__Sequence__are_equal(const geometry_msgs__msg__AccelWithCovariance__Sequence * lhs, const geometry_msgs__msg__AccelWithCovariance__Sequence * rhs); - -/// Copy an array of msg/AccelWithCovariance messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelWithCovariance__Sequence__copy( - const geometry_msgs__msg__AccelWithCovariance__Sequence * input, - geometry_msgs__msg__AccelWithCovariance__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/accel_with_covariance__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/accel_with_covariance__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 138c87768..000000000 --- a/src/geometry_msgs/msg/detail/accel_with_covariance__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/AccelWithCovariance.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, AccelWithCovariance)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/accel_with_covariance__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/accel_with_covariance__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 697968d61..000000000 --- a/src/geometry_msgs/msg/detail/accel_with_covariance__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/AccelWithCovariance.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__ACCEL_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__ACCEL_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__AccelWithCovariance( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__AccelWithCovariance( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, AccelWithCovariance)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__ACCEL_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/accel_with_covariance__struct.h b/src/geometry_msgs/msg/detail/accel_with_covariance__struct.h deleted file mode 100755 index a73b9edb6..000000000 --- a/src/geometry_msgs/msg/detail/accel_with_covariance__struct.h +++ /dev/null @@ -1,54 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/AccelWithCovariance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/accel_with_covariance.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'accel' -#include "geometry_msgs/msg/detail/accel__struct.h" - -/// Struct defined in msg/AccelWithCovariance in the package geometry_msgs. -/** - * This expresses acceleration in free space with uncertainty. - */ -typedef struct geometry_msgs__msg__AccelWithCovariance -{ - geometry_msgs__msg__Accel accel; - /// Row-major representation of the 6x6 covariance matrix - /// The orientation parameters use a fixed-axis representation. - /// In order, the parameters are: - /// (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis) - double covariance[36]; -} geometry_msgs__msg__AccelWithCovariance; - -// Struct for a sequence of geometry_msgs__msg__AccelWithCovariance. -typedef struct geometry_msgs__msg__AccelWithCovariance__Sequence -{ - geometry_msgs__msg__AccelWithCovariance * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__AccelWithCovariance__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/accel_with_covariance__type_support.h b/src/geometry_msgs/msg/detail/accel_with_covariance__type_support.h deleted file mode 100755 index 22239868b..000000000 --- a/src/geometry_msgs/msg/detail/accel_with_covariance__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/AccelWithCovariance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/accel_with_covariance.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - AccelWithCovariance -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__functions.h b/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__functions.h deleted file mode 100755 index 0b3e2883a..000000000 --- a/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/AccelWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/accel_with_covariance_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/accel_with_covariance_stamped__struct.h" - -/// Initialize msg/AccelWithCovarianceStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__AccelWithCovarianceStamped - * )) before or use - * geometry_msgs__msg__AccelWithCovarianceStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelWithCovarianceStamped__init(geometry_msgs__msg__AccelWithCovarianceStamped * msg); - -/// Finalize msg/AccelWithCovarianceStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__AccelWithCovarianceStamped__fini(geometry_msgs__msg__AccelWithCovarianceStamped * msg); - -/// Create msg/AccelWithCovarianceStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__AccelWithCovarianceStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__AccelWithCovarianceStamped * -geometry_msgs__msg__AccelWithCovarianceStamped__create(void); - -/// Destroy msg/AccelWithCovarianceStamped message. -/** - * It calls - * geometry_msgs__msg__AccelWithCovarianceStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__AccelWithCovarianceStamped__destroy(geometry_msgs__msg__AccelWithCovarianceStamped * msg); - -/// Check for msg/AccelWithCovarianceStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelWithCovarianceStamped__are_equal(const geometry_msgs__msg__AccelWithCovarianceStamped * lhs, const geometry_msgs__msg__AccelWithCovarianceStamped * rhs); - -/// Copy a msg/AccelWithCovarianceStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelWithCovarianceStamped__copy( - const geometry_msgs__msg__AccelWithCovarianceStamped * input, - geometry_msgs__msg__AccelWithCovarianceStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__AccelWithCovarianceStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__AccelWithCovarianceStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__AccelWithCovarianceStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__AccelWithCovarianceStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/AccelWithCovarianceStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__AccelWithCovarianceStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelWithCovarianceStamped__Sequence__init(geometry_msgs__msg__AccelWithCovarianceStamped__Sequence * array, size_t size); - -/// Finalize array of msg/AccelWithCovarianceStamped messages. -/** - * It calls - * geometry_msgs__msg__AccelWithCovarianceStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__AccelWithCovarianceStamped__Sequence__fini(geometry_msgs__msg__AccelWithCovarianceStamped__Sequence * array); - -/// Create array of msg/AccelWithCovarianceStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__AccelWithCovarianceStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__AccelWithCovarianceStamped__Sequence * -geometry_msgs__msg__AccelWithCovarianceStamped__Sequence__create(size_t size); - -/// Destroy array of msg/AccelWithCovarianceStamped messages. -/** - * It calls - * geometry_msgs__msg__AccelWithCovarianceStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__AccelWithCovarianceStamped__Sequence__destroy(geometry_msgs__msg__AccelWithCovarianceStamped__Sequence * array); - -/// Check for msg/AccelWithCovarianceStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelWithCovarianceStamped__Sequence__are_equal(const geometry_msgs__msg__AccelWithCovarianceStamped__Sequence * lhs, const geometry_msgs__msg__AccelWithCovarianceStamped__Sequence * rhs); - -/// Copy an array of msg/AccelWithCovarianceStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__AccelWithCovarianceStamped__Sequence__copy( - const geometry_msgs__msg__AccelWithCovarianceStamped__Sequence * input, - geometry_msgs__msg__AccelWithCovarianceStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 3153f558b..000000000 --- a/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/AccelWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, AccelWithCovarianceStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 23bebfd3f..000000000 --- a/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/AccelWithCovarianceStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__ACCEL_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__ACCEL_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__AccelWithCovarianceStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__AccelWithCovarianceStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, AccelWithCovarianceStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__ACCEL_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__struct.h b/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__struct.h deleted file mode 100755 index b52c95caa..000000000 --- a/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/AccelWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/accel_with_covariance_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'accel' -#include "geometry_msgs/msg/detail/accel_with_covariance__struct.h" - -/// Struct defined in msg/AccelWithCovarianceStamped in the package geometry_msgs. -/** - * This represents an estimated accel with reference coordinate frame and timestamp. - */ -typedef struct geometry_msgs__msg__AccelWithCovarianceStamped -{ - std_msgs__msg__Header header; - geometry_msgs__msg__AccelWithCovariance accel; -} geometry_msgs__msg__AccelWithCovarianceStamped; - -// Struct for a sequence of geometry_msgs__msg__AccelWithCovarianceStamped. -typedef struct geometry_msgs__msg__AccelWithCovarianceStamped__Sequence -{ - geometry_msgs__msg__AccelWithCovarianceStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__AccelWithCovarianceStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__type_support.h b/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__type_support.h deleted file mode 100755 index 51bb1e324..000000000 --- a/src/geometry_msgs/msg/detail/accel_with_covariance_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/AccelWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/accel_with_covariance_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - AccelWithCovarianceStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__ACCEL_WITH_COVARIANCE_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/inertia__functions.h b/src/geometry_msgs/msg/detail/inertia__functions.h deleted file mode 100755 index f527189a7..000000000 --- a/src/geometry_msgs/msg/detail/inertia__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/Inertia.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/inertia.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__INERTIA__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__INERTIA__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/inertia__struct.h" - -/// Initialize msg/Inertia message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__Inertia - * )) before or use - * geometry_msgs__msg__Inertia__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Inertia__init(geometry_msgs__msg__Inertia * msg); - -/// Finalize msg/Inertia message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Inertia__fini(geometry_msgs__msg__Inertia * msg); - -/// Create msg/Inertia message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__Inertia__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Inertia * -geometry_msgs__msg__Inertia__create(void); - -/// Destroy msg/Inertia message. -/** - * It calls - * geometry_msgs__msg__Inertia__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Inertia__destroy(geometry_msgs__msg__Inertia * msg); - -/// Check for msg/Inertia message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Inertia__are_equal(const geometry_msgs__msg__Inertia * lhs, const geometry_msgs__msg__Inertia * rhs); - -/// Copy a msg/Inertia message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Inertia__copy( - const geometry_msgs__msg__Inertia * input, - geometry_msgs__msg__Inertia * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__Inertia__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__Inertia__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__Inertia__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__Inertia__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Inertia messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__Inertia__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Inertia__Sequence__init(geometry_msgs__msg__Inertia__Sequence * array, size_t size); - -/// Finalize array of msg/Inertia messages. -/** - * It calls - * geometry_msgs__msg__Inertia__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Inertia__Sequence__fini(geometry_msgs__msg__Inertia__Sequence * array); - -/// Create array of msg/Inertia messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__Inertia__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Inertia__Sequence * -geometry_msgs__msg__Inertia__Sequence__create(size_t size); - -/// Destroy array of msg/Inertia messages. -/** - * It calls - * geometry_msgs__msg__Inertia__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Inertia__Sequence__destroy(geometry_msgs__msg__Inertia__Sequence * array); - -/// Check for msg/Inertia message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Inertia__Sequence__are_equal(const geometry_msgs__msg__Inertia__Sequence * lhs, const geometry_msgs__msg__Inertia__Sequence * rhs); - -/// Copy an array of msg/Inertia messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Inertia__Sequence__copy( - const geometry_msgs__msg__Inertia__Sequence * input, - geometry_msgs__msg__Inertia__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__INERTIA__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/inertia__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/inertia__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5d940f542..000000000 --- a/src/geometry_msgs/msg/detail/inertia__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/Inertia.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__INERTIA__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__INERTIA__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, Inertia)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__INERTIA__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/inertia__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/inertia__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 332517ea7..000000000 --- a/src/geometry_msgs/msg/detail/inertia__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/Inertia.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__INERTIA__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__INERTIA__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__Inertia( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__Inertia( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, Inertia)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__INERTIA__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/inertia__struct.h b/src/geometry_msgs/msg/detail/inertia__struct.h deleted file mode 100755 index a23e72c62..000000000 --- a/src/geometry_msgs/msg/detail/inertia__struct.h +++ /dev/null @@ -1,61 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/Inertia.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/inertia.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__INERTIA__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__INERTIA__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'com' -#include "geometry_msgs/msg/detail/vector3__struct.h" - -/// Struct defined in msg/Inertia in the package geometry_msgs. -/** - * Mass - */ -typedef struct geometry_msgs__msg__Inertia -{ - double m; - /// Center of mass - geometry_msgs__msg__Vector3 com; - /// Inertia Tensor - /// | ixx ixy ixz | - /// I = | ixy iyy iyz | - /// | ixz iyz izz | - double ixx; - double ixy; - double ixz; - double iyy; - double iyz; - double izz; -} geometry_msgs__msg__Inertia; - -// Struct for a sequence of geometry_msgs__msg__Inertia. -typedef struct geometry_msgs__msg__Inertia__Sequence -{ - geometry_msgs__msg__Inertia * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__Inertia__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__INERTIA__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/inertia__type_support.h b/src/geometry_msgs/msg/detail/inertia__type_support.h deleted file mode 100755 index 29aeaa044..000000000 --- a/src/geometry_msgs/msg/detail/inertia__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/Inertia.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/inertia.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__INERTIA__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__INERTIA__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - Inertia -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__INERTIA__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/inertia_stamped__functions.h b/src/geometry_msgs/msg/detail/inertia_stamped__functions.h deleted file mode 100755 index 33fee7a45..000000000 --- a/src/geometry_msgs/msg/detail/inertia_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/InertiaStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/inertia_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__INERTIA_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__INERTIA_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/inertia_stamped__struct.h" - -/// Initialize msg/InertiaStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__InertiaStamped - * )) before or use - * geometry_msgs__msg__InertiaStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__InertiaStamped__init(geometry_msgs__msg__InertiaStamped * msg); - -/// Finalize msg/InertiaStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__InertiaStamped__fini(geometry_msgs__msg__InertiaStamped * msg); - -/// Create msg/InertiaStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__InertiaStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__InertiaStamped * -geometry_msgs__msg__InertiaStamped__create(void); - -/// Destroy msg/InertiaStamped message. -/** - * It calls - * geometry_msgs__msg__InertiaStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__InertiaStamped__destroy(geometry_msgs__msg__InertiaStamped * msg); - -/// Check for msg/InertiaStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__InertiaStamped__are_equal(const geometry_msgs__msg__InertiaStamped * lhs, const geometry_msgs__msg__InertiaStamped * rhs); - -/// Copy a msg/InertiaStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__InertiaStamped__copy( - const geometry_msgs__msg__InertiaStamped * input, - geometry_msgs__msg__InertiaStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__InertiaStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__InertiaStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__InertiaStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__InertiaStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/InertiaStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__InertiaStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__InertiaStamped__Sequence__init(geometry_msgs__msg__InertiaStamped__Sequence * array, size_t size); - -/// Finalize array of msg/InertiaStamped messages. -/** - * It calls - * geometry_msgs__msg__InertiaStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__InertiaStamped__Sequence__fini(geometry_msgs__msg__InertiaStamped__Sequence * array); - -/// Create array of msg/InertiaStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__InertiaStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__InertiaStamped__Sequence * -geometry_msgs__msg__InertiaStamped__Sequence__create(size_t size); - -/// Destroy array of msg/InertiaStamped messages. -/** - * It calls - * geometry_msgs__msg__InertiaStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__InertiaStamped__Sequence__destroy(geometry_msgs__msg__InertiaStamped__Sequence * array); - -/// Check for msg/InertiaStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__InertiaStamped__Sequence__are_equal(const geometry_msgs__msg__InertiaStamped__Sequence * lhs, const geometry_msgs__msg__InertiaStamped__Sequence * rhs); - -/// Copy an array of msg/InertiaStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__InertiaStamped__Sequence__copy( - const geometry_msgs__msg__InertiaStamped__Sequence * input, - geometry_msgs__msg__InertiaStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__INERTIA_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/inertia_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/inertia_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 0f774393c..000000000 --- a/src/geometry_msgs/msg/detail/inertia_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/InertiaStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__INERTIA_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__INERTIA_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, InertiaStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__INERTIA_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/inertia_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/inertia_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 08ae1fe56..000000000 --- a/src/geometry_msgs/msg/detail/inertia_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/InertiaStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__INERTIA_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__INERTIA_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__InertiaStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__InertiaStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, InertiaStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__INERTIA_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/inertia_stamped__struct.h b/src/geometry_msgs/msg/detail/inertia_stamped__struct.h deleted file mode 100755 index 783cd1890..000000000 --- a/src/geometry_msgs/msg/detail/inertia_stamped__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/InertiaStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/inertia_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__INERTIA_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__INERTIA_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'inertia' -#include "geometry_msgs/msg/detail/inertia__struct.h" - -/// Struct defined in msg/InertiaStamped in the package geometry_msgs. -/** - * An Inertia with a time stamp and reference frame. - */ -typedef struct geometry_msgs__msg__InertiaStamped -{ - std_msgs__msg__Header header; - geometry_msgs__msg__Inertia inertia; -} geometry_msgs__msg__InertiaStamped; - -// Struct for a sequence of geometry_msgs__msg__InertiaStamped. -typedef struct geometry_msgs__msg__InertiaStamped__Sequence -{ - geometry_msgs__msg__InertiaStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__InertiaStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__INERTIA_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/inertia_stamped__type_support.h b/src/geometry_msgs/msg/detail/inertia_stamped__type_support.h deleted file mode 100755 index 8683ff70c..000000000 --- a/src/geometry_msgs/msg/detail/inertia_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/InertiaStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/inertia_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__INERTIA_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__INERTIA_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - InertiaStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__INERTIA_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/point32__functions.h b/src/geometry_msgs/msg/detail/point32__functions.h deleted file mode 100755 index bcb577d5e..000000000 --- a/src/geometry_msgs/msg/detail/point32__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/Point32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/point32.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POINT32__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POINT32__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/point32__struct.h" - -/// Initialize msg/Point32 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__Point32 - * )) before or use - * geometry_msgs__msg__Point32__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Point32__init(geometry_msgs__msg__Point32 * msg); - -/// Finalize msg/Point32 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Point32__fini(geometry_msgs__msg__Point32 * msg); - -/// Create msg/Point32 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__Point32__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Point32 * -geometry_msgs__msg__Point32__create(void); - -/// Destroy msg/Point32 message. -/** - * It calls - * geometry_msgs__msg__Point32__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Point32__destroy(geometry_msgs__msg__Point32 * msg); - -/// Check for msg/Point32 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Point32__are_equal(const geometry_msgs__msg__Point32 * lhs, const geometry_msgs__msg__Point32 * rhs); - -/// Copy a msg/Point32 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Point32__copy( - const geometry_msgs__msg__Point32 * input, - geometry_msgs__msg__Point32 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__Point32__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__Point32__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__Point32__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__Point32__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Point32 messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__Point32__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Point32__Sequence__init(geometry_msgs__msg__Point32__Sequence * array, size_t size); - -/// Finalize array of msg/Point32 messages. -/** - * It calls - * geometry_msgs__msg__Point32__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Point32__Sequence__fini(geometry_msgs__msg__Point32__Sequence * array); - -/// Create array of msg/Point32 messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__Point32__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Point32__Sequence * -geometry_msgs__msg__Point32__Sequence__create(size_t size); - -/// Destroy array of msg/Point32 messages. -/** - * It calls - * geometry_msgs__msg__Point32__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Point32__Sequence__destroy(geometry_msgs__msg__Point32__Sequence * array); - -/// Check for msg/Point32 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Point32__Sequence__are_equal(const geometry_msgs__msg__Point32__Sequence * lhs, const geometry_msgs__msg__Point32__Sequence * rhs); - -/// Copy an array of msg/Point32 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Point32__Sequence__copy( - const geometry_msgs__msg__Point32__Sequence * input, - geometry_msgs__msg__Point32__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POINT32__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/point32__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/point32__rosidl_typesupport_introspection_c.h deleted file mode 100755 index e312a5e93..000000000 --- a/src/geometry_msgs/msg/detail/point32__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/Point32.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POINT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POINT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, Point32)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POINT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/point32__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/point32__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 770a7b4c0..000000000 --- a/src/geometry_msgs/msg/detail/point32__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/Point32.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__POINT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__POINT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__Point32( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__Point32( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, Point32)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__POINT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/point32__struct.h b/src/geometry_msgs/msg/detail/point32__struct.h deleted file mode 100755 index 4e44b3e02..000000000 --- a/src/geometry_msgs/msg/detail/point32__struct.h +++ /dev/null @@ -1,53 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/Point32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/point32.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POINT32__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POINT32__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Point32 in the package geometry_msgs. -/** - * This contains the position of a point in free space(with 32 bits of precision). - * It is recommended to use Point wherever possible instead of Point32. - * - * This recommendation is to promote interoperability. - * - * This message is designed to take up less space when sending - * lots of points at once, as in the case of a PointCloud. - */ -typedef struct geometry_msgs__msg__Point32 -{ - float x; - float y; - float z; -} geometry_msgs__msg__Point32; - -// Struct for a sequence of geometry_msgs__msg__Point32. -typedef struct geometry_msgs__msg__Point32__Sequence -{ - geometry_msgs__msg__Point32 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__Point32__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POINT32__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/point32__type_support.h b/src/geometry_msgs/msg/detail/point32__type_support.h deleted file mode 100755 index 8985ad822..000000000 --- a/src/geometry_msgs/msg/detail/point32__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/Point32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/point32.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POINT32__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POINT32__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - Point32 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POINT32__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/point__functions.h b/src/geometry_msgs/msg/detail/point__functions.h deleted file mode 100755 index 82cd54fd7..000000000 --- a/src/geometry_msgs/msg/detail/point__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/Point.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/point.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POINT__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POINT__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/point__struct.h" - -/// Initialize msg/Point message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__Point - * )) before or use - * geometry_msgs__msg__Point__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Point__init(geometry_msgs__msg__Point * msg); - -/// Finalize msg/Point message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Point__fini(geometry_msgs__msg__Point * msg); - -/// Create msg/Point message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__Point__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Point * -geometry_msgs__msg__Point__create(void); - -/// Destroy msg/Point message. -/** - * It calls - * geometry_msgs__msg__Point__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Point__destroy(geometry_msgs__msg__Point * msg); - -/// Check for msg/Point message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Point__are_equal(const geometry_msgs__msg__Point * lhs, const geometry_msgs__msg__Point * rhs); - -/// Copy a msg/Point message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Point__copy( - const geometry_msgs__msg__Point * input, - geometry_msgs__msg__Point * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__Point__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__Point__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__Point__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__Point__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Point messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__Point__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Point__Sequence__init(geometry_msgs__msg__Point__Sequence * array, size_t size); - -/// Finalize array of msg/Point messages. -/** - * It calls - * geometry_msgs__msg__Point__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Point__Sequence__fini(geometry_msgs__msg__Point__Sequence * array); - -/// Create array of msg/Point messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__Point__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Point__Sequence * -geometry_msgs__msg__Point__Sequence__create(size_t size); - -/// Destroy array of msg/Point messages. -/** - * It calls - * geometry_msgs__msg__Point__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Point__Sequence__destroy(geometry_msgs__msg__Point__Sequence * array); - -/// Check for msg/Point message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Point__Sequence__are_equal(const geometry_msgs__msg__Point__Sequence * lhs, const geometry_msgs__msg__Point__Sequence * rhs); - -/// Copy an array of msg/Point messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Point__Sequence__copy( - const geometry_msgs__msg__Point__Sequence * input, - geometry_msgs__msg__Point__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POINT__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/point__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/point__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 7a5406cee..000000000 --- a/src/geometry_msgs/msg/detail/point__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/Point.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POINT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POINT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, Point)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POINT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/point__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/point__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 9fd3de228..000000000 --- a/src/geometry_msgs/msg/detail/point__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/Point.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__POINT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__POINT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__Point( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__Point( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, Point)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__POINT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/point__struct.h b/src/geometry_msgs/msg/detail/point__struct.h deleted file mode 100755 index 0e16fb2f9..000000000 --- a/src/geometry_msgs/msg/detail/point__struct.h +++ /dev/null @@ -1,47 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/Point.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/point.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POINT__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POINT__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Point in the package geometry_msgs. -/** - * This contains the position of a point in free space - */ -typedef struct geometry_msgs__msg__Point -{ - double x; - double y; - double z; -} geometry_msgs__msg__Point; - -// Struct for a sequence of geometry_msgs__msg__Point. -typedef struct geometry_msgs__msg__Point__Sequence -{ - geometry_msgs__msg__Point * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__Point__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POINT__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/point__type_support.h b/src/geometry_msgs/msg/detail/point__type_support.h deleted file mode 100755 index 173570eaf..000000000 --- a/src/geometry_msgs/msg/detail/point__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/Point.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/point.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POINT__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POINT__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - Point -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POINT__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/point_stamped__functions.h b/src/geometry_msgs/msg/detail/point_stamped__functions.h deleted file mode 100755 index 0bafde81e..000000000 --- a/src/geometry_msgs/msg/detail/point_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/PointStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/point_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POINT_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POINT_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/point_stamped__struct.h" - -/// Initialize msg/PointStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__PointStamped - * )) before or use - * geometry_msgs__msg__PointStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PointStamped__init(geometry_msgs__msg__PointStamped * msg); - -/// Finalize msg/PointStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PointStamped__fini(geometry_msgs__msg__PointStamped * msg); - -/// Create msg/PointStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__PointStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PointStamped * -geometry_msgs__msg__PointStamped__create(void); - -/// Destroy msg/PointStamped message. -/** - * It calls - * geometry_msgs__msg__PointStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PointStamped__destroy(geometry_msgs__msg__PointStamped * msg); - -/// Check for msg/PointStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PointStamped__are_equal(const geometry_msgs__msg__PointStamped * lhs, const geometry_msgs__msg__PointStamped * rhs); - -/// Copy a msg/PointStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PointStamped__copy( - const geometry_msgs__msg__PointStamped * input, - geometry_msgs__msg__PointStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__PointStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__PointStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__PointStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__PointStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/PointStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__PointStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PointStamped__Sequence__init(geometry_msgs__msg__PointStamped__Sequence * array, size_t size); - -/// Finalize array of msg/PointStamped messages. -/** - * It calls - * geometry_msgs__msg__PointStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PointStamped__Sequence__fini(geometry_msgs__msg__PointStamped__Sequence * array); - -/// Create array of msg/PointStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__PointStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PointStamped__Sequence * -geometry_msgs__msg__PointStamped__Sequence__create(size_t size); - -/// Destroy array of msg/PointStamped messages. -/** - * It calls - * geometry_msgs__msg__PointStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PointStamped__Sequence__destroy(geometry_msgs__msg__PointStamped__Sequence * array); - -/// Check for msg/PointStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PointStamped__Sequence__are_equal(const geometry_msgs__msg__PointStamped__Sequence * lhs, const geometry_msgs__msg__PointStamped__Sequence * rhs); - -/// Copy an array of msg/PointStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PointStamped__Sequence__copy( - const geometry_msgs__msg__PointStamped__Sequence * input, - geometry_msgs__msg__PointStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POINT_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/point_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/point_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 91b88940e..000000000 --- a/src/geometry_msgs/msg/detail/point_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/PointStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POINT_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POINT_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, PointStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POINT_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/point_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/point_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ac87b763b..000000000 --- a/src/geometry_msgs/msg/detail/point_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/PointStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__POINT_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__POINT_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__PointStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__PointStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, PointStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__POINT_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/point_stamped__struct.h b/src/geometry_msgs/msg/detail/point_stamped__struct.h deleted file mode 100755 index b7f241fed..000000000 --- a/src/geometry_msgs/msg/detail/point_stamped__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/PointStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/point_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POINT_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POINT_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'point' -#include "geometry_msgs/msg/detail/point__struct.h" - -/// Struct defined in msg/PointStamped in the package geometry_msgs. -/** - * This represents a Point with reference coordinate frame and timestamp - */ -typedef struct geometry_msgs__msg__PointStamped -{ - std_msgs__msg__Header header; - geometry_msgs__msg__Point point; -} geometry_msgs__msg__PointStamped; - -// Struct for a sequence of geometry_msgs__msg__PointStamped. -typedef struct geometry_msgs__msg__PointStamped__Sequence -{ - geometry_msgs__msg__PointStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__PointStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POINT_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/point_stamped__type_support.h b/src/geometry_msgs/msg/detail/point_stamped__type_support.h deleted file mode 100755 index eb4432a30..000000000 --- a/src/geometry_msgs/msg/detail/point_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/PointStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/point_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POINT_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POINT_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - PointStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POINT_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/polygon__functions.h b/src/geometry_msgs/msg/detail/polygon__functions.h deleted file mode 100755 index fddfa1d3b..000000000 --- a/src/geometry_msgs/msg/detail/polygon__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/Polygon.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/polygon.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/polygon__struct.h" - -/// Initialize msg/Polygon message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__Polygon - * )) before or use - * geometry_msgs__msg__Polygon__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Polygon__init(geometry_msgs__msg__Polygon * msg); - -/// Finalize msg/Polygon message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Polygon__fini(geometry_msgs__msg__Polygon * msg); - -/// Create msg/Polygon message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__Polygon__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Polygon * -geometry_msgs__msg__Polygon__create(void); - -/// Destroy msg/Polygon message. -/** - * It calls - * geometry_msgs__msg__Polygon__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Polygon__destroy(geometry_msgs__msg__Polygon * msg); - -/// Check for msg/Polygon message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Polygon__are_equal(const geometry_msgs__msg__Polygon * lhs, const geometry_msgs__msg__Polygon * rhs); - -/// Copy a msg/Polygon message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Polygon__copy( - const geometry_msgs__msg__Polygon * input, - geometry_msgs__msg__Polygon * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__Polygon__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__Polygon__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__Polygon__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__Polygon__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Polygon messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__Polygon__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Polygon__Sequence__init(geometry_msgs__msg__Polygon__Sequence * array, size_t size); - -/// Finalize array of msg/Polygon messages. -/** - * It calls - * geometry_msgs__msg__Polygon__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Polygon__Sequence__fini(geometry_msgs__msg__Polygon__Sequence * array); - -/// Create array of msg/Polygon messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__Polygon__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Polygon__Sequence * -geometry_msgs__msg__Polygon__Sequence__create(size_t size); - -/// Destroy array of msg/Polygon messages. -/** - * It calls - * geometry_msgs__msg__Polygon__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Polygon__Sequence__destroy(geometry_msgs__msg__Polygon__Sequence * array); - -/// Check for msg/Polygon message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Polygon__Sequence__are_equal(const geometry_msgs__msg__Polygon__Sequence * lhs, const geometry_msgs__msg__Polygon__Sequence * rhs); - -/// Copy an array of msg/Polygon messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Polygon__Sequence__copy( - const geometry_msgs__msg__Polygon__Sequence * input, - geometry_msgs__msg__Polygon__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/polygon__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/polygon__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 25f7b6df6..000000000 --- a/src/geometry_msgs/msg/detail/polygon__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/Polygon.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, Polygon)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/polygon__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/polygon__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 55468a52c..000000000 --- a/src/geometry_msgs/msg/detail/polygon__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/Polygon.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__POLYGON__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__POLYGON__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__Polygon( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__Polygon( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, Polygon)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__POLYGON__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/polygon__struct.h b/src/geometry_msgs/msg/detail/polygon__struct.h deleted file mode 100755 index 721a694ee..000000000 --- a/src/geometry_msgs/msg/detail/polygon__struct.h +++ /dev/null @@ -1,49 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/Polygon.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/polygon.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'points' -#include "geometry_msgs/msg/detail/point32__struct.h" - -/// Struct defined in msg/Polygon in the package geometry_msgs. -/** - * A specification of a polygon where the first and last points are assumed to be connected - */ -typedef struct geometry_msgs__msg__Polygon -{ - geometry_msgs__msg__Point32__Sequence points; -} geometry_msgs__msg__Polygon; - -// Struct for a sequence of geometry_msgs__msg__Polygon. -typedef struct geometry_msgs__msg__Polygon__Sequence -{ - geometry_msgs__msg__Polygon * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__Polygon__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/polygon__type_support.h b/src/geometry_msgs/msg/detail/polygon__type_support.h deleted file mode 100755 index 0c7ce2a3c..000000000 --- a/src/geometry_msgs/msg/detail/polygon__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/Polygon.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/polygon.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - Polygon -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_instance__functions.h b/src/geometry_msgs/msg/detail/polygon_instance__functions.h deleted file mode 100755 index f5db14a56..000000000 --- a/src/geometry_msgs/msg/detail/polygon_instance__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/PolygonInstance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/polygon_instance.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/polygon_instance__struct.h" - -/// Initialize msg/PolygonInstance message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__PolygonInstance - * )) before or use - * geometry_msgs__msg__PolygonInstance__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonInstance__init(geometry_msgs__msg__PolygonInstance * msg); - -/// Finalize msg/PolygonInstance message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PolygonInstance__fini(geometry_msgs__msg__PolygonInstance * msg); - -/// Create msg/PolygonInstance message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__PolygonInstance__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PolygonInstance * -geometry_msgs__msg__PolygonInstance__create(void); - -/// Destroy msg/PolygonInstance message. -/** - * It calls - * geometry_msgs__msg__PolygonInstance__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PolygonInstance__destroy(geometry_msgs__msg__PolygonInstance * msg); - -/// Check for msg/PolygonInstance message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonInstance__are_equal(const geometry_msgs__msg__PolygonInstance * lhs, const geometry_msgs__msg__PolygonInstance * rhs); - -/// Copy a msg/PolygonInstance message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonInstance__copy( - const geometry_msgs__msg__PolygonInstance * input, - geometry_msgs__msg__PolygonInstance * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__PolygonInstance__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__PolygonInstance__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__PolygonInstance__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__PolygonInstance__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/PolygonInstance messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__PolygonInstance__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonInstance__Sequence__init(geometry_msgs__msg__PolygonInstance__Sequence * array, size_t size); - -/// Finalize array of msg/PolygonInstance messages. -/** - * It calls - * geometry_msgs__msg__PolygonInstance__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PolygonInstance__Sequence__fini(geometry_msgs__msg__PolygonInstance__Sequence * array); - -/// Create array of msg/PolygonInstance messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__PolygonInstance__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PolygonInstance__Sequence * -geometry_msgs__msg__PolygonInstance__Sequence__create(size_t size); - -/// Destroy array of msg/PolygonInstance messages. -/** - * It calls - * geometry_msgs__msg__PolygonInstance__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PolygonInstance__Sequence__destroy(geometry_msgs__msg__PolygonInstance__Sequence * array); - -/// Check for msg/PolygonInstance message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonInstance__Sequence__are_equal(const geometry_msgs__msg__PolygonInstance__Sequence * lhs, const geometry_msgs__msg__PolygonInstance__Sequence * rhs); - -/// Copy an array of msg/PolygonInstance messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonInstance__Sequence__copy( - const geometry_msgs__msg__PolygonInstance__Sequence * input, - geometry_msgs__msg__PolygonInstance__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_instance__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/polygon_instance__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5c7a48b1a..000000000 --- a/src/geometry_msgs/msg/detail/polygon_instance__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/PolygonInstance.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, PolygonInstance)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_instance__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/polygon_instance__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 7d8d81756..000000000 --- a/src/geometry_msgs/msg/detail/polygon_instance__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/PolygonInstance.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__POLYGON_INSTANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__POLYGON_INSTANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__PolygonInstance( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__PolygonInstance( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, PolygonInstance)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__POLYGON_INSTANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_instance__struct.h b/src/geometry_msgs/msg/detail/polygon_instance__struct.h deleted file mode 100755 index 96493949b..000000000 --- a/src/geometry_msgs/msg/detail/polygon_instance__struct.h +++ /dev/null @@ -1,51 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/PolygonInstance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/polygon_instance.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'polygon' -#include "geometry_msgs/msg/detail/polygon__struct.h" - -/// Struct defined in msg/PolygonInstance in the package geometry_msgs. -/** - * A specification of a polygon where the first and last points are assumed to be connected - * It includes a unique identification field for disambiguating multiple instances - */ -typedef struct geometry_msgs__msg__PolygonInstance -{ - geometry_msgs__msg__Polygon polygon; - int64_t id; -} geometry_msgs__msg__PolygonInstance; - -// Struct for a sequence of geometry_msgs__msg__PolygonInstance. -typedef struct geometry_msgs__msg__PolygonInstance__Sequence -{ - geometry_msgs__msg__PolygonInstance * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__PolygonInstance__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_instance__type_support.h b/src/geometry_msgs/msg/detail/polygon_instance__type_support.h deleted file mode 100755 index 52b16f4fc..000000000 --- a/src/geometry_msgs/msg/detail/polygon_instance__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/PolygonInstance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/polygon_instance.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - PolygonInstance -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_instance_stamped__functions.h b/src/geometry_msgs/msg/detail/polygon_instance_stamped__functions.h deleted file mode 100755 index 94bc8f262..000000000 --- a/src/geometry_msgs/msg/detail/polygon_instance_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/PolygonInstanceStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/polygon_instance_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/polygon_instance_stamped__struct.h" - -/// Initialize msg/PolygonInstanceStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__PolygonInstanceStamped - * )) before or use - * geometry_msgs__msg__PolygonInstanceStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonInstanceStamped__init(geometry_msgs__msg__PolygonInstanceStamped * msg); - -/// Finalize msg/PolygonInstanceStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PolygonInstanceStamped__fini(geometry_msgs__msg__PolygonInstanceStamped * msg); - -/// Create msg/PolygonInstanceStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__PolygonInstanceStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PolygonInstanceStamped * -geometry_msgs__msg__PolygonInstanceStamped__create(void); - -/// Destroy msg/PolygonInstanceStamped message. -/** - * It calls - * geometry_msgs__msg__PolygonInstanceStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PolygonInstanceStamped__destroy(geometry_msgs__msg__PolygonInstanceStamped * msg); - -/// Check for msg/PolygonInstanceStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonInstanceStamped__are_equal(const geometry_msgs__msg__PolygonInstanceStamped * lhs, const geometry_msgs__msg__PolygonInstanceStamped * rhs); - -/// Copy a msg/PolygonInstanceStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonInstanceStamped__copy( - const geometry_msgs__msg__PolygonInstanceStamped * input, - geometry_msgs__msg__PolygonInstanceStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__PolygonInstanceStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__PolygonInstanceStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__PolygonInstanceStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__PolygonInstanceStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/PolygonInstanceStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__PolygonInstanceStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonInstanceStamped__Sequence__init(geometry_msgs__msg__PolygonInstanceStamped__Sequence * array, size_t size); - -/// Finalize array of msg/PolygonInstanceStamped messages. -/** - * It calls - * geometry_msgs__msg__PolygonInstanceStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PolygonInstanceStamped__Sequence__fini(geometry_msgs__msg__PolygonInstanceStamped__Sequence * array); - -/// Create array of msg/PolygonInstanceStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__PolygonInstanceStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PolygonInstanceStamped__Sequence * -geometry_msgs__msg__PolygonInstanceStamped__Sequence__create(size_t size); - -/// Destroy array of msg/PolygonInstanceStamped messages. -/** - * It calls - * geometry_msgs__msg__PolygonInstanceStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PolygonInstanceStamped__Sequence__destroy(geometry_msgs__msg__PolygonInstanceStamped__Sequence * array); - -/// Check for msg/PolygonInstanceStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonInstanceStamped__Sequence__are_equal(const geometry_msgs__msg__PolygonInstanceStamped__Sequence * lhs, const geometry_msgs__msg__PolygonInstanceStamped__Sequence * rhs); - -/// Copy an array of msg/PolygonInstanceStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonInstanceStamped__Sequence__copy( - const geometry_msgs__msg__PolygonInstanceStamped__Sequence * input, - geometry_msgs__msg__PolygonInstanceStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_instance_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/polygon_instance_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 0da5edf5b..000000000 --- a/src/geometry_msgs/msg/detail/polygon_instance_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/PolygonInstanceStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, PolygonInstanceStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_instance_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/polygon_instance_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 38fc1da61..000000000 --- a/src/geometry_msgs/msg/detail/polygon_instance_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/PolygonInstanceStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__POLYGON_INSTANCE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__POLYGON_INSTANCE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__PolygonInstanceStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__PolygonInstanceStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, PolygonInstanceStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__POLYGON_INSTANCE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_instance_stamped__struct.h b/src/geometry_msgs/msg/detail/polygon_instance_stamped__struct.h deleted file mode 100755 index f914f9f12..000000000 --- a/src/geometry_msgs/msg/detail/polygon_instance_stamped__struct.h +++ /dev/null @@ -1,53 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/PolygonInstanceStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/polygon_instance_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'polygon' -#include "geometry_msgs/msg/detail/polygon_instance__struct.h" - -/// Struct defined in msg/PolygonInstanceStamped in the package geometry_msgs. -/** - * This represents a Polygon with reference coordinate frame and timestamp - * It includes a unique identification field for disambiguating multiple instances - */ -typedef struct geometry_msgs__msg__PolygonInstanceStamped -{ - std_msgs__msg__Header header; - geometry_msgs__msg__PolygonInstance polygon; -} geometry_msgs__msg__PolygonInstanceStamped; - -// Struct for a sequence of geometry_msgs__msg__PolygonInstanceStamped. -typedef struct geometry_msgs__msg__PolygonInstanceStamped__Sequence -{ - geometry_msgs__msg__PolygonInstanceStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__PolygonInstanceStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_instance_stamped__type_support.h b/src/geometry_msgs/msg/detail/polygon_instance_stamped__type_support.h deleted file mode 100755 index 02ca37f11..000000000 --- a/src/geometry_msgs/msg/detail/polygon_instance_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/PolygonInstanceStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/polygon_instance_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - PolygonInstanceStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON_INSTANCE_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_stamped__functions.h b/src/geometry_msgs/msg/detail/polygon_stamped__functions.h deleted file mode 100755 index e8c8277a5..000000000 --- a/src/geometry_msgs/msg/detail/polygon_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/PolygonStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/polygon_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/polygon_stamped__struct.h" - -/// Initialize msg/PolygonStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__PolygonStamped - * )) before or use - * geometry_msgs__msg__PolygonStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonStamped__init(geometry_msgs__msg__PolygonStamped * msg); - -/// Finalize msg/PolygonStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PolygonStamped__fini(geometry_msgs__msg__PolygonStamped * msg); - -/// Create msg/PolygonStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__PolygonStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PolygonStamped * -geometry_msgs__msg__PolygonStamped__create(void); - -/// Destroy msg/PolygonStamped message. -/** - * It calls - * geometry_msgs__msg__PolygonStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PolygonStamped__destroy(geometry_msgs__msg__PolygonStamped * msg); - -/// Check for msg/PolygonStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonStamped__are_equal(const geometry_msgs__msg__PolygonStamped * lhs, const geometry_msgs__msg__PolygonStamped * rhs); - -/// Copy a msg/PolygonStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonStamped__copy( - const geometry_msgs__msg__PolygonStamped * input, - geometry_msgs__msg__PolygonStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__PolygonStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__PolygonStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__PolygonStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__PolygonStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/PolygonStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__PolygonStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonStamped__Sequence__init(geometry_msgs__msg__PolygonStamped__Sequence * array, size_t size); - -/// Finalize array of msg/PolygonStamped messages. -/** - * It calls - * geometry_msgs__msg__PolygonStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PolygonStamped__Sequence__fini(geometry_msgs__msg__PolygonStamped__Sequence * array); - -/// Create array of msg/PolygonStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__PolygonStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PolygonStamped__Sequence * -geometry_msgs__msg__PolygonStamped__Sequence__create(size_t size); - -/// Destroy array of msg/PolygonStamped messages. -/** - * It calls - * geometry_msgs__msg__PolygonStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PolygonStamped__Sequence__destroy(geometry_msgs__msg__PolygonStamped__Sequence * array); - -/// Check for msg/PolygonStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonStamped__Sequence__are_equal(const geometry_msgs__msg__PolygonStamped__Sequence * lhs, const geometry_msgs__msg__PolygonStamped__Sequence * rhs); - -/// Copy an array of msg/PolygonStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PolygonStamped__Sequence__copy( - const geometry_msgs__msg__PolygonStamped__Sequence * input, - geometry_msgs__msg__PolygonStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/polygon_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index e69121424..000000000 --- a/src/geometry_msgs/msg/detail/polygon_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/PolygonStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, PolygonStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/polygon_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 2a1f0bc7b..000000000 --- a/src/geometry_msgs/msg/detail/polygon_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/PolygonStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__POLYGON_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__POLYGON_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__PolygonStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__PolygonStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, PolygonStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__POLYGON_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_stamped__struct.h b/src/geometry_msgs/msg/detail/polygon_stamped__struct.h deleted file mode 100755 index 554b739d7..000000000 --- a/src/geometry_msgs/msg/detail/polygon_stamped__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/PolygonStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/polygon_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'polygon' -#include "geometry_msgs/msg/detail/polygon__struct.h" - -/// Struct defined in msg/PolygonStamped in the package geometry_msgs. -/** - * This represents a Polygon with reference coordinate frame and timestamp - */ -typedef struct geometry_msgs__msg__PolygonStamped -{ - std_msgs__msg__Header header; - geometry_msgs__msg__Polygon polygon; -} geometry_msgs__msg__PolygonStamped; - -// Struct for a sequence of geometry_msgs__msg__PolygonStamped. -typedef struct geometry_msgs__msg__PolygonStamped__Sequence -{ - geometry_msgs__msg__PolygonStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__PolygonStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/polygon_stamped__type_support.h b/src/geometry_msgs/msg/detail/polygon_stamped__type_support.h deleted file mode 100755 index b6f919735..000000000 --- a/src/geometry_msgs/msg/detail/polygon_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/PolygonStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/polygon_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POLYGON_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POLYGON_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - PolygonStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POLYGON_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/pose2_d__functions.h b/src/geometry_msgs/msg/detail/pose2_d__functions.h deleted file mode 100755 index 0fac775fb..000000000 --- a/src/geometry_msgs/msg/detail/pose2_d__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/Pose2D.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose2_d.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE2_D__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE2_D__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/pose2_d__struct.h" - -/// Initialize msg/Pose2D message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__Pose2D - * )) before or use - * geometry_msgs__msg__Pose2D__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Pose2D__init(geometry_msgs__msg__Pose2D * msg); - -/// Finalize msg/Pose2D message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Pose2D__fini(geometry_msgs__msg__Pose2D * msg); - -/// Create msg/Pose2D message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__Pose2D__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Pose2D * -geometry_msgs__msg__Pose2D__create(void); - -/// Destroy msg/Pose2D message. -/** - * It calls - * geometry_msgs__msg__Pose2D__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Pose2D__destroy(geometry_msgs__msg__Pose2D * msg); - -/// Check for msg/Pose2D message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Pose2D__are_equal(const geometry_msgs__msg__Pose2D * lhs, const geometry_msgs__msg__Pose2D * rhs); - -/// Copy a msg/Pose2D message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Pose2D__copy( - const geometry_msgs__msg__Pose2D * input, - geometry_msgs__msg__Pose2D * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__Pose2D__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__Pose2D__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__Pose2D__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__Pose2D__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Pose2D messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__Pose2D__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Pose2D__Sequence__init(geometry_msgs__msg__Pose2D__Sequence * array, size_t size); - -/// Finalize array of msg/Pose2D messages. -/** - * It calls - * geometry_msgs__msg__Pose2D__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Pose2D__Sequence__fini(geometry_msgs__msg__Pose2D__Sequence * array); - -/// Create array of msg/Pose2D messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__Pose2D__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Pose2D__Sequence * -geometry_msgs__msg__Pose2D__Sequence__create(size_t size); - -/// Destroy array of msg/Pose2D messages. -/** - * It calls - * geometry_msgs__msg__Pose2D__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Pose2D__Sequence__destroy(geometry_msgs__msg__Pose2D__Sequence * array); - -/// Check for msg/Pose2D message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Pose2D__Sequence__are_equal(const geometry_msgs__msg__Pose2D__Sequence * lhs, const geometry_msgs__msg__Pose2D__Sequence * rhs); - -/// Copy an array of msg/Pose2D messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Pose2D__Sequence__copy( - const geometry_msgs__msg__Pose2D__Sequence * input, - geometry_msgs__msg__Pose2D__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE2_D__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/pose2_d__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/pose2_d__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 783c86de7..000000000 --- a/src/geometry_msgs/msg/detail/pose2_d__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/Pose2D.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE2_D__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE2_D__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, Pose2D)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE2_D__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/pose2_d__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/pose2_d__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 09c2c10eb..000000000 --- a/src/geometry_msgs/msg/detail/pose2_d__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/Pose2D.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__POSE2_D__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__POSE2_D__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__Pose2D( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__Pose2D( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, Pose2D)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__POSE2_D__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/pose2_d__struct.h b/src/geometry_msgs/msg/detail/pose2_d__struct.h deleted file mode 100755 index 672de3f40..000000000 --- a/src/geometry_msgs/msg/detail/pose2_d__struct.h +++ /dev/null @@ -1,50 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/Pose2D.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose2_d.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE2_D__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE2_D__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Pose2D in the package geometry_msgs. -/** - * Deprecated as of Foxy and will potentially be removed in any following release. - * Please use the full 3D pose. - */ -typedef struct geometry_msgs__msg__Pose2D -{ - /// In general our recommendation is to use a full 3D representation of everything and for 2D specific applications make the appropriate projections into the plane for their calculations but optimally will preserve the 3D information during processing. - /// If we have parallel copies of 2D datatypes every UI and other pipeline will end up needing to have dual interfaces to plot everything. And you will end up with not being able to use 3D tools for 2D use cases even if they're completely valid, as you'd have to reimplement it with different inputs and outputs. It's not particularly hard to plot the 2D pose or compute the yaw error for the Pose message and there are already tools and libraries that can do this for you.# This expresses a position and orientation on a 2D manifold. - double x; - double y; - double theta; -} geometry_msgs__msg__Pose2D; - -// Struct for a sequence of geometry_msgs__msg__Pose2D. -typedef struct geometry_msgs__msg__Pose2D__Sequence -{ - geometry_msgs__msg__Pose2D * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__Pose2D__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE2_D__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/pose2_d__type_support.h b/src/geometry_msgs/msg/detail/pose2_d__type_support.h deleted file mode 100755 index d74a530e3..000000000 --- a/src/geometry_msgs/msg/detail/pose2_d__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/Pose2D.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose2_d.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE2_D__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE2_D__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - Pose2D -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE2_D__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/pose__functions.h b/src/geometry_msgs/msg/detail/pose__functions.h deleted file mode 100755 index 711ef594b..000000000 --- a/src/geometry_msgs/msg/detail/pose__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/Pose.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/pose__struct.h" - -/// Initialize msg/Pose message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__Pose - * )) before or use - * geometry_msgs__msg__Pose__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Pose__init(geometry_msgs__msg__Pose * msg); - -/// Finalize msg/Pose message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Pose__fini(geometry_msgs__msg__Pose * msg); - -/// Create msg/Pose message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__Pose__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Pose * -geometry_msgs__msg__Pose__create(void); - -/// Destroy msg/Pose message. -/** - * It calls - * geometry_msgs__msg__Pose__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Pose__destroy(geometry_msgs__msg__Pose * msg); - -/// Check for msg/Pose message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Pose__are_equal(const geometry_msgs__msg__Pose * lhs, const geometry_msgs__msg__Pose * rhs); - -/// Copy a msg/Pose message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Pose__copy( - const geometry_msgs__msg__Pose * input, - geometry_msgs__msg__Pose * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__Pose__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__Pose__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__Pose__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__Pose__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Pose messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__Pose__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Pose__Sequence__init(geometry_msgs__msg__Pose__Sequence * array, size_t size); - -/// Finalize array of msg/Pose messages. -/** - * It calls - * geometry_msgs__msg__Pose__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Pose__Sequence__fini(geometry_msgs__msg__Pose__Sequence * array); - -/// Create array of msg/Pose messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__Pose__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Pose__Sequence * -geometry_msgs__msg__Pose__Sequence__create(size_t size); - -/// Destroy array of msg/Pose messages. -/** - * It calls - * geometry_msgs__msg__Pose__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Pose__Sequence__destroy(geometry_msgs__msg__Pose__Sequence * array); - -/// Check for msg/Pose message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Pose__Sequence__are_equal(const geometry_msgs__msg__Pose__Sequence * lhs, const geometry_msgs__msg__Pose__Sequence * rhs); - -/// Copy an array of msg/Pose messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Pose__Sequence__copy( - const geometry_msgs__msg__Pose__Sequence * input, - geometry_msgs__msg__Pose__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/pose__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/pose__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 234b13538..000000000 --- a/src/geometry_msgs/msg/detail/pose__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/Pose.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, Pose)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/pose__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/pose__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index f7697201a..000000000 --- a/src/geometry_msgs/msg/detail/pose__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/Pose.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__POSE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__POSE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__Pose( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__Pose( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, Pose)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__POSE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/pose__struct.h b/src/geometry_msgs/msg/detail/pose__struct.h deleted file mode 100755 index 15fbf11e1..000000000 --- a/src/geometry_msgs/msg/detail/pose__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/Pose.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'position' -#include "geometry_msgs/msg/detail/point__struct.h" -// Member 'orientation' -#include "geometry_msgs/msg/detail/quaternion__struct.h" - -/// Struct defined in msg/Pose in the package geometry_msgs. -/** - * A representation of pose in free space, composed of position and orientation. - */ -typedef struct geometry_msgs__msg__Pose -{ - geometry_msgs__msg__Point position; - geometry_msgs__msg__Quaternion orientation; -} geometry_msgs__msg__Pose; - -// Struct for a sequence of geometry_msgs__msg__Pose. -typedef struct geometry_msgs__msg__Pose__Sequence -{ - geometry_msgs__msg__Pose * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__Pose__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/pose__type_support.h b/src/geometry_msgs/msg/detail/pose__type_support.h deleted file mode 100755 index 8bd929b89..000000000 --- a/src/geometry_msgs/msg/detail/pose__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/Pose.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - Pose -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/pose_array__functions.h b/src/geometry_msgs/msg/detail/pose_array__functions.h deleted file mode 100755 index a838e39e8..000000000 --- a/src/geometry_msgs/msg/detail/pose_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/PoseArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose_array.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_ARRAY__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/pose_array__struct.h" - -/// Initialize msg/PoseArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__PoseArray - * )) before or use - * geometry_msgs__msg__PoseArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseArray__init(geometry_msgs__msg__PoseArray * msg); - -/// Finalize msg/PoseArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseArray__fini(geometry_msgs__msg__PoseArray * msg); - -/// Create msg/PoseArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__PoseArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PoseArray * -geometry_msgs__msg__PoseArray__create(void); - -/// Destroy msg/PoseArray message. -/** - * It calls - * geometry_msgs__msg__PoseArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseArray__destroy(geometry_msgs__msg__PoseArray * msg); - -/// Check for msg/PoseArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseArray__are_equal(const geometry_msgs__msg__PoseArray * lhs, const geometry_msgs__msg__PoseArray * rhs); - -/// Copy a msg/PoseArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseArray__copy( - const geometry_msgs__msg__PoseArray * input, - geometry_msgs__msg__PoseArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__PoseArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__PoseArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__PoseArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__PoseArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/PoseArray messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__PoseArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseArray__Sequence__init(geometry_msgs__msg__PoseArray__Sequence * array, size_t size); - -/// Finalize array of msg/PoseArray messages. -/** - * It calls - * geometry_msgs__msg__PoseArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseArray__Sequence__fini(geometry_msgs__msg__PoseArray__Sequence * array); - -/// Create array of msg/PoseArray messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__PoseArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PoseArray__Sequence * -geometry_msgs__msg__PoseArray__Sequence__create(size_t size); - -/// Destroy array of msg/PoseArray messages. -/** - * It calls - * geometry_msgs__msg__PoseArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseArray__Sequence__destroy(geometry_msgs__msg__PoseArray__Sequence * array); - -/// Check for msg/PoseArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseArray__Sequence__are_equal(const geometry_msgs__msg__PoseArray__Sequence * lhs, const geometry_msgs__msg__PoseArray__Sequence * rhs); - -/// Copy an array of msg/PoseArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseArray__Sequence__copy( - const geometry_msgs__msg__PoseArray__Sequence * input, - geometry_msgs__msg__PoseArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_ARRAY__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/pose_array__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/pose_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 0657286d8..000000000 --- a/src/geometry_msgs/msg/detail/pose_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/PoseArray.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, PoseArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/pose_array__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/pose_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index fa0c888d2..000000000 --- a/src/geometry_msgs/msg/detail/pose_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/PoseArray.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__POSE_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__POSE_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__PoseArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__PoseArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, PoseArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__POSE_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/pose_array__struct.h b/src/geometry_msgs/msg/detail/pose_array__struct.h deleted file mode 100755 index a9e463e95..000000000 --- a/src/geometry_msgs/msg/detail/pose_array__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/PoseArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose_array.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_ARRAY__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'poses' -#include "geometry_msgs/msg/detail/pose__struct.h" - -/// Struct defined in msg/PoseArray in the package geometry_msgs. -/** - * An array of poses with a header for global reference. - */ -typedef struct geometry_msgs__msg__PoseArray -{ - std_msgs__msg__Header header; - geometry_msgs__msg__Pose__Sequence poses; -} geometry_msgs__msg__PoseArray; - -// Struct for a sequence of geometry_msgs__msg__PoseArray. -typedef struct geometry_msgs__msg__PoseArray__Sequence -{ - geometry_msgs__msg__PoseArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__PoseArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_ARRAY__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/pose_array__type_support.h b/src/geometry_msgs/msg/detail/pose_array__type_support.h deleted file mode 100755 index 4801db087..000000000 --- a/src/geometry_msgs/msg/detail/pose_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/PoseArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose_array.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_ARRAY__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - PoseArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/pose_stamped__functions.h b/src/geometry_msgs/msg/detail/pose_stamped__functions.h deleted file mode 100755 index 412e8b647..000000000 --- a/src/geometry_msgs/msg/detail/pose_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/PoseStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/pose_stamped__struct.h" - -/// Initialize msg/PoseStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__PoseStamped - * )) before or use - * geometry_msgs__msg__PoseStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseStamped__init(geometry_msgs__msg__PoseStamped * msg); - -/// Finalize msg/PoseStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseStamped__fini(geometry_msgs__msg__PoseStamped * msg); - -/// Create msg/PoseStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__PoseStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PoseStamped * -geometry_msgs__msg__PoseStamped__create(void); - -/// Destroy msg/PoseStamped message. -/** - * It calls - * geometry_msgs__msg__PoseStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseStamped__destroy(geometry_msgs__msg__PoseStamped * msg); - -/// Check for msg/PoseStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseStamped__are_equal(const geometry_msgs__msg__PoseStamped * lhs, const geometry_msgs__msg__PoseStamped * rhs); - -/// Copy a msg/PoseStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseStamped__copy( - const geometry_msgs__msg__PoseStamped * input, - geometry_msgs__msg__PoseStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__PoseStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__PoseStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__PoseStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__PoseStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/PoseStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__PoseStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseStamped__Sequence__init(geometry_msgs__msg__PoseStamped__Sequence * array, size_t size); - -/// Finalize array of msg/PoseStamped messages. -/** - * It calls - * geometry_msgs__msg__PoseStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseStamped__Sequence__fini(geometry_msgs__msg__PoseStamped__Sequence * array); - -/// Create array of msg/PoseStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__PoseStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PoseStamped__Sequence * -geometry_msgs__msg__PoseStamped__Sequence__create(size_t size); - -/// Destroy array of msg/PoseStamped messages. -/** - * It calls - * geometry_msgs__msg__PoseStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseStamped__Sequence__destroy(geometry_msgs__msg__PoseStamped__Sequence * array); - -/// Check for msg/PoseStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseStamped__Sequence__are_equal(const geometry_msgs__msg__PoseStamped__Sequence * lhs, const geometry_msgs__msg__PoseStamped__Sequence * rhs); - -/// Copy an array of msg/PoseStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseStamped__Sequence__copy( - const geometry_msgs__msg__PoseStamped__Sequence * input, - geometry_msgs__msg__PoseStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/pose_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/pose_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 4b5636dd9..000000000 --- a/src/geometry_msgs/msg/detail/pose_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/PoseStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, PoseStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/pose_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/pose_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index cc54b89f2..000000000 --- a/src/geometry_msgs/msg/detail/pose_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/PoseStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__POSE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__POSE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__PoseStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__PoseStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, PoseStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__POSE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/pose_stamped__struct.h b/src/geometry_msgs/msg/detail/pose_stamped__struct.h deleted file mode 100755 index f04361ad8..000000000 --- a/src/geometry_msgs/msg/detail/pose_stamped__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/PoseStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'pose' -#include "geometry_msgs/msg/detail/pose__struct.h" - -/// Struct defined in msg/PoseStamped in the package geometry_msgs. -/** - * A Pose with reference coordinate frame and timestamp - */ -typedef struct geometry_msgs__msg__PoseStamped -{ - std_msgs__msg__Header header; - geometry_msgs__msg__Pose pose; -} geometry_msgs__msg__PoseStamped; - -// Struct for a sequence of geometry_msgs__msg__PoseStamped. -typedef struct geometry_msgs__msg__PoseStamped__Sequence -{ - geometry_msgs__msg__PoseStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__PoseStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/pose_stamped__type_support.h b/src/geometry_msgs/msg/detail/pose_stamped__type_support.h deleted file mode 100755 index 1455adaac..000000000 --- a/src/geometry_msgs/msg/detail/pose_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/PoseStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - PoseStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/pose_with_covariance__functions.h b/src/geometry_msgs/msg/detail/pose_with_covariance__functions.h deleted file mode 100755 index 05ccab862..000000000 --- a/src/geometry_msgs/msg/detail/pose_with_covariance__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/PoseWithCovariance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose_with_covariance.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/pose_with_covariance__struct.h" - -/// Initialize msg/PoseWithCovariance message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__PoseWithCovariance - * )) before or use - * geometry_msgs__msg__PoseWithCovariance__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseWithCovariance__init(geometry_msgs__msg__PoseWithCovariance * msg); - -/// Finalize msg/PoseWithCovariance message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseWithCovariance__fini(geometry_msgs__msg__PoseWithCovariance * msg); - -/// Create msg/PoseWithCovariance message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__PoseWithCovariance__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PoseWithCovariance * -geometry_msgs__msg__PoseWithCovariance__create(void); - -/// Destroy msg/PoseWithCovariance message. -/** - * It calls - * geometry_msgs__msg__PoseWithCovariance__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseWithCovariance__destroy(geometry_msgs__msg__PoseWithCovariance * msg); - -/// Check for msg/PoseWithCovariance message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseWithCovariance__are_equal(const geometry_msgs__msg__PoseWithCovariance * lhs, const geometry_msgs__msg__PoseWithCovariance * rhs); - -/// Copy a msg/PoseWithCovariance message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseWithCovariance__copy( - const geometry_msgs__msg__PoseWithCovariance * input, - geometry_msgs__msg__PoseWithCovariance * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__PoseWithCovariance__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__PoseWithCovariance__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__PoseWithCovariance__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__PoseWithCovariance__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/PoseWithCovariance messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__PoseWithCovariance__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseWithCovariance__Sequence__init(geometry_msgs__msg__PoseWithCovariance__Sequence * array, size_t size); - -/// Finalize array of msg/PoseWithCovariance messages. -/** - * It calls - * geometry_msgs__msg__PoseWithCovariance__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseWithCovariance__Sequence__fini(geometry_msgs__msg__PoseWithCovariance__Sequence * array); - -/// Create array of msg/PoseWithCovariance messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__PoseWithCovariance__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PoseWithCovariance__Sequence * -geometry_msgs__msg__PoseWithCovariance__Sequence__create(size_t size); - -/// Destroy array of msg/PoseWithCovariance messages. -/** - * It calls - * geometry_msgs__msg__PoseWithCovariance__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseWithCovariance__Sequence__destroy(geometry_msgs__msg__PoseWithCovariance__Sequence * array); - -/// Check for msg/PoseWithCovariance message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseWithCovariance__Sequence__are_equal(const geometry_msgs__msg__PoseWithCovariance__Sequence * lhs, const geometry_msgs__msg__PoseWithCovariance__Sequence * rhs); - -/// Copy an array of msg/PoseWithCovariance messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseWithCovariance__Sequence__copy( - const geometry_msgs__msg__PoseWithCovariance__Sequence * input, - geometry_msgs__msg__PoseWithCovariance__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/pose_with_covariance__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/pose_with_covariance__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 3cb1a292d..000000000 --- a/src/geometry_msgs/msg/detail/pose_with_covariance__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/PoseWithCovariance.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, PoseWithCovariance)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/pose_with_covariance__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/pose_with_covariance__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 356050d81..000000000 --- a/src/geometry_msgs/msg/detail/pose_with_covariance__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/PoseWithCovariance.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__POSE_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__POSE_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__PoseWithCovariance( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__PoseWithCovariance( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, PoseWithCovariance)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__POSE_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/pose_with_covariance__struct.h b/src/geometry_msgs/msg/detail/pose_with_covariance__struct.h deleted file mode 100755 index a53034abd..000000000 --- a/src/geometry_msgs/msg/detail/pose_with_covariance__struct.h +++ /dev/null @@ -1,54 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/PoseWithCovariance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose_with_covariance.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'pose' -#include "geometry_msgs/msg/detail/pose__struct.h" - -/// Struct defined in msg/PoseWithCovariance in the package geometry_msgs. -/** - * This represents a pose in free space with uncertainty. - */ -typedef struct geometry_msgs__msg__PoseWithCovariance -{ - geometry_msgs__msg__Pose pose; - /// Row-major representation of the 6x6 covariance matrix - /// The orientation parameters use a fixed-axis representation. - /// In order, the parameters are: - /// (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis) - double covariance[36]; -} geometry_msgs__msg__PoseWithCovariance; - -// Struct for a sequence of geometry_msgs__msg__PoseWithCovariance. -typedef struct geometry_msgs__msg__PoseWithCovariance__Sequence -{ - geometry_msgs__msg__PoseWithCovariance * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__PoseWithCovariance__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/pose_with_covariance__type_support.h b/src/geometry_msgs/msg/detail/pose_with_covariance__type_support.h deleted file mode 100755 index 1fa7eb5cb..000000000 --- a/src/geometry_msgs/msg/detail/pose_with_covariance__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/PoseWithCovariance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose_with_covariance.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - PoseWithCovariance -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__functions.h b/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__functions.h deleted file mode 100755 index 0297127c8..000000000 --- a/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/PoseWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose_with_covariance_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/pose_with_covariance_stamped__struct.h" - -/// Initialize msg/PoseWithCovarianceStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__PoseWithCovarianceStamped - * )) before or use - * geometry_msgs__msg__PoseWithCovarianceStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseWithCovarianceStamped__init(geometry_msgs__msg__PoseWithCovarianceStamped * msg); - -/// Finalize msg/PoseWithCovarianceStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseWithCovarianceStamped__fini(geometry_msgs__msg__PoseWithCovarianceStamped * msg); - -/// Create msg/PoseWithCovarianceStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__PoseWithCovarianceStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PoseWithCovarianceStamped * -geometry_msgs__msg__PoseWithCovarianceStamped__create(void); - -/// Destroy msg/PoseWithCovarianceStamped message. -/** - * It calls - * geometry_msgs__msg__PoseWithCovarianceStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseWithCovarianceStamped__destroy(geometry_msgs__msg__PoseWithCovarianceStamped * msg); - -/// Check for msg/PoseWithCovarianceStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseWithCovarianceStamped__are_equal(const geometry_msgs__msg__PoseWithCovarianceStamped * lhs, const geometry_msgs__msg__PoseWithCovarianceStamped * rhs); - -/// Copy a msg/PoseWithCovarianceStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseWithCovarianceStamped__copy( - const geometry_msgs__msg__PoseWithCovarianceStamped * input, - geometry_msgs__msg__PoseWithCovarianceStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__PoseWithCovarianceStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__PoseWithCovarianceStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__PoseWithCovarianceStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__PoseWithCovarianceStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/PoseWithCovarianceStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__PoseWithCovarianceStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseWithCovarianceStamped__Sequence__init(geometry_msgs__msg__PoseWithCovarianceStamped__Sequence * array, size_t size); - -/// Finalize array of msg/PoseWithCovarianceStamped messages. -/** - * It calls - * geometry_msgs__msg__PoseWithCovarianceStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseWithCovarianceStamped__Sequence__fini(geometry_msgs__msg__PoseWithCovarianceStamped__Sequence * array); - -/// Create array of msg/PoseWithCovarianceStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__PoseWithCovarianceStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__PoseWithCovarianceStamped__Sequence * -geometry_msgs__msg__PoseWithCovarianceStamped__Sequence__create(size_t size); - -/// Destroy array of msg/PoseWithCovarianceStamped messages. -/** - * It calls - * geometry_msgs__msg__PoseWithCovarianceStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__PoseWithCovarianceStamped__Sequence__destroy(geometry_msgs__msg__PoseWithCovarianceStamped__Sequence * array); - -/// Check for msg/PoseWithCovarianceStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseWithCovarianceStamped__Sequence__are_equal(const geometry_msgs__msg__PoseWithCovarianceStamped__Sequence * lhs, const geometry_msgs__msg__PoseWithCovarianceStamped__Sequence * rhs); - -/// Copy an array of msg/PoseWithCovarianceStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__PoseWithCovarianceStamped__Sequence__copy( - const geometry_msgs__msg__PoseWithCovarianceStamped__Sequence * input, - geometry_msgs__msg__PoseWithCovarianceStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 316cc2465..000000000 --- a/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/PoseWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, PoseWithCovarianceStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index d9823526e..000000000 --- a/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/PoseWithCovarianceStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__POSE_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__POSE_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__PoseWithCovarianceStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__PoseWithCovarianceStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, PoseWithCovarianceStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__POSE_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__struct.h b/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__struct.h deleted file mode 100755 index 96bfaffcc..000000000 --- a/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/PoseWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose_with_covariance_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'pose' -#include "geometry_msgs/msg/detail/pose_with_covariance__struct.h" - -/// Struct defined in msg/PoseWithCovarianceStamped in the package geometry_msgs. -/** - * This expresses an estimated pose with a reference coordinate frame and timestamp - */ -typedef struct geometry_msgs__msg__PoseWithCovarianceStamped -{ - std_msgs__msg__Header header; - geometry_msgs__msg__PoseWithCovariance pose; -} geometry_msgs__msg__PoseWithCovarianceStamped; - -// Struct for a sequence of geometry_msgs__msg__PoseWithCovarianceStamped. -typedef struct geometry_msgs__msg__PoseWithCovarianceStamped__Sequence -{ - geometry_msgs__msg__PoseWithCovarianceStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__PoseWithCovarianceStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__type_support.h b/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__type_support.h deleted file mode 100755 index ff25a1dbe..000000000 --- a/src/geometry_msgs/msg/detail/pose_with_covariance_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/PoseWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/pose_with_covariance_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - PoseWithCovarianceStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__POSE_WITH_COVARIANCE_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/quaternion__functions.h b/src/geometry_msgs/msg/detail/quaternion__functions.h deleted file mode 100755 index d72dd2677..000000000 --- a/src/geometry_msgs/msg/detail/quaternion__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/Quaternion.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/quaternion.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__QUATERNION__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__QUATERNION__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/quaternion__struct.h" - -/// Initialize msg/Quaternion message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__Quaternion - * )) before or use - * geometry_msgs__msg__Quaternion__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Quaternion__init(geometry_msgs__msg__Quaternion * msg); - -/// Finalize msg/Quaternion message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Quaternion__fini(geometry_msgs__msg__Quaternion * msg); - -/// Create msg/Quaternion message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__Quaternion__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Quaternion * -geometry_msgs__msg__Quaternion__create(void); - -/// Destroy msg/Quaternion message. -/** - * It calls - * geometry_msgs__msg__Quaternion__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Quaternion__destroy(geometry_msgs__msg__Quaternion * msg); - -/// Check for msg/Quaternion message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Quaternion__are_equal(const geometry_msgs__msg__Quaternion * lhs, const geometry_msgs__msg__Quaternion * rhs); - -/// Copy a msg/Quaternion message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Quaternion__copy( - const geometry_msgs__msg__Quaternion * input, - geometry_msgs__msg__Quaternion * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__Quaternion__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__Quaternion__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__Quaternion__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__Quaternion__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Quaternion messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__Quaternion__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Quaternion__Sequence__init(geometry_msgs__msg__Quaternion__Sequence * array, size_t size); - -/// Finalize array of msg/Quaternion messages. -/** - * It calls - * geometry_msgs__msg__Quaternion__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Quaternion__Sequence__fini(geometry_msgs__msg__Quaternion__Sequence * array); - -/// Create array of msg/Quaternion messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__Quaternion__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Quaternion__Sequence * -geometry_msgs__msg__Quaternion__Sequence__create(size_t size); - -/// Destroy array of msg/Quaternion messages. -/** - * It calls - * geometry_msgs__msg__Quaternion__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Quaternion__Sequence__destroy(geometry_msgs__msg__Quaternion__Sequence * array); - -/// Check for msg/Quaternion message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Quaternion__Sequence__are_equal(const geometry_msgs__msg__Quaternion__Sequence * lhs, const geometry_msgs__msg__Quaternion__Sequence * rhs); - -/// Copy an array of msg/Quaternion messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Quaternion__Sequence__copy( - const geometry_msgs__msg__Quaternion__Sequence * input, - geometry_msgs__msg__Quaternion__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__QUATERNION__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/quaternion__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/quaternion__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 58237d137..000000000 --- a/src/geometry_msgs/msg/detail/quaternion__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/Quaternion.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__QUATERNION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__QUATERNION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, Quaternion)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__QUATERNION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/quaternion__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/quaternion__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 2e054a5f1..000000000 --- a/src/geometry_msgs/msg/detail/quaternion__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/Quaternion.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__QUATERNION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__QUATERNION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__Quaternion( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__Quaternion( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, Quaternion)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__QUATERNION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/quaternion__struct.h b/src/geometry_msgs/msg/detail/quaternion__struct.h deleted file mode 100755 index 8dff6bbd2..000000000 --- a/src/geometry_msgs/msg/detail/quaternion__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/Quaternion.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/quaternion.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__QUATERNION__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__QUATERNION__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Quaternion in the package geometry_msgs. -/** - * This represents an orientation in free space in quaternion form. - */ -typedef struct geometry_msgs__msg__Quaternion -{ - double x; - double y; - double z; - double w; -} geometry_msgs__msg__Quaternion; - -// Struct for a sequence of geometry_msgs__msg__Quaternion. -typedef struct geometry_msgs__msg__Quaternion__Sequence -{ - geometry_msgs__msg__Quaternion * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__Quaternion__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__QUATERNION__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/quaternion__type_support.h b/src/geometry_msgs/msg/detail/quaternion__type_support.h deleted file mode 100755 index dc2178794..000000000 --- a/src/geometry_msgs/msg/detail/quaternion__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/Quaternion.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/quaternion.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__QUATERNION__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__QUATERNION__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - Quaternion -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__QUATERNION__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/quaternion_stamped__functions.h b/src/geometry_msgs/msg/detail/quaternion_stamped__functions.h deleted file mode 100755 index 263ad473d..000000000 --- a/src/geometry_msgs/msg/detail/quaternion_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/QuaternionStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/quaternion_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__QUATERNION_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__QUATERNION_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/quaternion_stamped__struct.h" - -/// Initialize msg/QuaternionStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__QuaternionStamped - * )) before or use - * geometry_msgs__msg__QuaternionStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__QuaternionStamped__init(geometry_msgs__msg__QuaternionStamped * msg); - -/// Finalize msg/QuaternionStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__QuaternionStamped__fini(geometry_msgs__msg__QuaternionStamped * msg); - -/// Create msg/QuaternionStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__QuaternionStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__QuaternionStamped * -geometry_msgs__msg__QuaternionStamped__create(void); - -/// Destroy msg/QuaternionStamped message. -/** - * It calls - * geometry_msgs__msg__QuaternionStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__QuaternionStamped__destroy(geometry_msgs__msg__QuaternionStamped * msg); - -/// Check for msg/QuaternionStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__QuaternionStamped__are_equal(const geometry_msgs__msg__QuaternionStamped * lhs, const geometry_msgs__msg__QuaternionStamped * rhs); - -/// Copy a msg/QuaternionStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__QuaternionStamped__copy( - const geometry_msgs__msg__QuaternionStamped * input, - geometry_msgs__msg__QuaternionStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__QuaternionStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__QuaternionStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__QuaternionStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__QuaternionStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/QuaternionStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__QuaternionStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__QuaternionStamped__Sequence__init(geometry_msgs__msg__QuaternionStamped__Sequence * array, size_t size); - -/// Finalize array of msg/QuaternionStamped messages. -/** - * It calls - * geometry_msgs__msg__QuaternionStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__QuaternionStamped__Sequence__fini(geometry_msgs__msg__QuaternionStamped__Sequence * array); - -/// Create array of msg/QuaternionStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__QuaternionStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__QuaternionStamped__Sequence * -geometry_msgs__msg__QuaternionStamped__Sequence__create(size_t size); - -/// Destroy array of msg/QuaternionStamped messages. -/** - * It calls - * geometry_msgs__msg__QuaternionStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__QuaternionStamped__Sequence__destroy(geometry_msgs__msg__QuaternionStamped__Sequence * array); - -/// Check for msg/QuaternionStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__QuaternionStamped__Sequence__are_equal(const geometry_msgs__msg__QuaternionStamped__Sequence * lhs, const geometry_msgs__msg__QuaternionStamped__Sequence * rhs); - -/// Copy an array of msg/QuaternionStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__QuaternionStamped__Sequence__copy( - const geometry_msgs__msg__QuaternionStamped__Sequence * input, - geometry_msgs__msg__QuaternionStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__QUATERNION_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/quaternion_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/quaternion_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index e7abccfba..000000000 --- a/src/geometry_msgs/msg/detail/quaternion_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/QuaternionStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__QUATERNION_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__QUATERNION_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, QuaternionStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__QUATERNION_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/quaternion_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/quaternion_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 2d43621b8..000000000 --- a/src/geometry_msgs/msg/detail/quaternion_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/QuaternionStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__QUATERNION_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__QUATERNION_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__QuaternionStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__QuaternionStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, QuaternionStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__QUATERNION_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/quaternion_stamped__struct.h b/src/geometry_msgs/msg/detail/quaternion_stamped__struct.h deleted file mode 100755 index 2f7c8f2cb..000000000 --- a/src/geometry_msgs/msg/detail/quaternion_stamped__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/QuaternionStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/quaternion_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__QUATERNION_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__QUATERNION_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'quaternion' -#include "geometry_msgs/msg/detail/quaternion__struct.h" - -/// Struct defined in msg/QuaternionStamped in the package geometry_msgs. -/** - * This represents an orientation with reference coordinate frame and timestamp. - */ -typedef struct geometry_msgs__msg__QuaternionStamped -{ - std_msgs__msg__Header header; - geometry_msgs__msg__Quaternion quaternion; -} geometry_msgs__msg__QuaternionStamped; - -// Struct for a sequence of geometry_msgs__msg__QuaternionStamped. -typedef struct geometry_msgs__msg__QuaternionStamped__Sequence -{ - geometry_msgs__msg__QuaternionStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__QuaternionStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__QUATERNION_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/quaternion_stamped__type_support.h b/src/geometry_msgs/msg/detail/quaternion_stamped__type_support.h deleted file mode 100755 index ed5dd9346..000000000 --- a/src/geometry_msgs/msg/detail/quaternion_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/QuaternionStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/quaternion_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__QUATERNION_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__QUATERNION_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - QuaternionStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__QUATERNION_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/transform__functions.h b/src/geometry_msgs/msg/detail/transform__functions.h deleted file mode 100755 index dc95dd83f..000000000 --- a/src/geometry_msgs/msg/detail/transform__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/Transform.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/transform.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/transform__struct.h" - -/// Initialize msg/Transform message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__Transform - * )) before or use - * geometry_msgs__msg__Transform__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Transform__init(geometry_msgs__msg__Transform * msg); - -/// Finalize msg/Transform message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Transform__fini(geometry_msgs__msg__Transform * msg); - -/// Create msg/Transform message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__Transform__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Transform * -geometry_msgs__msg__Transform__create(void); - -/// Destroy msg/Transform message. -/** - * It calls - * geometry_msgs__msg__Transform__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Transform__destroy(geometry_msgs__msg__Transform * msg); - -/// Check for msg/Transform message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Transform__are_equal(const geometry_msgs__msg__Transform * lhs, const geometry_msgs__msg__Transform * rhs); - -/// Copy a msg/Transform message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Transform__copy( - const geometry_msgs__msg__Transform * input, - geometry_msgs__msg__Transform * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__Transform__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__Transform__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__Transform__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__Transform__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Transform messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__Transform__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Transform__Sequence__init(geometry_msgs__msg__Transform__Sequence * array, size_t size); - -/// Finalize array of msg/Transform messages. -/** - * It calls - * geometry_msgs__msg__Transform__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Transform__Sequence__fini(geometry_msgs__msg__Transform__Sequence * array); - -/// Create array of msg/Transform messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__Transform__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Transform__Sequence * -geometry_msgs__msg__Transform__Sequence__create(size_t size); - -/// Destroy array of msg/Transform messages. -/** - * It calls - * geometry_msgs__msg__Transform__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Transform__Sequence__destroy(geometry_msgs__msg__Transform__Sequence * array); - -/// Check for msg/Transform message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Transform__Sequence__are_equal(const geometry_msgs__msg__Transform__Sequence * lhs, const geometry_msgs__msg__Transform__Sequence * rhs); - -/// Copy an array of msg/Transform messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Transform__Sequence__copy( - const geometry_msgs__msg__Transform__Sequence * input, - geometry_msgs__msg__Transform__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/transform__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/transform__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 59a2e4e3b..000000000 --- a/src/geometry_msgs/msg/detail/transform__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/Transform.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, Transform)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/transform__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/transform__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 62572819b..000000000 --- a/src/geometry_msgs/msg/detail/transform__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/Transform.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__TRANSFORM__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__TRANSFORM__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__Transform( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__Transform( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, Transform)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__TRANSFORM__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/transform__struct.h b/src/geometry_msgs/msg/detail/transform__struct.h deleted file mode 100755 index d44adb235..000000000 --- a/src/geometry_msgs/msg/detail/transform__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/Transform.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/transform.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'translation' -#include "geometry_msgs/msg/detail/vector3__struct.h" -// Member 'rotation' -#include "geometry_msgs/msg/detail/quaternion__struct.h" - -/// Struct defined in msg/Transform in the package geometry_msgs. -/** - * This represents the transform between two coordinate frames in free space. - */ -typedef struct geometry_msgs__msg__Transform -{ - geometry_msgs__msg__Vector3 translation; - geometry_msgs__msg__Quaternion rotation; -} geometry_msgs__msg__Transform; - -// Struct for a sequence of geometry_msgs__msg__Transform. -typedef struct geometry_msgs__msg__Transform__Sequence -{ - geometry_msgs__msg__Transform * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__Transform__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/transform__type_support.h b/src/geometry_msgs/msg/detail/transform__type_support.h deleted file mode 100755 index d51c7703d..000000000 --- a/src/geometry_msgs/msg/detail/transform__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/Transform.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/transform.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - Transform -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/transform_stamped__functions.h b/src/geometry_msgs/msg/detail/transform_stamped__functions.h deleted file mode 100755 index 061726d3b..000000000 --- a/src/geometry_msgs/msg/detail/transform_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/TransformStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/transform_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/transform_stamped__struct.h" - -/// Initialize msg/TransformStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__TransformStamped - * )) before or use - * geometry_msgs__msg__TransformStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TransformStamped__init(geometry_msgs__msg__TransformStamped * msg); - -/// Finalize msg/TransformStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TransformStamped__fini(geometry_msgs__msg__TransformStamped * msg); - -/// Create msg/TransformStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__TransformStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__TransformStamped * -geometry_msgs__msg__TransformStamped__create(void); - -/// Destroy msg/TransformStamped message. -/** - * It calls - * geometry_msgs__msg__TransformStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TransformStamped__destroy(geometry_msgs__msg__TransformStamped * msg); - -/// Check for msg/TransformStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TransformStamped__are_equal(const geometry_msgs__msg__TransformStamped * lhs, const geometry_msgs__msg__TransformStamped * rhs); - -/// Copy a msg/TransformStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TransformStamped__copy( - const geometry_msgs__msg__TransformStamped * input, - geometry_msgs__msg__TransformStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__TransformStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__TransformStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__TransformStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__TransformStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/TransformStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__TransformStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TransformStamped__Sequence__init(geometry_msgs__msg__TransformStamped__Sequence * array, size_t size); - -/// Finalize array of msg/TransformStamped messages. -/** - * It calls - * geometry_msgs__msg__TransformStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TransformStamped__Sequence__fini(geometry_msgs__msg__TransformStamped__Sequence * array); - -/// Create array of msg/TransformStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__TransformStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__TransformStamped__Sequence * -geometry_msgs__msg__TransformStamped__Sequence__create(size_t size); - -/// Destroy array of msg/TransformStamped messages. -/** - * It calls - * geometry_msgs__msg__TransformStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TransformStamped__Sequence__destroy(geometry_msgs__msg__TransformStamped__Sequence * array); - -/// Check for msg/TransformStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TransformStamped__Sequence__are_equal(const geometry_msgs__msg__TransformStamped__Sequence * lhs, const geometry_msgs__msg__TransformStamped__Sequence * rhs); - -/// Copy an array of msg/TransformStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TransformStamped__Sequence__copy( - const geometry_msgs__msg__TransformStamped__Sequence * input, - geometry_msgs__msg__TransformStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/transform_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/transform_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index e2fdace19..000000000 --- a/src/geometry_msgs/msg/detail/transform_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/TransformStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, TransformStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/transform_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/transform_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 61cc5aca5..000000000 --- a/src/geometry_msgs/msg/detail/transform_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/TransformStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__TRANSFORM_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__TRANSFORM_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__TransformStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__TransformStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, TransformStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__TRANSFORM_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/transform_stamped__struct.h b/src/geometry_msgs/msg/detail/transform_stamped__struct.h deleted file mode 100755 index f8f756f3a..000000000 --- a/src/geometry_msgs/msg/detail/transform_stamped__struct.h +++ /dev/null @@ -1,67 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/TransformStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/transform_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'child_frame_id' -#include "rosidl_runtime_c/string.h" -// Member 'transform' -#include "geometry_msgs/msg/detail/transform__struct.h" - -/// Struct defined in msg/TransformStamped in the package geometry_msgs. -/** - * This expresses a transform from coordinate frame header.frame_id - * to the coordinate frame child_frame_id at the time of header.stamp - * - * This message is mostly used by the - * tf2 package. - * See its documentation for more information. - * - * The child_frame_id is necessary in addition to the frame_id - * in the Header to communicate the full reference for the transform - * in a self contained message. - */ -typedef struct geometry_msgs__msg__TransformStamped -{ - /// The frame id in the header is used as the reference frame of this transform. - std_msgs__msg__Header header; - /// The frame id of the child frame to which this transform points. - rosidl_runtime_c__String child_frame_id; - /// Translation and rotation in 3-dimensions of child_frame_id from header.frame_id. - geometry_msgs__msg__Transform transform; -} geometry_msgs__msg__TransformStamped; - -// Struct for a sequence of geometry_msgs__msg__TransformStamped. -typedef struct geometry_msgs__msg__TransformStamped__Sequence -{ - geometry_msgs__msg__TransformStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__TransformStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/transform_stamped__type_support.h b/src/geometry_msgs/msg/detail/transform_stamped__type_support.h deleted file mode 100755 index 411bc1815..000000000 --- a/src/geometry_msgs/msg/detail/transform_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/TransformStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/transform_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - TransformStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TRANSFORM_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/twist__functions.h b/src/geometry_msgs/msg/detail/twist__functions.h deleted file mode 100755 index 42e927c8d..000000000 --- a/src/geometry_msgs/msg/detail/twist__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/Twist.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/twist.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/twist__struct.h" - -/// Initialize msg/Twist message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__Twist - * )) before or use - * geometry_msgs__msg__Twist__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Twist__init(geometry_msgs__msg__Twist * msg); - -/// Finalize msg/Twist message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Twist__fini(geometry_msgs__msg__Twist * msg); - -/// Create msg/Twist message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__Twist__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Twist * -geometry_msgs__msg__Twist__create(void); - -/// Destroy msg/Twist message. -/** - * It calls - * geometry_msgs__msg__Twist__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Twist__destroy(geometry_msgs__msg__Twist * msg); - -/// Check for msg/Twist message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Twist__are_equal(const geometry_msgs__msg__Twist * lhs, const geometry_msgs__msg__Twist * rhs); - -/// Copy a msg/Twist message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Twist__copy( - const geometry_msgs__msg__Twist * input, - geometry_msgs__msg__Twist * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__Twist__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__Twist__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__Twist__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__Twist__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Twist messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__Twist__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Twist__Sequence__init(geometry_msgs__msg__Twist__Sequence * array, size_t size); - -/// Finalize array of msg/Twist messages. -/** - * It calls - * geometry_msgs__msg__Twist__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Twist__Sequence__fini(geometry_msgs__msg__Twist__Sequence * array); - -/// Create array of msg/Twist messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__Twist__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Twist__Sequence * -geometry_msgs__msg__Twist__Sequence__create(size_t size); - -/// Destroy array of msg/Twist messages. -/** - * It calls - * geometry_msgs__msg__Twist__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Twist__Sequence__destroy(geometry_msgs__msg__Twist__Sequence * array); - -/// Check for msg/Twist message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Twist__Sequence__are_equal(const geometry_msgs__msg__Twist__Sequence * lhs, const geometry_msgs__msg__Twist__Sequence * rhs); - -/// Copy an array of msg/Twist messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Twist__Sequence__copy( - const geometry_msgs__msg__Twist__Sequence * input, - geometry_msgs__msg__Twist__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/twist__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/twist__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5487f8721..000000000 --- a/src/geometry_msgs/msg/detail/twist__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/Twist.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, Twist)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/twist__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/twist__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index b7a12a737..000000000 --- a/src/geometry_msgs/msg/detail/twist__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/Twist.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__TWIST__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__TWIST__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__Twist( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__Twist( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, Twist)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__TWIST__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/twist__struct.h b/src/geometry_msgs/msg/detail/twist__struct.h deleted file mode 100755 index 98fff3ad2..000000000 --- a/src/geometry_msgs/msg/detail/twist__struct.h +++ /dev/null @@ -1,51 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/Twist.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/twist.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'linear' -// Member 'angular' -#include "geometry_msgs/msg/detail/vector3__struct.h" - -/// Struct defined in msg/Twist in the package geometry_msgs. -/** - * This expresses velocity in free space broken into its linear and angular parts. - */ -typedef struct geometry_msgs__msg__Twist -{ - geometry_msgs__msg__Vector3 linear; - geometry_msgs__msg__Vector3 angular; -} geometry_msgs__msg__Twist; - -// Struct for a sequence of geometry_msgs__msg__Twist. -typedef struct geometry_msgs__msg__Twist__Sequence -{ - geometry_msgs__msg__Twist * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__Twist__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/twist__type_support.h b/src/geometry_msgs/msg/detail/twist__type_support.h deleted file mode 100755 index 6b4e5be12..000000000 --- a/src/geometry_msgs/msg/detail/twist__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/Twist.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/twist.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - Twist -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/twist_stamped__functions.h b/src/geometry_msgs/msg/detail/twist_stamped__functions.h deleted file mode 100755 index 1acb905bb..000000000 --- a/src/geometry_msgs/msg/detail/twist_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/TwistStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/twist_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/twist_stamped__struct.h" - -/// Initialize msg/TwistStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__TwistStamped - * )) before or use - * geometry_msgs__msg__TwistStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistStamped__init(geometry_msgs__msg__TwistStamped * msg); - -/// Finalize msg/TwistStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TwistStamped__fini(geometry_msgs__msg__TwistStamped * msg); - -/// Create msg/TwistStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__TwistStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__TwistStamped * -geometry_msgs__msg__TwistStamped__create(void); - -/// Destroy msg/TwistStamped message. -/** - * It calls - * geometry_msgs__msg__TwistStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TwistStamped__destroy(geometry_msgs__msg__TwistStamped * msg); - -/// Check for msg/TwistStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistStamped__are_equal(const geometry_msgs__msg__TwistStamped * lhs, const geometry_msgs__msg__TwistStamped * rhs); - -/// Copy a msg/TwistStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistStamped__copy( - const geometry_msgs__msg__TwistStamped * input, - geometry_msgs__msg__TwistStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__TwistStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__TwistStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__TwistStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__TwistStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/TwistStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__TwistStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistStamped__Sequence__init(geometry_msgs__msg__TwistStamped__Sequence * array, size_t size); - -/// Finalize array of msg/TwistStamped messages. -/** - * It calls - * geometry_msgs__msg__TwistStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TwistStamped__Sequence__fini(geometry_msgs__msg__TwistStamped__Sequence * array); - -/// Create array of msg/TwistStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__TwistStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__TwistStamped__Sequence * -geometry_msgs__msg__TwistStamped__Sequence__create(size_t size); - -/// Destroy array of msg/TwistStamped messages. -/** - * It calls - * geometry_msgs__msg__TwistStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TwistStamped__Sequence__destroy(geometry_msgs__msg__TwistStamped__Sequence * array); - -/// Check for msg/TwistStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistStamped__Sequence__are_equal(const geometry_msgs__msg__TwistStamped__Sequence * lhs, const geometry_msgs__msg__TwistStamped__Sequence * rhs); - -/// Copy an array of msg/TwistStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistStamped__Sequence__copy( - const geometry_msgs__msg__TwistStamped__Sequence * input, - geometry_msgs__msg__TwistStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/twist_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/twist_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 2b5c8ef44..000000000 --- a/src/geometry_msgs/msg/detail/twist_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/TwistStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, TwistStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/twist_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/twist_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 2ca5060d9..000000000 --- a/src/geometry_msgs/msg/detail/twist_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/TwistStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__TWIST_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__TWIST_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__TwistStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__TwistStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, TwistStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__TWIST_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/twist_stamped__struct.h b/src/geometry_msgs/msg/detail/twist_stamped__struct.h deleted file mode 100755 index 2c9b03e3d..000000000 --- a/src/geometry_msgs/msg/detail/twist_stamped__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/TwistStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/twist_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'twist' -#include "geometry_msgs/msg/detail/twist__struct.h" - -/// Struct defined in msg/TwistStamped in the package geometry_msgs. -/** - * A twist with reference coordinate frame and timestamp - */ -typedef struct geometry_msgs__msg__TwistStamped -{ - std_msgs__msg__Header header; - geometry_msgs__msg__Twist twist; -} geometry_msgs__msg__TwistStamped; - -// Struct for a sequence of geometry_msgs__msg__TwistStamped. -typedef struct geometry_msgs__msg__TwistStamped__Sequence -{ - geometry_msgs__msg__TwistStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__TwistStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/twist_stamped__type_support.h b/src/geometry_msgs/msg/detail/twist_stamped__type_support.h deleted file mode 100755 index 33f127e9c..000000000 --- a/src/geometry_msgs/msg/detail/twist_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/TwistStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/twist_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - TwistStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/twist_with_covariance__functions.h b/src/geometry_msgs/msg/detail/twist_with_covariance__functions.h deleted file mode 100755 index e77c8f68e..000000000 --- a/src/geometry_msgs/msg/detail/twist_with_covariance__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/TwistWithCovariance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/twist_with_covariance.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/twist_with_covariance__struct.h" - -/// Initialize msg/TwistWithCovariance message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__TwistWithCovariance - * )) before or use - * geometry_msgs__msg__TwistWithCovariance__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistWithCovariance__init(geometry_msgs__msg__TwistWithCovariance * msg); - -/// Finalize msg/TwistWithCovariance message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TwistWithCovariance__fini(geometry_msgs__msg__TwistWithCovariance * msg); - -/// Create msg/TwistWithCovariance message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__TwistWithCovariance__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__TwistWithCovariance * -geometry_msgs__msg__TwistWithCovariance__create(void); - -/// Destroy msg/TwistWithCovariance message. -/** - * It calls - * geometry_msgs__msg__TwistWithCovariance__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TwistWithCovariance__destroy(geometry_msgs__msg__TwistWithCovariance * msg); - -/// Check for msg/TwistWithCovariance message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistWithCovariance__are_equal(const geometry_msgs__msg__TwistWithCovariance * lhs, const geometry_msgs__msg__TwistWithCovariance * rhs); - -/// Copy a msg/TwistWithCovariance message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistWithCovariance__copy( - const geometry_msgs__msg__TwistWithCovariance * input, - geometry_msgs__msg__TwistWithCovariance * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__TwistWithCovariance__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__TwistWithCovariance__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__TwistWithCovariance__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__TwistWithCovariance__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/TwistWithCovariance messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__TwistWithCovariance__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistWithCovariance__Sequence__init(geometry_msgs__msg__TwistWithCovariance__Sequence * array, size_t size); - -/// Finalize array of msg/TwistWithCovariance messages. -/** - * It calls - * geometry_msgs__msg__TwistWithCovariance__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TwistWithCovariance__Sequence__fini(geometry_msgs__msg__TwistWithCovariance__Sequence * array); - -/// Create array of msg/TwistWithCovariance messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__TwistWithCovariance__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__TwistWithCovariance__Sequence * -geometry_msgs__msg__TwistWithCovariance__Sequence__create(size_t size); - -/// Destroy array of msg/TwistWithCovariance messages. -/** - * It calls - * geometry_msgs__msg__TwistWithCovariance__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TwistWithCovariance__Sequence__destroy(geometry_msgs__msg__TwistWithCovariance__Sequence * array); - -/// Check for msg/TwistWithCovariance message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistWithCovariance__Sequence__are_equal(const geometry_msgs__msg__TwistWithCovariance__Sequence * lhs, const geometry_msgs__msg__TwistWithCovariance__Sequence * rhs); - -/// Copy an array of msg/TwistWithCovariance messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistWithCovariance__Sequence__copy( - const geometry_msgs__msg__TwistWithCovariance__Sequence * input, - geometry_msgs__msg__TwistWithCovariance__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/twist_with_covariance__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/twist_with_covariance__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 6481e6d90..000000000 --- a/src/geometry_msgs/msg/detail/twist_with_covariance__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/TwistWithCovariance.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, TwistWithCovariance)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/twist_with_covariance__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/twist_with_covariance__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 664cc7240..000000000 --- a/src/geometry_msgs/msg/detail/twist_with_covariance__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/TwistWithCovariance.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__TWIST_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__TWIST_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__TwistWithCovariance( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__TwistWithCovariance( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, TwistWithCovariance)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__TWIST_WITH_COVARIANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/twist_with_covariance__struct.h b/src/geometry_msgs/msg/detail/twist_with_covariance__struct.h deleted file mode 100755 index d427d69e8..000000000 --- a/src/geometry_msgs/msg/detail/twist_with_covariance__struct.h +++ /dev/null @@ -1,54 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/TwistWithCovariance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/twist_with_covariance.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'twist' -#include "geometry_msgs/msg/detail/twist__struct.h" - -/// Struct defined in msg/TwistWithCovariance in the package geometry_msgs. -/** - * This expresses velocity in free space with uncertainty. - */ -typedef struct geometry_msgs__msg__TwistWithCovariance -{ - geometry_msgs__msg__Twist twist; - /// Row-major representation of the 6x6 covariance matrix - /// The orientation parameters use a fixed-axis representation. - /// In order, the parameters are: - /// (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis) - double covariance[36]; -} geometry_msgs__msg__TwistWithCovariance; - -// Struct for a sequence of geometry_msgs__msg__TwistWithCovariance. -typedef struct geometry_msgs__msg__TwistWithCovariance__Sequence -{ - geometry_msgs__msg__TwistWithCovariance * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__TwistWithCovariance__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/twist_with_covariance__type_support.h b/src/geometry_msgs/msg/detail/twist_with_covariance__type_support.h deleted file mode 100755 index bda6e2b24..000000000 --- a/src/geometry_msgs/msg/detail/twist_with_covariance__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/TwistWithCovariance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/twist_with_covariance.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - TwistWithCovariance -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__functions.h b/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__functions.h deleted file mode 100755 index f8012b5b0..000000000 --- a/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/TwistWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/twist_with_covariance_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/twist_with_covariance_stamped__struct.h" - -/// Initialize msg/TwistWithCovarianceStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__TwistWithCovarianceStamped - * )) before or use - * geometry_msgs__msg__TwistWithCovarianceStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistWithCovarianceStamped__init(geometry_msgs__msg__TwistWithCovarianceStamped * msg); - -/// Finalize msg/TwistWithCovarianceStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TwistWithCovarianceStamped__fini(geometry_msgs__msg__TwistWithCovarianceStamped * msg); - -/// Create msg/TwistWithCovarianceStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__TwistWithCovarianceStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__TwistWithCovarianceStamped * -geometry_msgs__msg__TwistWithCovarianceStamped__create(void); - -/// Destroy msg/TwistWithCovarianceStamped message. -/** - * It calls - * geometry_msgs__msg__TwistWithCovarianceStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TwistWithCovarianceStamped__destroy(geometry_msgs__msg__TwistWithCovarianceStamped * msg); - -/// Check for msg/TwistWithCovarianceStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistWithCovarianceStamped__are_equal(const geometry_msgs__msg__TwistWithCovarianceStamped * lhs, const geometry_msgs__msg__TwistWithCovarianceStamped * rhs); - -/// Copy a msg/TwistWithCovarianceStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistWithCovarianceStamped__copy( - const geometry_msgs__msg__TwistWithCovarianceStamped * input, - geometry_msgs__msg__TwistWithCovarianceStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__TwistWithCovarianceStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__TwistWithCovarianceStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__TwistWithCovarianceStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__TwistWithCovarianceStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/TwistWithCovarianceStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__TwistWithCovarianceStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistWithCovarianceStamped__Sequence__init(geometry_msgs__msg__TwistWithCovarianceStamped__Sequence * array, size_t size); - -/// Finalize array of msg/TwistWithCovarianceStamped messages. -/** - * It calls - * geometry_msgs__msg__TwistWithCovarianceStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TwistWithCovarianceStamped__Sequence__fini(geometry_msgs__msg__TwistWithCovarianceStamped__Sequence * array); - -/// Create array of msg/TwistWithCovarianceStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__TwistWithCovarianceStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__TwistWithCovarianceStamped__Sequence * -geometry_msgs__msg__TwistWithCovarianceStamped__Sequence__create(size_t size); - -/// Destroy array of msg/TwistWithCovarianceStamped messages. -/** - * It calls - * geometry_msgs__msg__TwistWithCovarianceStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__TwistWithCovarianceStamped__Sequence__destroy(geometry_msgs__msg__TwistWithCovarianceStamped__Sequence * array); - -/// Check for msg/TwistWithCovarianceStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistWithCovarianceStamped__Sequence__are_equal(const geometry_msgs__msg__TwistWithCovarianceStamped__Sequence * lhs, const geometry_msgs__msg__TwistWithCovarianceStamped__Sequence * rhs); - -/// Copy an array of msg/TwistWithCovarianceStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__TwistWithCovarianceStamped__Sequence__copy( - const geometry_msgs__msg__TwistWithCovarianceStamped__Sequence * input, - geometry_msgs__msg__TwistWithCovarianceStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index fe66f1a2e..000000000 --- a/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/TwistWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, TwistWithCovarianceStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 03d93b3b8..000000000 --- a/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/TwistWithCovarianceStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__TWIST_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__TWIST_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__TwistWithCovarianceStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__TwistWithCovarianceStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, TwistWithCovarianceStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__TWIST_WITH_COVARIANCE_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__struct.h b/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__struct.h deleted file mode 100755 index ecf011d62..000000000 --- a/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/TwistWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/twist_with_covariance_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'twist' -#include "geometry_msgs/msg/detail/twist_with_covariance__struct.h" - -/// Struct defined in msg/TwistWithCovarianceStamped in the package geometry_msgs. -/** - * This represents an estimated twist with reference coordinate frame and timestamp. - */ -typedef struct geometry_msgs__msg__TwistWithCovarianceStamped -{ - std_msgs__msg__Header header; - geometry_msgs__msg__TwistWithCovariance twist; -} geometry_msgs__msg__TwistWithCovarianceStamped; - -// Struct for a sequence of geometry_msgs__msg__TwistWithCovarianceStamped. -typedef struct geometry_msgs__msg__TwistWithCovarianceStamped__Sequence -{ - geometry_msgs__msg__TwistWithCovarianceStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__TwistWithCovarianceStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__type_support.h b/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__type_support.h deleted file mode 100755 index 5c1f8dc39..000000000 --- a/src/geometry_msgs/msg/detail/twist_with_covariance_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/TwistWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/twist_with_covariance_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - TwistWithCovarianceStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__TWIST_WITH_COVARIANCE_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/vector3__functions.h b/src/geometry_msgs/msg/detail/vector3__functions.h deleted file mode 100755 index d09b5df90..000000000 --- a/src/geometry_msgs/msg/detail/vector3__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/Vector3.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/vector3.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__VECTOR3__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__VECTOR3__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/vector3__struct.h" - -/// Initialize msg/Vector3 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__Vector3 - * )) before or use - * geometry_msgs__msg__Vector3__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Vector3__init(geometry_msgs__msg__Vector3 * msg); - -/// Finalize msg/Vector3 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Vector3__fini(geometry_msgs__msg__Vector3 * msg); - -/// Create msg/Vector3 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__Vector3__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Vector3 * -geometry_msgs__msg__Vector3__create(void); - -/// Destroy msg/Vector3 message. -/** - * It calls - * geometry_msgs__msg__Vector3__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Vector3__destroy(geometry_msgs__msg__Vector3 * msg); - -/// Check for msg/Vector3 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Vector3__are_equal(const geometry_msgs__msg__Vector3 * lhs, const geometry_msgs__msg__Vector3 * rhs); - -/// Copy a msg/Vector3 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Vector3__copy( - const geometry_msgs__msg__Vector3 * input, - geometry_msgs__msg__Vector3 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__Vector3__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__Vector3__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__Vector3__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__Vector3__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Vector3 messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__Vector3__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Vector3__Sequence__init(geometry_msgs__msg__Vector3__Sequence * array, size_t size); - -/// Finalize array of msg/Vector3 messages. -/** - * It calls - * geometry_msgs__msg__Vector3__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Vector3__Sequence__fini(geometry_msgs__msg__Vector3__Sequence * array); - -/// Create array of msg/Vector3 messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__Vector3__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Vector3__Sequence * -geometry_msgs__msg__Vector3__Sequence__create(size_t size); - -/// Destroy array of msg/Vector3 messages. -/** - * It calls - * geometry_msgs__msg__Vector3__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Vector3__Sequence__destroy(geometry_msgs__msg__Vector3__Sequence * array); - -/// Check for msg/Vector3 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Vector3__Sequence__are_equal(const geometry_msgs__msg__Vector3__Sequence * lhs, const geometry_msgs__msg__Vector3__Sequence * rhs); - -/// Copy an array of msg/Vector3 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Vector3__Sequence__copy( - const geometry_msgs__msg__Vector3__Sequence * input, - geometry_msgs__msg__Vector3__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__VECTOR3__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/vector3__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/vector3__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5a09f9ac2..000000000 --- a/src/geometry_msgs/msg/detail/vector3__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/Vector3.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__VECTOR3__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__VECTOR3__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, Vector3)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__VECTOR3__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/vector3__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/vector3__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 480b015e0..000000000 --- a/src/geometry_msgs/msg/detail/vector3__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/Vector3.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__VECTOR3__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__VECTOR3__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__Vector3( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__Vector3( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, Vector3)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__VECTOR3__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/vector3__struct.h b/src/geometry_msgs/msg/detail/vector3__struct.h deleted file mode 100755 index 5a05ec3ab..000000000 --- a/src/geometry_msgs/msg/detail/vector3__struct.h +++ /dev/null @@ -1,50 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/Vector3.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/vector3.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__VECTOR3__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__VECTOR3__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Vector3 in the package geometry_msgs. -/** - * This represents a vector in free space. - */ -typedef struct geometry_msgs__msg__Vector3 -{ - /// This is semantically different than a point. - /// A vector is always anchored at the origin. - /// When a transform is applied to a vector, only the rotational component is applied. - double x; - double y; - double z; -} geometry_msgs__msg__Vector3; - -// Struct for a sequence of geometry_msgs__msg__Vector3. -typedef struct geometry_msgs__msg__Vector3__Sequence -{ - geometry_msgs__msg__Vector3 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__Vector3__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__VECTOR3__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/vector3__type_support.h b/src/geometry_msgs/msg/detail/vector3__type_support.h deleted file mode 100755 index 3a992f0f7..000000000 --- a/src/geometry_msgs/msg/detail/vector3__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/Vector3.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/vector3.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__VECTOR3__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__VECTOR3__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - Vector3 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__VECTOR3__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/vector3_stamped__functions.h b/src/geometry_msgs/msg/detail/vector3_stamped__functions.h deleted file mode 100755 index 132bbe53e..000000000 --- a/src/geometry_msgs/msg/detail/vector3_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/Vector3Stamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/vector3_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__VECTOR3_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__VECTOR3_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/vector3_stamped__struct.h" - -/// Initialize msg/Vector3Stamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__Vector3Stamped - * )) before or use - * geometry_msgs__msg__Vector3Stamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Vector3Stamped__init(geometry_msgs__msg__Vector3Stamped * msg); - -/// Finalize msg/Vector3Stamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Vector3Stamped__fini(geometry_msgs__msg__Vector3Stamped * msg); - -/// Create msg/Vector3Stamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__Vector3Stamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Vector3Stamped * -geometry_msgs__msg__Vector3Stamped__create(void); - -/// Destroy msg/Vector3Stamped message. -/** - * It calls - * geometry_msgs__msg__Vector3Stamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Vector3Stamped__destroy(geometry_msgs__msg__Vector3Stamped * msg); - -/// Check for msg/Vector3Stamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Vector3Stamped__are_equal(const geometry_msgs__msg__Vector3Stamped * lhs, const geometry_msgs__msg__Vector3Stamped * rhs); - -/// Copy a msg/Vector3Stamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Vector3Stamped__copy( - const geometry_msgs__msg__Vector3Stamped * input, - geometry_msgs__msg__Vector3Stamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__Vector3Stamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__Vector3Stamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__Vector3Stamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__Vector3Stamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Vector3Stamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__Vector3Stamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Vector3Stamped__Sequence__init(geometry_msgs__msg__Vector3Stamped__Sequence * array, size_t size); - -/// Finalize array of msg/Vector3Stamped messages. -/** - * It calls - * geometry_msgs__msg__Vector3Stamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Vector3Stamped__Sequence__fini(geometry_msgs__msg__Vector3Stamped__Sequence * array); - -/// Create array of msg/Vector3Stamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__Vector3Stamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Vector3Stamped__Sequence * -geometry_msgs__msg__Vector3Stamped__Sequence__create(size_t size); - -/// Destroy array of msg/Vector3Stamped messages. -/** - * It calls - * geometry_msgs__msg__Vector3Stamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Vector3Stamped__Sequence__destroy(geometry_msgs__msg__Vector3Stamped__Sequence * array); - -/// Check for msg/Vector3Stamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Vector3Stamped__Sequence__are_equal(const geometry_msgs__msg__Vector3Stamped__Sequence * lhs, const geometry_msgs__msg__Vector3Stamped__Sequence * rhs); - -/// Copy an array of msg/Vector3Stamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Vector3Stamped__Sequence__copy( - const geometry_msgs__msg__Vector3Stamped__Sequence * input, - geometry_msgs__msg__Vector3Stamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__VECTOR3_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/vector3_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/vector3_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index d176b0c8e..000000000 --- a/src/geometry_msgs/msg/detail/vector3_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/Vector3Stamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__VECTOR3_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__VECTOR3_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, Vector3Stamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__VECTOR3_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/vector3_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/vector3_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index fd103821d..000000000 --- a/src/geometry_msgs/msg/detail/vector3_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/Vector3Stamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__VECTOR3_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__VECTOR3_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__Vector3Stamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__Vector3Stamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, Vector3Stamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__VECTOR3_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/vector3_stamped__struct.h b/src/geometry_msgs/msg/detail/vector3_stamped__struct.h deleted file mode 100755 index 3b89dcc16..000000000 --- a/src/geometry_msgs/msg/detail/vector3_stamped__struct.h +++ /dev/null @@ -1,54 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/Vector3Stamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/vector3_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__VECTOR3_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__VECTOR3_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'vector' -#include "geometry_msgs/msg/detail/vector3__struct.h" - -/// Struct defined in msg/Vector3Stamped in the package geometry_msgs. -/** - * This represents a Vector3 with reference coordinate frame and timestamp - */ -typedef struct geometry_msgs__msg__Vector3Stamped -{ - /// Note that this follows vector semantics with it always anchored at the origin, - /// so the rotational elements of a transform are the only parts applied when transforming. - std_msgs__msg__Header header; - geometry_msgs__msg__Vector3 vector; -} geometry_msgs__msg__Vector3Stamped; - -// Struct for a sequence of geometry_msgs__msg__Vector3Stamped. -typedef struct geometry_msgs__msg__Vector3Stamped__Sequence -{ - geometry_msgs__msg__Vector3Stamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__Vector3Stamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__VECTOR3_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/vector3_stamped__type_support.h b/src/geometry_msgs/msg/detail/vector3_stamped__type_support.h deleted file mode 100755 index afe4e30d6..000000000 --- a/src/geometry_msgs/msg/detail/vector3_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/Vector3Stamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/vector3_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__VECTOR3_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__VECTOR3_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - Vector3Stamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__VECTOR3_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/velocity_stamped__functions.h b/src/geometry_msgs/msg/detail/velocity_stamped__functions.h deleted file mode 100755 index fe649fe4d..000000000 --- a/src/geometry_msgs/msg/detail/velocity_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/VelocityStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/velocity_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__VELOCITY_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__VELOCITY_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/velocity_stamped__struct.h" - -/// Initialize msg/VelocityStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__VelocityStamped - * )) before or use - * geometry_msgs__msg__VelocityStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__VelocityStamped__init(geometry_msgs__msg__VelocityStamped * msg); - -/// Finalize msg/VelocityStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__VelocityStamped__fini(geometry_msgs__msg__VelocityStamped * msg); - -/// Create msg/VelocityStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__VelocityStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__VelocityStamped * -geometry_msgs__msg__VelocityStamped__create(void); - -/// Destroy msg/VelocityStamped message. -/** - * It calls - * geometry_msgs__msg__VelocityStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__VelocityStamped__destroy(geometry_msgs__msg__VelocityStamped * msg); - -/// Check for msg/VelocityStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__VelocityStamped__are_equal(const geometry_msgs__msg__VelocityStamped * lhs, const geometry_msgs__msg__VelocityStamped * rhs); - -/// Copy a msg/VelocityStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__VelocityStamped__copy( - const geometry_msgs__msg__VelocityStamped * input, - geometry_msgs__msg__VelocityStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__VelocityStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__VelocityStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__VelocityStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__VelocityStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/VelocityStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__VelocityStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__VelocityStamped__Sequence__init(geometry_msgs__msg__VelocityStamped__Sequence * array, size_t size); - -/// Finalize array of msg/VelocityStamped messages. -/** - * It calls - * geometry_msgs__msg__VelocityStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__VelocityStamped__Sequence__fini(geometry_msgs__msg__VelocityStamped__Sequence * array); - -/// Create array of msg/VelocityStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__VelocityStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__VelocityStamped__Sequence * -geometry_msgs__msg__VelocityStamped__Sequence__create(size_t size); - -/// Destroy array of msg/VelocityStamped messages. -/** - * It calls - * geometry_msgs__msg__VelocityStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__VelocityStamped__Sequence__destroy(geometry_msgs__msg__VelocityStamped__Sequence * array); - -/// Check for msg/VelocityStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__VelocityStamped__Sequence__are_equal(const geometry_msgs__msg__VelocityStamped__Sequence * lhs, const geometry_msgs__msg__VelocityStamped__Sequence * rhs); - -/// Copy an array of msg/VelocityStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__VelocityStamped__Sequence__copy( - const geometry_msgs__msg__VelocityStamped__Sequence * input, - geometry_msgs__msg__VelocityStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__VELOCITY_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/velocity_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/velocity_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 1bfe489c7..000000000 --- a/src/geometry_msgs/msg/detail/velocity_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/VelocityStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__VELOCITY_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__VELOCITY_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, VelocityStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__VELOCITY_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/velocity_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/velocity_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 350274760..000000000 --- a/src/geometry_msgs/msg/detail/velocity_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/VelocityStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__VELOCITY_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__VELOCITY_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__VelocityStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__VelocityStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, VelocityStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__VELOCITY_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/velocity_stamped__struct.h b/src/geometry_msgs/msg/detail/velocity_stamped__struct.h deleted file mode 100755 index 4d1c36ec6..000000000 --- a/src/geometry_msgs/msg/detail/velocity_stamped__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/VelocityStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/velocity_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__VELOCITY_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__VELOCITY_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'body_frame_id' -// Member 'reference_frame_id' -#include "rosidl_runtime_c/string.h" -// Member 'velocity' -#include "geometry_msgs/msg/detail/twist__struct.h" - -/// Struct defined in msg/VelocityStamped in the package geometry_msgs. -/** - * This expresses the timestamped velocity vector of a frame 'body_frame_id' in the reference frame 'reference_frame_id' expressed from arbitrary observation frame 'header.frame_id'. - * - If the 'body_frame_id' and 'header.frame_id' are identical, the velocity is observed and defined in the local coordinates system of the body - * which is the usual use-case in mobile robotics and is also known as a body twist. - */ -typedef struct geometry_msgs__msg__VelocityStamped -{ - std_msgs__msg__Header header; - rosidl_runtime_c__String body_frame_id; - rosidl_runtime_c__String reference_frame_id; - geometry_msgs__msg__Twist velocity; -} geometry_msgs__msg__VelocityStamped; - -// Struct for a sequence of geometry_msgs__msg__VelocityStamped. -typedef struct geometry_msgs__msg__VelocityStamped__Sequence -{ - geometry_msgs__msg__VelocityStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__VelocityStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__VELOCITY_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/velocity_stamped__type_support.h b/src/geometry_msgs/msg/detail/velocity_stamped__type_support.h deleted file mode 100755 index 121a0bb3b..000000000 --- a/src/geometry_msgs/msg/detail/velocity_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/VelocityStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/velocity_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__VELOCITY_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__VELOCITY_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - VelocityStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__VELOCITY_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/wrench__functions.h b/src/geometry_msgs/msg/detail/wrench__functions.h deleted file mode 100755 index 230a264be..000000000 --- a/src/geometry_msgs/msg/detail/wrench__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/Wrench.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/wrench.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__WRENCH__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__WRENCH__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/wrench__struct.h" - -/// Initialize msg/Wrench message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__Wrench - * )) before or use - * geometry_msgs__msg__Wrench__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Wrench__init(geometry_msgs__msg__Wrench * msg); - -/// Finalize msg/Wrench message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Wrench__fini(geometry_msgs__msg__Wrench * msg); - -/// Create msg/Wrench message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__Wrench__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Wrench * -geometry_msgs__msg__Wrench__create(void); - -/// Destroy msg/Wrench message. -/** - * It calls - * geometry_msgs__msg__Wrench__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Wrench__destroy(geometry_msgs__msg__Wrench * msg); - -/// Check for msg/Wrench message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Wrench__are_equal(const geometry_msgs__msg__Wrench * lhs, const geometry_msgs__msg__Wrench * rhs); - -/// Copy a msg/Wrench message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Wrench__copy( - const geometry_msgs__msg__Wrench * input, - geometry_msgs__msg__Wrench * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__Wrench__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__Wrench__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__Wrench__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__Wrench__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Wrench messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__Wrench__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Wrench__Sequence__init(geometry_msgs__msg__Wrench__Sequence * array, size_t size); - -/// Finalize array of msg/Wrench messages. -/** - * It calls - * geometry_msgs__msg__Wrench__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Wrench__Sequence__fini(geometry_msgs__msg__Wrench__Sequence * array); - -/// Create array of msg/Wrench messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__Wrench__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__Wrench__Sequence * -geometry_msgs__msg__Wrench__Sequence__create(size_t size); - -/// Destroy array of msg/Wrench messages. -/** - * It calls - * geometry_msgs__msg__Wrench__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__Wrench__Sequence__destroy(geometry_msgs__msg__Wrench__Sequence * array); - -/// Check for msg/Wrench message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Wrench__Sequence__are_equal(const geometry_msgs__msg__Wrench__Sequence * lhs, const geometry_msgs__msg__Wrench__Sequence * rhs); - -/// Copy an array of msg/Wrench messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__Wrench__Sequence__copy( - const geometry_msgs__msg__Wrench__Sequence * input, - geometry_msgs__msg__Wrench__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__WRENCH__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/wrench__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/wrench__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 60fc299de..000000000 --- a/src/geometry_msgs/msg/detail/wrench__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/Wrench.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__WRENCH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__WRENCH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, Wrench)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__WRENCH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/wrench__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/wrench__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 5fed24dc5..000000000 --- a/src/geometry_msgs/msg/detail/wrench__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/Wrench.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__WRENCH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__WRENCH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__Wrench( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__Wrench( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, Wrench)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__WRENCH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/wrench__struct.h b/src/geometry_msgs/msg/detail/wrench__struct.h deleted file mode 100755 index 82a7133c6..000000000 --- a/src/geometry_msgs/msg/detail/wrench__struct.h +++ /dev/null @@ -1,51 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/Wrench.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/wrench.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__WRENCH__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__WRENCH__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'force' -// Member 'torque' -#include "geometry_msgs/msg/detail/vector3__struct.h" - -/// Struct defined in msg/Wrench in the package geometry_msgs. -/** - * This represents force in free space, separated into its linear and angular parts. - */ -typedef struct geometry_msgs__msg__Wrench -{ - geometry_msgs__msg__Vector3 force; - geometry_msgs__msg__Vector3 torque; -} geometry_msgs__msg__Wrench; - -// Struct for a sequence of geometry_msgs__msg__Wrench. -typedef struct geometry_msgs__msg__Wrench__Sequence -{ - geometry_msgs__msg__Wrench * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__Wrench__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__WRENCH__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/wrench__type_support.h b/src/geometry_msgs/msg/detail/wrench__type_support.h deleted file mode 100755 index 1cb31ba18..000000000 --- a/src/geometry_msgs/msg/detail/wrench__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/Wrench.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/wrench.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__WRENCH__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__WRENCH__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - Wrench -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__WRENCH__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/detail/wrench_stamped__functions.h b/src/geometry_msgs/msg/detail/wrench_stamped__functions.h deleted file mode 100755 index 4c739bb1e..000000000 --- a/src/geometry_msgs/msg/detail/wrench_stamped__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from geometry_msgs:msg/WrenchStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/wrench_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__WRENCH_STAMPED__FUNCTIONS_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__WRENCH_STAMPED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "geometry_msgs/msg/detail/wrench_stamped__struct.h" - -/// Initialize msg/WrenchStamped message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * geometry_msgs__msg__WrenchStamped - * )) before or use - * geometry_msgs__msg__WrenchStamped__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__WrenchStamped__init(geometry_msgs__msg__WrenchStamped * msg); - -/// Finalize msg/WrenchStamped message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__WrenchStamped__fini(geometry_msgs__msg__WrenchStamped * msg); - -/// Create msg/WrenchStamped message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * geometry_msgs__msg__WrenchStamped__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__WrenchStamped * -geometry_msgs__msg__WrenchStamped__create(void); - -/// Destroy msg/WrenchStamped message. -/** - * It calls - * geometry_msgs__msg__WrenchStamped__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__WrenchStamped__destroy(geometry_msgs__msg__WrenchStamped * msg); - -/// Check for msg/WrenchStamped message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__WrenchStamped__are_equal(const geometry_msgs__msg__WrenchStamped * lhs, const geometry_msgs__msg__WrenchStamped * rhs); - -/// Copy a msg/WrenchStamped message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__WrenchStamped__copy( - const geometry_msgs__msg__WrenchStamped * input, - geometry_msgs__msg__WrenchStamped * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_type_hash_t * -geometry_msgs__msg__WrenchStamped__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeDescription * -geometry_msgs__msg__WrenchStamped__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource * -geometry_msgs__msg__WrenchStamped__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -geometry_msgs__msg__WrenchStamped__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/WrenchStamped messages. -/** - * It allocates the memory for the number of elements and calls - * geometry_msgs__msg__WrenchStamped__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__WrenchStamped__Sequence__init(geometry_msgs__msg__WrenchStamped__Sequence * array, size_t size); - -/// Finalize array of msg/WrenchStamped messages. -/** - * It calls - * geometry_msgs__msg__WrenchStamped__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__WrenchStamped__Sequence__fini(geometry_msgs__msg__WrenchStamped__Sequence * array); - -/// Create array of msg/WrenchStamped messages. -/** - * It allocates the memory for the array and calls - * geometry_msgs__msg__WrenchStamped__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -geometry_msgs__msg__WrenchStamped__Sequence * -geometry_msgs__msg__WrenchStamped__Sequence__create(size_t size); - -/// Destroy array of msg/WrenchStamped messages. -/** - * It calls - * geometry_msgs__msg__WrenchStamped__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -void -geometry_msgs__msg__WrenchStamped__Sequence__destroy(geometry_msgs__msg__WrenchStamped__Sequence * array); - -/// Check for msg/WrenchStamped message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__WrenchStamped__Sequence__are_equal(const geometry_msgs__msg__WrenchStamped__Sequence * lhs, const geometry_msgs__msg__WrenchStamped__Sequence * rhs); - -/// Copy an array of msg/WrenchStamped messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -bool -geometry_msgs__msg__WrenchStamped__Sequence__copy( - const geometry_msgs__msg__WrenchStamped__Sequence * input, - geometry_msgs__msg__WrenchStamped__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__WRENCH_STAMPED__FUNCTIONS_H_ diff --git a/src/geometry_msgs/msg/detail/wrench_stamped__rosidl_typesupport_introspection_c.h b/src/geometry_msgs/msg/detail/wrench_stamped__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 87f1de3dc..000000000 --- a/src/geometry_msgs/msg/detail/wrench_stamped__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from geometry_msgs:msg/WrenchStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__WRENCH_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__WRENCH_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, geometry_msgs, msg, WrenchStamped)(); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__WRENCH_STAMPED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/geometry_msgs/msg/detail/wrench_stamped__rosidl_typesupport_microxrcedds_c.h b/src/geometry_msgs/msg/detail/wrench_stamped__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 91d5b5fc3..000000000 --- a/src/geometry_msgs/msg/detail/wrench_stamped__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from geometry_msgs:msg/WrenchStamped.idl -// generated code does not contain a copyright notice -#ifndef GEOMETRY_MSGS__MSG__WRENCH_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define GEOMETRY_MSGS__MSG__WRENCH_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t get_serialized_size_geometry_msgs__msg__WrenchStamped( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -size_t max_serialized_size_geometry_msgs__msg__WrenchStamped( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, geometry_msgs, msg, WrenchStamped)(); - -#ifdef __cplusplus -} -#endif - - -#endif // GEOMETRY_MSGS__MSG__WRENCH_STAMPED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/geometry_msgs/msg/detail/wrench_stamped__struct.h b/src/geometry_msgs/msg/detail/wrench_stamped__struct.h deleted file mode 100755 index 8af582e96..000000000 --- a/src/geometry_msgs/msg/detail/wrench_stamped__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from geometry_msgs:msg/WrenchStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/wrench_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__WRENCH_STAMPED__STRUCT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__WRENCH_STAMPED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'wrench' -#include "geometry_msgs/msg/detail/wrench__struct.h" - -/// Struct defined in msg/WrenchStamped in the package geometry_msgs. -/** - * A wrench with reference coordinate frame and timestamp - */ -typedef struct geometry_msgs__msg__WrenchStamped -{ - std_msgs__msg__Header header; - geometry_msgs__msg__Wrench wrench; -} geometry_msgs__msg__WrenchStamped; - -// Struct for a sequence of geometry_msgs__msg__WrenchStamped. -typedef struct geometry_msgs__msg__WrenchStamped__Sequence -{ - geometry_msgs__msg__WrenchStamped * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} geometry_msgs__msg__WrenchStamped__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__WRENCH_STAMPED__STRUCT_H_ diff --git a/src/geometry_msgs/msg/detail/wrench_stamped__type_support.h b/src/geometry_msgs/msg/detail/wrench_stamped__type_support.h deleted file mode 100755 index 3632b62c2..000000000 --- a/src/geometry_msgs/msg/detail/wrench_stamped__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from geometry_msgs:msg/WrenchStamped.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "geometry_msgs/msg/wrench_stamped.h" - - -#ifndef GEOMETRY_MSGS__MSG__DETAIL__WRENCH_STAMPED__TYPE_SUPPORT_H_ -#define GEOMETRY_MSGS__MSG__DETAIL__WRENCH_STAMPED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "geometry_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - geometry_msgs, - msg, - WrenchStamped -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__DETAIL__WRENCH_STAMPED__TYPE_SUPPORT_H_ diff --git a/src/geometry_msgs/msg/inertia.h b/src/geometry_msgs/msg/inertia.h deleted file mode 100755 index 9673aff84..000000000 --- a/src/geometry_msgs/msg/inertia.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/Inertia.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__INERTIA_H_ -#define GEOMETRY_MSGS__MSG__INERTIA_H_ - -#include "geometry_msgs/msg/detail/inertia__struct.h" -#include "geometry_msgs/msg/detail/inertia__functions.h" -#include "geometry_msgs/msg/detail/inertia__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__INERTIA_H_ diff --git a/src/geometry_msgs/msg/inertia_stamped.h b/src/geometry_msgs/msg/inertia_stamped.h deleted file mode 100755 index a0aa61dc4..000000000 --- a/src/geometry_msgs/msg/inertia_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/InertiaStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__INERTIA_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__INERTIA_STAMPED_H_ - -#include "geometry_msgs/msg/detail/inertia_stamped__struct.h" -#include "geometry_msgs/msg/detail/inertia_stamped__functions.h" -#include "geometry_msgs/msg/detail/inertia_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__INERTIA_STAMPED_H_ diff --git a/src/geometry_msgs/msg/point.h b/src/geometry_msgs/msg/point.h deleted file mode 100755 index 6d889e897..000000000 --- a/src/geometry_msgs/msg/point.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/Point.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__POINT_H_ -#define GEOMETRY_MSGS__MSG__POINT_H_ - -#include "geometry_msgs/msg/detail/point__struct.h" -#include "geometry_msgs/msg/detail/point__functions.h" -#include "geometry_msgs/msg/detail/point__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__POINT_H_ diff --git a/src/geometry_msgs/msg/point32.h b/src/geometry_msgs/msg/point32.h deleted file mode 100755 index f42494d41..000000000 --- a/src/geometry_msgs/msg/point32.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/Point32.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__POINT32_H_ -#define GEOMETRY_MSGS__MSG__POINT32_H_ - -#include "geometry_msgs/msg/detail/point32__struct.h" -#include "geometry_msgs/msg/detail/point32__functions.h" -#include "geometry_msgs/msg/detail/point32__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__POINT32_H_ diff --git a/src/geometry_msgs/msg/point_stamped.h b/src/geometry_msgs/msg/point_stamped.h deleted file mode 100755 index f8c71b0e9..000000000 --- a/src/geometry_msgs/msg/point_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/PointStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__POINT_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__POINT_STAMPED_H_ - -#include "geometry_msgs/msg/detail/point_stamped__struct.h" -#include "geometry_msgs/msg/detail/point_stamped__functions.h" -#include "geometry_msgs/msg/detail/point_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__POINT_STAMPED_H_ diff --git a/src/geometry_msgs/msg/polygon.h b/src/geometry_msgs/msg/polygon.h deleted file mode 100755 index 9b145fb08..000000000 --- a/src/geometry_msgs/msg/polygon.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/Polygon.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__POLYGON_H_ -#define GEOMETRY_MSGS__MSG__POLYGON_H_ - -#include "geometry_msgs/msg/detail/polygon__struct.h" -#include "geometry_msgs/msg/detail/polygon__functions.h" -#include "geometry_msgs/msg/detail/polygon__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__POLYGON_H_ diff --git a/src/geometry_msgs/msg/polygon_instance.h b/src/geometry_msgs/msg/polygon_instance.h deleted file mode 100755 index 811064ef8..000000000 --- a/src/geometry_msgs/msg/polygon_instance.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/PolygonInstance.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__POLYGON_INSTANCE_H_ -#define GEOMETRY_MSGS__MSG__POLYGON_INSTANCE_H_ - -#include "geometry_msgs/msg/detail/polygon_instance__struct.h" -#include "geometry_msgs/msg/detail/polygon_instance__functions.h" -#include "geometry_msgs/msg/detail/polygon_instance__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__POLYGON_INSTANCE_H_ diff --git a/src/geometry_msgs/msg/polygon_instance_stamped.h b/src/geometry_msgs/msg/polygon_instance_stamped.h deleted file mode 100755 index 1b6bb3477..000000000 --- a/src/geometry_msgs/msg/polygon_instance_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/PolygonInstanceStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__POLYGON_INSTANCE_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__POLYGON_INSTANCE_STAMPED_H_ - -#include "geometry_msgs/msg/detail/polygon_instance_stamped__struct.h" -#include "geometry_msgs/msg/detail/polygon_instance_stamped__functions.h" -#include "geometry_msgs/msg/detail/polygon_instance_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__POLYGON_INSTANCE_STAMPED_H_ diff --git a/src/geometry_msgs/msg/polygon_stamped.h b/src/geometry_msgs/msg/polygon_stamped.h deleted file mode 100755 index fb4cd6d67..000000000 --- a/src/geometry_msgs/msg/polygon_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/PolygonStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__POLYGON_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__POLYGON_STAMPED_H_ - -#include "geometry_msgs/msg/detail/polygon_stamped__struct.h" -#include "geometry_msgs/msg/detail/polygon_stamped__functions.h" -#include "geometry_msgs/msg/detail/polygon_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__POLYGON_STAMPED_H_ diff --git a/src/geometry_msgs/msg/pose.h b/src/geometry_msgs/msg/pose.h deleted file mode 100755 index b3ef805f7..000000000 --- a/src/geometry_msgs/msg/pose.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/Pose.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__POSE_H_ -#define GEOMETRY_MSGS__MSG__POSE_H_ - -#include "geometry_msgs/msg/detail/pose__struct.h" -#include "geometry_msgs/msg/detail/pose__functions.h" -#include "geometry_msgs/msg/detail/pose__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__POSE_H_ diff --git a/src/geometry_msgs/msg/pose2_d.h b/src/geometry_msgs/msg/pose2_d.h deleted file mode 100755 index 928bd71fe..000000000 --- a/src/geometry_msgs/msg/pose2_d.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/Pose2D.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__POSE2_D_H_ -#define GEOMETRY_MSGS__MSG__POSE2_D_H_ - -#include "geometry_msgs/msg/detail/pose2_d__struct.h" -#include "geometry_msgs/msg/detail/pose2_d__functions.h" -#include "geometry_msgs/msg/detail/pose2_d__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__POSE2_D_H_ diff --git a/src/geometry_msgs/msg/pose_array.h b/src/geometry_msgs/msg/pose_array.h deleted file mode 100755 index f1323e0d9..000000000 --- a/src/geometry_msgs/msg/pose_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/PoseArray.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__POSE_ARRAY_H_ -#define GEOMETRY_MSGS__MSG__POSE_ARRAY_H_ - -#include "geometry_msgs/msg/detail/pose_array__struct.h" -#include "geometry_msgs/msg/detail/pose_array__functions.h" -#include "geometry_msgs/msg/detail/pose_array__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__POSE_ARRAY_H_ diff --git a/src/geometry_msgs/msg/pose_stamped.h b/src/geometry_msgs/msg/pose_stamped.h deleted file mode 100755 index 40538ec13..000000000 --- a/src/geometry_msgs/msg/pose_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/PoseStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__POSE_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__POSE_STAMPED_H_ - -#include "geometry_msgs/msg/detail/pose_stamped__struct.h" -#include "geometry_msgs/msg/detail/pose_stamped__functions.h" -#include "geometry_msgs/msg/detail/pose_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__POSE_STAMPED_H_ diff --git a/src/geometry_msgs/msg/pose_with_covariance.h b/src/geometry_msgs/msg/pose_with_covariance.h deleted file mode 100755 index 3a66751cc..000000000 --- a/src/geometry_msgs/msg/pose_with_covariance.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/PoseWithCovariance.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__POSE_WITH_COVARIANCE_H_ -#define GEOMETRY_MSGS__MSG__POSE_WITH_COVARIANCE_H_ - -#include "geometry_msgs/msg/detail/pose_with_covariance__struct.h" -#include "geometry_msgs/msg/detail/pose_with_covariance__functions.h" -#include "geometry_msgs/msg/detail/pose_with_covariance__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__POSE_WITH_COVARIANCE_H_ diff --git a/src/geometry_msgs/msg/pose_with_covariance_stamped.h b/src/geometry_msgs/msg/pose_with_covariance_stamped.h deleted file mode 100755 index f4e413ca0..000000000 --- a/src/geometry_msgs/msg/pose_with_covariance_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/PoseWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__POSE_WITH_COVARIANCE_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__POSE_WITH_COVARIANCE_STAMPED_H_ - -#include "geometry_msgs/msg/detail/pose_with_covariance_stamped__struct.h" -#include "geometry_msgs/msg/detail/pose_with_covariance_stamped__functions.h" -#include "geometry_msgs/msg/detail/pose_with_covariance_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__POSE_WITH_COVARIANCE_STAMPED_H_ diff --git a/src/geometry_msgs/msg/quaternion.h b/src/geometry_msgs/msg/quaternion.h deleted file mode 100755 index 3d64dfdb0..000000000 --- a/src/geometry_msgs/msg/quaternion.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/Quaternion.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__QUATERNION_H_ -#define GEOMETRY_MSGS__MSG__QUATERNION_H_ - -#include "geometry_msgs/msg/detail/quaternion__struct.h" -#include "geometry_msgs/msg/detail/quaternion__functions.h" -#include "geometry_msgs/msg/detail/quaternion__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__QUATERNION_H_ diff --git a/src/geometry_msgs/msg/quaternion_stamped.h b/src/geometry_msgs/msg/quaternion_stamped.h deleted file mode 100755 index e6f57fba0..000000000 --- a/src/geometry_msgs/msg/quaternion_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/QuaternionStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__QUATERNION_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__QUATERNION_STAMPED_H_ - -#include "geometry_msgs/msg/detail/quaternion_stamped__struct.h" -#include "geometry_msgs/msg/detail/quaternion_stamped__functions.h" -#include "geometry_msgs/msg/detail/quaternion_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__QUATERNION_STAMPED_H_ diff --git a/src/geometry_msgs/msg/rosidl_generator_c__visibility_control.h b/src/geometry_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 41a499395..000000000 --- a/src/geometry_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define GEOMETRY_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_geometry_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_geometry_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_geometry_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_geometry_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_geometry_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs ROSIDL_GENERATOR_C_EXPORT_geometry_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs ROSIDL_GENERATOR_C_IMPORT_geometry_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_geometry_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_geometry_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_geometry_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index b825ac7d8..000000000 --- a/src/geometry_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define GEOMETRY_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_geometry_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_geometry_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_geometry_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_geometry_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_geometry_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_geometry_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_geometry_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_geometry_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_geometry_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_geometry_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 21418f6b4..000000000 --- a/src/geometry_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define GEOMETRY_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_geometry_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_geometry_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_geometry_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_geometry_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_geometry_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_geometry_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_geometry_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_geometry_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_geometry_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_geometry_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // GEOMETRY_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/geometry_msgs/msg/transform.h b/src/geometry_msgs/msg/transform.h deleted file mode 100755 index 482507a85..000000000 --- a/src/geometry_msgs/msg/transform.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/Transform.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__TRANSFORM_H_ -#define GEOMETRY_MSGS__MSG__TRANSFORM_H_ - -#include "geometry_msgs/msg/detail/transform__struct.h" -#include "geometry_msgs/msg/detail/transform__functions.h" -#include "geometry_msgs/msg/detail/transform__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__TRANSFORM_H_ diff --git a/src/geometry_msgs/msg/transform_stamped.h b/src/geometry_msgs/msg/transform_stamped.h deleted file mode 100755 index dae877238..000000000 --- a/src/geometry_msgs/msg/transform_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/TransformStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__TRANSFORM_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__TRANSFORM_STAMPED_H_ - -#include "geometry_msgs/msg/detail/transform_stamped__struct.h" -#include "geometry_msgs/msg/detail/transform_stamped__functions.h" -#include "geometry_msgs/msg/detail/transform_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__TRANSFORM_STAMPED_H_ diff --git a/src/geometry_msgs/msg/twist.h b/src/geometry_msgs/msg/twist.h deleted file mode 100755 index 360f410a8..000000000 --- a/src/geometry_msgs/msg/twist.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/Twist.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__TWIST_H_ -#define GEOMETRY_MSGS__MSG__TWIST_H_ - -#include "geometry_msgs/msg/detail/twist__struct.h" -#include "geometry_msgs/msg/detail/twist__functions.h" -#include "geometry_msgs/msg/detail/twist__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__TWIST_H_ diff --git a/src/geometry_msgs/msg/twist_stamped.h b/src/geometry_msgs/msg/twist_stamped.h deleted file mode 100755 index 67cd998f0..000000000 --- a/src/geometry_msgs/msg/twist_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/TwistStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__TWIST_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__TWIST_STAMPED_H_ - -#include "geometry_msgs/msg/detail/twist_stamped__struct.h" -#include "geometry_msgs/msg/detail/twist_stamped__functions.h" -#include "geometry_msgs/msg/detail/twist_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__TWIST_STAMPED_H_ diff --git a/src/geometry_msgs/msg/twist_with_covariance.h b/src/geometry_msgs/msg/twist_with_covariance.h deleted file mode 100755 index 5a4ce41a0..000000000 --- a/src/geometry_msgs/msg/twist_with_covariance.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/TwistWithCovariance.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__TWIST_WITH_COVARIANCE_H_ -#define GEOMETRY_MSGS__MSG__TWIST_WITH_COVARIANCE_H_ - -#include "geometry_msgs/msg/detail/twist_with_covariance__struct.h" -#include "geometry_msgs/msg/detail/twist_with_covariance__functions.h" -#include "geometry_msgs/msg/detail/twist_with_covariance__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__TWIST_WITH_COVARIANCE_H_ diff --git a/src/geometry_msgs/msg/twist_with_covariance_stamped.h b/src/geometry_msgs/msg/twist_with_covariance_stamped.h deleted file mode 100755 index 866deb170..000000000 --- a/src/geometry_msgs/msg/twist_with_covariance_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/TwistWithCovarianceStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__TWIST_WITH_COVARIANCE_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__TWIST_WITH_COVARIANCE_STAMPED_H_ - -#include "geometry_msgs/msg/detail/twist_with_covariance_stamped__struct.h" -#include "geometry_msgs/msg/detail/twist_with_covariance_stamped__functions.h" -#include "geometry_msgs/msg/detail/twist_with_covariance_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__TWIST_WITH_COVARIANCE_STAMPED_H_ diff --git a/src/geometry_msgs/msg/vector3.h b/src/geometry_msgs/msg/vector3.h deleted file mode 100755 index 078092041..000000000 --- a/src/geometry_msgs/msg/vector3.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/Vector3.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__VECTOR3_H_ -#define GEOMETRY_MSGS__MSG__VECTOR3_H_ - -#include "geometry_msgs/msg/detail/vector3__struct.h" -#include "geometry_msgs/msg/detail/vector3__functions.h" -#include "geometry_msgs/msg/detail/vector3__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__VECTOR3_H_ diff --git a/src/geometry_msgs/msg/vector3_stamped.h b/src/geometry_msgs/msg/vector3_stamped.h deleted file mode 100755 index babfd77e6..000000000 --- a/src/geometry_msgs/msg/vector3_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/Vector3Stamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__VECTOR3_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__VECTOR3_STAMPED_H_ - -#include "geometry_msgs/msg/detail/vector3_stamped__struct.h" -#include "geometry_msgs/msg/detail/vector3_stamped__functions.h" -#include "geometry_msgs/msg/detail/vector3_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__VECTOR3_STAMPED_H_ diff --git a/src/geometry_msgs/msg/velocity_stamped.h b/src/geometry_msgs/msg/velocity_stamped.h deleted file mode 100755 index b845feeae..000000000 --- a/src/geometry_msgs/msg/velocity_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/VelocityStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__VELOCITY_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__VELOCITY_STAMPED_H_ - -#include "geometry_msgs/msg/detail/velocity_stamped__struct.h" -#include "geometry_msgs/msg/detail/velocity_stamped__functions.h" -#include "geometry_msgs/msg/detail/velocity_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__VELOCITY_STAMPED_H_ diff --git a/src/geometry_msgs/msg/wrench.h b/src/geometry_msgs/msg/wrench.h deleted file mode 100755 index 100b28a07..000000000 --- a/src/geometry_msgs/msg/wrench.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/Wrench.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__WRENCH_H_ -#define GEOMETRY_MSGS__MSG__WRENCH_H_ - -#include "geometry_msgs/msg/detail/wrench__struct.h" -#include "geometry_msgs/msg/detail/wrench__functions.h" -#include "geometry_msgs/msg/detail/wrench__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__WRENCH_H_ diff --git a/src/geometry_msgs/msg/wrench_stamped.h b/src/geometry_msgs/msg/wrench_stamped.h deleted file mode 100755 index 208bffc98..000000000 --- a/src/geometry_msgs/msg/wrench_stamped.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from geometry_msgs:msg/WrenchStamped.idl -// generated code does not contain a copyright notice - -#ifndef GEOMETRY_MSGS__MSG__WRENCH_STAMPED_H_ -#define GEOMETRY_MSGS__MSG__WRENCH_STAMPED_H_ - -#include "geometry_msgs/msg/detail/wrench_stamped__struct.h" -#include "geometry_msgs/msg/detail/wrench_stamped__functions.h" -#include "geometry_msgs/msg/detail/wrench_stamped__type_support.h" - -#endif // GEOMETRY_MSGS__MSG__WRENCH_STAMPED_H_ diff --git a/src/imxrt1062/fpv5-d16-hard/libmicroros.a b/src/imxrt1062/fpv5-d16-hard/libmicroros.a deleted file mode 100755 index a128d99fe..000000000 Binary files a/src/imxrt1062/fpv5-d16-hard/libmicroros.a and /dev/null differ diff --git a/src/lifecycle_msgs/msg/detail/state__functions.h b/src/lifecycle_msgs/msg/detail/state__functions.h deleted file mode 100755 index 2827667ca..000000000 --- a/src/lifecycle_msgs/msg/detail/state__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from lifecycle_msgs:msg/State.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/msg/state.h" - - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__STATE__FUNCTIONS_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__STATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "lifecycle_msgs/msg/detail/state__struct.h" - -/// Initialize msg/State message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__msg__State - * )) before or use - * lifecycle_msgs__msg__State__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__State__init(lifecycle_msgs__msg__State * msg); - -/// Finalize msg/State message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__State__fini(lifecycle_msgs__msg__State * msg); - -/// Create msg/State message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__msg__State__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__msg__State * -lifecycle_msgs__msg__State__create(void); - -/// Destroy msg/State message. -/** - * It calls - * lifecycle_msgs__msg__State__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__State__destroy(lifecycle_msgs__msg__State * msg); - -/// Check for msg/State message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__State__are_equal(const lifecycle_msgs__msg__State * lhs, const lifecycle_msgs__msg__State * rhs); - -/// Copy a msg/State message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__State__copy( - const lifecycle_msgs__msg__State * input, - lifecycle_msgs__msg__State * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__msg__State__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__msg__State__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__msg__State__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__msg__State__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/State messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__msg__State__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__State__Sequence__init(lifecycle_msgs__msg__State__Sequence * array, size_t size); - -/// Finalize array of msg/State messages. -/** - * It calls - * lifecycle_msgs__msg__State__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__State__Sequence__fini(lifecycle_msgs__msg__State__Sequence * array); - -/// Create array of msg/State messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__msg__State__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__msg__State__Sequence * -lifecycle_msgs__msg__State__Sequence__create(size_t size); - -/// Destroy array of msg/State messages. -/** - * It calls - * lifecycle_msgs__msg__State__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__State__Sequence__destroy(lifecycle_msgs__msg__State__Sequence * array); - -/// Check for msg/State message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__State__Sequence__are_equal(const lifecycle_msgs__msg__State__Sequence * lhs, const lifecycle_msgs__msg__State__Sequence * rhs); - -/// Copy an array of msg/State messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__State__Sequence__copy( - const lifecycle_msgs__msg__State__Sequence * input, - lifecycle_msgs__msg__State__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__STATE__FUNCTIONS_H_ diff --git a/src/lifecycle_msgs/msg/detail/state__rosidl_typesupport_introspection_c.h b/src/lifecycle_msgs/msg/detail/state__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 97c820686..000000000 --- a/src/lifecycle_msgs/msg/detail/state__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from lifecycle_msgs:msg/State.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, msg, State)(); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/lifecycle_msgs/msg/detail/state__rosidl_typesupport_microxrcedds_c.h b/src/lifecycle_msgs/msg/detail/state__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a5f5bcff0..000000000 --- a/src/lifecycle_msgs/msg/detail/state__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from lifecycle_msgs:msg/State.idl -// generated code does not contain a copyright notice -#ifndef LIFECYCLE_MSGS__MSG__STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define LIFECYCLE_MSGS__MSG__STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__msg__State( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__msg__State( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, msg, State)(); - -#ifdef __cplusplus -} -#endif - - -#endif // LIFECYCLE_MSGS__MSG__STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/lifecycle_msgs/msg/detail/state__struct.h b/src/lifecycle_msgs/msg/detail/state__struct.h deleted file mode 100755 index 04ea142cb..000000000 --- a/src/lifecycle_msgs/msg/detail/state__struct.h +++ /dev/null @@ -1,166 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from lifecycle_msgs:msg/State.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/msg/state.h" - - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__STATE__STRUCT_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__STATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'PRIMARY_STATE_UNKNOWN'. -/** - * These are the primary states. State changes can only be requested when the - * node is in one of these states. - * Indicates state has not yet been set. - */ -enum -{ - lifecycle_msgs__msg__State__PRIMARY_STATE_UNKNOWN = 0 -}; - -/// Constant 'PRIMARY_STATE_UNCONFIGURED'. -/** - * This is the life cycle state the node is in immediately after being - * instantiated. - */ -enum -{ - lifecycle_msgs__msg__State__PRIMARY_STATE_UNCONFIGURED = 1 -}; - -/// Constant 'PRIMARY_STATE_INACTIVE'. -/** - * This state represents a node that is not currently performing any processing. - */ -enum -{ - lifecycle_msgs__msg__State__PRIMARY_STATE_INACTIVE = 2 -}; - -/// Constant 'PRIMARY_STATE_ACTIVE'. -/** - * This is the main state of the node's life cycle. While in this state, the node - * performs any processing, responds to service requests, reads and processes - * data, produces output, etc. - */ -enum -{ - lifecycle_msgs__msg__State__PRIMARY_STATE_ACTIVE = 3 -}; - -/// Constant 'PRIMARY_STATE_FINALIZED'. -/** - * The finalized state is the state in which the node ends immediately before - * being destroyed. - */ -enum -{ - lifecycle_msgs__msg__State__PRIMARY_STATE_FINALIZED = 4 -}; - -/// Constant 'TRANSITION_STATE_CONFIGURING'. -/** - * Temporary intermediate states. When a transition is requested, the node - * changes its state into one of these states. - * In this transition state the node's onConfigure callback will be called to - * allow the node to load its configuration and conduct any required setup. - */ -enum -{ - lifecycle_msgs__msg__State__TRANSITION_STATE_CONFIGURING = 10 -}; - -/// Constant 'TRANSITION_STATE_CLEANINGUP'. -/** - * In this transition state the node's callback onCleanup will be called to clear - * all state and return the node to a functionally equivalent state as when - * first created. - */ -enum -{ - lifecycle_msgs__msg__State__TRANSITION_STATE_CLEANINGUP = 11 -}; - -/// Constant 'TRANSITION_STATE_SHUTTINGDOWN'. -/** - * In this transition state the callback onShutdown will be executed to do any - * cleanup necessary before destruction. - */ -enum -{ - lifecycle_msgs__msg__State__TRANSITION_STATE_SHUTTINGDOWN = 12 -}; - -/// Constant 'TRANSITION_STATE_ACTIVATING'. -/** - * In this transition state the callback onActivate will be executed to do any - * final preparations to start executing. - */ -enum -{ - lifecycle_msgs__msg__State__TRANSITION_STATE_ACTIVATING = 13 -}; - -/// Constant 'TRANSITION_STATE_DEACTIVATING'. -/** - * In this transition state the callback onDeactivate will be executed to do any - * cleanup to start executing, and reverse the onActivate changes. - */ -enum -{ - lifecycle_msgs__msg__State__TRANSITION_STATE_DEACTIVATING = 14 -}; - -/// Constant 'TRANSITION_STATE_ERRORPROCESSING'. -/** - * This transition state is where any error may be cleaned up. - */ -enum -{ - lifecycle_msgs__msg__State__TRANSITION_STATE_ERRORPROCESSING = 15 -}; - -// Include directives for member types -// Member 'label' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/State in the package lifecycle_msgs. -/** - * Primary state definitions as depicted in: - * http://design.ros2.org/articles/node_lifecycle.html - */ -typedef struct lifecycle_msgs__msg__State -{ - /// The state id value from the above definitions. - uint8_t id; - /// A text label of the state. - rosidl_runtime_c__String label; -} lifecycle_msgs__msg__State; - -// Struct for a sequence of lifecycle_msgs__msg__State. -typedef struct lifecycle_msgs__msg__State__Sequence -{ - lifecycle_msgs__msg__State * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__msg__State__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__STATE__STRUCT_H_ diff --git a/src/lifecycle_msgs/msg/detail/state__type_support.h b/src/lifecycle_msgs/msg/detail/state__type_support.h deleted file mode 100755 index 6a4cdc572..000000000 --- a/src/lifecycle_msgs/msg/detail/state__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from lifecycle_msgs:msg/State.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/msg/state.h" - - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__STATE__TYPE_SUPPORT_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__STATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - msg, - State -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__STATE__TYPE_SUPPORT_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition__functions.h b/src/lifecycle_msgs/msg/detail/transition__functions.h deleted file mode 100755 index 97338a5e1..000000000 --- a/src/lifecycle_msgs/msg/detail/transition__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from lifecycle_msgs:msg/Transition.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/msg/transition.h" - - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION__FUNCTIONS_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "lifecycle_msgs/msg/detail/transition__struct.h" - -/// Initialize msg/Transition message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__msg__Transition - * )) before or use - * lifecycle_msgs__msg__Transition__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__Transition__init(lifecycle_msgs__msg__Transition * msg); - -/// Finalize msg/Transition message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__Transition__fini(lifecycle_msgs__msg__Transition * msg); - -/// Create msg/Transition message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__msg__Transition__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__msg__Transition * -lifecycle_msgs__msg__Transition__create(void); - -/// Destroy msg/Transition message. -/** - * It calls - * lifecycle_msgs__msg__Transition__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__Transition__destroy(lifecycle_msgs__msg__Transition * msg); - -/// Check for msg/Transition message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__Transition__are_equal(const lifecycle_msgs__msg__Transition * lhs, const lifecycle_msgs__msg__Transition * rhs); - -/// Copy a msg/Transition message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__Transition__copy( - const lifecycle_msgs__msg__Transition * input, - lifecycle_msgs__msg__Transition * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__msg__Transition__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__msg__Transition__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__msg__Transition__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__msg__Transition__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Transition messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__msg__Transition__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__Transition__Sequence__init(lifecycle_msgs__msg__Transition__Sequence * array, size_t size); - -/// Finalize array of msg/Transition messages. -/** - * It calls - * lifecycle_msgs__msg__Transition__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__Transition__Sequence__fini(lifecycle_msgs__msg__Transition__Sequence * array); - -/// Create array of msg/Transition messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__msg__Transition__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__msg__Transition__Sequence * -lifecycle_msgs__msg__Transition__Sequence__create(size_t size); - -/// Destroy array of msg/Transition messages. -/** - * It calls - * lifecycle_msgs__msg__Transition__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__Transition__Sequence__destroy(lifecycle_msgs__msg__Transition__Sequence * array); - -/// Check for msg/Transition message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__Transition__Sequence__are_equal(const lifecycle_msgs__msg__Transition__Sequence * lhs, const lifecycle_msgs__msg__Transition__Sequence * rhs); - -/// Copy an array of msg/Transition messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__Transition__Sequence__copy( - const lifecycle_msgs__msg__Transition__Sequence * input, - lifecycle_msgs__msg__Transition__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION__FUNCTIONS_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition__rosidl_typesupport_introspection_c.h b/src/lifecycle_msgs/msg/detail/transition__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 32e328402..000000000 --- a/src/lifecycle_msgs/msg/detail/transition__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from lifecycle_msgs:msg/Transition.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, msg, Transition)(); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition__rosidl_typesupport_microxrcedds_c.h b/src/lifecycle_msgs/msg/detail/transition__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 0877d5651..000000000 --- a/src/lifecycle_msgs/msg/detail/transition__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from lifecycle_msgs:msg/Transition.idl -// generated code does not contain a copyright notice -#ifndef LIFECYCLE_MSGS__MSG__TRANSITION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define LIFECYCLE_MSGS__MSG__TRANSITION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__msg__Transition( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__msg__Transition( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, msg, Transition)(); - -#ifdef __cplusplus -} -#endif - - -#endif // LIFECYCLE_MSGS__MSG__TRANSITION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition__struct.h b/src/lifecycle_msgs/msg/detail/transition__struct.h deleted file mode 100755 index 0c9f4189e..000000000 --- a/src/lifecycle_msgs/msg/detail/transition__struct.h +++ /dev/null @@ -1,293 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from lifecycle_msgs:msg/Transition.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/msg/transition.h" - - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION__STRUCT_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'TRANSITION_CREATE'. -/** - * Reserved, publicly available transitions. - * When a node is in one of these primary states, these transitions can be - * invoked. - * This transition will instantiate the node, but will not run any code beyond - * the constructor. - */ -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_CREATE = 0 -}; - -/// Constant 'TRANSITION_CONFIGURE'. -/** - * The node's onConfigure callback will be called to allow the node to load its - * configuration and conduct any required setup. - */ -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_CONFIGURE = 1 -}; - -/// Constant 'TRANSITION_CLEANUP'. -/** - * The node's callback onCleanup will be called in this transition to allow the - * node to load its configuration and conduct any required setup. - */ -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_CLEANUP = 2 -}; - -/// Constant 'TRANSITION_ACTIVATE'. -/** - * The node's callback onActivate will be executed to do any final preparations - * to start executing. - */ -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ACTIVATE = 3 -}; - -/// Constant 'TRANSITION_DEACTIVATE'. -/** - * The node's callback onDeactivate will be executed to do any cleanup to start - * executing, and reverse the onActivate changes. - */ -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_DEACTIVATE = 4 -}; - -/// Constant 'TRANSITION_UNCONFIGURED_SHUTDOWN'. -/** - * This signals shutdown during an unconfigured state, the node's callback - * onShutdown will be executed to do any cleanup necessary before destruction. - */ -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_UNCONFIGURED_SHUTDOWN = 5 -}; - -/// Constant 'TRANSITION_INACTIVE_SHUTDOWN'. -/** - * This signals shutdown during an inactive state, the node's callback onShutdown - * will be executed to do any cleanup necessary before destruction. - */ -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_INACTIVE_SHUTDOWN = 6 -}; - -/// Constant 'TRANSITION_ACTIVE_SHUTDOWN'. -/** - * This signals shutdown during an active state, the node's callback onShutdown - * will be executed to do any cleanup necessary before destruction. - */ -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ACTIVE_SHUTDOWN = 7 -}; - -/// Constant 'TRANSITION_DESTROY'. -/** - * This transition will simply cause the deallocation of the node. - */ -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_DESTROY = 8 -}; - -/// Constant 'TRANSITION_ON_CONFIGURE_SUCCESS'. -/** - * Reserved, private transitions - * These transitions are not publicly available and cannot be invoked by a user. - * The following transitions are implicitly invoked based on the callback - * feedback of the intermediate transition states. - */ -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_CONFIGURE_SUCCESS = 10 -}; - -/// Constant 'TRANSITION_ON_CONFIGURE_FAILURE'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_CONFIGURE_FAILURE = 11 -}; - -/// Constant 'TRANSITION_ON_CONFIGURE_ERROR'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_CONFIGURE_ERROR = 12 -}; - -/// Constant 'TRANSITION_ON_CLEANUP_SUCCESS'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_CLEANUP_SUCCESS = 20 -}; - -/// Constant 'TRANSITION_ON_CLEANUP_FAILURE'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_CLEANUP_FAILURE = 21 -}; - -/// Constant 'TRANSITION_ON_CLEANUP_ERROR'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_CLEANUP_ERROR = 22 -}; - -/// Constant 'TRANSITION_ON_ACTIVATE_SUCCESS'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_ACTIVATE_SUCCESS = 30 -}; - -/// Constant 'TRANSITION_ON_ACTIVATE_FAILURE'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_ACTIVATE_FAILURE = 31 -}; - -/// Constant 'TRANSITION_ON_ACTIVATE_ERROR'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_ACTIVATE_ERROR = 32 -}; - -/// Constant 'TRANSITION_ON_DEACTIVATE_SUCCESS'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_DEACTIVATE_SUCCESS = 40 -}; - -/// Constant 'TRANSITION_ON_DEACTIVATE_FAILURE'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_DEACTIVATE_FAILURE = 41 -}; - -/// Constant 'TRANSITION_ON_DEACTIVATE_ERROR'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_DEACTIVATE_ERROR = 42 -}; - -/// Constant 'TRANSITION_ON_SHUTDOWN_SUCCESS'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_SHUTDOWN_SUCCESS = 50 -}; - -/// Constant 'TRANSITION_ON_SHUTDOWN_FAILURE'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_SHUTDOWN_FAILURE = 51 -}; - -/// Constant 'TRANSITION_ON_SHUTDOWN_ERROR'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_SHUTDOWN_ERROR = 52 -}; - -/// Constant 'TRANSITION_ON_ERROR_SUCCESS'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_ERROR_SUCCESS = 60 -}; - -/// Constant 'TRANSITION_ON_ERROR_FAILURE'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_ERROR_FAILURE = 61 -}; - -/// Constant 'TRANSITION_ON_ERROR_ERROR'. -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_ON_ERROR_ERROR = 62 -}; - -/// Constant 'TRANSITION_CALLBACK_SUCCESS'. -/** - * Reserved. Transition callback success values. - * These return values ought to be set as a return value for each callback. - * Depending on which return value, the transition will be executed correctly or - * fallback/error callbacks will be triggered. - * The transition callback successfully performed its required functionality. - */ -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_CALLBACK_SUCCESS = 97 -}; - -/// Constant 'TRANSITION_CALLBACK_FAILURE'. -/** - * The transition callback failed to perform its required functionality. - */ -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_CALLBACK_FAILURE = 98 -}; - -/// Constant 'TRANSITION_CALLBACK_ERROR'. -/** - * The transition callback encountered an error that requires special cleanup, if - * possible. - */ -enum -{ - lifecycle_msgs__msg__Transition__TRANSITION_CALLBACK_ERROR = 99 -}; - -// Include directives for member types -// Member 'label' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/Transition in the package lifecycle_msgs. -/** - * Default values for transitions as described in: - * http://design.ros2.org/articles/node_lifecycle.html - */ -typedef struct lifecycle_msgs__msg__Transition -{ - /// Fields - /// - /// The transition id from above definitions. - uint8_t id; - /// A text label of the transition. - rosidl_runtime_c__String label; -} lifecycle_msgs__msg__Transition; - -// Struct for a sequence of lifecycle_msgs__msg__Transition. -typedef struct lifecycle_msgs__msg__Transition__Sequence -{ - lifecycle_msgs__msg__Transition * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__msg__Transition__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION__STRUCT_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition__type_support.h b/src/lifecycle_msgs/msg/detail/transition__type_support.h deleted file mode 100755 index 9200a635f..000000000 --- a/src/lifecycle_msgs/msg/detail/transition__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from lifecycle_msgs:msg/Transition.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/msg/transition.h" - - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION__TYPE_SUPPORT_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - msg, - Transition -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION__TYPE_SUPPORT_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition_description__functions.h b/src/lifecycle_msgs/msg/detail/transition_description__functions.h deleted file mode 100755 index ce60b782f..000000000 --- a/src/lifecycle_msgs/msg/detail/transition_description__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from lifecycle_msgs:msg/TransitionDescription.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/msg/transition_description.h" - - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_DESCRIPTION__FUNCTIONS_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_DESCRIPTION__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "lifecycle_msgs/msg/detail/transition_description__struct.h" - -/// Initialize msg/TransitionDescription message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__msg__TransitionDescription - * )) before or use - * lifecycle_msgs__msg__TransitionDescription__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__TransitionDescription__init(lifecycle_msgs__msg__TransitionDescription * msg); - -/// Finalize msg/TransitionDescription message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__TransitionDescription__fini(lifecycle_msgs__msg__TransitionDescription * msg); - -/// Create msg/TransitionDescription message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__msg__TransitionDescription__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__msg__TransitionDescription * -lifecycle_msgs__msg__TransitionDescription__create(void); - -/// Destroy msg/TransitionDescription message. -/** - * It calls - * lifecycle_msgs__msg__TransitionDescription__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__TransitionDescription__destroy(lifecycle_msgs__msg__TransitionDescription * msg); - -/// Check for msg/TransitionDescription message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__TransitionDescription__are_equal(const lifecycle_msgs__msg__TransitionDescription * lhs, const lifecycle_msgs__msg__TransitionDescription * rhs); - -/// Copy a msg/TransitionDescription message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__TransitionDescription__copy( - const lifecycle_msgs__msg__TransitionDescription * input, - lifecycle_msgs__msg__TransitionDescription * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__msg__TransitionDescription__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__msg__TransitionDescription__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__msg__TransitionDescription__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__msg__TransitionDescription__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/TransitionDescription messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__msg__TransitionDescription__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__TransitionDescription__Sequence__init(lifecycle_msgs__msg__TransitionDescription__Sequence * array, size_t size); - -/// Finalize array of msg/TransitionDescription messages. -/** - * It calls - * lifecycle_msgs__msg__TransitionDescription__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__TransitionDescription__Sequence__fini(lifecycle_msgs__msg__TransitionDescription__Sequence * array); - -/// Create array of msg/TransitionDescription messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__msg__TransitionDescription__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__msg__TransitionDescription__Sequence * -lifecycle_msgs__msg__TransitionDescription__Sequence__create(size_t size); - -/// Destroy array of msg/TransitionDescription messages. -/** - * It calls - * lifecycle_msgs__msg__TransitionDescription__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__TransitionDescription__Sequence__destroy(lifecycle_msgs__msg__TransitionDescription__Sequence * array); - -/// Check for msg/TransitionDescription message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__TransitionDescription__Sequence__are_equal(const lifecycle_msgs__msg__TransitionDescription__Sequence * lhs, const lifecycle_msgs__msg__TransitionDescription__Sequence * rhs); - -/// Copy an array of msg/TransitionDescription messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__TransitionDescription__Sequence__copy( - const lifecycle_msgs__msg__TransitionDescription__Sequence * input, - lifecycle_msgs__msg__TransitionDescription__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_DESCRIPTION__FUNCTIONS_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition_description__rosidl_typesupport_introspection_c.h b/src/lifecycle_msgs/msg/detail/transition_description__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 3c3d9f287..000000000 --- a/src/lifecycle_msgs/msg/detail/transition_description__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from lifecycle_msgs:msg/TransitionDescription.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_DESCRIPTION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_DESCRIPTION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, msg, TransitionDescription)(); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_DESCRIPTION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition_description__rosidl_typesupport_microxrcedds_c.h b/src/lifecycle_msgs/msg/detail/transition_description__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 46edaa464..000000000 --- a/src/lifecycle_msgs/msg/detail/transition_description__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from lifecycle_msgs:msg/TransitionDescription.idl -// generated code does not contain a copyright notice -#ifndef LIFECYCLE_MSGS__MSG__TRANSITION_DESCRIPTION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define LIFECYCLE_MSGS__MSG__TRANSITION_DESCRIPTION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__msg__TransitionDescription( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__msg__TransitionDescription( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, msg, TransitionDescription)(); - -#ifdef __cplusplus -} -#endif - - -#endif // LIFECYCLE_MSGS__MSG__TRANSITION_DESCRIPTION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition_description__struct.h b/src/lifecycle_msgs/msg/detail/transition_description__struct.h deleted file mode 100755 index dae11a6ac..000000000 --- a/src/lifecycle_msgs/msg/detail/transition_description__struct.h +++ /dev/null @@ -1,56 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from lifecycle_msgs:msg/TransitionDescription.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/msg/transition_description.h" - - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_DESCRIPTION__STRUCT_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_DESCRIPTION__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'transition' -#include "lifecycle_msgs/msg/detail/transition__struct.h" -// Member 'start_state' -// Member 'goal_state' -#include "lifecycle_msgs/msg/detail/state__struct.h" - -/// Struct defined in msg/TransitionDescription in the package lifecycle_msgs. -/** - * The transition id and label of this description. - */ -typedef struct lifecycle_msgs__msg__TransitionDescription -{ - lifecycle_msgs__msg__Transition transition; - /// The current state from which this transition transitions. - lifecycle_msgs__msg__State start_state; - /// The desired target state of this transition. - lifecycle_msgs__msg__State goal_state; -} lifecycle_msgs__msg__TransitionDescription; - -// Struct for a sequence of lifecycle_msgs__msg__TransitionDescription. -typedef struct lifecycle_msgs__msg__TransitionDescription__Sequence -{ - lifecycle_msgs__msg__TransitionDescription * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__msg__TransitionDescription__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_DESCRIPTION__STRUCT_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition_description__type_support.h b/src/lifecycle_msgs/msg/detail/transition_description__type_support.h deleted file mode 100755 index 809be6ac6..000000000 --- a/src/lifecycle_msgs/msg/detail/transition_description__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from lifecycle_msgs:msg/TransitionDescription.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/msg/transition_description.h" - - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_DESCRIPTION__TYPE_SUPPORT_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_DESCRIPTION__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - msg, - TransitionDescription -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_DESCRIPTION__TYPE_SUPPORT_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition_event__functions.h b/src/lifecycle_msgs/msg/detail/transition_event__functions.h deleted file mode 100755 index 36f2a1927..000000000 --- a/src/lifecycle_msgs/msg/detail/transition_event__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from lifecycle_msgs:msg/TransitionEvent.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/msg/transition_event.h" - - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_EVENT__FUNCTIONS_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_EVENT__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "lifecycle_msgs/msg/detail/transition_event__struct.h" - -/// Initialize msg/TransitionEvent message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__msg__TransitionEvent - * )) before or use - * lifecycle_msgs__msg__TransitionEvent__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__TransitionEvent__init(lifecycle_msgs__msg__TransitionEvent * msg); - -/// Finalize msg/TransitionEvent message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__TransitionEvent__fini(lifecycle_msgs__msg__TransitionEvent * msg); - -/// Create msg/TransitionEvent message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__msg__TransitionEvent__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__msg__TransitionEvent * -lifecycle_msgs__msg__TransitionEvent__create(void); - -/// Destroy msg/TransitionEvent message. -/** - * It calls - * lifecycle_msgs__msg__TransitionEvent__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__TransitionEvent__destroy(lifecycle_msgs__msg__TransitionEvent * msg); - -/// Check for msg/TransitionEvent message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__TransitionEvent__are_equal(const lifecycle_msgs__msg__TransitionEvent * lhs, const lifecycle_msgs__msg__TransitionEvent * rhs); - -/// Copy a msg/TransitionEvent message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__TransitionEvent__copy( - const lifecycle_msgs__msg__TransitionEvent * input, - lifecycle_msgs__msg__TransitionEvent * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__msg__TransitionEvent__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__msg__TransitionEvent__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__msg__TransitionEvent__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__msg__TransitionEvent__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/TransitionEvent messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__msg__TransitionEvent__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__TransitionEvent__Sequence__init(lifecycle_msgs__msg__TransitionEvent__Sequence * array, size_t size); - -/// Finalize array of msg/TransitionEvent messages. -/** - * It calls - * lifecycle_msgs__msg__TransitionEvent__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__TransitionEvent__Sequence__fini(lifecycle_msgs__msg__TransitionEvent__Sequence * array); - -/// Create array of msg/TransitionEvent messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__msg__TransitionEvent__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__msg__TransitionEvent__Sequence * -lifecycle_msgs__msg__TransitionEvent__Sequence__create(size_t size); - -/// Destroy array of msg/TransitionEvent messages. -/** - * It calls - * lifecycle_msgs__msg__TransitionEvent__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__msg__TransitionEvent__Sequence__destroy(lifecycle_msgs__msg__TransitionEvent__Sequence * array); - -/// Check for msg/TransitionEvent message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__TransitionEvent__Sequence__are_equal(const lifecycle_msgs__msg__TransitionEvent__Sequence * lhs, const lifecycle_msgs__msg__TransitionEvent__Sequence * rhs); - -/// Copy an array of msg/TransitionEvent messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__msg__TransitionEvent__Sequence__copy( - const lifecycle_msgs__msg__TransitionEvent__Sequence * input, - lifecycle_msgs__msg__TransitionEvent__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_EVENT__FUNCTIONS_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition_event__rosidl_typesupport_introspection_c.h b/src/lifecycle_msgs/msg/detail/transition_event__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 862a3cd3a..000000000 --- a/src/lifecycle_msgs/msg/detail/transition_event__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from lifecycle_msgs:msg/TransitionEvent.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_EVENT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_EVENT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, msg, TransitionEvent)(); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_EVENT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition_event__rosidl_typesupport_microxrcedds_c.h b/src/lifecycle_msgs/msg/detail/transition_event__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 87fe6dfbb..000000000 --- a/src/lifecycle_msgs/msg/detail/transition_event__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from lifecycle_msgs:msg/TransitionEvent.idl -// generated code does not contain a copyright notice -#ifndef LIFECYCLE_MSGS__MSG__TRANSITION_EVENT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define LIFECYCLE_MSGS__MSG__TRANSITION_EVENT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__msg__TransitionEvent( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__msg__TransitionEvent( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, msg, TransitionEvent)(); - -#ifdef __cplusplus -} -#endif - - -#endif // LIFECYCLE_MSGS__MSG__TRANSITION_EVENT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition_event__struct.h b/src/lifecycle_msgs/msg/detail/transition_event__struct.h deleted file mode 100755 index 759ce67d7..000000000 --- a/src/lifecycle_msgs/msg/detail/transition_event__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from lifecycle_msgs:msg/TransitionEvent.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/msg/transition_event.h" - - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_EVENT__STRUCT_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_EVENT__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'transition' -#include "lifecycle_msgs/msg/detail/transition__struct.h" -// Member 'start_state' -// Member 'goal_state' -#include "lifecycle_msgs/msg/detail/state__struct.h" - -/// Struct defined in msg/TransitionEvent in the package lifecycle_msgs. -/** - * The time point at which this event occurred. - */ -typedef struct lifecycle_msgs__msg__TransitionEvent -{ - uint64_t timestamp; - /// The id and label of this transition event. - lifecycle_msgs__msg__Transition transition; - /// The starting state from which this event transitioned. - lifecycle_msgs__msg__State start_state; - /// The end state of this transition event. - lifecycle_msgs__msg__State goal_state; -} lifecycle_msgs__msg__TransitionEvent; - -// Struct for a sequence of lifecycle_msgs__msg__TransitionEvent. -typedef struct lifecycle_msgs__msg__TransitionEvent__Sequence -{ - lifecycle_msgs__msg__TransitionEvent * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__msg__TransitionEvent__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_EVENT__STRUCT_H_ diff --git a/src/lifecycle_msgs/msg/detail/transition_event__type_support.h b/src/lifecycle_msgs/msg/detail/transition_event__type_support.h deleted file mode 100755 index 5914315f3..000000000 --- a/src/lifecycle_msgs/msg/detail/transition_event__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from lifecycle_msgs:msg/TransitionEvent.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/msg/transition_event.h" - - -#ifndef LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_EVENT__TYPE_SUPPORT_H_ -#define LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_EVENT__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - msg, - TransitionEvent -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__DETAIL__TRANSITION_EVENT__TYPE_SUPPORT_H_ diff --git a/src/lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h b/src/lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index f831a3e82..000000000 --- a/src/lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define LIFECYCLE_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_lifecycle_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_lifecycle_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_lifecycle_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_lifecycle_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_lifecycle_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs ROSIDL_GENERATOR_C_EXPORT_lifecycle_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs ROSIDL_GENERATOR_C_IMPORT_lifecycle_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_lifecycle_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_lifecycle_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 1551160d4..000000000 --- a/src/lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define LIFECYCLE_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_lifecycle_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_lifecycle_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_lifecycle_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_lifecycle_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_lifecycle_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_lifecycle_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_lifecycle_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_lifecycle_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_lifecycle_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index c6def6d97..000000000 --- a/src/lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define LIFECYCLE_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_lifecycle_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_lifecycle_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_lifecycle_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_lifecycle_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_lifecycle_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_lifecycle_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_lifecycle_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_lifecycle_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_lifecycle_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/lifecycle_msgs/msg/state.h b/src/lifecycle_msgs/msg/state.h deleted file mode 100755 index 092c0571f..000000000 --- a/src/lifecycle_msgs/msg/state.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from lifecycle_msgs:msg/State.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__MSG__STATE_H_ -#define LIFECYCLE_MSGS__MSG__STATE_H_ - -#include "lifecycle_msgs/msg/detail/state__struct.h" -#include "lifecycle_msgs/msg/detail/state__functions.h" -#include "lifecycle_msgs/msg/detail/state__type_support.h" - -#endif // LIFECYCLE_MSGS__MSG__STATE_H_ diff --git a/src/lifecycle_msgs/msg/transition.h b/src/lifecycle_msgs/msg/transition.h deleted file mode 100755 index 7a68e9ad2..000000000 --- a/src/lifecycle_msgs/msg/transition.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from lifecycle_msgs:msg/Transition.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__MSG__TRANSITION_H_ -#define LIFECYCLE_MSGS__MSG__TRANSITION_H_ - -#include "lifecycle_msgs/msg/detail/transition__struct.h" -#include "lifecycle_msgs/msg/detail/transition__functions.h" -#include "lifecycle_msgs/msg/detail/transition__type_support.h" - -#endif // LIFECYCLE_MSGS__MSG__TRANSITION_H_ diff --git a/src/lifecycle_msgs/msg/transition_description.h b/src/lifecycle_msgs/msg/transition_description.h deleted file mode 100755 index 7f47e0536..000000000 --- a/src/lifecycle_msgs/msg/transition_description.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from lifecycle_msgs:msg/TransitionDescription.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__MSG__TRANSITION_DESCRIPTION_H_ -#define LIFECYCLE_MSGS__MSG__TRANSITION_DESCRIPTION_H_ - -#include "lifecycle_msgs/msg/detail/transition_description__struct.h" -#include "lifecycle_msgs/msg/detail/transition_description__functions.h" -#include "lifecycle_msgs/msg/detail/transition_description__type_support.h" - -#endif // LIFECYCLE_MSGS__MSG__TRANSITION_DESCRIPTION_H_ diff --git a/src/lifecycle_msgs/msg/transition_event.h b/src/lifecycle_msgs/msg/transition_event.h deleted file mode 100755 index c9d372c15..000000000 --- a/src/lifecycle_msgs/msg/transition_event.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from lifecycle_msgs:msg/TransitionEvent.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__MSG__TRANSITION_EVENT_H_ -#define LIFECYCLE_MSGS__MSG__TRANSITION_EVENT_H_ - -#include "lifecycle_msgs/msg/detail/transition_event__struct.h" -#include "lifecycle_msgs/msg/detail/transition_event__functions.h" -#include "lifecycle_msgs/msg/detail/transition_event__type_support.h" - -#endif // LIFECYCLE_MSGS__MSG__TRANSITION_EVENT_H_ diff --git a/src/lifecycle_msgs/srv/change_state.h b/src/lifecycle_msgs/srv/change_state.h deleted file mode 100755 index dcb6a84f1..000000000 --- a/src/lifecycle_msgs/srv/change_state.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from lifecycle_msgs:srv/ChangeState.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__SRV__CHANGE_STATE_H_ -#define LIFECYCLE_MSGS__SRV__CHANGE_STATE_H_ - -#include "lifecycle_msgs/srv/detail/change_state__struct.h" -#include "lifecycle_msgs/srv/detail/change_state__functions.h" -#include "lifecycle_msgs/srv/detail/change_state__type_support.h" - -#endif // LIFECYCLE_MSGS__SRV__CHANGE_STATE_H_ diff --git a/src/lifecycle_msgs/srv/detail/change_state__functions.h b/src/lifecycle_msgs/srv/detail/change_state__functions.h deleted file mode 100755 index 7c3c06167..000000000 --- a/src/lifecycle_msgs/srv/detail/change_state__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from lifecycle_msgs:srv/ChangeState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/srv/change_state.h" - - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__CHANGE_STATE__FUNCTIONS_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__CHANGE_STATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "lifecycle_msgs/srv/detail/change_state__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__ChangeState__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__ChangeState__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__ChangeState__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__ChangeState__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/ChangeState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__srv__ChangeState_Request - * )) before or use - * lifecycle_msgs__srv__ChangeState_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Request__init(lifecycle_msgs__srv__ChangeState_Request * msg); - -/// Finalize srv/ChangeState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__ChangeState_Request__fini(lifecycle_msgs__srv__ChangeState_Request * msg); - -/// Create srv/ChangeState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__srv__ChangeState_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__ChangeState_Request * -lifecycle_msgs__srv__ChangeState_Request__create(void); - -/// Destroy srv/ChangeState message. -/** - * It calls - * lifecycle_msgs__srv__ChangeState_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__ChangeState_Request__destroy(lifecycle_msgs__srv__ChangeState_Request * msg); - -/// Check for srv/ChangeState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Request__are_equal(const lifecycle_msgs__srv__ChangeState_Request * lhs, const lifecycle_msgs__srv__ChangeState_Request * rhs); - -/// Copy a srv/ChangeState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Request__copy( - const lifecycle_msgs__srv__ChangeState_Request * input, - lifecycle_msgs__srv__ChangeState_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__ChangeState_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__ChangeState_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__ChangeState_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__ChangeState_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/ChangeState messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__srv__ChangeState_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Request__Sequence__init(lifecycle_msgs__srv__ChangeState_Request__Sequence * array, size_t size); - -/// Finalize array of srv/ChangeState messages. -/** - * It calls - * lifecycle_msgs__srv__ChangeState_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__ChangeState_Request__Sequence__fini(lifecycle_msgs__srv__ChangeState_Request__Sequence * array); - -/// Create array of srv/ChangeState messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__srv__ChangeState_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__ChangeState_Request__Sequence * -lifecycle_msgs__srv__ChangeState_Request__Sequence__create(size_t size); - -/// Destroy array of srv/ChangeState messages. -/** - * It calls - * lifecycle_msgs__srv__ChangeState_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__ChangeState_Request__Sequence__destroy(lifecycle_msgs__srv__ChangeState_Request__Sequence * array); - -/// Check for srv/ChangeState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Request__Sequence__are_equal(const lifecycle_msgs__srv__ChangeState_Request__Sequence * lhs, const lifecycle_msgs__srv__ChangeState_Request__Sequence * rhs); - -/// Copy an array of srv/ChangeState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Request__Sequence__copy( - const lifecycle_msgs__srv__ChangeState_Request__Sequence * input, - lifecycle_msgs__srv__ChangeState_Request__Sequence * output); - -/// Initialize srv/ChangeState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__srv__ChangeState_Response - * )) before or use - * lifecycle_msgs__srv__ChangeState_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Response__init(lifecycle_msgs__srv__ChangeState_Response * msg); - -/// Finalize srv/ChangeState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__ChangeState_Response__fini(lifecycle_msgs__srv__ChangeState_Response * msg); - -/// Create srv/ChangeState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__srv__ChangeState_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__ChangeState_Response * -lifecycle_msgs__srv__ChangeState_Response__create(void); - -/// Destroy srv/ChangeState message. -/** - * It calls - * lifecycle_msgs__srv__ChangeState_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__ChangeState_Response__destroy(lifecycle_msgs__srv__ChangeState_Response * msg); - -/// Check for srv/ChangeState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Response__are_equal(const lifecycle_msgs__srv__ChangeState_Response * lhs, const lifecycle_msgs__srv__ChangeState_Response * rhs); - -/// Copy a srv/ChangeState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Response__copy( - const lifecycle_msgs__srv__ChangeState_Response * input, - lifecycle_msgs__srv__ChangeState_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__ChangeState_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__ChangeState_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__ChangeState_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__ChangeState_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/ChangeState messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__srv__ChangeState_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Response__Sequence__init(lifecycle_msgs__srv__ChangeState_Response__Sequence * array, size_t size); - -/// Finalize array of srv/ChangeState messages. -/** - * It calls - * lifecycle_msgs__srv__ChangeState_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__ChangeState_Response__Sequence__fini(lifecycle_msgs__srv__ChangeState_Response__Sequence * array); - -/// Create array of srv/ChangeState messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__srv__ChangeState_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__ChangeState_Response__Sequence * -lifecycle_msgs__srv__ChangeState_Response__Sequence__create(size_t size); - -/// Destroy array of srv/ChangeState messages. -/** - * It calls - * lifecycle_msgs__srv__ChangeState_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__ChangeState_Response__Sequence__destroy(lifecycle_msgs__srv__ChangeState_Response__Sequence * array); - -/// Check for srv/ChangeState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Response__Sequence__are_equal(const lifecycle_msgs__srv__ChangeState_Response__Sequence * lhs, const lifecycle_msgs__srv__ChangeState_Response__Sequence * rhs); - -/// Copy an array of srv/ChangeState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Response__Sequence__copy( - const lifecycle_msgs__srv__ChangeState_Response__Sequence * input, - lifecycle_msgs__srv__ChangeState_Response__Sequence * output); - -/// Initialize srv/ChangeState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__srv__ChangeState_Event - * )) before or use - * lifecycle_msgs__srv__ChangeState_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Event__init(lifecycle_msgs__srv__ChangeState_Event * msg); - -/// Finalize srv/ChangeState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__ChangeState_Event__fini(lifecycle_msgs__srv__ChangeState_Event * msg); - -/// Create srv/ChangeState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__srv__ChangeState_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__ChangeState_Event * -lifecycle_msgs__srv__ChangeState_Event__create(void); - -/// Destroy srv/ChangeState message. -/** - * It calls - * lifecycle_msgs__srv__ChangeState_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__ChangeState_Event__destroy(lifecycle_msgs__srv__ChangeState_Event * msg); - -/// Check for srv/ChangeState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Event__are_equal(const lifecycle_msgs__srv__ChangeState_Event * lhs, const lifecycle_msgs__srv__ChangeState_Event * rhs); - -/// Copy a srv/ChangeState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Event__copy( - const lifecycle_msgs__srv__ChangeState_Event * input, - lifecycle_msgs__srv__ChangeState_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__ChangeState_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__ChangeState_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__ChangeState_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__ChangeState_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/ChangeState messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__srv__ChangeState_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Event__Sequence__init(lifecycle_msgs__srv__ChangeState_Event__Sequence * array, size_t size); - -/// Finalize array of srv/ChangeState messages. -/** - * It calls - * lifecycle_msgs__srv__ChangeState_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__ChangeState_Event__Sequence__fini(lifecycle_msgs__srv__ChangeState_Event__Sequence * array); - -/// Create array of srv/ChangeState messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__srv__ChangeState_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__ChangeState_Event__Sequence * -lifecycle_msgs__srv__ChangeState_Event__Sequence__create(size_t size); - -/// Destroy array of srv/ChangeState messages. -/** - * It calls - * lifecycle_msgs__srv__ChangeState_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__ChangeState_Event__Sequence__destroy(lifecycle_msgs__srv__ChangeState_Event__Sequence * array); - -/// Check for srv/ChangeState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Event__Sequence__are_equal(const lifecycle_msgs__srv__ChangeState_Event__Sequence * lhs, const lifecycle_msgs__srv__ChangeState_Event__Sequence * rhs); - -/// Copy an array of srv/ChangeState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__ChangeState_Event__Sequence__copy( - const lifecycle_msgs__srv__ChangeState_Event__Sequence * input, - lifecycle_msgs__srv__ChangeState_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__CHANGE_STATE__FUNCTIONS_H_ diff --git a/src/lifecycle_msgs/srv/detail/change_state__rosidl_typesupport_introspection_c.h b/src/lifecycle_msgs/srv/detail/change_state__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5277e4fbe..000000000 --- a/src/lifecycle_msgs/srv/detail/change_state__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from lifecycle_msgs:srv/ChangeState.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__CHANGE_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__CHANGE_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, ChangeState_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, ChangeState_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, ChangeState_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, ChangeState)(); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__CHANGE_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/lifecycle_msgs/srv/detail/change_state__rosidl_typesupport_microxrcedds_c.h b/src/lifecycle_msgs/srv/detail/change_state__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 0211304fa..000000000 --- a/src/lifecycle_msgs/srv/detail/change_state__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from lifecycle_msgs:srv/ChangeState.idl -// generated code does not contain a copyright notice -#ifndef LIFECYCLE_MSGS__SRV__CHANGE_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define LIFECYCLE_MSGS__SRV__CHANGE_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__srv__ChangeState_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__srv__ChangeState_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, ChangeState_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__srv__ChangeState_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__srv__ChangeState_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, ChangeState_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__srv__ChangeState_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__srv__ChangeState_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, ChangeState_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, ChangeState)(); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__CHANGE_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/lifecycle_msgs/srv/detail/change_state__struct.h b/src/lifecycle_msgs/srv/detail/change_state__struct.h deleted file mode 100755 index b2fb85358..000000000 --- a/src/lifecycle_msgs/srv/detail/change_state__struct.h +++ /dev/null @@ -1,102 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from lifecycle_msgs:srv/ChangeState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/srv/change_state.h" - - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__CHANGE_STATE__STRUCT_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__CHANGE_STATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'transition' -#include "lifecycle_msgs/msg/detail/transition__struct.h" - -/// Struct defined in srv/ChangeState in the package lifecycle_msgs. -typedef struct lifecycle_msgs__srv__ChangeState_Request -{ - lifecycle_msgs__msg__Transition transition; -} lifecycle_msgs__srv__ChangeState_Request; - -// Struct for a sequence of lifecycle_msgs__srv__ChangeState_Request. -typedef struct lifecycle_msgs__srv__ChangeState_Request__Sequence -{ - lifecycle_msgs__srv__ChangeState_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__srv__ChangeState_Request__Sequence; - -// Constants defined in the message - -/// Struct defined in srv/ChangeState in the package lifecycle_msgs. -typedef struct lifecycle_msgs__srv__ChangeState_Response -{ - /// Indicates whether the service was able to initiate the state transition - bool success; -} lifecycle_msgs__srv__ChangeState_Response; - -// Struct for a sequence of lifecycle_msgs__srv__ChangeState_Response. -typedef struct lifecycle_msgs__srv__ChangeState_Response__Sequence -{ - lifecycle_msgs__srv__ChangeState_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__srv__ChangeState_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - lifecycle_msgs__srv__ChangeState_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - lifecycle_msgs__srv__ChangeState_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/ChangeState in the package lifecycle_msgs. -typedef struct lifecycle_msgs__srv__ChangeState_Event -{ - service_msgs__msg__ServiceEventInfo info; - lifecycle_msgs__srv__ChangeState_Request__Sequence request; - lifecycle_msgs__srv__ChangeState_Response__Sequence response; -} lifecycle_msgs__srv__ChangeState_Event; - -// Struct for a sequence of lifecycle_msgs__srv__ChangeState_Event. -typedef struct lifecycle_msgs__srv__ChangeState_Event__Sequence -{ - lifecycle_msgs__srv__ChangeState_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__srv__ChangeState_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__CHANGE_STATE__STRUCT_H_ diff --git a/src/lifecycle_msgs/srv/detail/change_state__type_support.h b/src/lifecycle_msgs/srv/detail/change_state__type_support.h deleted file mode 100755 index a61571db3..000000000 --- a/src/lifecycle_msgs/srv/detail/change_state__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from lifecycle_msgs:srv/ChangeState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/srv/change_state.h" - - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__CHANGE_STATE__TYPE_SUPPORT_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__CHANGE_STATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - ChangeState_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - ChangeState_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - ChangeState_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - ChangeState -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - ChangeState -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - ChangeState -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__CHANGE_STATE__TYPE_SUPPORT_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_available_states__functions.h b/src/lifecycle_msgs/srv/detail/get_available_states__functions.h deleted file mode 100755 index 358719952..000000000 --- a/src/lifecycle_msgs/srv/detail/get_available_states__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from lifecycle_msgs:srv/GetAvailableStates.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/srv/get_available_states.h" - - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_STATES__FUNCTIONS_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_STATES__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "lifecycle_msgs/srv/detail/get_available_states__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__GetAvailableStates__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__GetAvailableStates__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__GetAvailableStates__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__GetAvailableStates__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/GetAvailableStates message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__srv__GetAvailableStates_Request - * )) before or use - * lifecycle_msgs__srv__GetAvailableStates_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Request__init(lifecycle_msgs__srv__GetAvailableStates_Request * msg); - -/// Finalize srv/GetAvailableStates message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableStates_Request__fini(lifecycle_msgs__srv__GetAvailableStates_Request * msg); - -/// Create srv/GetAvailableStates message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__srv__GetAvailableStates_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetAvailableStates_Request * -lifecycle_msgs__srv__GetAvailableStates_Request__create(void); - -/// Destroy srv/GetAvailableStates message. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableStates_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableStates_Request__destroy(lifecycle_msgs__srv__GetAvailableStates_Request * msg); - -/// Check for srv/GetAvailableStates message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Request__are_equal(const lifecycle_msgs__srv__GetAvailableStates_Request * lhs, const lifecycle_msgs__srv__GetAvailableStates_Request * rhs); - -/// Copy a srv/GetAvailableStates message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Request__copy( - const lifecycle_msgs__srv__GetAvailableStates_Request * input, - lifecycle_msgs__srv__GetAvailableStates_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__GetAvailableStates_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__GetAvailableStates_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__GetAvailableStates_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__GetAvailableStates_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetAvailableStates messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__srv__GetAvailableStates_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Request__Sequence__init(lifecycle_msgs__srv__GetAvailableStates_Request__Sequence * array, size_t size); - -/// Finalize array of srv/GetAvailableStates messages. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableStates_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableStates_Request__Sequence__fini(lifecycle_msgs__srv__GetAvailableStates_Request__Sequence * array); - -/// Create array of srv/GetAvailableStates messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__srv__GetAvailableStates_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetAvailableStates_Request__Sequence * -lifecycle_msgs__srv__GetAvailableStates_Request__Sequence__create(size_t size); - -/// Destroy array of srv/GetAvailableStates messages. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableStates_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableStates_Request__Sequence__destroy(lifecycle_msgs__srv__GetAvailableStates_Request__Sequence * array); - -/// Check for srv/GetAvailableStates message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Request__Sequence__are_equal(const lifecycle_msgs__srv__GetAvailableStates_Request__Sequence * lhs, const lifecycle_msgs__srv__GetAvailableStates_Request__Sequence * rhs); - -/// Copy an array of srv/GetAvailableStates messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Request__Sequence__copy( - const lifecycle_msgs__srv__GetAvailableStates_Request__Sequence * input, - lifecycle_msgs__srv__GetAvailableStates_Request__Sequence * output); - -/// Initialize srv/GetAvailableStates message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__srv__GetAvailableStates_Response - * )) before or use - * lifecycle_msgs__srv__GetAvailableStates_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Response__init(lifecycle_msgs__srv__GetAvailableStates_Response * msg); - -/// Finalize srv/GetAvailableStates message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableStates_Response__fini(lifecycle_msgs__srv__GetAvailableStates_Response * msg); - -/// Create srv/GetAvailableStates message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__srv__GetAvailableStates_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetAvailableStates_Response * -lifecycle_msgs__srv__GetAvailableStates_Response__create(void); - -/// Destroy srv/GetAvailableStates message. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableStates_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableStates_Response__destroy(lifecycle_msgs__srv__GetAvailableStates_Response * msg); - -/// Check for srv/GetAvailableStates message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Response__are_equal(const lifecycle_msgs__srv__GetAvailableStates_Response * lhs, const lifecycle_msgs__srv__GetAvailableStates_Response * rhs); - -/// Copy a srv/GetAvailableStates message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Response__copy( - const lifecycle_msgs__srv__GetAvailableStates_Response * input, - lifecycle_msgs__srv__GetAvailableStates_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__GetAvailableStates_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__GetAvailableStates_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__GetAvailableStates_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__GetAvailableStates_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetAvailableStates messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__srv__GetAvailableStates_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Response__Sequence__init(lifecycle_msgs__srv__GetAvailableStates_Response__Sequence * array, size_t size); - -/// Finalize array of srv/GetAvailableStates messages. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableStates_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableStates_Response__Sequence__fini(lifecycle_msgs__srv__GetAvailableStates_Response__Sequence * array); - -/// Create array of srv/GetAvailableStates messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__srv__GetAvailableStates_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetAvailableStates_Response__Sequence * -lifecycle_msgs__srv__GetAvailableStates_Response__Sequence__create(size_t size); - -/// Destroy array of srv/GetAvailableStates messages. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableStates_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableStates_Response__Sequence__destroy(lifecycle_msgs__srv__GetAvailableStates_Response__Sequence * array); - -/// Check for srv/GetAvailableStates message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Response__Sequence__are_equal(const lifecycle_msgs__srv__GetAvailableStates_Response__Sequence * lhs, const lifecycle_msgs__srv__GetAvailableStates_Response__Sequence * rhs); - -/// Copy an array of srv/GetAvailableStates messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Response__Sequence__copy( - const lifecycle_msgs__srv__GetAvailableStates_Response__Sequence * input, - lifecycle_msgs__srv__GetAvailableStates_Response__Sequence * output); - -/// Initialize srv/GetAvailableStates message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__srv__GetAvailableStates_Event - * )) before or use - * lifecycle_msgs__srv__GetAvailableStates_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Event__init(lifecycle_msgs__srv__GetAvailableStates_Event * msg); - -/// Finalize srv/GetAvailableStates message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableStates_Event__fini(lifecycle_msgs__srv__GetAvailableStates_Event * msg); - -/// Create srv/GetAvailableStates message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__srv__GetAvailableStates_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetAvailableStates_Event * -lifecycle_msgs__srv__GetAvailableStates_Event__create(void); - -/// Destroy srv/GetAvailableStates message. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableStates_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableStates_Event__destroy(lifecycle_msgs__srv__GetAvailableStates_Event * msg); - -/// Check for srv/GetAvailableStates message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Event__are_equal(const lifecycle_msgs__srv__GetAvailableStates_Event * lhs, const lifecycle_msgs__srv__GetAvailableStates_Event * rhs); - -/// Copy a srv/GetAvailableStates message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Event__copy( - const lifecycle_msgs__srv__GetAvailableStates_Event * input, - lifecycle_msgs__srv__GetAvailableStates_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__GetAvailableStates_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__GetAvailableStates_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__GetAvailableStates_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__GetAvailableStates_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetAvailableStates messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__srv__GetAvailableStates_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Event__Sequence__init(lifecycle_msgs__srv__GetAvailableStates_Event__Sequence * array, size_t size); - -/// Finalize array of srv/GetAvailableStates messages. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableStates_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableStates_Event__Sequence__fini(lifecycle_msgs__srv__GetAvailableStates_Event__Sequence * array); - -/// Create array of srv/GetAvailableStates messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__srv__GetAvailableStates_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetAvailableStates_Event__Sequence * -lifecycle_msgs__srv__GetAvailableStates_Event__Sequence__create(size_t size); - -/// Destroy array of srv/GetAvailableStates messages. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableStates_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableStates_Event__Sequence__destroy(lifecycle_msgs__srv__GetAvailableStates_Event__Sequence * array); - -/// Check for srv/GetAvailableStates message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Event__Sequence__are_equal(const lifecycle_msgs__srv__GetAvailableStates_Event__Sequence * lhs, const lifecycle_msgs__srv__GetAvailableStates_Event__Sequence * rhs); - -/// Copy an array of srv/GetAvailableStates messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableStates_Event__Sequence__copy( - const lifecycle_msgs__srv__GetAvailableStates_Event__Sequence * input, - lifecycle_msgs__srv__GetAvailableStates_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_STATES__FUNCTIONS_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_available_states__rosidl_typesupport_introspection_c.h b/src/lifecycle_msgs/srv/detail/get_available_states__rosidl_typesupport_introspection_c.h deleted file mode 100755 index db3f300fc..000000000 --- a/src/lifecycle_msgs/srv/detail/get_available_states__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from lifecycle_msgs:srv/GetAvailableStates.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_STATES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_STATES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, GetAvailableStates_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, GetAvailableStates_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, GetAvailableStates_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, GetAvailableStates)(); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_STATES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_available_states__rosidl_typesupport_microxrcedds_c.h b/src/lifecycle_msgs/srv/detail/get_available_states__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 9c51ed3e4..000000000 --- a/src/lifecycle_msgs/srv/detail/get_available_states__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from lifecycle_msgs:srv/GetAvailableStates.idl -// generated code does not contain a copyright notice -#ifndef LIFECYCLE_MSGS__SRV__GET_AVAILABLE_STATES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define LIFECYCLE_MSGS__SRV__GET_AVAILABLE_STATES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__srv__GetAvailableStates_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__srv__GetAvailableStates_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, GetAvailableStates_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__srv__GetAvailableStates_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__srv__GetAvailableStates_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, GetAvailableStates_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__srv__GetAvailableStates_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__srv__GetAvailableStates_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, GetAvailableStates_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, GetAvailableStates)(); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__GET_AVAILABLE_STATES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_available_states__struct.h b/src/lifecycle_msgs/srv/detail/get_available_states__struct.h deleted file mode 100755 index 585b6ea59..000000000 --- a/src/lifecycle_msgs/srv/detail/get_available_states__struct.h +++ /dev/null @@ -1,101 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from lifecycle_msgs:srv/GetAvailableStates.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/srv/get_available_states.h" - - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_STATES__STRUCT_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_STATES__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/GetAvailableStates in the package lifecycle_msgs. -typedef struct lifecycle_msgs__srv__GetAvailableStates_Request -{ - uint8_t structure_needs_at_least_one_member; -} lifecycle_msgs__srv__GetAvailableStates_Request; - -// Struct for a sequence of lifecycle_msgs__srv__GetAvailableStates_Request. -typedef struct lifecycle_msgs__srv__GetAvailableStates_Request__Sequence -{ - lifecycle_msgs__srv__GetAvailableStates_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__srv__GetAvailableStates_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'available_states' -#include "lifecycle_msgs/msg/detail/state__struct.h" - -/// Struct defined in srv/GetAvailableStates in the package lifecycle_msgs. -typedef struct lifecycle_msgs__srv__GetAvailableStates_Response -{ - lifecycle_msgs__msg__State__Sequence available_states; -} lifecycle_msgs__srv__GetAvailableStates_Response; - -// Struct for a sequence of lifecycle_msgs__srv__GetAvailableStates_Response. -typedef struct lifecycle_msgs__srv__GetAvailableStates_Response__Sequence -{ - lifecycle_msgs__srv__GetAvailableStates_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__srv__GetAvailableStates_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - lifecycle_msgs__srv__GetAvailableStates_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - lifecycle_msgs__srv__GetAvailableStates_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/GetAvailableStates in the package lifecycle_msgs. -typedef struct lifecycle_msgs__srv__GetAvailableStates_Event -{ - service_msgs__msg__ServiceEventInfo info; - lifecycle_msgs__srv__GetAvailableStates_Request__Sequence request; - lifecycle_msgs__srv__GetAvailableStates_Response__Sequence response; -} lifecycle_msgs__srv__GetAvailableStates_Event; - -// Struct for a sequence of lifecycle_msgs__srv__GetAvailableStates_Event. -typedef struct lifecycle_msgs__srv__GetAvailableStates_Event__Sequence -{ - lifecycle_msgs__srv__GetAvailableStates_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__srv__GetAvailableStates_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_STATES__STRUCT_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_available_states__type_support.h b/src/lifecycle_msgs/srv/detail/get_available_states__type_support.h deleted file mode 100755 index b4ea0490f..000000000 --- a/src/lifecycle_msgs/srv/detail/get_available_states__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from lifecycle_msgs:srv/GetAvailableStates.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/srv/get_available_states.h" - - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_STATES__TYPE_SUPPORT_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_STATES__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetAvailableStates_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetAvailableStates_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetAvailableStates_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetAvailableStates -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetAvailableStates -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetAvailableStates -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_STATES__TYPE_SUPPORT_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_available_transitions__functions.h b/src/lifecycle_msgs/srv/detail/get_available_transitions__functions.h deleted file mode 100755 index 1331485cc..000000000 --- a/src/lifecycle_msgs/srv/detail/get_available_transitions__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from lifecycle_msgs:srv/GetAvailableTransitions.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/srv/get_available_transitions.h" - - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_TRANSITIONS__FUNCTIONS_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_TRANSITIONS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "lifecycle_msgs/srv/detail/get_available_transitions__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__GetAvailableTransitions__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__GetAvailableTransitions__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__GetAvailableTransitions__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__GetAvailableTransitions__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/GetAvailableTransitions message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__srv__GetAvailableTransitions_Request - * )) before or use - * lifecycle_msgs__srv__GetAvailableTransitions_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Request__init(lifecycle_msgs__srv__GetAvailableTransitions_Request * msg); - -/// Finalize srv/GetAvailableTransitions message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableTransitions_Request__fini(lifecycle_msgs__srv__GetAvailableTransitions_Request * msg); - -/// Create srv/GetAvailableTransitions message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__srv__GetAvailableTransitions_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetAvailableTransitions_Request * -lifecycle_msgs__srv__GetAvailableTransitions_Request__create(void); - -/// Destroy srv/GetAvailableTransitions message. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableTransitions_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableTransitions_Request__destroy(lifecycle_msgs__srv__GetAvailableTransitions_Request * msg); - -/// Check for srv/GetAvailableTransitions message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Request__are_equal(const lifecycle_msgs__srv__GetAvailableTransitions_Request * lhs, const lifecycle_msgs__srv__GetAvailableTransitions_Request * rhs); - -/// Copy a srv/GetAvailableTransitions message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Request__copy( - const lifecycle_msgs__srv__GetAvailableTransitions_Request * input, - lifecycle_msgs__srv__GetAvailableTransitions_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__GetAvailableTransitions_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__GetAvailableTransitions_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__GetAvailableTransitions_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__GetAvailableTransitions_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetAvailableTransitions messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__srv__GetAvailableTransitions_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence__init(lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence * array, size_t size); - -/// Finalize array of srv/GetAvailableTransitions messages. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableTransitions_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence__fini(lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence * array); - -/// Create array of srv/GetAvailableTransitions messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence * -lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence__create(size_t size); - -/// Destroy array of srv/GetAvailableTransitions messages. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence__destroy(lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence * array); - -/// Check for srv/GetAvailableTransitions message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence__are_equal(const lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence * lhs, const lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence * rhs); - -/// Copy an array of srv/GetAvailableTransitions messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence__copy( - const lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence * input, - lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence * output); - -/// Initialize srv/GetAvailableTransitions message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__srv__GetAvailableTransitions_Response - * )) before or use - * lifecycle_msgs__srv__GetAvailableTransitions_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Response__init(lifecycle_msgs__srv__GetAvailableTransitions_Response * msg); - -/// Finalize srv/GetAvailableTransitions message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableTransitions_Response__fini(lifecycle_msgs__srv__GetAvailableTransitions_Response * msg); - -/// Create srv/GetAvailableTransitions message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__srv__GetAvailableTransitions_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetAvailableTransitions_Response * -lifecycle_msgs__srv__GetAvailableTransitions_Response__create(void); - -/// Destroy srv/GetAvailableTransitions message. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableTransitions_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableTransitions_Response__destroy(lifecycle_msgs__srv__GetAvailableTransitions_Response * msg); - -/// Check for srv/GetAvailableTransitions message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Response__are_equal(const lifecycle_msgs__srv__GetAvailableTransitions_Response * lhs, const lifecycle_msgs__srv__GetAvailableTransitions_Response * rhs); - -/// Copy a srv/GetAvailableTransitions message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Response__copy( - const lifecycle_msgs__srv__GetAvailableTransitions_Response * input, - lifecycle_msgs__srv__GetAvailableTransitions_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__GetAvailableTransitions_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__GetAvailableTransitions_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__GetAvailableTransitions_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__GetAvailableTransitions_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetAvailableTransitions messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__srv__GetAvailableTransitions_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence__init(lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence * array, size_t size); - -/// Finalize array of srv/GetAvailableTransitions messages. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableTransitions_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence__fini(lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence * array); - -/// Create array of srv/GetAvailableTransitions messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence * -lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence__create(size_t size); - -/// Destroy array of srv/GetAvailableTransitions messages. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence__destroy(lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence * array); - -/// Check for srv/GetAvailableTransitions message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence__are_equal(const lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence * lhs, const lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence * rhs); - -/// Copy an array of srv/GetAvailableTransitions messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence__copy( - const lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence * input, - lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence * output); - -/// Initialize srv/GetAvailableTransitions message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__srv__GetAvailableTransitions_Event - * )) before or use - * lifecycle_msgs__srv__GetAvailableTransitions_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Event__init(lifecycle_msgs__srv__GetAvailableTransitions_Event * msg); - -/// Finalize srv/GetAvailableTransitions message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableTransitions_Event__fini(lifecycle_msgs__srv__GetAvailableTransitions_Event * msg); - -/// Create srv/GetAvailableTransitions message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__srv__GetAvailableTransitions_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetAvailableTransitions_Event * -lifecycle_msgs__srv__GetAvailableTransitions_Event__create(void); - -/// Destroy srv/GetAvailableTransitions message. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableTransitions_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableTransitions_Event__destroy(lifecycle_msgs__srv__GetAvailableTransitions_Event * msg); - -/// Check for srv/GetAvailableTransitions message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Event__are_equal(const lifecycle_msgs__srv__GetAvailableTransitions_Event * lhs, const lifecycle_msgs__srv__GetAvailableTransitions_Event * rhs); - -/// Copy a srv/GetAvailableTransitions message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Event__copy( - const lifecycle_msgs__srv__GetAvailableTransitions_Event * input, - lifecycle_msgs__srv__GetAvailableTransitions_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__GetAvailableTransitions_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__GetAvailableTransitions_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__GetAvailableTransitions_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__GetAvailableTransitions_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetAvailableTransitions messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__srv__GetAvailableTransitions_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence__init(lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence * array, size_t size); - -/// Finalize array of srv/GetAvailableTransitions messages. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableTransitions_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence__fini(lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence * array); - -/// Create array of srv/GetAvailableTransitions messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence * -lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence__create(size_t size); - -/// Destroy array of srv/GetAvailableTransitions messages. -/** - * It calls - * lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence__destroy(lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence * array); - -/// Check for srv/GetAvailableTransitions message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence__are_equal(const lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence * lhs, const lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence * rhs); - -/// Copy an array of srv/GetAvailableTransitions messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence__copy( - const lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence * input, - lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_TRANSITIONS__FUNCTIONS_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_available_transitions__rosidl_typesupport_introspection_c.h b/src/lifecycle_msgs/srv/detail/get_available_transitions__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 385125ee4..000000000 --- a/src/lifecycle_msgs/srv/detail/get_available_transitions__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from lifecycle_msgs:srv/GetAvailableTransitions.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_TRANSITIONS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_TRANSITIONS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, GetAvailableTransitions_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, GetAvailableTransitions_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, GetAvailableTransitions_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, GetAvailableTransitions)(); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_TRANSITIONS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_available_transitions__rosidl_typesupport_microxrcedds_c.h b/src/lifecycle_msgs/srv/detail/get_available_transitions__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 60696d19b..000000000 --- a/src/lifecycle_msgs/srv/detail/get_available_transitions__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from lifecycle_msgs:srv/GetAvailableTransitions.idl -// generated code does not contain a copyright notice -#ifndef LIFECYCLE_MSGS__SRV__GET_AVAILABLE_TRANSITIONS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define LIFECYCLE_MSGS__SRV__GET_AVAILABLE_TRANSITIONS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__srv__GetAvailableTransitions_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__srv__GetAvailableTransitions_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, GetAvailableTransitions_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__srv__GetAvailableTransitions_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__srv__GetAvailableTransitions_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, GetAvailableTransitions_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__srv__GetAvailableTransitions_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__srv__GetAvailableTransitions_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, GetAvailableTransitions_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, GetAvailableTransitions)(); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__GET_AVAILABLE_TRANSITIONS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_available_transitions__struct.h b/src/lifecycle_msgs/srv/detail/get_available_transitions__struct.h deleted file mode 100755 index 2a3df60c4..000000000 --- a/src/lifecycle_msgs/srv/detail/get_available_transitions__struct.h +++ /dev/null @@ -1,101 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from lifecycle_msgs:srv/GetAvailableTransitions.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/srv/get_available_transitions.h" - - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_TRANSITIONS__STRUCT_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_TRANSITIONS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/GetAvailableTransitions in the package lifecycle_msgs. -typedef struct lifecycle_msgs__srv__GetAvailableTransitions_Request -{ - uint8_t structure_needs_at_least_one_member; -} lifecycle_msgs__srv__GetAvailableTransitions_Request; - -// Struct for a sequence of lifecycle_msgs__srv__GetAvailableTransitions_Request. -typedef struct lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence -{ - lifecycle_msgs__srv__GetAvailableTransitions_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'available_transitions' -#include "lifecycle_msgs/msg/detail/transition_description__struct.h" - -/// Struct defined in srv/GetAvailableTransitions in the package lifecycle_msgs. -typedef struct lifecycle_msgs__srv__GetAvailableTransitions_Response -{ - lifecycle_msgs__msg__TransitionDescription__Sequence available_transitions; -} lifecycle_msgs__srv__GetAvailableTransitions_Response; - -// Struct for a sequence of lifecycle_msgs__srv__GetAvailableTransitions_Response. -typedef struct lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence -{ - lifecycle_msgs__srv__GetAvailableTransitions_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - lifecycle_msgs__srv__GetAvailableTransitions_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - lifecycle_msgs__srv__GetAvailableTransitions_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/GetAvailableTransitions in the package lifecycle_msgs. -typedef struct lifecycle_msgs__srv__GetAvailableTransitions_Event -{ - service_msgs__msg__ServiceEventInfo info; - lifecycle_msgs__srv__GetAvailableTransitions_Request__Sequence request; - lifecycle_msgs__srv__GetAvailableTransitions_Response__Sequence response; -} lifecycle_msgs__srv__GetAvailableTransitions_Event; - -// Struct for a sequence of lifecycle_msgs__srv__GetAvailableTransitions_Event. -typedef struct lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence -{ - lifecycle_msgs__srv__GetAvailableTransitions_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__srv__GetAvailableTransitions_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_TRANSITIONS__STRUCT_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_available_transitions__type_support.h b/src/lifecycle_msgs/srv/detail/get_available_transitions__type_support.h deleted file mode 100755 index efdbb98ff..000000000 --- a/src/lifecycle_msgs/srv/detail/get_available_transitions__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from lifecycle_msgs:srv/GetAvailableTransitions.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/srv/get_available_transitions.h" - - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_TRANSITIONS__TYPE_SUPPORT_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_TRANSITIONS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetAvailableTransitions_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetAvailableTransitions_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetAvailableTransitions_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetAvailableTransitions -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetAvailableTransitions -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetAvailableTransitions -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__GET_AVAILABLE_TRANSITIONS__TYPE_SUPPORT_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_state__functions.h b/src/lifecycle_msgs/srv/detail/get_state__functions.h deleted file mode 100755 index 056e6e5ab..000000000 --- a/src/lifecycle_msgs/srv/detail/get_state__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from lifecycle_msgs:srv/GetState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/srv/get_state.h" - - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__GET_STATE__FUNCTIONS_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__GET_STATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "lifecycle_msgs/srv/detail/get_state__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__GetState__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__GetState__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__GetState__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__GetState__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/GetState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__srv__GetState_Request - * )) before or use - * lifecycle_msgs__srv__GetState_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Request__init(lifecycle_msgs__srv__GetState_Request * msg); - -/// Finalize srv/GetState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetState_Request__fini(lifecycle_msgs__srv__GetState_Request * msg); - -/// Create srv/GetState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__srv__GetState_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetState_Request * -lifecycle_msgs__srv__GetState_Request__create(void); - -/// Destroy srv/GetState message. -/** - * It calls - * lifecycle_msgs__srv__GetState_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetState_Request__destroy(lifecycle_msgs__srv__GetState_Request * msg); - -/// Check for srv/GetState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Request__are_equal(const lifecycle_msgs__srv__GetState_Request * lhs, const lifecycle_msgs__srv__GetState_Request * rhs); - -/// Copy a srv/GetState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Request__copy( - const lifecycle_msgs__srv__GetState_Request * input, - lifecycle_msgs__srv__GetState_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__GetState_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__GetState_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__GetState_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__GetState_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetState messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__srv__GetState_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Request__Sequence__init(lifecycle_msgs__srv__GetState_Request__Sequence * array, size_t size); - -/// Finalize array of srv/GetState messages. -/** - * It calls - * lifecycle_msgs__srv__GetState_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetState_Request__Sequence__fini(lifecycle_msgs__srv__GetState_Request__Sequence * array); - -/// Create array of srv/GetState messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__srv__GetState_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetState_Request__Sequence * -lifecycle_msgs__srv__GetState_Request__Sequence__create(size_t size); - -/// Destroy array of srv/GetState messages. -/** - * It calls - * lifecycle_msgs__srv__GetState_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetState_Request__Sequence__destroy(lifecycle_msgs__srv__GetState_Request__Sequence * array); - -/// Check for srv/GetState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Request__Sequence__are_equal(const lifecycle_msgs__srv__GetState_Request__Sequence * lhs, const lifecycle_msgs__srv__GetState_Request__Sequence * rhs); - -/// Copy an array of srv/GetState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Request__Sequence__copy( - const lifecycle_msgs__srv__GetState_Request__Sequence * input, - lifecycle_msgs__srv__GetState_Request__Sequence * output); - -/// Initialize srv/GetState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__srv__GetState_Response - * )) before or use - * lifecycle_msgs__srv__GetState_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Response__init(lifecycle_msgs__srv__GetState_Response * msg); - -/// Finalize srv/GetState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetState_Response__fini(lifecycle_msgs__srv__GetState_Response * msg); - -/// Create srv/GetState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__srv__GetState_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetState_Response * -lifecycle_msgs__srv__GetState_Response__create(void); - -/// Destroy srv/GetState message. -/** - * It calls - * lifecycle_msgs__srv__GetState_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetState_Response__destroy(lifecycle_msgs__srv__GetState_Response * msg); - -/// Check for srv/GetState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Response__are_equal(const lifecycle_msgs__srv__GetState_Response * lhs, const lifecycle_msgs__srv__GetState_Response * rhs); - -/// Copy a srv/GetState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Response__copy( - const lifecycle_msgs__srv__GetState_Response * input, - lifecycle_msgs__srv__GetState_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__GetState_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__GetState_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__GetState_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__GetState_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetState messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__srv__GetState_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Response__Sequence__init(lifecycle_msgs__srv__GetState_Response__Sequence * array, size_t size); - -/// Finalize array of srv/GetState messages. -/** - * It calls - * lifecycle_msgs__srv__GetState_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetState_Response__Sequence__fini(lifecycle_msgs__srv__GetState_Response__Sequence * array); - -/// Create array of srv/GetState messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__srv__GetState_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetState_Response__Sequence * -lifecycle_msgs__srv__GetState_Response__Sequence__create(size_t size); - -/// Destroy array of srv/GetState messages. -/** - * It calls - * lifecycle_msgs__srv__GetState_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetState_Response__Sequence__destroy(lifecycle_msgs__srv__GetState_Response__Sequence * array); - -/// Check for srv/GetState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Response__Sequence__are_equal(const lifecycle_msgs__srv__GetState_Response__Sequence * lhs, const lifecycle_msgs__srv__GetState_Response__Sequence * rhs); - -/// Copy an array of srv/GetState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Response__Sequence__copy( - const lifecycle_msgs__srv__GetState_Response__Sequence * input, - lifecycle_msgs__srv__GetState_Response__Sequence * output); - -/// Initialize srv/GetState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * lifecycle_msgs__srv__GetState_Event - * )) before or use - * lifecycle_msgs__srv__GetState_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Event__init(lifecycle_msgs__srv__GetState_Event * msg); - -/// Finalize srv/GetState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetState_Event__fini(lifecycle_msgs__srv__GetState_Event * msg); - -/// Create srv/GetState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * lifecycle_msgs__srv__GetState_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetState_Event * -lifecycle_msgs__srv__GetState_Event__create(void); - -/// Destroy srv/GetState message. -/** - * It calls - * lifecycle_msgs__srv__GetState_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetState_Event__destroy(lifecycle_msgs__srv__GetState_Event * msg); - -/// Check for srv/GetState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Event__are_equal(const lifecycle_msgs__srv__GetState_Event * lhs, const lifecycle_msgs__srv__GetState_Event * rhs); - -/// Copy a srv/GetState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Event__copy( - const lifecycle_msgs__srv__GetState_Event * input, - lifecycle_msgs__srv__GetState_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_type_hash_t * -lifecycle_msgs__srv__GetState_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeDescription * -lifecycle_msgs__srv__GetState_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource * -lifecycle_msgs__srv__GetState_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -lifecycle_msgs__srv__GetState_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetState messages. -/** - * It allocates the memory for the number of elements and calls - * lifecycle_msgs__srv__GetState_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Event__Sequence__init(lifecycle_msgs__srv__GetState_Event__Sequence * array, size_t size); - -/// Finalize array of srv/GetState messages. -/** - * It calls - * lifecycle_msgs__srv__GetState_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetState_Event__Sequence__fini(lifecycle_msgs__srv__GetState_Event__Sequence * array); - -/// Create array of srv/GetState messages. -/** - * It allocates the memory for the array and calls - * lifecycle_msgs__srv__GetState_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -lifecycle_msgs__srv__GetState_Event__Sequence * -lifecycle_msgs__srv__GetState_Event__Sequence__create(size_t size); - -/// Destroy array of srv/GetState messages. -/** - * It calls - * lifecycle_msgs__srv__GetState_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void -lifecycle_msgs__srv__GetState_Event__Sequence__destroy(lifecycle_msgs__srv__GetState_Event__Sequence * array); - -/// Check for srv/GetState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Event__Sequence__are_equal(const lifecycle_msgs__srv__GetState_Event__Sequence * lhs, const lifecycle_msgs__srv__GetState_Event__Sequence * rhs); - -/// Copy an array of srv/GetState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -lifecycle_msgs__srv__GetState_Event__Sequence__copy( - const lifecycle_msgs__srv__GetState_Event__Sequence * input, - lifecycle_msgs__srv__GetState_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__GET_STATE__FUNCTIONS_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_state__rosidl_typesupport_introspection_c.h b/src/lifecycle_msgs/srv/detail/get_state__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 9a2b62bb4..000000000 --- a/src/lifecycle_msgs/srv/detail/get_state__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from lifecycle_msgs:srv/GetState.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__GET_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__GET_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, GetState_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, GetState_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, GetState_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_lifecycle_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, lifecycle_msgs, srv, GetState)(); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__GET_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_state__rosidl_typesupport_microxrcedds_c.h b/src/lifecycle_msgs/srv/detail/get_state__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ca90d9167..000000000 --- a/src/lifecycle_msgs/srv/detail/get_state__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from lifecycle_msgs:srv/GetState.idl -// generated code does not contain a copyright notice -#ifndef LIFECYCLE_MSGS__SRV__GET_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define LIFECYCLE_MSGS__SRV__GET_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__srv__GetState_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__srv__GetState_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, GetState_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__srv__GetState_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__srv__GetState_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, GetState_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t get_serialized_size_lifecycle_msgs__srv__GetState_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -size_t max_serialized_size_lifecycle_msgs__srv__GetState_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, GetState_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "lifecycle_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_lifecycle_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, lifecycle_msgs, srv, GetState)(); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__GET_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_state__struct.h b/src/lifecycle_msgs/srv/detail/get_state__struct.h deleted file mode 100755 index c76538bb3..000000000 --- a/src/lifecycle_msgs/srv/detail/get_state__struct.h +++ /dev/null @@ -1,101 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from lifecycle_msgs:srv/GetState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/srv/get_state.h" - - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__GET_STATE__STRUCT_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__GET_STATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/GetState in the package lifecycle_msgs. -typedef struct lifecycle_msgs__srv__GetState_Request -{ - uint8_t structure_needs_at_least_one_member; -} lifecycle_msgs__srv__GetState_Request; - -// Struct for a sequence of lifecycle_msgs__srv__GetState_Request. -typedef struct lifecycle_msgs__srv__GetState_Request__Sequence -{ - lifecycle_msgs__srv__GetState_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__srv__GetState_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'current_state' -#include "lifecycle_msgs/msg/detail/state__struct.h" - -/// Struct defined in srv/GetState in the package lifecycle_msgs. -typedef struct lifecycle_msgs__srv__GetState_Response -{ - lifecycle_msgs__msg__State current_state; -} lifecycle_msgs__srv__GetState_Response; - -// Struct for a sequence of lifecycle_msgs__srv__GetState_Response. -typedef struct lifecycle_msgs__srv__GetState_Response__Sequence -{ - lifecycle_msgs__srv__GetState_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__srv__GetState_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - lifecycle_msgs__srv__GetState_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - lifecycle_msgs__srv__GetState_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/GetState in the package lifecycle_msgs. -typedef struct lifecycle_msgs__srv__GetState_Event -{ - service_msgs__msg__ServiceEventInfo info; - lifecycle_msgs__srv__GetState_Request__Sequence request; - lifecycle_msgs__srv__GetState_Response__Sequence response; -} lifecycle_msgs__srv__GetState_Event; - -// Struct for a sequence of lifecycle_msgs__srv__GetState_Event. -typedef struct lifecycle_msgs__srv__GetState_Event__Sequence -{ - lifecycle_msgs__srv__GetState_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} lifecycle_msgs__srv__GetState_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__GET_STATE__STRUCT_H_ diff --git a/src/lifecycle_msgs/srv/detail/get_state__type_support.h b/src/lifecycle_msgs/srv/detail/get_state__type_support.h deleted file mode 100755 index cf77ad18c..000000000 --- a/src/lifecycle_msgs/srv/detail/get_state__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from lifecycle_msgs:srv/GetState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "lifecycle_msgs/srv/get_state.h" - - -#ifndef LIFECYCLE_MSGS__SRV__DETAIL__GET_STATE__TYPE_SUPPORT_H_ -#define LIFECYCLE_MSGS__SRV__DETAIL__GET_STATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "lifecycle_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetState_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetState_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetState_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetState -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetState -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_lifecycle_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - lifecycle_msgs, - srv, - GetState -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // LIFECYCLE_MSGS__SRV__DETAIL__GET_STATE__TYPE_SUPPORT_H_ diff --git a/src/lifecycle_msgs/srv/get_available_states.h b/src/lifecycle_msgs/srv/get_available_states.h deleted file mode 100755 index 80f9ee136..000000000 --- a/src/lifecycle_msgs/srv/get_available_states.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from lifecycle_msgs:srv/GetAvailableStates.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__SRV__GET_AVAILABLE_STATES_H_ -#define LIFECYCLE_MSGS__SRV__GET_AVAILABLE_STATES_H_ - -#include "lifecycle_msgs/srv/detail/get_available_states__struct.h" -#include "lifecycle_msgs/srv/detail/get_available_states__functions.h" -#include "lifecycle_msgs/srv/detail/get_available_states__type_support.h" - -#endif // LIFECYCLE_MSGS__SRV__GET_AVAILABLE_STATES_H_ diff --git a/src/lifecycle_msgs/srv/get_available_transitions.h b/src/lifecycle_msgs/srv/get_available_transitions.h deleted file mode 100755 index 9bcc99e27..000000000 --- a/src/lifecycle_msgs/srv/get_available_transitions.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from lifecycle_msgs:srv/GetAvailableTransitions.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__SRV__GET_AVAILABLE_TRANSITIONS_H_ -#define LIFECYCLE_MSGS__SRV__GET_AVAILABLE_TRANSITIONS_H_ - -#include "lifecycle_msgs/srv/detail/get_available_transitions__struct.h" -#include "lifecycle_msgs/srv/detail/get_available_transitions__functions.h" -#include "lifecycle_msgs/srv/detail/get_available_transitions__type_support.h" - -#endif // LIFECYCLE_MSGS__SRV__GET_AVAILABLE_TRANSITIONS_H_ diff --git a/src/lifecycle_msgs/srv/get_state.h b/src/lifecycle_msgs/srv/get_state.h deleted file mode 100755 index 8b38528e0..000000000 --- a/src/lifecycle_msgs/srv/get_state.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from lifecycle_msgs:srv/GetState.idl -// generated code does not contain a copyright notice - -#ifndef LIFECYCLE_MSGS__SRV__GET_STATE_H_ -#define LIFECYCLE_MSGS__SRV__GET_STATE_H_ - -#include "lifecycle_msgs/srv/detail/get_state__struct.h" -#include "lifecycle_msgs/srv/detail/get_state__functions.h" -#include "lifecycle_msgs/srv/detail/get_state__type_support.h" - -#endif // LIFECYCLE_MSGS__SRV__GET_STATE_H_ diff --git a/src/micro_ros_msgs/msg/detail/entity__functions.h b/src/micro_ros_msgs/msg/detail/entity__functions.h deleted file mode 100755 index a3182c3ac..000000000 --- a/src/micro_ros_msgs/msg/detail/entity__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from micro_ros_msgs:msg/Entity.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "micro_ros_msgs/msg/entity.h" - - -#ifndef MICRO_ROS_MSGS__MSG__DETAIL__ENTITY__FUNCTIONS_H_ -#define MICRO_ROS_MSGS__MSG__DETAIL__ENTITY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "micro_ros_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "micro_ros_msgs/msg/detail/entity__struct.h" - -/// Initialize msg/Entity message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * micro_ros_msgs__msg__Entity - * )) before or use - * micro_ros_msgs__msg__Entity__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Entity__init(micro_ros_msgs__msg__Entity * msg); - -/// Finalize msg/Entity message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -void -micro_ros_msgs__msg__Entity__fini(micro_ros_msgs__msg__Entity * msg); - -/// Create msg/Entity message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * micro_ros_msgs__msg__Entity__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -micro_ros_msgs__msg__Entity * -micro_ros_msgs__msg__Entity__create(void); - -/// Destroy msg/Entity message. -/** - * It calls - * micro_ros_msgs__msg__Entity__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -void -micro_ros_msgs__msg__Entity__destroy(micro_ros_msgs__msg__Entity * msg); - -/// Check for msg/Entity message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Entity__are_equal(const micro_ros_msgs__msg__Entity * lhs, const micro_ros_msgs__msg__Entity * rhs); - -/// Copy a msg/Entity message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Entity__copy( - const micro_ros_msgs__msg__Entity * input, - micro_ros_msgs__msg__Entity * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_type_hash_t * -micro_ros_msgs__msg__Entity__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_runtime_c__type_description__TypeDescription * -micro_ros_msgs__msg__Entity__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_runtime_c__type_description__TypeSource * -micro_ros_msgs__msg__Entity__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -micro_ros_msgs__msg__Entity__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Entity messages. -/** - * It allocates the memory for the number of elements and calls - * micro_ros_msgs__msg__Entity__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Entity__Sequence__init(micro_ros_msgs__msg__Entity__Sequence * array, size_t size); - -/// Finalize array of msg/Entity messages. -/** - * It calls - * micro_ros_msgs__msg__Entity__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -void -micro_ros_msgs__msg__Entity__Sequence__fini(micro_ros_msgs__msg__Entity__Sequence * array); - -/// Create array of msg/Entity messages. -/** - * It allocates the memory for the array and calls - * micro_ros_msgs__msg__Entity__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -micro_ros_msgs__msg__Entity__Sequence * -micro_ros_msgs__msg__Entity__Sequence__create(size_t size); - -/// Destroy array of msg/Entity messages. -/** - * It calls - * micro_ros_msgs__msg__Entity__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -void -micro_ros_msgs__msg__Entity__Sequence__destroy(micro_ros_msgs__msg__Entity__Sequence * array); - -/// Check for msg/Entity message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Entity__Sequence__are_equal(const micro_ros_msgs__msg__Entity__Sequence * lhs, const micro_ros_msgs__msg__Entity__Sequence * rhs); - -/// Copy an array of msg/Entity messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Entity__Sequence__copy( - const micro_ros_msgs__msg__Entity__Sequence * input, - micro_ros_msgs__msg__Entity__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__DETAIL__ENTITY__FUNCTIONS_H_ diff --git a/src/micro_ros_msgs/msg/detail/entity__rosidl_typesupport_introspection_c.h b/src/micro_ros_msgs/msg/detail/entity__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 4f512a533..000000000 --- a/src/micro_ros_msgs/msg/detail/entity__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from micro_ros_msgs:msg/Entity.idl -// generated code does not contain a copyright notice - -#ifndef MICRO_ROS_MSGS__MSG__DETAIL__ENTITY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define MICRO_ROS_MSGS__MSG__DETAIL__ENTITY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "micro_ros_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_micro_ros_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, micro_ros_msgs, msg, Entity)(); - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__DETAIL__ENTITY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/micro_ros_msgs/msg/detail/entity__rosidl_typesupport_microxrcedds_c.h b/src/micro_ros_msgs/msg/detail/entity__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 6326d6a50..000000000 --- a/src/micro_ros_msgs/msg/detail/entity__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from micro_ros_msgs:msg/Entity.idl -// generated code does not contain a copyright notice -#ifndef MICRO_ROS_MSGS__MSG__ENTITY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define MICRO_ROS_MSGS__MSG__ENTITY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "micro_ros_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_micro_ros_msgs -size_t get_serialized_size_micro_ros_msgs__msg__Entity( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_micro_ros_msgs -size_t max_serialized_size_micro_ros_msgs__msg__Entity( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_micro_ros_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, micro_ros_msgs, msg, Entity)(); - -#ifdef __cplusplus -} -#endif - - -#endif // MICRO_ROS_MSGS__MSG__ENTITY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/micro_ros_msgs/msg/detail/entity__struct.h b/src/micro_ros_msgs/msg/detail/entity__struct.h deleted file mode 100755 index 327e9c26b..000000000 --- a/src/micro_ros_msgs/msg/detail/entity__struct.h +++ /dev/null @@ -1,85 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from micro_ros_msgs:msg/Entity.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "micro_ros_msgs/msg/entity.h" - - -#ifndef MICRO_ROS_MSGS__MSG__DETAIL__ENTITY__STRUCT_H_ -#define MICRO_ROS_MSGS__MSG__DETAIL__ENTITY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'PUBLISHER'. -enum -{ - micro_ros_msgs__msg__Entity__PUBLISHER = 0 -}; - -/// Constant 'SUBSCRIBER'. -enum -{ - micro_ros_msgs__msg__Entity__SUBSCRIBER = 1 -}; - -/// Constant 'SERVICE_SERVER'. -enum -{ - micro_ros_msgs__msg__Entity__SERVICE_SERVER = 2 -}; - -/// Constant 'SERVICE_CLIENT'. -enum -{ - micro_ros_msgs__msg__Entity__SERVICE_CLIENT = 3 -}; - -// Include directives for member types -// Member 'name' -// Member 'types' -#include "rosidl_runtime_c/string.h" - -// constants for array fields with an upper bound -// name -enum -{ - micro_ros_msgs__msg__Entity__name__MAX_STRING_SIZE = 256 -}; -// types -enum -{ - micro_ros_msgs__msg__Entity__types__MAX_STRING_SIZE = 256 -}; - -/// Struct defined in msg/Entity in the package micro_ros_msgs. -typedef struct micro_ros_msgs__msg__Entity -{ - uint8_t entity_type; - rosidl_runtime_c__String name; - rosidl_runtime_c__String__Sequence types; -} micro_ros_msgs__msg__Entity; - -// Struct for a sequence of micro_ros_msgs__msg__Entity. -typedef struct micro_ros_msgs__msg__Entity__Sequence -{ - micro_ros_msgs__msg__Entity * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} micro_ros_msgs__msg__Entity__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__DETAIL__ENTITY__STRUCT_H_ diff --git a/src/micro_ros_msgs/msg/detail/entity__type_support.h b/src/micro_ros_msgs/msg/detail/entity__type_support.h deleted file mode 100755 index c0c74b4d6..000000000 --- a/src/micro_ros_msgs/msg/detail/entity__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from micro_ros_msgs:msg/Entity.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "micro_ros_msgs/msg/entity.h" - - -#ifndef MICRO_ROS_MSGS__MSG__DETAIL__ENTITY__TYPE_SUPPORT_H_ -#define MICRO_ROS_MSGS__MSG__DETAIL__ENTITY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "micro_ros_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - micro_ros_msgs, - msg, - Entity -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__DETAIL__ENTITY__TYPE_SUPPORT_H_ diff --git a/src/micro_ros_msgs/msg/detail/graph__functions.h b/src/micro_ros_msgs/msg/detail/graph__functions.h deleted file mode 100755 index 2b9ce6952..000000000 --- a/src/micro_ros_msgs/msg/detail/graph__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from micro_ros_msgs:msg/Graph.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "micro_ros_msgs/msg/graph.h" - - -#ifndef MICRO_ROS_MSGS__MSG__DETAIL__GRAPH__FUNCTIONS_H_ -#define MICRO_ROS_MSGS__MSG__DETAIL__GRAPH__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "micro_ros_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "micro_ros_msgs/msg/detail/graph__struct.h" - -/// Initialize msg/Graph message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * micro_ros_msgs__msg__Graph - * )) before or use - * micro_ros_msgs__msg__Graph__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Graph__init(micro_ros_msgs__msg__Graph * msg); - -/// Finalize msg/Graph message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -void -micro_ros_msgs__msg__Graph__fini(micro_ros_msgs__msg__Graph * msg); - -/// Create msg/Graph message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * micro_ros_msgs__msg__Graph__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -micro_ros_msgs__msg__Graph * -micro_ros_msgs__msg__Graph__create(void); - -/// Destroy msg/Graph message. -/** - * It calls - * micro_ros_msgs__msg__Graph__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -void -micro_ros_msgs__msg__Graph__destroy(micro_ros_msgs__msg__Graph * msg); - -/// Check for msg/Graph message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Graph__are_equal(const micro_ros_msgs__msg__Graph * lhs, const micro_ros_msgs__msg__Graph * rhs); - -/// Copy a msg/Graph message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Graph__copy( - const micro_ros_msgs__msg__Graph * input, - micro_ros_msgs__msg__Graph * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_type_hash_t * -micro_ros_msgs__msg__Graph__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_runtime_c__type_description__TypeDescription * -micro_ros_msgs__msg__Graph__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_runtime_c__type_description__TypeSource * -micro_ros_msgs__msg__Graph__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -micro_ros_msgs__msg__Graph__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Graph messages. -/** - * It allocates the memory for the number of elements and calls - * micro_ros_msgs__msg__Graph__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Graph__Sequence__init(micro_ros_msgs__msg__Graph__Sequence * array, size_t size); - -/// Finalize array of msg/Graph messages. -/** - * It calls - * micro_ros_msgs__msg__Graph__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -void -micro_ros_msgs__msg__Graph__Sequence__fini(micro_ros_msgs__msg__Graph__Sequence * array); - -/// Create array of msg/Graph messages. -/** - * It allocates the memory for the array and calls - * micro_ros_msgs__msg__Graph__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -micro_ros_msgs__msg__Graph__Sequence * -micro_ros_msgs__msg__Graph__Sequence__create(size_t size); - -/// Destroy array of msg/Graph messages. -/** - * It calls - * micro_ros_msgs__msg__Graph__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -void -micro_ros_msgs__msg__Graph__Sequence__destroy(micro_ros_msgs__msg__Graph__Sequence * array); - -/// Check for msg/Graph message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Graph__Sequence__are_equal(const micro_ros_msgs__msg__Graph__Sequence * lhs, const micro_ros_msgs__msg__Graph__Sequence * rhs); - -/// Copy an array of msg/Graph messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Graph__Sequence__copy( - const micro_ros_msgs__msg__Graph__Sequence * input, - micro_ros_msgs__msg__Graph__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__DETAIL__GRAPH__FUNCTIONS_H_ diff --git a/src/micro_ros_msgs/msg/detail/graph__rosidl_typesupport_introspection_c.h b/src/micro_ros_msgs/msg/detail/graph__rosidl_typesupport_introspection_c.h deleted file mode 100755 index b4137cd6f..000000000 --- a/src/micro_ros_msgs/msg/detail/graph__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from micro_ros_msgs:msg/Graph.idl -// generated code does not contain a copyright notice - -#ifndef MICRO_ROS_MSGS__MSG__DETAIL__GRAPH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define MICRO_ROS_MSGS__MSG__DETAIL__GRAPH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "micro_ros_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_micro_ros_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, micro_ros_msgs, msg, Graph)(); - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__DETAIL__GRAPH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/micro_ros_msgs/msg/detail/graph__rosidl_typesupport_microxrcedds_c.h b/src/micro_ros_msgs/msg/detail/graph__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 278270034..000000000 --- a/src/micro_ros_msgs/msg/detail/graph__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from micro_ros_msgs:msg/Graph.idl -// generated code does not contain a copyright notice -#ifndef MICRO_ROS_MSGS__MSG__GRAPH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define MICRO_ROS_MSGS__MSG__GRAPH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "micro_ros_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_micro_ros_msgs -size_t get_serialized_size_micro_ros_msgs__msg__Graph( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_micro_ros_msgs -size_t max_serialized_size_micro_ros_msgs__msg__Graph( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_micro_ros_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, micro_ros_msgs, msg, Graph)(); - -#ifdef __cplusplus -} -#endif - - -#endif // MICRO_ROS_MSGS__MSG__GRAPH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/micro_ros_msgs/msg/detail/graph__struct.h b/src/micro_ros_msgs/msg/detail/graph__struct.h deleted file mode 100755 index d46a4b94b..000000000 --- a/src/micro_ros_msgs/msg/detail/graph__struct.h +++ /dev/null @@ -1,46 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from micro_ros_msgs:msg/Graph.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "micro_ros_msgs/msg/graph.h" - - -#ifndef MICRO_ROS_MSGS__MSG__DETAIL__GRAPH__STRUCT_H_ -#define MICRO_ROS_MSGS__MSG__DETAIL__GRAPH__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'nodes' -#include "micro_ros_msgs/msg/detail/node__struct.h" - -/// Struct defined in msg/Graph in the package micro_ros_msgs. -typedef struct micro_ros_msgs__msg__Graph -{ - micro_ros_msgs__msg__Node__Sequence nodes; -} micro_ros_msgs__msg__Graph; - -// Struct for a sequence of micro_ros_msgs__msg__Graph. -typedef struct micro_ros_msgs__msg__Graph__Sequence -{ - micro_ros_msgs__msg__Graph * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} micro_ros_msgs__msg__Graph__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__DETAIL__GRAPH__STRUCT_H_ diff --git a/src/micro_ros_msgs/msg/detail/graph__type_support.h b/src/micro_ros_msgs/msg/detail/graph__type_support.h deleted file mode 100755 index 26f4046b9..000000000 --- a/src/micro_ros_msgs/msg/detail/graph__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from micro_ros_msgs:msg/Graph.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "micro_ros_msgs/msg/graph.h" - - -#ifndef MICRO_ROS_MSGS__MSG__DETAIL__GRAPH__TYPE_SUPPORT_H_ -#define MICRO_ROS_MSGS__MSG__DETAIL__GRAPH__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "micro_ros_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - micro_ros_msgs, - msg, - Graph -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__DETAIL__GRAPH__TYPE_SUPPORT_H_ diff --git a/src/micro_ros_msgs/msg/detail/node__functions.h b/src/micro_ros_msgs/msg/detail/node__functions.h deleted file mode 100755 index e0a25444b..000000000 --- a/src/micro_ros_msgs/msg/detail/node__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from micro_ros_msgs:msg/Node.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "micro_ros_msgs/msg/node.h" - - -#ifndef MICRO_ROS_MSGS__MSG__DETAIL__NODE__FUNCTIONS_H_ -#define MICRO_ROS_MSGS__MSG__DETAIL__NODE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "micro_ros_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "micro_ros_msgs/msg/detail/node__struct.h" - -/// Initialize msg/Node message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * micro_ros_msgs__msg__Node - * )) before or use - * micro_ros_msgs__msg__Node__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Node__init(micro_ros_msgs__msg__Node * msg); - -/// Finalize msg/Node message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -void -micro_ros_msgs__msg__Node__fini(micro_ros_msgs__msg__Node * msg); - -/// Create msg/Node message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * micro_ros_msgs__msg__Node__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -micro_ros_msgs__msg__Node * -micro_ros_msgs__msg__Node__create(void); - -/// Destroy msg/Node message. -/** - * It calls - * micro_ros_msgs__msg__Node__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -void -micro_ros_msgs__msg__Node__destroy(micro_ros_msgs__msg__Node * msg); - -/// Check for msg/Node message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Node__are_equal(const micro_ros_msgs__msg__Node * lhs, const micro_ros_msgs__msg__Node * rhs); - -/// Copy a msg/Node message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Node__copy( - const micro_ros_msgs__msg__Node * input, - micro_ros_msgs__msg__Node * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_type_hash_t * -micro_ros_msgs__msg__Node__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_runtime_c__type_description__TypeDescription * -micro_ros_msgs__msg__Node__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_runtime_c__type_description__TypeSource * -micro_ros_msgs__msg__Node__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -micro_ros_msgs__msg__Node__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Node messages. -/** - * It allocates the memory for the number of elements and calls - * micro_ros_msgs__msg__Node__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Node__Sequence__init(micro_ros_msgs__msg__Node__Sequence * array, size_t size); - -/// Finalize array of msg/Node messages. -/** - * It calls - * micro_ros_msgs__msg__Node__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -void -micro_ros_msgs__msg__Node__Sequence__fini(micro_ros_msgs__msg__Node__Sequence * array); - -/// Create array of msg/Node messages. -/** - * It allocates the memory for the array and calls - * micro_ros_msgs__msg__Node__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -micro_ros_msgs__msg__Node__Sequence * -micro_ros_msgs__msg__Node__Sequence__create(size_t size); - -/// Destroy array of msg/Node messages. -/** - * It calls - * micro_ros_msgs__msg__Node__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -void -micro_ros_msgs__msg__Node__Sequence__destroy(micro_ros_msgs__msg__Node__Sequence * array); - -/// Check for msg/Node message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Node__Sequence__are_equal(const micro_ros_msgs__msg__Node__Sequence * lhs, const micro_ros_msgs__msg__Node__Sequence * rhs); - -/// Copy an array of msg/Node messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -bool -micro_ros_msgs__msg__Node__Sequence__copy( - const micro_ros_msgs__msg__Node__Sequence * input, - micro_ros_msgs__msg__Node__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__DETAIL__NODE__FUNCTIONS_H_ diff --git a/src/micro_ros_msgs/msg/detail/node__rosidl_typesupport_introspection_c.h b/src/micro_ros_msgs/msg/detail/node__rosidl_typesupport_introspection_c.h deleted file mode 100755 index d347dba91..000000000 --- a/src/micro_ros_msgs/msg/detail/node__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from micro_ros_msgs:msg/Node.idl -// generated code does not contain a copyright notice - -#ifndef MICRO_ROS_MSGS__MSG__DETAIL__NODE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define MICRO_ROS_MSGS__MSG__DETAIL__NODE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "micro_ros_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_micro_ros_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, micro_ros_msgs, msg, Node)(); - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__DETAIL__NODE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/micro_ros_msgs/msg/detail/node__rosidl_typesupport_microxrcedds_c.h b/src/micro_ros_msgs/msg/detail/node__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 6153bc476..000000000 --- a/src/micro_ros_msgs/msg/detail/node__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from micro_ros_msgs:msg/Node.idl -// generated code does not contain a copyright notice -#ifndef MICRO_ROS_MSGS__MSG__NODE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define MICRO_ROS_MSGS__MSG__NODE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "micro_ros_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_micro_ros_msgs -size_t get_serialized_size_micro_ros_msgs__msg__Node( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_micro_ros_msgs -size_t max_serialized_size_micro_ros_msgs__msg__Node( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_micro_ros_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, micro_ros_msgs, msg, Node)(); - -#ifdef __cplusplus -} -#endif - - -#endif // MICRO_ROS_MSGS__MSG__NODE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/micro_ros_msgs/msg/detail/node__struct.h b/src/micro_ros_msgs/msg/detail/node__struct.h deleted file mode 100755 index cc1e0747d..000000000 --- a/src/micro_ros_msgs/msg/detail/node__struct.h +++ /dev/null @@ -1,63 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from micro_ros_msgs:msg/Node.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "micro_ros_msgs/msg/node.h" - - -#ifndef MICRO_ROS_MSGS__MSG__DETAIL__NODE__STRUCT_H_ -#define MICRO_ROS_MSGS__MSG__DETAIL__NODE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'node_namespace' -// Member 'node_name' -#include "rosidl_runtime_c/string.h" -// Member 'entities' -#include "micro_ros_msgs/msg/detail/entity__struct.h" - -// constants for array fields with an upper bound -// node_namespace -enum -{ - micro_ros_msgs__msg__Node__node_namespace__MAX_STRING_SIZE = 256 -}; -// node_name -enum -{ - micro_ros_msgs__msg__Node__node_name__MAX_STRING_SIZE = 256 -}; - -/// Struct defined in msg/Node in the package micro_ros_msgs. -typedef struct micro_ros_msgs__msg__Node -{ - rosidl_runtime_c__String node_namespace; - rosidl_runtime_c__String node_name; - micro_ros_msgs__msg__Entity__Sequence entities; -} micro_ros_msgs__msg__Node; - -// Struct for a sequence of micro_ros_msgs__msg__Node. -typedef struct micro_ros_msgs__msg__Node__Sequence -{ - micro_ros_msgs__msg__Node * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} micro_ros_msgs__msg__Node__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__DETAIL__NODE__STRUCT_H_ diff --git a/src/micro_ros_msgs/msg/detail/node__type_support.h b/src/micro_ros_msgs/msg/detail/node__type_support.h deleted file mode 100755 index 4c263c553..000000000 --- a/src/micro_ros_msgs/msg/detail/node__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from micro_ros_msgs:msg/Node.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "micro_ros_msgs/msg/node.h" - - -#ifndef MICRO_ROS_MSGS__MSG__DETAIL__NODE__TYPE_SUPPORT_H_ -#define MICRO_ROS_MSGS__MSG__DETAIL__NODE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "micro_ros_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - micro_ros_msgs, - msg, - Node -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__DETAIL__NODE__TYPE_SUPPORT_H_ diff --git a/src/micro_ros_msgs/msg/entity.h b/src/micro_ros_msgs/msg/entity.h deleted file mode 100755 index b3938787b..000000000 --- a/src/micro_ros_msgs/msg/entity.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from micro_ros_msgs:msg/Entity.idl -// generated code does not contain a copyright notice - -#ifndef MICRO_ROS_MSGS__MSG__ENTITY_H_ -#define MICRO_ROS_MSGS__MSG__ENTITY_H_ - -#include "micro_ros_msgs/msg/detail/entity__struct.h" -#include "micro_ros_msgs/msg/detail/entity__functions.h" -#include "micro_ros_msgs/msg/detail/entity__type_support.h" - -#endif // MICRO_ROS_MSGS__MSG__ENTITY_H_ diff --git a/src/micro_ros_msgs/msg/graph.h b/src/micro_ros_msgs/msg/graph.h deleted file mode 100755 index 3776dc479..000000000 --- a/src/micro_ros_msgs/msg/graph.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from micro_ros_msgs:msg/Graph.idl -// generated code does not contain a copyright notice - -#ifndef MICRO_ROS_MSGS__MSG__GRAPH_H_ -#define MICRO_ROS_MSGS__MSG__GRAPH_H_ - -#include "micro_ros_msgs/msg/detail/graph__struct.h" -#include "micro_ros_msgs/msg/detail/graph__functions.h" -#include "micro_ros_msgs/msg/detail/graph__type_support.h" - -#endif // MICRO_ROS_MSGS__MSG__GRAPH_H_ diff --git a/src/micro_ros_msgs/msg/node.h b/src/micro_ros_msgs/msg/node.h deleted file mode 100755 index fc1265a71..000000000 --- a/src/micro_ros_msgs/msg/node.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from micro_ros_msgs:msg/Node.idl -// generated code does not contain a copyright notice - -#ifndef MICRO_ROS_MSGS__MSG__NODE_H_ -#define MICRO_ROS_MSGS__MSG__NODE_H_ - -#include "micro_ros_msgs/msg/detail/node__struct.h" -#include "micro_ros_msgs/msg/detail/node__functions.h" -#include "micro_ros_msgs/msg/detail/node__type_support.h" - -#endif // MICRO_ROS_MSGS__MSG__NODE_H_ diff --git a/src/micro_ros_msgs/msg/rosidl_generator_c__visibility_control.h b/src/micro_ros_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index a9f7156d3..000000000 --- a/src/micro_ros_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef MICRO_ROS_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define MICRO_ROS_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_micro_ros_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_micro_ros_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_micro_ros_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_micro_ros_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_micro_ros_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs ROSIDL_GENERATOR_C_EXPORT_micro_ros_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs ROSIDL_GENERATOR_C_IMPORT_micro_ros_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_micro_ros_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_micro_ros_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_micro_ros_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/micro_ros_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/micro_ros_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 99d54d349..000000000 --- a/src/micro_ros_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef MICRO_ROS_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define MICRO_ROS_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_micro_ros_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_micro_ros_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_micro_ros_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_micro_ros_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_micro_ros_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_micro_ros_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_micro_ros_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_micro_ros_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_micro_ros_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_micro_ros_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_micro_ros_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_micro_ros_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_micro_ros_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/micro_ros_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/micro_ros_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index fe7c16208..000000000 --- a/src/micro_ros_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef MICRO_ROS_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define MICRO_ROS_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_micro_ros_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_micro_ros_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_micro_ros_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_micro_ros_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_micro_ros_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_micro_ros_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_micro_ros_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_micro_ros_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_micro_ros_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_micro_ros_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_micro_ros_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_micro_ros_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_micro_ros_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/micro_ros_utilities/string_utilities.h b/src/micro_ros_utilities/string_utilities.h deleted file mode 100755 index 364c67e70..000000000 --- a/src/micro_ros_utilities/string_utilities.h +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright (c) 2021 - for information on the respective copyright owner -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef MICRO_ROS_UTILITIES__STRING_UTILITIES_H_ -#define MICRO_ROS_UTILITIES__STRING_UTILITIES_H_ - -#if __cplusplus -extern "C" -{ -#endif // if __cplusplus - -#include -#include - -/** \addtogroup stringutils micro-ROS String Utilities - * @{ - */ - -/** - * Create a rosidl_runtime_c__String from a char pointer - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] data char pointer - * \return `rosidl_runtime_c__String` string containing data - */ -MICRO_ROS_UTILITIES_PUBLIC -rosidl_runtime_c__String -micro_ros_string_utilities_init(const char * data); - -/** - * Create a rosidl_runtime_c__String from a size - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] size size of the required string - * \return `rosidl_runtime_c__String` string of size size - */ -MICRO_ROS_UTILITIES_PUBLIC -rosidl_runtime_c__String -micro_ros_string_utilities_init_with_size(const size_t size); - -/** - * Create a rosidl_runtime_c__String from a char pointer - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] str rosidl_runtime_c__String to set - * \param[in] data char pointer - * \return `rosidl_runtime_c__String` string containing data - */ -MICRO_ROS_UTILITIES_PUBLIC -rosidl_runtime_c__String -micro_ros_string_utilities_set(const rosidl_runtime_c__String str, const char * data); - -/** - * Returns the char pointer to the rosidl_runtime_c__String data - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] str a rosidl_runtime_c__String - * \return `const char` char pointer - */ -MICRO_ROS_UTILITIES_PUBLIC -const char * -micro_ros_string_utilities_get_c_str(const rosidl_runtime_c__String str); - -/** - * Appends a char pointer to the end of a rosidl_runtime_c__String - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] str a rosidl_runtime_c__String - * \param[in] data characters to append - * \return `rosidl_runtime_c__String` new string - */ -rosidl_runtime_c__String micro_ros_string_utilities_append( - const rosidl_runtime_c__String str, - const char * data); - -/** - * Removes characters from the end of a string - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] str a rosidl_runtime_c__String - * \param[in] n number of characters to remove - * \return `rosidl_runtime_c__String` new string - */ -MICRO_ROS_UTILITIES_PUBLIC -rosidl_runtime_c__String -micro_ros_string_utilities_remove_tail_chars( - const rosidl_runtime_c__String str, - const size_t n); - -/** - * Destroys a rosidl_runtime_c__String - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] str a rosidl_runtime_c__String - */ -MICRO_ROS_UTILITIES_PUBLIC -void -micro_ros_string_utilities_destroy(rosidl_runtime_c__String * const str); - -/** @}*/ - -#if __cplusplus -} -#endif // if __cplusplus - -#endif // MICRO_ROS_UTILITIES__STRING_UTILITIES_H_ diff --git a/src/micro_ros_utilities/type_utilities.h b/src/micro_ros_utilities/type_utilities.h deleted file mode 100755 index ae667bf18..000000000 --- a/src/micro_ros_utilities/type_utilities.h +++ /dev/null @@ -1,243 +0,0 @@ -// Copyright (c) 2021 - for information on the respective copyright owner -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef MICRO_ROS_UTILITIES__TYPE_UTILITIES_H_ -#define MICRO_ROS_UTILITIES__TYPE_UTILITIES_H_ - -#if __cplusplus -extern "C" -{ -#endif // if __cplusplus - -#include -#include -#include -#include - -/** \addtogroup typeutils micro-ROS Types Utilities - * @{ - */ - -/** - * Memory rule - */ -typedef struct micro_ros_utilities_memory_rule_t -{ - /** - * Pattern matching the fully qualified name of a msg field. - * - */ - const char * rule; - - /** - * Maximum string or sequence capacity for fields matching \ref rule. - * - */ - size_t size; -} micro_ros_utilities_memory_rule_t; - -/** - * Memory configuration string - */ -typedef struct micro_ros_utilities_memory_conf_t -{ - /** - * Maximum string capacity to use for msg fields in case they don't have a - * custom rule assigned to them. - * - */ - size_t max_string_capacity; - - /** - * Maximum capacity to use for sequence type msg fields (ie: unbounded - * arrays and lists) which contain ROS 2 msg types, in case they don't have - * a custom rule assigned to them. - * - */ - size_t max_ros2_type_sequence_capacity; - - /** - * Maximum capacity to use for sequence type msg fields (ie: unbounded - * arrays and lists) which contain basic types (ie: primitive field types), - * in case they don't have a custom rule assigned to them. - * - */ - size_t max_basic_type_sequence_capacity; - - /** - * All rules defined in this configuration. - * - */ - const micro_ros_utilities_memory_rule_t * rules; - - /** - * Total number of rules defined in this configuration. - * - */ - size_t n_rules; - - /** - * The allocator to use when applying this configuration. - * - */ - const rcutils_allocator_t * allocator; -} micro_ros_utilities_memory_conf_t; - -// Default memory configuration -static const micro_ros_utilities_memory_conf_t micro_ros_utilities_memory_conf_default = -{20, 5, 5, NULL, 0, NULL}; - - -/** - * Returns a string with the type introspection data - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] type_support ROS 2 typesupport - * \return `rosidl_runtime_c__String` string containing data - */ -MICRO_ROS_UTILITIES_PUBLIC -rosidl_runtime_c__String -micro_ros_utilities_type_info( - const rosidl_message_type_support_t * type_support); - -/** - * Returns the dynamic memory size that will be used for a type - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] type_support ROS 2 typesupport - * \param[in] conf Utils configurator - * \return `size_t` Size in Bytes that will be used - */ -MICRO_ROS_UTILITIES_PUBLIC -size_t -micro_ros_utilities_get_dynamic_size( - const rosidl_message_type_support_t * type_support, - const micro_ros_utilities_memory_conf_t conf); - -/** - * Returns the static memory size that will be used for a type - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] type_support ROS 2 typesupport - * \param[in] conf Utils configurator - * \return `size_t` Size in Bytes that will be used - */ -MICRO_ROS_UTILITIES_PUBLIC -size_t -micro_ros_utilities_get_static_size( - const rosidl_message_type_support_t * type_support, - const micro_ros_utilities_memory_conf_t conf); - -/** - * Allocates the dynamic memory required for a message - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] type_support ROS 2 typesupport - * \param[inout] ros_msg ROS 2 msg with no type - * \param[in] conf Utils configurator - * \return `bool` true if success - */ -MICRO_ROS_UTILITIES_PUBLIC -bool -micro_ros_utilities_create_message_memory( - const rosidl_message_type_support_t * type_support, - void * ros_msg, - const micro_ros_utilities_memory_conf_t conf); - -/** - * Allocates the memory required for a message in a user-provided buffer - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] type_support ROS 2 typesupport - * \param[inout] ros_msg ROS 2 msg with no type - * \param[in] conf Utils configurator - * \param[in] buffer User buffer - * \param[in] buffer_len User buffer length - * \return `bool` true if success - */ -MICRO_ROS_UTILITIES_PUBLIC -bool -micro_ros_utilities_create_static_message_memory( - const rosidl_message_type_support_t * type_support, void * ros_msg, - const micro_ros_utilities_memory_conf_t conf, uint8_t * buffer, size_t buffer_len); - -/** - * Deallocates the dynamic memory of a message - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] type_support ROS 2 typesupport - * \param[inout] ros_msg ROS 2 msg with no type - * \param[in] conf Utils configurator - * \return `bool` true if success - */ -MICRO_ROS_UTILITIES_PUBLIC -bool -micro_ros_utilities_destroy_message_memory( - const rosidl_message_type_support_t * type_support, - void * ros_msg, - const micro_ros_utilities_memory_conf_t conf); - -/** @}*/ - -#if __cplusplus -} -#endif // if __cplusplus - -#endif // MICRO_ROS_UTILITIES__TYPE_UTILITIES_H_ diff --git a/src/micro_ros_utilities/visibility_control.h b/src/micro_ros_utilities/visibility_control.h deleted file mode 100755 index 634ad9035..000000000 --- a/src/micro_ros_utilities/visibility_control.h +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2021 - for information on the respective copyright owner -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef MICRO_ROS_UTILITIES__VISIBILITY_CONTROL_H_ -#define MICRO_ROS_UTILITIES__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define MICRO_ROS_UTILITIES_EXPORT __attribute__ ((dllexport)) - #define MICRO_ROS_UTILITIES_IMPORT __attribute__ ((dllimport)) - #else - #define MICRO_ROS_UTILITIES_EXPORT __declspec(dllexport) - #define MICRO_ROS_UTILITIES_IMPORT __declspec(dllimport) - #endif - #ifdef MICRO_ROS_UTILITIES_BUILDING_LIBRARY - #define MICRO_ROS_UTILITIES_PUBLIC MICRO_ROS_UTILITIES_EXPORT - #else - #define MICRO_ROS_UTILITIES_PUBLIC MICRO_ROS_UTILITIES_IMPORT - #endif - #define MICRO_ROS_UTILITIES_PUBLIC_TYPE MICRO_ROS_UTILITIES_PUBLIC - #define MICRO_ROS_UTILITIES_LOCAL -#else - #define MICRO_ROS_UTILITIES_EXPORT __attribute__ ((visibility("default"))) - #define MICRO_ROS_UTILITIES_IMPORT - #if __GNUC__ >= 4 - #define MICRO_ROS_UTILITIES_PUBLIC __attribute__ ((visibility("default"))) - #define MICRO_ROS_UTILITIES_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define MICRO_ROS_UTILITIES_PUBLIC - #define MICRO_ROS_UTILITIES_LOCAL - #endif - #define MICRO_ROS_UTILITIES_PUBLIC_TYPE -#endif - -#ifdef __cplusplus -} -#endif - -#endif // MICRO_ROS_UTILITIES__VISIBILITY_CONTROL_H_ diff --git a/src/mk20dx256/libmicroros.a b/src/mk20dx256/libmicroros.a deleted file mode 100755 index 74617781a..000000000 Binary files a/src/mk20dx256/libmicroros.a and /dev/null differ diff --git a/src/mk64fx512/fpv4-sp-d16-hard/libmicroros.a b/src/mk64fx512/fpv4-sp-d16-hard/libmicroros.a deleted file mode 100755 index 7a15be089..000000000 Binary files a/src/mk64fx512/fpv4-sp-d16-hard/libmicroros.a and /dev/null differ diff --git a/src/mk66fx1m0/fpv4-sp-d16-hard/libmicroros.a b/src/mk66fx1m0/fpv4-sp-d16-hard/libmicroros.a deleted file mode 100755 index 7a15be089..000000000 Binary files a/src/mk66fx1m0/fpv4-sp-d16-hard/libmicroros.a and /dev/null differ diff --git a/src/nav_msgs/msg/detail/goals__functions.h b/src/nav_msgs/msg/detail/goals__functions.h deleted file mode 100755 index 03c4d6d92..000000000 --- a/src/nav_msgs/msg/detail/goals__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from nav_msgs:msg/Goals.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/goals.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__GOALS__FUNCTIONS_H_ -#define NAV_MSGS__MSG__DETAIL__GOALS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "nav_msgs/msg/detail/goals__struct.h" - -/// Initialize msg/Goals message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__msg__Goals - * )) before or use - * nav_msgs__msg__Goals__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Goals__init(nav_msgs__msg__Goals * msg); - -/// Finalize msg/Goals message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__Goals__fini(nav_msgs__msg__Goals * msg); - -/// Create msg/Goals message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__msg__Goals__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__msg__Goals * -nav_msgs__msg__Goals__create(void); - -/// Destroy msg/Goals message. -/** - * It calls - * nav_msgs__msg__Goals__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__Goals__destroy(nav_msgs__msg__Goals * msg); - -/// Check for msg/Goals message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Goals__are_equal(const nav_msgs__msg__Goals * lhs, const nav_msgs__msg__Goals * rhs); - -/// Copy a msg/Goals message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Goals__copy( - const nav_msgs__msg__Goals * input, - nav_msgs__msg__Goals * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__msg__Goals__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__msg__Goals__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__msg__Goals__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__msg__Goals__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Goals messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__msg__Goals__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Goals__Sequence__init(nav_msgs__msg__Goals__Sequence * array, size_t size); - -/// Finalize array of msg/Goals messages. -/** - * It calls - * nav_msgs__msg__Goals__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__Goals__Sequence__fini(nav_msgs__msg__Goals__Sequence * array); - -/// Create array of msg/Goals messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__msg__Goals__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__msg__Goals__Sequence * -nav_msgs__msg__Goals__Sequence__create(size_t size); - -/// Destroy array of msg/Goals messages. -/** - * It calls - * nav_msgs__msg__Goals__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__Goals__Sequence__destroy(nav_msgs__msg__Goals__Sequence * array); - -/// Check for msg/Goals message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Goals__Sequence__are_equal(const nav_msgs__msg__Goals__Sequence * lhs, const nav_msgs__msg__Goals__Sequence * rhs); - -/// Copy an array of msg/Goals messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Goals__Sequence__copy( - const nav_msgs__msg__Goals__Sequence * input, - nav_msgs__msg__Goals__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__GOALS__FUNCTIONS_H_ diff --git a/src/nav_msgs/msg/detail/goals__rosidl_typesupport_introspection_c.h b/src/nav_msgs/msg/detail/goals__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 8081515d2..000000000 --- a/src/nav_msgs/msg/detail/goals__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from nav_msgs:msg/Goals.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__DETAIL__GOALS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define NAV_MSGS__MSG__DETAIL__GOALS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, msg, Goals)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__GOALS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/nav_msgs/msg/detail/goals__rosidl_typesupport_microxrcedds_c.h b/src/nav_msgs/msg/detail/goals__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 253e5c3c2..000000000 --- a/src/nav_msgs/msg/detail/goals__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from nav_msgs:msg/Goals.idl -// generated code does not contain a copyright notice -#ifndef NAV_MSGS__MSG__GOALS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define NAV_MSGS__MSG__GOALS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__msg__Goals( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__msg__Goals( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, msg, Goals)(); - -#ifdef __cplusplus -} -#endif - - -#endif // NAV_MSGS__MSG__GOALS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/nav_msgs/msg/detail/goals__struct.h b/src/nav_msgs/msg/detail/goals__struct.h deleted file mode 100755 index a6702c906..000000000 --- a/src/nav_msgs/msg/detail/goals__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from nav_msgs:msg/Goals.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/goals.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__GOALS__STRUCT_H_ -#define NAV_MSGS__MSG__DETAIL__GOALS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'goals' -#include "geometry_msgs/msg/detail/pose_stamped__struct.h" - -/// Struct defined in msg/Goals in the package nav_msgs. -/** - * An array of navigation goals - */ -typedef struct nav_msgs__msg__Goals -{ - /// This header will store the time at which the poses were computed (not to be confused with the stamps of the poses themselves) - /// In the case that individual poses do not have their frame_id set or their timetamp set they will use the default value here. - std_msgs__msg__Header header; - /// An array of goals to for navigation to achieve. - /// The goals should be executed in the order of the array. - /// The header and stamp are intended to be used for computing the position of the goals. - /// They may vary to support cases of goals that are moving with respect to the robot. - geometry_msgs__msg__PoseStamped__Sequence goals; -} nav_msgs__msg__Goals; - -// Struct for a sequence of nav_msgs__msg__Goals. -typedef struct nav_msgs__msg__Goals__Sequence -{ - nav_msgs__msg__Goals * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__msg__Goals__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__GOALS__STRUCT_H_ diff --git a/src/nav_msgs/msg/detail/goals__type_support.h b/src/nav_msgs/msg/detail/goals__type_support.h deleted file mode 100755 index ca56d3533..000000000 --- a/src/nav_msgs/msg/detail/goals__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from nav_msgs:msg/Goals.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/goals.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__GOALS__TYPE_SUPPORT_H_ -#define NAV_MSGS__MSG__DETAIL__GOALS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - msg, - Goals -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__GOALS__TYPE_SUPPORT_H_ diff --git a/src/nav_msgs/msg/detail/grid_cells__functions.h b/src/nav_msgs/msg/detail/grid_cells__functions.h deleted file mode 100755 index 53aa666b6..000000000 --- a/src/nav_msgs/msg/detail/grid_cells__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from nav_msgs:msg/GridCells.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/grid_cells.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__GRID_CELLS__FUNCTIONS_H_ -#define NAV_MSGS__MSG__DETAIL__GRID_CELLS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "nav_msgs/msg/detail/grid_cells__struct.h" - -/// Initialize msg/GridCells message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__msg__GridCells - * )) before or use - * nav_msgs__msg__GridCells__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__GridCells__init(nav_msgs__msg__GridCells * msg); - -/// Finalize msg/GridCells message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__GridCells__fini(nav_msgs__msg__GridCells * msg); - -/// Create msg/GridCells message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__msg__GridCells__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__msg__GridCells * -nav_msgs__msg__GridCells__create(void); - -/// Destroy msg/GridCells message. -/** - * It calls - * nav_msgs__msg__GridCells__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__GridCells__destroy(nav_msgs__msg__GridCells * msg); - -/// Check for msg/GridCells message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__GridCells__are_equal(const nav_msgs__msg__GridCells * lhs, const nav_msgs__msg__GridCells * rhs); - -/// Copy a msg/GridCells message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__GridCells__copy( - const nav_msgs__msg__GridCells * input, - nav_msgs__msg__GridCells * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__msg__GridCells__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__msg__GridCells__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__msg__GridCells__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__msg__GridCells__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/GridCells messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__msg__GridCells__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__GridCells__Sequence__init(nav_msgs__msg__GridCells__Sequence * array, size_t size); - -/// Finalize array of msg/GridCells messages. -/** - * It calls - * nav_msgs__msg__GridCells__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__GridCells__Sequence__fini(nav_msgs__msg__GridCells__Sequence * array); - -/// Create array of msg/GridCells messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__msg__GridCells__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__msg__GridCells__Sequence * -nav_msgs__msg__GridCells__Sequence__create(size_t size); - -/// Destroy array of msg/GridCells messages. -/** - * It calls - * nav_msgs__msg__GridCells__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__GridCells__Sequence__destroy(nav_msgs__msg__GridCells__Sequence * array); - -/// Check for msg/GridCells message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__GridCells__Sequence__are_equal(const nav_msgs__msg__GridCells__Sequence * lhs, const nav_msgs__msg__GridCells__Sequence * rhs); - -/// Copy an array of msg/GridCells messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__GridCells__Sequence__copy( - const nav_msgs__msg__GridCells__Sequence * input, - nav_msgs__msg__GridCells__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__GRID_CELLS__FUNCTIONS_H_ diff --git a/src/nav_msgs/msg/detail/grid_cells__rosidl_typesupport_introspection_c.h b/src/nav_msgs/msg/detail/grid_cells__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 1e029bc79..000000000 --- a/src/nav_msgs/msg/detail/grid_cells__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from nav_msgs:msg/GridCells.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__DETAIL__GRID_CELLS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define NAV_MSGS__MSG__DETAIL__GRID_CELLS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, msg, GridCells)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__GRID_CELLS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/nav_msgs/msg/detail/grid_cells__rosidl_typesupport_microxrcedds_c.h b/src/nav_msgs/msg/detail/grid_cells__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 53a930433..000000000 --- a/src/nav_msgs/msg/detail/grid_cells__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from nav_msgs:msg/GridCells.idl -// generated code does not contain a copyright notice -#ifndef NAV_MSGS__MSG__GRID_CELLS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define NAV_MSGS__MSG__GRID_CELLS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__msg__GridCells( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__msg__GridCells( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, msg, GridCells)(); - -#ifdef __cplusplus -} -#endif - - -#endif // NAV_MSGS__MSG__GRID_CELLS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/nav_msgs/msg/detail/grid_cells__struct.h b/src/nav_msgs/msg/detail/grid_cells__struct.h deleted file mode 100755 index ad6c96fc8..000000000 --- a/src/nav_msgs/msg/detail/grid_cells__struct.h +++ /dev/null @@ -1,57 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from nav_msgs:msg/GridCells.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/grid_cells.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__GRID_CELLS__STRUCT_H_ -#define NAV_MSGS__MSG__DETAIL__GRID_CELLS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'cells' -#include "geometry_msgs/msg/detail/point__struct.h" - -/// Struct defined in msg/GridCells in the package nav_msgs. -/** - * An array of cells in a 2D grid - */ -typedef struct nav_msgs__msg__GridCells -{ - std_msgs__msg__Header header; - /// Width of each cell - float cell_width; - /// Height of each cell - float cell_height; - /// Each cell is represented by the Point at the center of the cell - geometry_msgs__msg__Point__Sequence cells; -} nav_msgs__msg__GridCells; - -// Struct for a sequence of nav_msgs__msg__GridCells. -typedef struct nav_msgs__msg__GridCells__Sequence -{ - nav_msgs__msg__GridCells * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__msg__GridCells__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__GRID_CELLS__STRUCT_H_ diff --git a/src/nav_msgs/msg/detail/grid_cells__type_support.h b/src/nav_msgs/msg/detail/grid_cells__type_support.h deleted file mode 100755 index 288dc1d95..000000000 --- a/src/nav_msgs/msg/detail/grid_cells__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from nav_msgs:msg/GridCells.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/grid_cells.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__GRID_CELLS__TYPE_SUPPORT_H_ -#define NAV_MSGS__MSG__DETAIL__GRID_CELLS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - msg, - GridCells -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__GRID_CELLS__TYPE_SUPPORT_H_ diff --git a/src/nav_msgs/msg/detail/map_meta_data__functions.h b/src/nav_msgs/msg/detail/map_meta_data__functions.h deleted file mode 100755 index cde688b93..000000000 --- a/src/nav_msgs/msg/detail/map_meta_data__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from nav_msgs:msg/MapMetaData.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/map_meta_data.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__MAP_META_DATA__FUNCTIONS_H_ -#define NAV_MSGS__MSG__DETAIL__MAP_META_DATA__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "nav_msgs/msg/detail/map_meta_data__struct.h" - -/// Initialize msg/MapMetaData message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__msg__MapMetaData - * )) before or use - * nav_msgs__msg__MapMetaData__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__MapMetaData__init(nav_msgs__msg__MapMetaData * msg); - -/// Finalize msg/MapMetaData message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__MapMetaData__fini(nav_msgs__msg__MapMetaData * msg); - -/// Create msg/MapMetaData message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__msg__MapMetaData__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__msg__MapMetaData * -nav_msgs__msg__MapMetaData__create(void); - -/// Destroy msg/MapMetaData message. -/** - * It calls - * nav_msgs__msg__MapMetaData__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__MapMetaData__destroy(nav_msgs__msg__MapMetaData * msg); - -/// Check for msg/MapMetaData message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__MapMetaData__are_equal(const nav_msgs__msg__MapMetaData * lhs, const nav_msgs__msg__MapMetaData * rhs); - -/// Copy a msg/MapMetaData message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__MapMetaData__copy( - const nav_msgs__msg__MapMetaData * input, - nav_msgs__msg__MapMetaData * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__msg__MapMetaData__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__msg__MapMetaData__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__msg__MapMetaData__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__msg__MapMetaData__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MapMetaData messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__msg__MapMetaData__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__MapMetaData__Sequence__init(nav_msgs__msg__MapMetaData__Sequence * array, size_t size); - -/// Finalize array of msg/MapMetaData messages. -/** - * It calls - * nav_msgs__msg__MapMetaData__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__MapMetaData__Sequence__fini(nav_msgs__msg__MapMetaData__Sequence * array); - -/// Create array of msg/MapMetaData messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__msg__MapMetaData__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__msg__MapMetaData__Sequence * -nav_msgs__msg__MapMetaData__Sequence__create(size_t size); - -/// Destroy array of msg/MapMetaData messages. -/** - * It calls - * nav_msgs__msg__MapMetaData__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__MapMetaData__Sequence__destroy(nav_msgs__msg__MapMetaData__Sequence * array); - -/// Check for msg/MapMetaData message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__MapMetaData__Sequence__are_equal(const nav_msgs__msg__MapMetaData__Sequence * lhs, const nav_msgs__msg__MapMetaData__Sequence * rhs); - -/// Copy an array of msg/MapMetaData messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__MapMetaData__Sequence__copy( - const nav_msgs__msg__MapMetaData__Sequence * input, - nav_msgs__msg__MapMetaData__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__MAP_META_DATA__FUNCTIONS_H_ diff --git a/src/nav_msgs/msg/detail/map_meta_data__rosidl_typesupport_introspection_c.h b/src/nav_msgs/msg/detail/map_meta_data__rosidl_typesupport_introspection_c.h deleted file mode 100755 index bc6245084..000000000 --- a/src/nav_msgs/msg/detail/map_meta_data__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from nav_msgs:msg/MapMetaData.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__DETAIL__MAP_META_DATA__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define NAV_MSGS__MSG__DETAIL__MAP_META_DATA__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, msg, MapMetaData)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__MAP_META_DATA__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/nav_msgs/msg/detail/map_meta_data__rosidl_typesupport_microxrcedds_c.h b/src/nav_msgs/msg/detail/map_meta_data__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 6b2432b1d..000000000 --- a/src/nav_msgs/msg/detail/map_meta_data__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from nav_msgs:msg/MapMetaData.idl -// generated code does not contain a copyright notice -#ifndef NAV_MSGS__MSG__MAP_META_DATA__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define NAV_MSGS__MSG__MAP_META_DATA__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__msg__MapMetaData( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__msg__MapMetaData( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, msg, MapMetaData)(); - -#ifdef __cplusplus -} -#endif - - -#endif // NAV_MSGS__MSG__MAP_META_DATA__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/nav_msgs/msg/detail/map_meta_data__struct.h b/src/nav_msgs/msg/detail/map_meta_data__struct.h deleted file mode 100755 index 8c79b8035..000000000 --- a/src/nav_msgs/msg/detail/map_meta_data__struct.h +++ /dev/null @@ -1,61 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from nav_msgs:msg/MapMetaData.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/map_meta_data.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__MAP_META_DATA__STRUCT_H_ -#define NAV_MSGS__MSG__DETAIL__MAP_META_DATA__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'map_load_time' -#include "builtin_interfaces/msg/detail/time__struct.h" -// Member 'origin' -#include "geometry_msgs/msg/detail/pose__struct.h" - -/// Struct defined in msg/MapMetaData in the package nav_msgs. -/** - * This hold basic information about the characteristics of the OccupancyGrid - */ -typedef struct nav_msgs__msg__MapMetaData -{ - /// The time at which the map was loaded - builtin_interfaces__msg__Time map_load_time; - /// The map resolution - float resolution; - /// Map width - uint32_t width; - /// Map height - uint32_t height; - /// The origin of the map [m, m, rad]. This is the real-world pose of the - /// bottom left corner of cell (0,0) in the map. - geometry_msgs__msg__Pose origin; -} nav_msgs__msg__MapMetaData; - -// Struct for a sequence of nav_msgs__msg__MapMetaData. -typedef struct nav_msgs__msg__MapMetaData__Sequence -{ - nav_msgs__msg__MapMetaData * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__msg__MapMetaData__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__MAP_META_DATA__STRUCT_H_ diff --git a/src/nav_msgs/msg/detail/map_meta_data__type_support.h b/src/nav_msgs/msg/detail/map_meta_data__type_support.h deleted file mode 100755 index 1e8adf89f..000000000 --- a/src/nav_msgs/msg/detail/map_meta_data__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from nav_msgs:msg/MapMetaData.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/map_meta_data.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__MAP_META_DATA__TYPE_SUPPORT_H_ -#define NAV_MSGS__MSG__DETAIL__MAP_META_DATA__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - msg, - MapMetaData -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__MAP_META_DATA__TYPE_SUPPORT_H_ diff --git a/src/nav_msgs/msg/detail/occupancy_grid__functions.h b/src/nav_msgs/msg/detail/occupancy_grid__functions.h deleted file mode 100755 index 82a501671..000000000 --- a/src/nav_msgs/msg/detail/occupancy_grid__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from nav_msgs:msg/OccupancyGrid.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/occupancy_grid.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__OCCUPANCY_GRID__FUNCTIONS_H_ -#define NAV_MSGS__MSG__DETAIL__OCCUPANCY_GRID__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "nav_msgs/msg/detail/occupancy_grid__struct.h" - -/// Initialize msg/OccupancyGrid message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__msg__OccupancyGrid - * )) before or use - * nav_msgs__msg__OccupancyGrid__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__OccupancyGrid__init(nav_msgs__msg__OccupancyGrid * msg); - -/// Finalize msg/OccupancyGrid message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__OccupancyGrid__fini(nav_msgs__msg__OccupancyGrid * msg); - -/// Create msg/OccupancyGrid message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__msg__OccupancyGrid__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__msg__OccupancyGrid * -nav_msgs__msg__OccupancyGrid__create(void); - -/// Destroy msg/OccupancyGrid message. -/** - * It calls - * nav_msgs__msg__OccupancyGrid__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__OccupancyGrid__destroy(nav_msgs__msg__OccupancyGrid * msg); - -/// Check for msg/OccupancyGrid message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__OccupancyGrid__are_equal(const nav_msgs__msg__OccupancyGrid * lhs, const nav_msgs__msg__OccupancyGrid * rhs); - -/// Copy a msg/OccupancyGrid message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__OccupancyGrid__copy( - const nav_msgs__msg__OccupancyGrid * input, - nav_msgs__msg__OccupancyGrid * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__msg__OccupancyGrid__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__msg__OccupancyGrid__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__msg__OccupancyGrid__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__msg__OccupancyGrid__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/OccupancyGrid messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__msg__OccupancyGrid__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__OccupancyGrid__Sequence__init(nav_msgs__msg__OccupancyGrid__Sequence * array, size_t size); - -/// Finalize array of msg/OccupancyGrid messages. -/** - * It calls - * nav_msgs__msg__OccupancyGrid__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__OccupancyGrid__Sequence__fini(nav_msgs__msg__OccupancyGrid__Sequence * array); - -/// Create array of msg/OccupancyGrid messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__msg__OccupancyGrid__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__msg__OccupancyGrid__Sequence * -nav_msgs__msg__OccupancyGrid__Sequence__create(size_t size); - -/// Destroy array of msg/OccupancyGrid messages. -/** - * It calls - * nav_msgs__msg__OccupancyGrid__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__OccupancyGrid__Sequence__destroy(nav_msgs__msg__OccupancyGrid__Sequence * array); - -/// Check for msg/OccupancyGrid message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__OccupancyGrid__Sequence__are_equal(const nav_msgs__msg__OccupancyGrid__Sequence * lhs, const nav_msgs__msg__OccupancyGrid__Sequence * rhs); - -/// Copy an array of msg/OccupancyGrid messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__OccupancyGrid__Sequence__copy( - const nav_msgs__msg__OccupancyGrid__Sequence * input, - nav_msgs__msg__OccupancyGrid__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__OCCUPANCY_GRID__FUNCTIONS_H_ diff --git a/src/nav_msgs/msg/detail/occupancy_grid__rosidl_typesupport_introspection_c.h b/src/nav_msgs/msg/detail/occupancy_grid__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 00105dca4..000000000 --- a/src/nav_msgs/msg/detail/occupancy_grid__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from nav_msgs:msg/OccupancyGrid.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__DETAIL__OCCUPANCY_GRID__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define NAV_MSGS__MSG__DETAIL__OCCUPANCY_GRID__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, msg, OccupancyGrid)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__OCCUPANCY_GRID__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/nav_msgs/msg/detail/occupancy_grid__rosidl_typesupport_microxrcedds_c.h b/src/nav_msgs/msg/detail/occupancy_grid__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index be0446be6..000000000 --- a/src/nav_msgs/msg/detail/occupancy_grid__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from nav_msgs:msg/OccupancyGrid.idl -// generated code does not contain a copyright notice -#ifndef NAV_MSGS__MSG__OCCUPANCY_GRID__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define NAV_MSGS__MSG__OCCUPANCY_GRID__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__msg__OccupancyGrid( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__msg__OccupancyGrid( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, msg, OccupancyGrid)(); - -#ifdef __cplusplus -} -#endif - - -#endif // NAV_MSGS__MSG__OCCUPANCY_GRID__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/nav_msgs/msg/detail/occupancy_grid__struct.h b/src/nav_msgs/msg/detail/occupancy_grid__struct.h deleted file mode 100755 index 44f138d0f..000000000 --- a/src/nav_msgs/msg/detail/occupancy_grid__struct.h +++ /dev/null @@ -1,62 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from nav_msgs:msg/OccupancyGrid.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/occupancy_grid.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__OCCUPANCY_GRID__STRUCT_H_ -#define NAV_MSGS__MSG__DETAIL__OCCUPANCY_GRID__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'info' -#include "nav_msgs/msg/detail/map_meta_data__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/OccupancyGrid in the package nav_msgs. -/** - * This represents a 2-D grid map - */ -typedef struct nav_msgs__msg__OccupancyGrid -{ - std_msgs__msg__Header header; - /// MetaData for the map - nav_msgs__msg__MapMetaData info; - /// The map data, in row-major order, starting with (0,0). - /// Cell (1, 0) will be listed second, representing the next cell in the x direction. - /// Cell (0, 1) will be at the index equal to info.width, followed by (1, 1). - /// The values inside are application dependent, but frequently, - /// 0 represents unoccupied, 1 represents definitely occupied, and - /// -1 represents unknown. - rosidl_runtime_c__int8__Sequence data; -} nav_msgs__msg__OccupancyGrid; - -// Struct for a sequence of nav_msgs__msg__OccupancyGrid. -typedef struct nav_msgs__msg__OccupancyGrid__Sequence -{ - nav_msgs__msg__OccupancyGrid * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__msg__OccupancyGrid__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__OCCUPANCY_GRID__STRUCT_H_ diff --git a/src/nav_msgs/msg/detail/occupancy_grid__type_support.h b/src/nav_msgs/msg/detail/occupancy_grid__type_support.h deleted file mode 100755 index cf95889d5..000000000 --- a/src/nav_msgs/msg/detail/occupancy_grid__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from nav_msgs:msg/OccupancyGrid.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/occupancy_grid.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__OCCUPANCY_GRID__TYPE_SUPPORT_H_ -#define NAV_MSGS__MSG__DETAIL__OCCUPANCY_GRID__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - msg, - OccupancyGrid -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__OCCUPANCY_GRID__TYPE_SUPPORT_H_ diff --git a/src/nav_msgs/msg/detail/odometry__functions.h b/src/nav_msgs/msg/detail/odometry__functions.h deleted file mode 100755 index 38bc96469..000000000 --- a/src/nav_msgs/msg/detail/odometry__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from nav_msgs:msg/Odometry.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/odometry.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__ODOMETRY__FUNCTIONS_H_ -#define NAV_MSGS__MSG__DETAIL__ODOMETRY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "nav_msgs/msg/detail/odometry__struct.h" - -/// Initialize msg/Odometry message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__msg__Odometry - * )) before or use - * nav_msgs__msg__Odometry__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Odometry__init(nav_msgs__msg__Odometry * msg); - -/// Finalize msg/Odometry message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__Odometry__fini(nav_msgs__msg__Odometry * msg); - -/// Create msg/Odometry message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__msg__Odometry__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__msg__Odometry * -nav_msgs__msg__Odometry__create(void); - -/// Destroy msg/Odometry message. -/** - * It calls - * nav_msgs__msg__Odometry__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__Odometry__destroy(nav_msgs__msg__Odometry * msg); - -/// Check for msg/Odometry message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Odometry__are_equal(const nav_msgs__msg__Odometry * lhs, const nav_msgs__msg__Odometry * rhs); - -/// Copy a msg/Odometry message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Odometry__copy( - const nav_msgs__msg__Odometry * input, - nav_msgs__msg__Odometry * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__msg__Odometry__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__msg__Odometry__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__msg__Odometry__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__msg__Odometry__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Odometry messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__msg__Odometry__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Odometry__Sequence__init(nav_msgs__msg__Odometry__Sequence * array, size_t size); - -/// Finalize array of msg/Odometry messages. -/** - * It calls - * nav_msgs__msg__Odometry__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__Odometry__Sequence__fini(nav_msgs__msg__Odometry__Sequence * array); - -/// Create array of msg/Odometry messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__msg__Odometry__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__msg__Odometry__Sequence * -nav_msgs__msg__Odometry__Sequence__create(size_t size); - -/// Destroy array of msg/Odometry messages. -/** - * It calls - * nav_msgs__msg__Odometry__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__Odometry__Sequence__destroy(nav_msgs__msg__Odometry__Sequence * array); - -/// Check for msg/Odometry message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Odometry__Sequence__are_equal(const nav_msgs__msg__Odometry__Sequence * lhs, const nav_msgs__msg__Odometry__Sequence * rhs); - -/// Copy an array of msg/Odometry messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Odometry__Sequence__copy( - const nav_msgs__msg__Odometry__Sequence * input, - nav_msgs__msg__Odometry__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__ODOMETRY__FUNCTIONS_H_ diff --git a/src/nav_msgs/msg/detail/odometry__rosidl_typesupport_introspection_c.h b/src/nav_msgs/msg/detail/odometry__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 7e9632358..000000000 --- a/src/nav_msgs/msg/detail/odometry__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from nav_msgs:msg/Odometry.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__DETAIL__ODOMETRY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define NAV_MSGS__MSG__DETAIL__ODOMETRY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, msg, Odometry)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__ODOMETRY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/nav_msgs/msg/detail/odometry__rosidl_typesupport_microxrcedds_c.h b/src/nav_msgs/msg/detail/odometry__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index cc991480a..000000000 --- a/src/nav_msgs/msg/detail/odometry__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from nav_msgs:msg/Odometry.idl -// generated code does not contain a copyright notice -#ifndef NAV_MSGS__MSG__ODOMETRY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define NAV_MSGS__MSG__ODOMETRY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__msg__Odometry( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__msg__Odometry( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, msg, Odometry)(); - -#ifdef __cplusplus -} -#endif - - -#endif // NAV_MSGS__MSG__ODOMETRY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/nav_msgs/msg/detail/odometry__struct.h b/src/nav_msgs/msg/detail/odometry__struct.h deleted file mode 100755 index b9ddc0739..000000000 --- a/src/nav_msgs/msg/detail/odometry__struct.h +++ /dev/null @@ -1,64 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from nav_msgs:msg/Odometry.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/odometry.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__ODOMETRY__STRUCT_H_ -#define NAV_MSGS__MSG__DETAIL__ODOMETRY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'child_frame_id' -#include "rosidl_runtime_c/string.h" -// Member 'pose' -#include "geometry_msgs/msg/detail/pose_with_covariance__struct.h" -// Member 'twist' -#include "geometry_msgs/msg/detail/twist_with_covariance__struct.h" - -/// Struct defined in msg/Odometry in the package nav_msgs. -/** - * This represents an estimate of a position and velocity in free space. - * The pose in this message should be specified in the coordinate frame given by header.frame_id - * The twist in this message should be specified in the coordinate frame given by the child_frame_id - */ -typedef struct nav_msgs__msg__Odometry -{ - /// Includes the frame id of the pose parent. - std_msgs__msg__Header header; - /// Frame id the pose points to. The twist is in this coordinate frame. - rosidl_runtime_c__String child_frame_id; - /// Estimated pose that is typically relative to a fixed world frame. - geometry_msgs__msg__PoseWithCovariance pose; - /// Estimated linear and angular velocity relative to child_frame_id. - geometry_msgs__msg__TwistWithCovariance twist; -} nav_msgs__msg__Odometry; - -// Struct for a sequence of nav_msgs__msg__Odometry. -typedef struct nav_msgs__msg__Odometry__Sequence -{ - nav_msgs__msg__Odometry * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__msg__Odometry__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__ODOMETRY__STRUCT_H_ diff --git a/src/nav_msgs/msg/detail/odometry__type_support.h b/src/nav_msgs/msg/detail/odometry__type_support.h deleted file mode 100755 index 6b9ef7d9f..000000000 --- a/src/nav_msgs/msg/detail/odometry__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from nav_msgs:msg/Odometry.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/odometry.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__ODOMETRY__TYPE_SUPPORT_H_ -#define NAV_MSGS__MSG__DETAIL__ODOMETRY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - msg, - Odometry -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__ODOMETRY__TYPE_SUPPORT_H_ diff --git a/src/nav_msgs/msg/detail/path__functions.h b/src/nav_msgs/msg/detail/path__functions.h deleted file mode 100755 index 8f425ae58..000000000 --- a/src/nav_msgs/msg/detail/path__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from nav_msgs:msg/Path.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/path.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__PATH__FUNCTIONS_H_ -#define NAV_MSGS__MSG__DETAIL__PATH__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "nav_msgs/msg/detail/path__struct.h" - -/// Initialize msg/Path message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__msg__Path - * )) before or use - * nav_msgs__msg__Path__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Path__init(nav_msgs__msg__Path * msg); - -/// Finalize msg/Path message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__Path__fini(nav_msgs__msg__Path * msg); - -/// Create msg/Path message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__msg__Path__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__msg__Path * -nav_msgs__msg__Path__create(void); - -/// Destroy msg/Path message. -/** - * It calls - * nav_msgs__msg__Path__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__Path__destroy(nav_msgs__msg__Path * msg); - -/// Check for msg/Path message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Path__are_equal(const nav_msgs__msg__Path * lhs, const nav_msgs__msg__Path * rhs); - -/// Copy a msg/Path message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Path__copy( - const nav_msgs__msg__Path * input, - nav_msgs__msg__Path * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__msg__Path__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__msg__Path__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__msg__Path__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__msg__Path__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Path messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__msg__Path__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Path__Sequence__init(nav_msgs__msg__Path__Sequence * array, size_t size); - -/// Finalize array of msg/Path messages. -/** - * It calls - * nav_msgs__msg__Path__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__Path__Sequence__fini(nav_msgs__msg__Path__Sequence * array); - -/// Create array of msg/Path messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__msg__Path__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__msg__Path__Sequence * -nav_msgs__msg__Path__Sequence__create(size_t size); - -/// Destroy array of msg/Path messages. -/** - * It calls - * nav_msgs__msg__Path__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__msg__Path__Sequence__destroy(nav_msgs__msg__Path__Sequence * array); - -/// Check for msg/Path message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Path__Sequence__are_equal(const nav_msgs__msg__Path__Sequence * lhs, const nav_msgs__msg__Path__Sequence * rhs); - -/// Copy an array of msg/Path messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__msg__Path__Sequence__copy( - const nav_msgs__msg__Path__Sequence * input, - nav_msgs__msg__Path__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__PATH__FUNCTIONS_H_ diff --git a/src/nav_msgs/msg/detail/path__rosidl_typesupport_introspection_c.h b/src/nav_msgs/msg/detail/path__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 1458de6df..000000000 --- a/src/nav_msgs/msg/detail/path__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from nav_msgs:msg/Path.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__DETAIL__PATH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define NAV_MSGS__MSG__DETAIL__PATH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, msg, Path)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__PATH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/nav_msgs/msg/detail/path__rosidl_typesupport_microxrcedds_c.h b/src/nav_msgs/msg/detail/path__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 392a337d5..000000000 --- a/src/nav_msgs/msg/detail/path__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from nav_msgs:msg/Path.idl -// generated code does not contain a copyright notice -#ifndef NAV_MSGS__MSG__PATH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define NAV_MSGS__MSG__PATH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__msg__Path( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__msg__Path( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, msg, Path)(); - -#ifdef __cplusplus -} -#endif - - -#endif // NAV_MSGS__MSG__PATH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/nav_msgs/msg/detail/path__struct.h b/src/nav_msgs/msg/detail/path__struct.h deleted file mode 100755 index e50e39f56..000000000 --- a/src/nav_msgs/msg/detail/path__struct.h +++ /dev/null @@ -1,54 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from nav_msgs:msg/Path.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/path.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__PATH__STRUCT_H_ -#define NAV_MSGS__MSG__DETAIL__PATH__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'poses' -#include "geometry_msgs/msg/detail/pose_stamped__struct.h" - -/// Struct defined in msg/Path in the package nav_msgs. -/** - * An array of poses that represents a Path for a robot to follow. - */ -typedef struct nav_msgs__msg__Path -{ - /// Indicates the frame_id of the path. - std_msgs__msg__Header header; - /// Array of poses to follow. - geometry_msgs__msg__PoseStamped__Sequence poses; -} nav_msgs__msg__Path; - -// Struct for a sequence of nav_msgs__msg__Path. -typedef struct nav_msgs__msg__Path__Sequence -{ - nav_msgs__msg__Path * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__msg__Path__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__PATH__STRUCT_H_ diff --git a/src/nav_msgs/msg/detail/path__type_support.h b/src/nav_msgs/msg/detail/path__type_support.h deleted file mode 100755 index cf83eca0d..000000000 --- a/src/nav_msgs/msg/detail/path__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from nav_msgs:msg/Path.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/msg/path.h" - - -#ifndef NAV_MSGS__MSG__DETAIL__PATH__TYPE_SUPPORT_H_ -#define NAV_MSGS__MSG__DETAIL__PATH__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - msg, - Path -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__DETAIL__PATH__TYPE_SUPPORT_H_ diff --git a/src/nav_msgs/msg/goals.h b/src/nav_msgs/msg/goals.h deleted file mode 100755 index a76cd283c..000000000 --- a/src/nav_msgs/msg/goals.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from nav_msgs:msg/Goals.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__GOALS_H_ -#define NAV_MSGS__MSG__GOALS_H_ - -#include "nav_msgs/msg/detail/goals__struct.h" -#include "nav_msgs/msg/detail/goals__functions.h" -#include "nav_msgs/msg/detail/goals__type_support.h" - -#endif // NAV_MSGS__MSG__GOALS_H_ diff --git a/src/nav_msgs/msg/grid_cells.h b/src/nav_msgs/msg/grid_cells.h deleted file mode 100755 index 0e209205b..000000000 --- a/src/nav_msgs/msg/grid_cells.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from nav_msgs:msg/GridCells.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__GRID_CELLS_H_ -#define NAV_MSGS__MSG__GRID_CELLS_H_ - -#include "nav_msgs/msg/detail/grid_cells__struct.h" -#include "nav_msgs/msg/detail/grid_cells__functions.h" -#include "nav_msgs/msg/detail/grid_cells__type_support.h" - -#endif // NAV_MSGS__MSG__GRID_CELLS_H_ diff --git a/src/nav_msgs/msg/map_meta_data.h b/src/nav_msgs/msg/map_meta_data.h deleted file mode 100755 index 1b70c2e66..000000000 --- a/src/nav_msgs/msg/map_meta_data.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from nav_msgs:msg/MapMetaData.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__MAP_META_DATA_H_ -#define NAV_MSGS__MSG__MAP_META_DATA_H_ - -#include "nav_msgs/msg/detail/map_meta_data__struct.h" -#include "nav_msgs/msg/detail/map_meta_data__functions.h" -#include "nav_msgs/msg/detail/map_meta_data__type_support.h" - -#endif // NAV_MSGS__MSG__MAP_META_DATA_H_ diff --git a/src/nav_msgs/msg/occupancy_grid.h b/src/nav_msgs/msg/occupancy_grid.h deleted file mode 100755 index 2ac51f5eb..000000000 --- a/src/nav_msgs/msg/occupancy_grid.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from nav_msgs:msg/OccupancyGrid.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__OCCUPANCY_GRID_H_ -#define NAV_MSGS__MSG__OCCUPANCY_GRID_H_ - -#include "nav_msgs/msg/detail/occupancy_grid__struct.h" -#include "nav_msgs/msg/detail/occupancy_grid__functions.h" -#include "nav_msgs/msg/detail/occupancy_grid__type_support.h" - -#endif // NAV_MSGS__MSG__OCCUPANCY_GRID_H_ diff --git a/src/nav_msgs/msg/odometry.h b/src/nav_msgs/msg/odometry.h deleted file mode 100755 index 69da3815a..000000000 --- a/src/nav_msgs/msg/odometry.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from nav_msgs:msg/Odometry.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__ODOMETRY_H_ -#define NAV_MSGS__MSG__ODOMETRY_H_ - -#include "nav_msgs/msg/detail/odometry__struct.h" -#include "nav_msgs/msg/detail/odometry__functions.h" -#include "nav_msgs/msg/detail/odometry__type_support.h" - -#endif // NAV_MSGS__MSG__ODOMETRY_H_ diff --git a/src/nav_msgs/msg/path.h b/src/nav_msgs/msg/path.h deleted file mode 100755 index 29d0537ae..000000000 --- a/src/nav_msgs/msg/path.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from nav_msgs:msg/Path.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__PATH_H_ -#define NAV_MSGS__MSG__PATH_H_ - -#include "nav_msgs/msg/detail/path__struct.h" -#include "nav_msgs/msg/detail/path__functions.h" -#include "nav_msgs/msg/detail/path__type_support.h" - -#endif // NAV_MSGS__MSG__PATH_H_ diff --git a/src/nav_msgs/msg/rosidl_generator_c__visibility_control.h b/src/nav_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 38d7b1590..000000000 --- a/src/nav_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define NAV_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_nav_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_nav_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_nav_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_nav_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_nav_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_nav_msgs ROSIDL_GENERATOR_C_EXPORT_nav_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_nav_msgs ROSIDL_GENERATOR_C_IMPORT_nav_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_nav_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_nav_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_nav_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_nav_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index ccbf2be26..000000000 --- a/src/nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define NAV_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_nav_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_nav_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_nav_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_nav_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_nav_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_nav_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_nav_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_nav_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_nav_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 47a003ddd..000000000 --- a/src/nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define NAV_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_nav_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_nav_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_nav_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_nav_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_nav_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_nav_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_nav_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_nav_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_nav_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/nav_msgs/srv/detail/get_map__functions.h b/src/nav_msgs/srv/detail/get_map__functions.h deleted file mode 100755 index 1f03e655d..000000000 --- a/src/nav_msgs/srv/detail/get_map__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from nav_msgs:srv/GetMap.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/srv/get_map.h" - - -#ifndef NAV_MSGS__SRV__DETAIL__GET_MAP__FUNCTIONS_H_ -#define NAV_MSGS__SRV__DETAIL__GET_MAP__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "nav_msgs/srv/detail/get_map__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__GetMap__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__GetMap__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__GetMap__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__GetMap__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/GetMap message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__srv__GetMap_Request - * )) before or use - * nav_msgs__srv__GetMap_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Request__init(nav_msgs__srv__GetMap_Request * msg); - -/// Finalize srv/GetMap message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetMap_Request__fini(nav_msgs__srv__GetMap_Request * msg); - -/// Create srv/GetMap message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__srv__GetMap_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__GetMap_Request * -nav_msgs__srv__GetMap_Request__create(void); - -/// Destroy srv/GetMap message. -/** - * It calls - * nav_msgs__srv__GetMap_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetMap_Request__destroy(nav_msgs__srv__GetMap_Request * msg); - -/// Check for srv/GetMap message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Request__are_equal(const nav_msgs__srv__GetMap_Request * lhs, const nav_msgs__srv__GetMap_Request * rhs); - -/// Copy a srv/GetMap message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Request__copy( - const nav_msgs__srv__GetMap_Request * input, - nav_msgs__srv__GetMap_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__GetMap_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__GetMap_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__GetMap_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__GetMap_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetMap messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__srv__GetMap_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Request__Sequence__init(nav_msgs__srv__GetMap_Request__Sequence * array, size_t size); - -/// Finalize array of srv/GetMap messages. -/** - * It calls - * nav_msgs__srv__GetMap_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetMap_Request__Sequence__fini(nav_msgs__srv__GetMap_Request__Sequence * array); - -/// Create array of srv/GetMap messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__srv__GetMap_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__GetMap_Request__Sequence * -nav_msgs__srv__GetMap_Request__Sequence__create(size_t size); - -/// Destroy array of srv/GetMap messages. -/** - * It calls - * nav_msgs__srv__GetMap_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetMap_Request__Sequence__destroy(nav_msgs__srv__GetMap_Request__Sequence * array); - -/// Check for srv/GetMap message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Request__Sequence__are_equal(const nav_msgs__srv__GetMap_Request__Sequence * lhs, const nav_msgs__srv__GetMap_Request__Sequence * rhs); - -/// Copy an array of srv/GetMap messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Request__Sequence__copy( - const nav_msgs__srv__GetMap_Request__Sequence * input, - nav_msgs__srv__GetMap_Request__Sequence * output); - -/// Initialize srv/GetMap message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__srv__GetMap_Response - * )) before or use - * nav_msgs__srv__GetMap_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Response__init(nav_msgs__srv__GetMap_Response * msg); - -/// Finalize srv/GetMap message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetMap_Response__fini(nav_msgs__srv__GetMap_Response * msg); - -/// Create srv/GetMap message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__srv__GetMap_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__GetMap_Response * -nav_msgs__srv__GetMap_Response__create(void); - -/// Destroy srv/GetMap message. -/** - * It calls - * nav_msgs__srv__GetMap_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetMap_Response__destroy(nav_msgs__srv__GetMap_Response * msg); - -/// Check for srv/GetMap message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Response__are_equal(const nav_msgs__srv__GetMap_Response * lhs, const nav_msgs__srv__GetMap_Response * rhs); - -/// Copy a srv/GetMap message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Response__copy( - const nav_msgs__srv__GetMap_Response * input, - nav_msgs__srv__GetMap_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__GetMap_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__GetMap_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__GetMap_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__GetMap_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetMap messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__srv__GetMap_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Response__Sequence__init(nav_msgs__srv__GetMap_Response__Sequence * array, size_t size); - -/// Finalize array of srv/GetMap messages. -/** - * It calls - * nav_msgs__srv__GetMap_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetMap_Response__Sequence__fini(nav_msgs__srv__GetMap_Response__Sequence * array); - -/// Create array of srv/GetMap messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__srv__GetMap_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__GetMap_Response__Sequence * -nav_msgs__srv__GetMap_Response__Sequence__create(size_t size); - -/// Destroy array of srv/GetMap messages. -/** - * It calls - * nav_msgs__srv__GetMap_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetMap_Response__Sequence__destroy(nav_msgs__srv__GetMap_Response__Sequence * array); - -/// Check for srv/GetMap message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Response__Sequence__are_equal(const nav_msgs__srv__GetMap_Response__Sequence * lhs, const nav_msgs__srv__GetMap_Response__Sequence * rhs); - -/// Copy an array of srv/GetMap messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Response__Sequence__copy( - const nav_msgs__srv__GetMap_Response__Sequence * input, - nav_msgs__srv__GetMap_Response__Sequence * output); - -/// Initialize srv/GetMap message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__srv__GetMap_Event - * )) before or use - * nav_msgs__srv__GetMap_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Event__init(nav_msgs__srv__GetMap_Event * msg); - -/// Finalize srv/GetMap message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetMap_Event__fini(nav_msgs__srv__GetMap_Event * msg); - -/// Create srv/GetMap message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__srv__GetMap_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__GetMap_Event * -nav_msgs__srv__GetMap_Event__create(void); - -/// Destroy srv/GetMap message. -/** - * It calls - * nav_msgs__srv__GetMap_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetMap_Event__destroy(nav_msgs__srv__GetMap_Event * msg); - -/// Check for srv/GetMap message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Event__are_equal(const nav_msgs__srv__GetMap_Event * lhs, const nav_msgs__srv__GetMap_Event * rhs); - -/// Copy a srv/GetMap message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Event__copy( - const nav_msgs__srv__GetMap_Event * input, - nav_msgs__srv__GetMap_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__GetMap_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__GetMap_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__GetMap_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__GetMap_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetMap messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__srv__GetMap_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Event__Sequence__init(nav_msgs__srv__GetMap_Event__Sequence * array, size_t size); - -/// Finalize array of srv/GetMap messages. -/** - * It calls - * nav_msgs__srv__GetMap_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetMap_Event__Sequence__fini(nav_msgs__srv__GetMap_Event__Sequence * array); - -/// Create array of srv/GetMap messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__srv__GetMap_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__GetMap_Event__Sequence * -nav_msgs__srv__GetMap_Event__Sequence__create(size_t size); - -/// Destroy array of srv/GetMap messages. -/** - * It calls - * nav_msgs__srv__GetMap_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetMap_Event__Sequence__destroy(nav_msgs__srv__GetMap_Event__Sequence * array); - -/// Check for srv/GetMap message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Event__Sequence__are_equal(const nav_msgs__srv__GetMap_Event__Sequence * lhs, const nav_msgs__srv__GetMap_Event__Sequence * rhs); - -/// Copy an array of srv/GetMap messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetMap_Event__Sequence__copy( - const nav_msgs__srv__GetMap_Event__Sequence * input, - nav_msgs__srv__GetMap_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__GET_MAP__FUNCTIONS_H_ diff --git a/src/nav_msgs/srv/detail/get_map__rosidl_typesupport_introspection_c.h b/src/nav_msgs/srv/detail/get_map__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 2a5b38156..000000000 --- a/src/nav_msgs/srv/detail/get_map__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from nav_msgs:srv/GetMap.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__SRV__DETAIL__GET_MAP__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define NAV_MSGS__SRV__DETAIL__GET_MAP__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, GetMap_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, GetMap_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, GetMap_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, GetMap)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__GET_MAP__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/nav_msgs/srv/detail/get_map__rosidl_typesupport_microxrcedds_c.h b/src/nav_msgs/srv/detail/get_map__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 6932d3d20..000000000 --- a/src/nav_msgs/srv/detail/get_map__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from nav_msgs:srv/GetMap.idl -// generated code does not contain a copyright notice -#ifndef NAV_MSGS__SRV__GET_MAP__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define NAV_MSGS__SRV__GET_MAP__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__srv__GetMap_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__srv__GetMap_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, GetMap_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__srv__GetMap_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__srv__GetMap_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, GetMap_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__srv__GetMap_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__srv__GetMap_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, GetMap_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, GetMap)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__GET_MAP__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/nav_msgs/srv/detail/get_map__struct.h b/src/nav_msgs/srv/detail/get_map__struct.h deleted file mode 100755 index 8b9cf7ab3..000000000 --- a/src/nav_msgs/srv/detail/get_map__struct.h +++ /dev/null @@ -1,101 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from nav_msgs:srv/GetMap.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/srv/get_map.h" - - -#ifndef NAV_MSGS__SRV__DETAIL__GET_MAP__STRUCT_H_ -#define NAV_MSGS__SRV__DETAIL__GET_MAP__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/GetMap in the package nav_msgs. -typedef struct nav_msgs__srv__GetMap_Request -{ - uint8_t structure_needs_at_least_one_member; -} nav_msgs__srv__GetMap_Request; - -// Struct for a sequence of nav_msgs__srv__GetMap_Request. -typedef struct nav_msgs__srv__GetMap_Request__Sequence -{ - nav_msgs__srv__GetMap_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__srv__GetMap_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'map' -#include "nav_msgs/msg/detail/occupancy_grid__struct.h" - -/// Struct defined in srv/GetMap in the package nav_msgs. -typedef struct nav_msgs__srv__GetMap_Response -{ - nav_msgs__msg__OccupancyGrid map; -} nav_msgs__srv__GetMap_Response; - -// Struct for a sequence of nav_msgs__srv__GetMap_Response. -typedef struct nav_msgs__srv__GetMap_Response__Sequence -{ - nav_msgs__srv__GetMap_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__srv__GetMap_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - nav_msgs__srv__GetMap_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - nav_msgs__srv__GetMap_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/GetMap in the package nav_msgs. -typedef struct nav_msgs__srv__GetMap_Event -{ - service_msgs__msg__ServiceEventInfo info; - nav_msgs__srv__GetMap_Request__Sequence request; - nav_msgs__srv__GetMap_Response__Sequence response; -} nav_msgs__srv__GetMap_Event; - -// Struct for a sequence of nav_msgs__srv__GetMap_Event. -typedef struct nav_msgs__srv__GetMap_Event__Sequence -{ - nav_msgs__srv__GetMap_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__srv__GetMap_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__GET_MAP__STRUCT_H_ diff --git a/src/nav_msgs/srv/detail/get_map__type_support.h b/src/nav_msgs/srv/detail/get_map__type_support.h deleted file mode 100755 index ba71e9b9a..000000000 --- a/src/nav_msgs/srv/detail/get_map__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from nav_msgs:srv/GetMap.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/srv/get_map.h" - - -#ifndef NAV_MSGS__SRV__DETAIL__GET_MAP__TYPE_SUPPORT_H_ -#define NAV_MSGS__SRV__DETAIL__GET_MAP__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - GetMap_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - GetMap_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - GetMap_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - GetMap -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - GetMap -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - GetMap -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__GET_MAP__TYPE_SUPPORT_H_ diff --git a/src/nav_msgs/srv/detail/get_plan__functions.h b/src/nav_msgs/srv/detail/get_plan__functions.h deleted file mode 100755 index 6d12e04ef..000000000 --- a/src/nav_msgs/srv/detail/get_plan__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from nav_msgs:srv/GetPlan.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/srv/get_plan.h" - - -#ifndef NAV_MSGS__SRV__DETAIL__GET_PLAN__FUNCTIONS_H_ -#define NAV_MSGS__SRV__DETAIL__GET_PLAN__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "nav_msgs/srv/detail/get_plan__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__GetPlan__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__GetPlan__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__GetPlan__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__GetPlan__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/GetPlan message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__srv__GetPlan_Request - * )) before or use - * nav_msgs__srv__GetPlan_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Request__init(nav_msgs__srv__GetPlan_Request * msg); - -/// Finalize srv/GetPlan message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetPlan_Request__fini(nav_msgs__srv__GetPlan_Request * msg); - -/// Create srv/GetPlan message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__srv__GetPlan_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__GetPlan_Request * -nav_msgs__srv__GetPlan_Request__create(void); - -/// Destroy srv/GetPlan message. -/** - * It calls - * nav_msgs__srv__GetPlan_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetPlan_Request__destroy(nav_msgs__srv__GetPlan_Request * msg); - -/// Check for srv/GetPlan message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Request__are_equal(const nav_msgs__srv__GetPlan_Request * lhs, const nav_msgs__srv__GetPlan_Request * rhs); - -/// Copy a srv/GetPlan message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Request__copy( - const nav_msgs__srv__GetPlan_Request * input, - nav_msgs__srv__GetPlan_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__GetPlan_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__GetPlan_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__GetPlan_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__GetPlan_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetPlan messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__srv__GetPlan_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Request__Sequence__init(nav_msgs__srv__GetPlan_Request__Sequence * array, size_t size); - -/// Finalize array of srv/GetPlan messages. -/** - * It calls - * nav_msgs__srv__GetPlan_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetPlan_Request__Sequence__fini(nav_msgs__srv__GetPlan_Request__Sequence * array); - -/// Create array of srv/GetPlan messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__srv__GetPlan_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__GetPlan_Request__Sequence * -nav_msgs__srv__GetPlan_Request__Sequence__create(size_t size); - -/// Destroy array of srv/GetPlan messages. -/** - * It calls - * nav_msgs__srv__GetPlan_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetPlan_Request__Sequence__destroy(nav_msgs__srv__GetPlan_Request__Sequence * array); - -/// Check for srv/GetPlan message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Request__Sequence__are_equal(const nav_msgs__srv__GetPlan_Request__Sequence * lhs, const nav_msgs__srv__GetPlan_Request__Sequence * rhs); - -/// Copy an array of srv/GetPlan messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Request__Sequence__copy( - const nav_msgs__srv__GetPlan_Request__Sequence * input, - nav_msgs__srv__GetPlan_Request__Sequence * output); - -/// Initialize srv/GetPlan message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__srv__GetPlan_Response - * )) before or use - * nav_msgs__srv__GetPlan_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Response__init(nav_msgs__srv__GetPlan_Response * msg); - -/// Finalize srv/GetPlan message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetPlan_Response__fini(nav_msgs__srv__GetPlan_Response * msg); - -/// Create srv/GetPlan message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__srv__GetPlan_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__GetPlan_Response * -nav_msgs__srv__GetPlan_Response__create(void); - -/// Destroy srv/GetPlan message. -/** - * It calls - * nav_msgs__srv__GetPlan_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetPlan_Response__destroy(nav_msgs__srv__GetPlan_Response * msg); - -/// Check for srv/GetPlan message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Response__are_equal(const nav_msgs__srv__GetPlan_Response * lhs, const nav_msgs__srv__GetPlan_Response * rhs); - -/// Copy a srv/GetPlan message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Response__copy( - const nav_msgs__srv__GetPlan_Response * input, - nav_msgs__srv__GetPlan_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__GetPlan_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__GetPlan_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__GetPlan_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__GetPlan_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetPlan messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__srv__GetPlan_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Response__Sequence__init(nav_msgs__srv__GetPlan_Response__Sequence * array, size_t size); - -/// Finalize array of srv/GetPlan messages. -/** - * It calls - * nav_msgs__srv__GetPlan_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetPlan_Response__Sequence__fini(nav_msgs__srv__GetPlan_Response__Sequence * array); - -/// Create array of srv/GetPlan messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__srv__GetPlan_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__GetPlan_Response__Sequence * -nav_msgs__srv__GetPlan_Response__Sequence__create(size_t size); - -/// Destroy array of srv/GetPlan messages. -/** - * It calls - * nav_msgs__srv__GetPlan_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetPlan_Response__Sequence__destroy(nav_msgs__srv__GetPlan_Response__Sequence * array); - -/// Check for srv/GetPlan message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Response__Sequence__are_equal(const nav_msgs__srv__GetPlan_Response__Sequence * lhs, const nav_msgs__srv__GetPlan_Response__Sequence * rhs); - -/// Copy an array of srv/GetPlan messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Response__Sequence__copy( - const nav_msgs__srv__GetPlan_Response__Sequence * input, - nav_msgs__srv__GetPlan_Response__Sequence * output); - -/// Initialize srv/GetPlan message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__srv__GetPlan_Event - * )) before or use - * nav_msgs__srv__GetPlan_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Event__init(nav_msgs__srv__GetPlan_Event * msg); - -/// Finalize srv/GetPlan message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetPlan_Event__fini(nav_msgs__srv__GetPlan_Event * msg); - -/// Create srv/GetPlan message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__srv__GetPlan_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__GetPlan_Event * -nav_msgs__srv__GetPlan_Event__create(void); - -/// Destroy srv/GetPlan message. -/** - * It calls - * nav_msgs__srv__GetPlan_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetPlan_Event__destroy(nav_msgs__srv__GetPlan_Event * msg); - -/// Check for srv/GetPlan message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Event__are_equal(const nav_msgs__srv__GetPlan_Event * lhs, const nav_msgs__srv__GetPlan_Event * rhs); - -/// Copy a srv/GetPlan message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Event__copy( - const nav_msgs__srv__GetPlan_Event * input, - nav_msgs__srv__GetPlan_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__GetPlan_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__GetPlan_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__GetPlan_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__GetPlan_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetPlan messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__srv__GetPlan_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Event__Sequence__init(nav_msgs__srv__GetPlan_Event__Sequence * array, size_t size); - -/// Finalize array of srv/GetPlan messages. -/** - * It calls - * nav_msgs__srv__GetPlan_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetPlan_Event__Sequence__fini(nav_msgs__srv__GetPlan_Event__Sequence * array); - -/// Create array of srv/GetPlan messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__srv__GetPlan_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__GetPlan_Event__Sequence * -nav_msgs__srv__GetPlan_Event__Sequence__create(size_t size); - -/// Destroy array of srv/GetPlan messages. -/** - * It calls - * nav_msgs__srv__GetPlan_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__GetPlan_Event__Sequence__destroy(nav_msgs__srv__GetPlan_Event__Sequence * array); - -/// Check for srv/GetPlan message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Event__Sequence__are_equal(const nav_msgs__srv__GetPlan_Event__Sequence * lhs, const nav_msgs__srv__GetPlan_Event__Sequence * rhs); - -/// Copy an array of srv/GetPlan messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__GetPlan_Event__Sequence__copy( - const nav_msgs__srv__GetPlan_Event__Sequence * input, - nav_msgs__srv__GetPlan_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__GET_PLAN__FUNCTIONS_H_ diff --git a/src/nav_msgs/srv/detail/get_plan__rosidl_typesupport_introspection_c.h b/src/nav_msgs/srv/detail/get_plan__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 3e9380b27..000000000 --- a/src/nav_msgs/srv/detail/get_plan__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from nav_msgs:srv/GetPlan.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__SRV__DETAIL__GET_PLAN__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define NAV_MSGS__SRV__DETAIL__GET_PLAN__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, GetPlan_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, GetPlan_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, GetPlan_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, GetPlan)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__GET_PLAN__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/nav_msgs/srv/detail/get_plan__rosidl_typesupport_microxrcedds_c.h b/src/nav_msgs/srv/detail/get_plan__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 956c073e8..000000000 --- a/src/nav_msgs/srv/detail/get_plan__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from nav_msgs:srv/GetPlan.idl -// generated code does not contain a copyright notice -#ifndef NAV_MSGS__SRV__GET_PLAN__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define NAV_MSGS__SRV__GET_PLAN__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__srv__GetPlan_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__srv__GetPlan_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, GetPlan_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__srv__GetPlan_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__srv__GetPlan_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, GetPlan_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__srv__GetPlan_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__srv__GetPlan_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, GetPlan_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, GetPlan)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__GET_PLAN__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/nav_msgs/srv/detail/get_plan__struct.h b/src/nav_msgs/srv/detail/get_plan__struct.h deleted file mode 100755 index b3a8cc4ef..000000000 --- a/src/nav_msgs/srv/detail/get_plan__struct.h +++ /dev/null @@ -1,112 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from nav_msgs:srv/GetPlan.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/srv/get_plan.h" - - -#ifndef NAV_MSGS__SRV__DETAIL__GET_PLAN__STRUCT_H_ -#define NAV_MSGS__SRV__DETAIL__GET_PLAN__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'start' -// Member 'goal' -#include "geometry_msgs/msg/detail/pose_stamped__struct.h" - -/// Struct defined in srv/GetPlan in the package nav_msgs. -typedef struct nav_msgs__srv__GetPlan_Request -{ - /// The start pose for the plan - geometry_msgs__msg__PoseStamped start; - /// The final pose of the goal position - geometry_msgs__msg__PoseStamped goal; - /// If the goal is obstructed, how many meters the planner can - /// relax the constraint in x and y before failing. - float tolerance; -} nav_msgs__srv__GetPlan_Request; - -// Struct for a sequence of nav_msgs__srv__GetPlan_Request. -typedef struct nav_msgs__srv__GetPlan_Request__Sequence -{ - nav_msgs__srv__GetPlan_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__srv__GetPlan_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'plan' -#include "nav_msgs/msg/detail/path__struct.h" - -/// Struct defined in srv/GetPlan in the package nav_msgs. -typedef struct nav_msgs__srv__GetPlan_Response -{ - nav_msgs__msg__Path plan; -} nav_msgs__srv__GetPlan_Response; - -// Struct for a sequence of nav_msgs__srv__GetPlan_Response. -typedef struct nav_msgs__srv__GetPlan_Response__Sequence -{ - nav_msgs__srv__GetPlan_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__srv__GetPlan_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - nav_msgs__srv__GetPlan_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - nav_msgs__srv__GetPlan_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/GetPlan in the package nav_msgs. -typedef struct nav_msgs__srv__GetPlan_Event -{ - service_msgs__msg__ServiceEventInfo info; - nav_msgs__srv__GetPlan_Request__Sequence request; - nav_msgs__srv__GetPlan_Response__Sequence response; -} nav_msgs__srv__GetPlan_Event; - -// Struct for a sequence of nav_msgs__srv__GetPlan_Event. -typedef struct nav_msgs__srv__GetPlan_Event__Sequence -{ - nav_msgs__srv__GetPlan_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__srv__GetPlan_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__GET_PLAN__STRUCT_H_ diff --git a/src/nav_msgs/srv/detail/get_plan__type_support.h b/src/nav_msgs/srv/detail/get_plan__type_support.h deleted file mode 100755 index 6ce47e091..000000000 --- a/src/nav_msgs/srv/detail/get_plan__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from nav_msgs:srv/GetPlan.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/srv/get_plan.h" - - -#ifndef NAV_MSGS__SRV__DETAIL__GET_PLAN__TYPE_SUPPORT_H_ -#define NAV_MSGS__SRV__DETAIL__GET_PLAN__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - GetPlan_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - GetPlan_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - GetPlan_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - GetPlan -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - GetPlan -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - GetPlan -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__GET_PLAN__TYPE_SUPPORT_H_ diff --git a/src/nav_msgs/srv/detail/load_map__functions.h b/src/nav_msgs/srv/detail/load_map__functions.h deleted file mode 100755 index 3cf808278..000000000 --- a/src/nav_msgs/srv/detail/load_map__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from nav_msgs:srv/LoadMap.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/srv/load_map.h" - - -#ifndef NAV_MSGS__SRV__DETAIL__LOAD_MAP__FUNCTIONS_H_ -#define NAV_MSGS__SRV__DETAIL__LOAD_MAP__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "nav_msgs/srv/detail/load_map__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__LoadMap__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__LoadMap__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__LoadMap__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__LoadMap__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/LoadMap message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__srv__LoadMap_Request - * )) before or use - * nav_msgs__srv__LoadMap_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Request__init(nav_msgs__srv__LoadMap_Request * msg); - -/// Finalize srv/LoadMap message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__LoadMap_Request__fini(nav_msgs__srv__LoadMap_Request * msg); - -/// Create srv/LoadMap message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__srv__LoadMap_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__LoadMap_Request * -nav_msgs__srv__LoadMap_Request__create(void); - -/// Destroy srv/LoadMap message. -/** - * It calls - * nav_msgs__srv__LoadMap_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__LoadMap_Request__destroy(nav_msgs__srv__LoadMap_Request * msg); - -/// Check for srv/LoadMap message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Request__are_equal(const nav_msgs__srv__LoadMap_Request * lhs, const nav_msgs__srv__LoadMap_Request * rhs); - -/// Copy a srv/LoadMap message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Request__copy( - const nav_msgs__srv__LoadMap_Request * input, - nav_msgs__srv__LoadMap_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__LoadMap_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__LoadMap_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__LoadMap_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__LoadMap_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/LoadMap messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__srv__LoadMap_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Request__Sequence__init(nav_msgs__srv__LoadMap_Request__Sequence * array, size_t size); - -/// Finalize array of srv/LoadMap messages. -/** - * It calls - * nav_msgs__srv__LoadMap_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__LoadMap_Request__Sequence__fini(nav_msgs__srv__LoadMap_Request__Sequence * array); - -/// Create array of srv/LoadMap messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__srv__LoadMap_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__LoadMap_Request__Sequence * -nav_msgs__srv__LoadMap_Request__Sequence__create(size_t size); - -/// Destroy array of srv/LoadMap messages. -/** - * It calls - * nav_msgs__srv__LoadMap_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__LoadMap_Request__Sequence__destroy(nav_msgs__srv__LoadMap_Request__Sequence * array); - -/// Check for srv/LoadMap message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Request__Sequence__are_equal(const nav_msgs__srv__LoadMap_Request__Sequence * lhs, const nav_msgs__srv__LoadMap_Request__Sequence * rhs); - -/// Copy an array of srv/LoadMap messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Request__Sequence__copy( - const nav_msgs__srv__LoadMap_Request__Sequence * input, - nav_msgs__srv__LoadMap_Request__Sequence * output); - -/// Initialize srv/LoadMap message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__srv__LoadMap_Response - * )) before or use - * nav_msgs__srv__LoadMap_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Response__init(nav_msgs__srv__LoadMap_Response * msg); - -/// Finalize srv/LoadMap message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__LoadMap_Response__fini(nav_msgs__srv__LoadMap_Response * msg); - -/// Create srv/LoadMap message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__srv__LoadMap_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__LoadMap_Response * -nav_msgs__srv__LoadMap_Response__create(void); - -/// Destroy srv/LoadMap message. -/** - * It calls - * nav_msgs__srv__LoadMap_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__LoadMap_Response__destroy(nav_msgs__srv__LoadMap_Response * msg); - -/// Check for srv/LoadMap message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Response__are_equal(const nav_msgs__srv__LoadMap_Response * lhs, const nav_msgs__srv__LoadMap_Response * rhs); - -/// Copy a srv/LoadMap message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Response__copy( - const nav_msgs__srv__LoadMap_Response * input, - nav_msgs__srv__LoadMap_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__LoadMap_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__LoadMap_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__LoadMap_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__LoadMap_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/LoadMap messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__srv__LoadMap_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Response__Sequence__init(nav_msgs__srv__LoadMap_Response__Sequence * array, size_t size); - -/// Finalize array of srv/LoadMap messages. -/** - * It calls - * nav_msgs__srv__LoadMap_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__LoadMap_Response__Sequence__fini(nav_msgs__srv__LoadMap_Response__Sequence * array); - -/// Create array of srv/LoadMap messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__srv__LoadMap_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__LoadMap_Response__Sequence * -nav_msgs__srv__LoadMap_Response__Sequence__create(size_t size); - -/// Destroy array of srv/LoadMap messages. -/** - * It calls - * nav_msgs__srv__LoadMap_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__LoadMap_Response__Sequence__destroy(nav_msgs__srv__LoadMap_Response__Sequence * array); - -/// Check for srv/LoadMap message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Response__Sequence__are_equal(const nav_msgs__srv__LoadMap_Response__Sequence * lhs, const nav_msgs__srv__LoadMap_Response__Sequence * rhs); - -/// Copy an array of srv/LoadMap messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Response__Sequence__copy( - const nav_msgs__srv__LoadMap_Response__Sequence * input, - nav_msgs__srv__LoadMap_Response__Sequence * output); - -/// Initialize srv/LoadMap message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__srv__LoadMap_Event - * )) before or use - * nav_msgs__srv__LoadMap_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Event__init(nav_msgs__srv__LoadMap_Event * msg); - -/// Finalize srv/LoadMap message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__LoadMap_Event__fini(nav_msgs__srv__LoadMap_Event * msg); - -/// Create srv/LoadMap message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__srv__LoadMap_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__LoadMap_Event * -nav_msgs__srv__LoadMap_Event__create(void); - -/// Destroy srv/LoadMap message. -/** - * It calls - * nav_msgs__srv__LoadMap_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__LoadMap_Event__destroy(nav_msgs__srv__LoadMap_Event * msg); - -/// Check for srv/LoadMap message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Event__are_equal(const nav_msgs__srv__LoadMap_Event * lhs, const nav_msgs__srv__LoadMap_Event * rhs); - -/// Copy a srv/LoadMap message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Event__copy( - const nav_msgs__srv__LoadMap_Event * input, - nav_msgs__srv__LoadMap_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__LoadMap_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__LoadMap_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__LoadMap_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__LoadMap_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/LoadMap messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__srv__LoadMap_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Event__Sequence__init(nav_msgs__srv__LoadMap_Event__Sequence * array, size_t size); - -/// Finalize array of srv/LoadMap messages. -/** - * It calls - * nav_msgs__srv__LoadMap_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__LoadMap_Event__Sequence__fini(nav_msgs__srv__LoadMap_Event__Sequence * array); - -/// Create array of srv/LoadMap messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__srv__LoadMap_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__LoadMap_Event__Sequence * -nav_msgs__srv__LoadMap_Event__Sequence__create(size_t size); - -/// Destroy array of srv/LoadMap messages. -/** - * It calls - * nav_msgs__srv__LoadMap_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__LoadMap_Event__Sequence__destroy(nav_msgs__srv__LoadMap_Event__Sequence * array); - -/// Check for srv/LoadMap message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Event__Sequence__are_equal(const nav_msgs__srv__LoadMap_Event__Sequence * lhs, const nav_msgs__srv__LoadMap_Event__Sequence * rhs); - -/// Copy an array of srv/LoadMap messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__LoadMap_Event__Sequence__copy( - const nav_msgs__srv__LoadMap_Event__Sequence * input, - nav_msgs__srv__LoadMap_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__LOAD_MAP__FUNCTIONS_H_ diff --git a/src/nav_msgs/srv/detail/load_map__rosidl_typesupport_introspection_c.h b/src/nav_msgs/srv/detail/load_map__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 861371133..000000000 --- a/src/nav_msgs/srv/detail/load_map__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from nav_msgs:srv/LoadMap.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__SRV__DETAIL__LOAD_MAP__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define NAV_MSGS__SRV__DETAIL__LOAD_MAP__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, LoadMap_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, LoadMap_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, LoadMap_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, LoadMap)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__LOAD_MAP__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/nav_msgs/srv/detail/load_map__rosidl_typesupport_microxrcedds_c.h b/src/nav_msgs/srv/detail/load_map__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index c8b33ebcb..000000000 --- a/src/nav_msgs/srv/detail/load_map__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from nav_msgs:srv/LoadMap.idl -// generated code does not contain a copyright notice -#ifndef NAV_MSGS__SRV__LOAD_MAP__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define NAV_MSGS__SRV__LOAD_MAP__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__srv__LoadMap_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__srv__LoadMap_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, LoadMap_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__srv__LoadMap_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__srv__LoadMap_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, LoadMap_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__srv__LoadMap_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__srv__LoadMap_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, LoadMap_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, LoadMap)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__LOAD_MAP__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/nav_msgs/srv/detail/load_map__struct.h b/src/nav_msgs/srv/detail/load_map__struct.h deleted file mode 100755 index 9ff8a5bfd..000000000 --- a/src/nav_msgs/srv/detail/load_map__struct.h +++ /dev/null @@ -1,137 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from nav_msgs:srv/LoadMap.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/srv/load_map.h" - - -#ifndef NAV_MSGS__SRV__DETAIL__LOAD_MAP__STRUCT_H_ -#define NAV_MSGS__SRV__DETAIL__LOAD_MAP__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'map_url' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/LoadMap in the package nav_msgs. -typedef struct nav_msgs__srv__LoadMap_Request -{ - rosidl_runtime_c__String map_url; -} nav_msgs__srv__LoadMap_Request; - -// Struct for a sequence of nav_msgs__srv__LoadMap_Request. -typedef struct nav_msgs__srv__LoadMap_Request__Sequence -{ - nav_msgs__srv__LoadMap_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__srv__LoadMap_Request__Sequence; - -// Constants defined in the message - -/// Constant 'RESULT_SUCCESS'. -enum -{ - nav_msgs__srv__LoadMap_Response__RESULT_SUCCESS = 0 -}; - -/// Constant 'RESULT_MAP_DOES_NOT_EXIST'. -enum -{ - nav_msgs__srv__LoadMap_Response__RESULT_MAP_DOES_NOT_EXIST = 1 -}; - -/// Constant 'RESULT_INVALID_MAP_DATA'. -enum -{ - nav_msgs__srv__LoadMap_Response__RESULT_INVALID_MAP_DATA = 2 -}; - -/// Constant 'RESULT_INVALID_MAP_METADATA'. -enum -{ - nav_msgs__srv__LoadMap_Response__RESULT_INVALID_MAP_METADATA = 3 -}; - -/// Constant 'RESULT_UNDEFINED_FAILURE'. -enum -{ - nav_msgs__srv__LoadMap_Response__RESULT_UNDEFINED_FAILURE = 255 -}; - -// Include directives for member types -// Member 'map' -#include "nav_msgs/msg/detail/occupancy_grid__struct.h" - -/// Struct defined in srv/LoadMap in the package nav_msgs. -typedef struct nav_msgs__srv__LoadMap_Response -{ - /// Returned map is only valid if result equals RESULT_SUCCESS - nav_msgs__msg__OccupancyGrid map; - uint8_t result; -} nav_msgs__srv__LoadMap_Response; - -// Struct for a sequence of nav_msgs__srv__LoadMap_Response. -typedef struct nav_msgs__srv__LoadMap_Response__Sequence -{ - nav_msgs__srv__LoadMap_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__srv__LoadMap_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - nav_msgs__srv__LoadMap_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - nav_msgs__srv__LoadMap_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/LoadMap in the package nav_msgs. -typedef struct nav_msgs__srv__LoadMap_Event -{ - service_msgs__msg__ServiceEventInfo info; - nav_msgs__srv__LoadMap_Request__Sequence request; - nav_msgs__srv__LoadMap_Response__Sequence response; -} nav_msgs__srv__LoadMap_Event; - -// Struct for a sequence of nav_msgs__srv__LoadMap_Event. -typedef struct nav_msgs__srv__LoadMap_Event__Sequence -{ - nav_msgs__srv__LoadMap_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__srv__LoadMap_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__LOAD_MAP__STRUCT_H_ diff --git a/src/nav_msgs/srv/detail/load_map__type_support.h b/src/nav_msgs/srv/detail/load_map__type_support.h deleted file mode 100755 index 60badfb0c..000000000 --- a/src/nav_msgs/srv/detail/load_map__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from nav_msgs:srv/LoadMap.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/srv/load_map.h" - - -#ifndef NAV_MSGS__SRV__DETAIL__LOAD_MAP__TYPE_SUPPORT_H_ -#define NAV_MSGS__SRV__DETAIL__LOAD_MAP__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - LoadMap_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - LoadMap_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - LoadMap_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - LoadMap -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - LoadMap -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - LoadMap -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__LOAD_MAP__TYPE_SUPPORT_H_ diff --git a/src/nav_msgs/srv/detail/set_map__functions.h b/src/nav_msgs/srv/detail/set_map__functions.h deleted file mode 100755 index d94a010cf..000000000 --- a/src/nav_msgs/srv/detail/set_map__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from nav_msgs:srv/SetMap.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/srv/set_map.h" - - -#ifndef NAV_MSGS__SRV__DETAIL__SET_MAP__FUNCTIONS_H_ -#define NAV_MSGS__SRV__DETAIL__SET_MAP__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "nav_msgs/srv/detail/set_map__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__SetMap__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__SetMap__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__SetMap__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__SetMap__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/SetMap message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__srv__SetMap_Request - * )) before or use - * nav_msgs__srv__SetMap_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Request__init(nav_msgs__srv__SetMap_Request * msg); - -/// Finalize srv/SetMap message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__SetMap_Request__fini(nav_msgs__srv__SetMap_Request * msg); - -/// Create srv/SetMap message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__srv__SetMap_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__SetMap_Request * -nav_msgs__srv__SetMap_Request__create(void); - -/// Destroy srv/SetMap message. -/** - * It calls - * nav_msgs__srv__SetMap_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__SetMap_Request__destroy(nav_msgs__srv__SetMap_Request * msg); - -/// Check for srv/SetMap message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Request__are_equal(const nav_msgs__srv__SetMap_Request * lhs, const nav_msgs__srv__SetMap_Request * rhs); - -/// Copy a srv/SetMap message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Request__copy( - const nav_msgs__srv__SetMap_Request * input, - nav_msgs__srv__SetMap_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__SetMap_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__SetMap_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__SetMap_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__SetMap_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetMap messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__srv__SetMap_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Request__Sequence__init(nav_msgs__srv__SetMap_Request__Sequence * array, size_t size); - -/// Finalize array of srv/SetMap messages. -/** - * It calls - * nav_msgs__srv__SetMap_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__SetMap_Request__Sequence__fini(nav_msgs__srv__SetMap_Request__Sequence * array); - -/// Create array of srv/SetMap messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__srv__SetMap_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__SetMap_Request__Sequence * -nav_msgs__srv__SetMap_Request__Sequence__create(size_t size); - -/// Destroy array of srv/SetMap messages. -/** - * It calls - * nav_msgs__srv__SetMap_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__SetMap_Request__Sequence__destroy(nav_msgs__srv__SetMap_Request__Sequence * array); - -/// Check for srv/SetMap message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Request__Sequence__are_equal(const nav_msgs__srv__SetMap_Request__Sequence * lhs, const nav_msgs__srv__SetMap_Request__Sequence * rhs); - -/// Copy an array of srv/SetMap messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Request__Sequence__copy( - const nav_msgs__srv__SetMap_Request__Sequence * input, - nav_msgs__srv__SetMap_Request__Sequence * output); - -/// Initialize srv/SetMap message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__srv__SetMap_Response - * )) before or use - * nav_msgs__srv__SetMap_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Response__init(nav_msgs__srv__SetMap_Response * msg); - -/// Finalize srv/SetMap message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__SetMap_Response__fini(nav_msgs__srv__SetMap_Response * msg); - -/// Create srv/SetMap message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__srv__SetMap_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__SetMap_Response * -nav_msgs__srv__SetMap_Response__create(void); - -/// Destroy srv/SetMap message. -/** - * It calls - * nav_msgs__srv__SetMap_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__SetMap_Response__destroy(nav_msgs__srv__SetMap_Response * msg); - -/// Check for srv/SetMap message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Response__are_equal(const nav_msgs__srv__SetMap_Response * lhs, const nav_msgs__srv__SetMap_Response * rhs); - -/// Copy a srv/SetMap message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Response__copy( - const nav_msgs__srv__SetMap_Response * input, - nav_msgs__srv__SetMap_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__SetMap_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__SetMap_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__SetMap_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__SetMap_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetMap messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__srv__SetMap_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Response__Sequence__init(nav_msgs__srv__SetMap_Response__Sequence * array, size_t size); - -/// Finalize array of srv/SetMap messages. -/** - * It calls - * nav_msgs__srv__SetMap_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__SetMap_Response__Sequence__fini(nav_msgs__srv__SetMap_Response__Sequence * array); - -/// Create array of srv/SetMap messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__srv__SetMap_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__SetMap_Response__Sequence * -nav_msgs__srv__SetMap_Response__Sequence__create(size_t size); - -/// Destroy array of srv/SetMap messages. -/** - * It calls - * nav_msgs__srv__SetMap_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__SetMap_Response__Sequence__destroy(nav_msgs__srv__SetMap_Response__Sequence * array); - -/// Check for srv/SetMap message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Response__Sequence__are_equal(const nav_msgs__srv__SetMap_Response__Sequence * lhs, const nav_msgs__srv__SetMap_Response__Sequence * rhs); - -/// Copy an array of srv/SetMap messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Response__Sequence__copy( - const nav_msgs__srv__SetMap_Response__Sequence * input, - nav_msgs__srv__SetMap_Response__Sequence * output); - -/// Initialize srv/SetMap message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * nav_msgs__srv__SetMap_Event - * )) before or use - * nav_msgs__srv__SetMap_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Event__init(nav_msgs__srv__SetMap_Event * msg); - -/// Finalize srv/SetMap message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__SetMap_Event__fini(nav_msgs__srv__SetMap_Event * msg); - -/// Create srv/SetMap message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * nav_msgs__srv__SetMap_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__SetMap_Event * -nav_msgs__srv__SetMap_Event__create(void); - -/// Destroy srv/SetMap message. -/** - * It calls - * nav_msgs__srv__SetMap_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__SetMap_Event__destroy(nav_msgs__srv__SetMap_Event * msg); - -/// Check for srv/SetMap message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Event__are_equal(const nav_msgs__srv__SetMap_Event * lhs, const nav_msgs__srv__SetMap_Event * rhs); - -/// Copy a srv/SetMap message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Event__copy( - const nav_msgs__srv__SetMap_Event * input, - nav_msgs__srv__SetMap_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_type_hash_t * -nav_msgs__srv__SetMap_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeDescription * -nav_msgs__srv__SetMap_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource * -nav_msgs__srv__SetMap_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -nav_msgs__srv__SetMap_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetMap messages. -/** - * It allocates the memory for the number of elements and calls - * nav_msgs__srv__SetMap_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Event__Sequence__init(nav_msgs__srv__SetMap_Event__Sequence * array, size_t size); - -/// Finalize array of srv/SetMap messages. -/** - * It calls - * nav_msgs__srv__SetMap_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__SetMap_Event__Sequence__fini(nav_msgs__srv__SetMap_Event__Sequence * array); - -/// Create array of srv/SetMap messages. -/** - * It allocates the memory for the array and calls - * nav_msgs__srv__SetMap_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -nav_msgs__srv__SetMap_Event__Sequence * -nav_msgs__srv__SetMap_Event__Sequence__create(size_t size); - -/// Destroy array of srv/SetMap messages. -/** - * It calls - * nav_msgs__srv__SetMap_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void -nav_msgs__srv__SetMap_Event__Sequence__destroy(nav_msgs__srv__SetMap_Event__Sequence * array); - -/// Check for srv/SetMap message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Event__Sequence__are_equal(const nav_msgs__srv__SetMap_Event__Sequence * lhs, const nav_msgs__srv__SetMap_Event__Sequence * rhs); - -/// Copy an array of srv/SetMap messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -nav_msgs__srv__SetMap_Event__Sequence__copy( - const nav_msgs__srv__SetMap_Event__Sequence * input, - nav_msgs__srv__SetMap_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__SET_MAP__FUNCTIONS_H_ diff --git a/src/nav_msgs/srv/detail/set_map__rosidl_typesupport_introspection_c.h b/src/nav_msgs/srv/detail/set_map__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 30fd08cb4..000000000 --- a/src/nav_msgs/srv/detail/set_map__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from nav_msgs:srv/SetMap.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__SRV__DETAIL__SET_MAP__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define NAV_MSGS__SRV__DETAIL__SET_MAP__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, SetMap_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, SetMap_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, SetMap_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_nav_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, nav_msgs, srv, SetMap)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__SET_MAP__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/nav_msgs/srv/detail/set_map__rosidl_typesupport_microxrcedds_c.h b/src/nav_msgs/srv/detail/set_map__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ca7396ef8..000000000 --- a/src/nav_msgs/srv/detail/set_map__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from nav_msgs:srv/SetMap.idl -// generated code does not contain a copyright notice -#ifndef NAV_MSGS__SRV__SET_MAP__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define NAV_MSGS__SRV__SET_MAP__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__srv__SetMap_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__srv__SetMap_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, SetMap_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__srv__SetMap_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__srv__SetMap_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, SetMap_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t get_serialized_size_nav_msgs__srv__SetMap_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -size_t max_serialized_size_nav_msgs__srv__SetMap_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, SetMap_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "nav_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_nav_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, nav_msgs, srv, SetMap)(); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__SET_MAP__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/nav_msgs/srv/detail/set_map__struct.h b/src/nav_msgs/srv/detail/set_map__struct.h deleted file mode 100755 index 51cb167fe..000000000 --- a/src/nav_msgs/srv/detail/set_map__struct.h +++ /dev/null @@ -1,107 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from nav_msgs:srv/SetMap.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/srv/set_map.h" - - -#ifndef NAV_MSGS__SRV__DETAIL__SET_MAP__STRUCT_H_ -#define NAV_MSGS__SRV__DETAIL__SET_MAP__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'map' -#include "nav_msgs/msg/detail/occupancy_grid__struct.h" -// Member 'initial_pose' -#include "geometry_msgs/msg/detail/pose_with_covariance_stamped__struct.h" - -/// Struct defined in srv/SetMap in the package nav_msgs. -typedef struct nav_msgs__srv__SetMap_Request -{ - /// Requested 2D map to be set. - nav_msgs__msg__OccupancyGrid map; - /// Estimated initial pose when setting new map. - geometry_msgs__msg__PoseWithCovarianceStamped initial_pose; -} nav_msgs__srv__SetMap_Request; - -// Struct for a sequence of nav_msgs__srv__SetMap_Request. -typedef struct nav_msgs__srv__SetMap_Request__Sequence -{ - nav_msgs__srv__SetMap_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__srv__SetMap_Request__Sequence; - -// Constants defined in the message - -/// Struct defined in srv/SetMap in the package nav_msgs. -typedef struct nav_msgs__srv__SetMap_Response -{ - /// True if the map was successfully set, false otherwise. - bool success; -} nav_msgs__srv__SetMap_Response; - -// Struct for a sequence of nav_msgs__srv__SetMap_Response. -typedef struct nav_msgs__srv__SetMap_Response__Sequence -{ - nav_msgs__srv__SetMap_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__srv__SetMap_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - nav_msgs__srv__SetMap_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - nav_msgs__srv__SetMap_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/SetMap in the package nav_msgs. -typedef struct nav_msgs__srv__SetMap_Event -{ - service_msgs__msg__ServiceEventInfo info; - nav_msgs__srv__SetMap_Request__Sequence request; - nav_msgs__srv__SetMap_Response__Sequence response; -} nav_msgs__srv__SetMap_Event; - -// Struct for a sequence of nav_msgs__srv__SetMap_Event. -typedef struct nav_msgs__srv__SetMap_Event__Sequence -{ - nav_msgs__srv__SetMap_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} nav_msgs__srv__SetMap_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__SET_MAP__STRUCT_H_ diff --git a/src/nav_msgs/srv/detail/set_map__type_support.h b/src/nav_msgs/srv/detail/set_map__type_support.h deleted file mode 100755 index 07a14bbff..000000000 --- a/src/nav_msgs/srv/detail/set_map__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from nav_msgs:srv/SetMap.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "nav_msgs/srv/set_map.h" - - -#ifndef NAV_MSGS__SRV__DETAIL__SET_MAP__TYPE_SUPPORT_H_ -#define NAV_MSGS__SRV__DETAIL__SET_MAP__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "nav_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - SetMap_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - SetMap_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - SetMap_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - SetMap -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - SetMap -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_nav_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - nav_msgs, - srv, - SetMap -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // NAV_MSGS__SRV__DETAIL__SET_MAP__TYPE_SUPPORT_H_ diff --git a/src/nav_msgs/srv/get_map.h b/src/nav_msgs/srv/get_map.h deleted file mode 100755 index 959e86098..000000000 --- a/src/nav_msgs/srv/get_map.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from nav_msgs:srv/GetMap.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__SRV__GET_MAP_H_ -#define NAV_MSGS__SRV__GET_MAP_H_ - -#include "nav_msgs/srv/detail/get_map__struct.h" -#include "nav_msgs/srv/detail/get_map__functions.h" -#include "nav_msgs/srv/detail/get_map__type_support.h" - -#endif // NAV_MSGS__SRV__GET_MAP_H_ diff --git a/src/nav_msgs/srv/get_plan.h b/src/nav_msgs/srv/get_plan.h deleted file mode 100755 index c42eccf68..000000000 --- a/src/nav_msgs/srv/get_plan.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from nav_msgs:srv/GetPlan.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__SRV__GET_PLAN_H_ -#define NAV_MSGS__SRV__GET_PLAN_H_ - -#include "nav_msgs/srv/detail/get_plan__struct.h" -#include "nav_msgs/srv/detail/get_plan__functions.h" -#include "nav_msgs/srv/detail/get_plan__type_support.h" - -#endif // NAV_MSGS__SRV__GET_PLAN_H_ diff --git a/src/nav_msgs/srv/load_map.h b/src/nav_msgs/srv/load_map.h deleted file mode 100755 index 01dba27b6..000000000 --- a/src/nav_msgs/srv/load_map.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from nav_msgs:srv/LoadMap.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__SRV__LOAD_MAP_H_ -#define NAV_MSGS__SRV__LOAD_MAP_H_ - -#include "nav_msgs/srv/detail/load_map__struct.h" -#include "nav_msgs/srv/detail/load_map__functions.h" -#include "nav_msgs/srv/detail/load_map__type_support.h" - -#endif // NAV_MSGS__SRV__LOAD_MAP_H_ diff --git a/src/nav_msgs/srv/set_map.h b/src/nav_msgs/srv/set_map.h deleted file mode 100755 index 20ddbe4c0..000000000 --- a/src/nav_msgs/srv/set_map.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from nav_msgs:srv/SetMap.idl -// generated code does not contain a copyright notice - -#ifndef NAV_MSGS__SRV__SET_MAP_H_ -#define NAV_MSGS__SRV__SET_MAP_H_ - -#include "nav_msgs/srv/detail/set_map__struct.h" -#include "nav_msgs/srv/detail/set_map__functions.h" -#include "nav_msgs/srv/detail/set_map__type_support.h" - -#endif // NAV_MSGS__SRV__SET_MAP_H_ diff --git a/src/rcl/allocator.h b/src/rcl/allocator.h deleted file mode 100755 index c57ec0fc3..000000000 --- a/src/rcl/allocator.h +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__ALLOCATOR_H_ -#define RCL__ALLOCATOR_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/allocator.h" - -/// Encapsulation of an allocator. -/** - * \sa rcutils_allocator_t - */ -typedef rcutils_allocator_t rcl_allocator_t; - -/// Return a properly initialized rcl_allocator_t with default values. -/** - * \sa rcutils_get_default_allocator() - */ -#define rcl_get_default_allocator rcutils_get_default_allocator - -/// Emulate the behavior of [reallocf](https://linux.die.net/man/3/reallocf). -/** - * \sa rcutils_reallocf() - */ -#define rcl_reallocf rcutils_reallocf - -/// Check that the given allocator is initialized. -/** - * If the allocator is not initialized, run the fail_statement. - */ -#define RCL_CHECK_ALLOCATOR(allocator, fail_statement) \ - RCUTILS_CHECK_ALLOCATOR(allocator, fail_statement) - -/// Check that the given allocator is initialized, or fail with a message. -/** - * If the allocator is not initialized, set the error to msg, and run the fail_statement. - */ -#define RCL_CHECK_ALLOCATOR_WITH_MSG(allocator, msg, fail_statement) \ - RCUTILS_CHECK_ALLOCATOR_WITH_MSG(allocator, msg, fail_statement) - -#ifdef __cplusplus -} -#endif - -#endif // RCL__ALLOCATOR_H_ diff --git a/src/rcl/arguments.h b/src/rcl/arguments.h deleted file mode 100755 index b0289899d..000000000 --- a/src/rcl/arguments.h +++ /dev/null @@ -1,461 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__ARGUMENTS_H_ -#define RCL__ARGUMENTS_H_ - -#include "rcl/allocator.h" -#include "rcl/log_level.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" -#ifdef RCL_MICROROS_COMPLETE_IMPL -#include "rcl_yaml_param_parser/types.h" -#else -typedef bool rcl_params_t; -#endif // RCL_MICROROS_COMPLETE_IMPL - -#ifdef __cplusplus -extern "C" -{ -#endif - -typedef struct rcl_arguments_impl_s rcl_arguments_impl_t; - -/// Hold output of parsing command line arguments. -typedef struct rcl_arguments_s -{ - /// Private implementation pointer. - rcl_arguments_impl_t * impl; -} rcl_arguments_t; - -/// The command-line flag that delineates the start of ROS arguments. -#define RCL_ROS_ARGS_FLAG "--ros-args" - -/// The token that delineates the explicit end of ROS arguments. -#define RCL_ROS_ARGS_EXPLICIT_END_TOKEN "--" - -/// The ROS flag that precedes the setting of a ROS parameter. -#define RCL_PARAM_FLAG "--param" - -/// The short version of the ROS flag that precedes the setting of a ROS parameter. -#define RCL_SHORT_PARAM_FLAG "-p" - -/// The ROS flag that precedes a path to a file containing ROS parameters. -#define RCL_PARAM_FILE_FLAG "--params-file" - -/// The ROS flag that precedes a ROS remapping rule. -#define RCL_REMAP_FLAG "--remap" - -/// The short version of the ROS flag that precedes a ROS remapping rule. -#define RCL_SHORT_REMAP_FLAG "-r" - -/// The ROS flag that precedes the name of a ROS security enclave. -#define RCL_ENCLAVE_FLAG "--enclave" - -/// The short version of the ROS flag that precedes the name of a ROS security enclave. -#define RCL_SHORT_ENCLAVE_FLAG "-e" - -/// The ROS flag that precedes the ROS logging level to set. -#define RCL_LOG_LEVEL_FLAG "--log-level" - -/// The ROS log file name prefix to configure external logging. -#define RCL_EXTERNAL_LOG_FILE_NAME_PREFIX "--log-file-name" - -/// The ROS flag that precedes the name of a configuration file to configure logging. -#define RCL_EXTERNAL_LOG_CONFIG_FLAG "--log-config-file" - -/// The suffix of the ROS flag to enable or disable stdout -/// logging (must be preceded with --enable- or --disable-). -#define RCL_LOG_STDOUT_FLAG_SUFFIX "stdout-logs" - -/// The suffix of the ROS flag to enable or disable rosout -/// logging (must be preceded with --enable- or --disable-). -#define RCL_LOG_ROSOUT_FLAG_SUFFIX "rosout-logs" - -/// The suffix of the ROS flag to enable or disable external library -/// logging (must be preceded with --enable- or --disable-). -#define RCL_LOG_EXT_LIB_FLAG_SUFFIX "external-lib-logs" - -/// Return a rcl_arguments_t struct with members initialized to `NULL`. -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_arguments_t -rcl_get_zero_initialized_arguments(void); - -/// Parse command line arguments into a structure usable by code. -/** - * \sa rcl_get_zero_initialized_arguments() - * - * ROS arguments are expected to be scoped by a leading `--ros-args` flag and a trailing double - * dash token `--` which may be elided if no non-ROS arguments follow after the last `--ros-args`. - * - * Remap rule parsing is supported via `-r/--remap` flags e.g. `--remap from:=to` or `-r from:=to`. - * Successfully parsed remap rules are stored in the order they were given in `argv`. - * If given arguments `{"__ns:=/foo", "__ns:=/bar"}` then the namespace used by nodes in this - * process will be `/foo` and not `/bar`. - * - * \sa rcl_remap_topic_name() - * \sa rcl_remap_service_name() - * \sa rcl_remap_node_name() - * \sa rcl_remap_node_namespace() - * - * Parameter override rule parsing is supported via `-p/--param` flags e.g. `--param name:=value` - * or `-p name:=value`. - * - * The default log level will be parsed as `--log-level level` and logger levels will be parsed as - * multiple `--log-level name:=level`, where `level` is a name representing one of the log levels - * in the `RCUTILS_LOG_SEVERITY` enum, e.g. `info`, `debug`, `warn`, not case sensitive. - * If multiple of these rules are found, the last one parsed will be used. - * - * If an argument does not appear to be a valid ROS argument e.g. a `-r/--remap` flag followed by - * anything but a valid remap rule, parsing will fail immediately. - * - * If an argument does not appear to be a known ROS argument, then it is skipped and left unparsed. - * - * \sa rcl_arguments_get_count_unparsed_ros() - * \sa rcl_arguments_get_unparsed_ros() - * - * All arguments found outside a `--ros-args ... --` scope are skipped and left unparsed. - * - * \sa rcl_arguments_get_count_unparsed() - * \sa rcl_arguments_get_unparsed() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] argc The number of arguments in argv. - * \param[in] argv The values of the arguments. - * \param[in] allocator A valid allocator. - * \param[out] args_output A structure that will contain the result of parsing. - * Must be zero initialized before use. - * \return #RCL_RET_OK if the arguments were parsed successfully, or - * \return #RCL_RET_INVALID_ROS_ARGS if an invalid ROS argument is found, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_parse_arguments( - int argc, - const char * const * argv, - rcl_allocator_t allocator, - rcl_arguments_t * args_output); - -/// Return the number of arguments that were not ROS specific arguments. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] args An arguments structure that has been parsed. - * \return number of unparsed arguments, or - * \return -1 if args is `NULL` or zero initialized. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -int -rcl_arguments_get_count_unparsed( - const rcl_arguments_t * args); - -/// Return a list of indices to non ROS specific arguments. -/** - * Non ROS specific arguments may have been provided i.e. arguments outside a '--ros-args' scope. - * This function populates an array of indices to these arguments in the original argv array. - * Since the first argument is always assumed to be a process name, the list will always contain - * the index 0. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] args An arguments structure that has been parsed. - * \param[in] allocator A valid allocator. - * \param[out] output_unparsed_indices An allocated array of indices into the original argv array. - * This array must be deallocated by the caller using the given allocator. - * If there are no unparsed args then the output will be set to NULL. - * \return #RCL_RET_OK if everything goes correctly, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_arguments_get_unparsed( - const rcl_arguments_t * args, - rcl_allocator_t allocator, - int ** output_unparsed_indices); - -/// Return the number of ROS specific arguments that were not successfully parsed. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] args An arguments structure that has been parsed. - * \return number of unparsed ROS specific arguments, or - * \return -1 if args is `NULL` or zero initialized. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -int -rcl_arguments_get_count_unparsed_ros( - const rcl_arguments_t * args); - -/// Return a list of indices to unknown ROS specific arguments that were left unparsed. -/** - * Some ROS specific arguments may not have been recognized, or were not intended to be - * parsed by rcl. - * This function populates an array of indices to these arguments in the original argv array. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] args An arguments structure that has been parsed. - * \param[in] allocator A valid allocator. - * \param[out] output_unparsed_ros_indices An allocated array of indices into the original argv array. - * This array must be deallocated by the caller using the given allocator. - * If there are no unparsed ROS specific arguments then the output will be set to NULL. - * \return #RCL_RET_OK if everything goes correctly, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_arguments_get_unparsed_ros( - const rcl_arguments_t * args, - rcl_allocator_t allocator, - int ** output_unparsed_ros_indices); - -/// Return the number of parameter yaml files given in the arguments. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] args An arguments structure that has been parsed. - * \return number of yaml files, or - * \return -1 if args is `NULL` or zero initialized. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -int -rcl_arguments_get_param_files_count( - const rcl_arguments_t * args); - - -/// Return a list of yaml parameter file paths specified on the command line. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] arguments An arguments structure that has been parsed. - * \param[in] allocator A valid allocator. - * \param[out] parameter_files An allocated array of paramter file names. - * This array must be deallocated by the caller using the given allocator. - * The output is NULL if there were no paramter files. - * \return #RCL_RET_OK if everything goes correctly, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_arguments_get_param_files( - const rcl_arguments_t * arguments, - rcl_allocator_t allocator, - char *** parameter_files); - -/// Return all parameter overrides parsed from the command line. -/** - * Parameter overrides are parsed directly from command line arguments and - * parameter files provided in the command line. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] arguments An arguments structure that has been parsed. - * \param[out] parameter_overrides Parameter overrides as parsed from command line arguments. - * This structure must be finalized by the caller. - * The output is NULL if no parameter overrides were parsed. - * \return #RCL_RET_OK if everything goes correctly, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_arguments_get_param_overrides( - const rcl_arguments_t * arguments, - rcl_params_t ** parameter_overrides); - -/// Return a list of arguments with ROS-specific arguments removed. -/** - * Some arguments may not have been intended as ROS arguments. - * This function populates an array of the aruments in a new argv array. - * Since the first argument is always assumed to be a process name, the list - * will always contain the first value from the argument vector. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] argv The argument vector - * \param[in] args An arguments structure that has been parsed. - * \param[in] allocator A valid allocator. - * \param[out] nonros_argc The count of arguments that aren't ROS-specific - * \param[out] nonros_argv An allocated array of arguments that aren't ROS-specific - * This array must be deallocated by the caller using the given allocator. - * If there are no non-ROS args, then the output will be set to NULL. - * \return #RCL_RET_OK if everything goes correctly, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_remove_ros_arguments( - const char * const * argv, - const rcl_arguments_t * args, - rcl_allocator_t allocator, - int * nonros_argc, - const char *** nonros_argv); - -/// Return log levels parsed from the command line. -/** - * Log levels are parsed directly from command line arguments. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] arguments An arguments structure that has been parsed. - * \param[out] log_levels Log levels as parsed from command line arguments. - * The output must be finished by the caller if the function successes. - * \return #RCL_RET_OK if everything goes correctly, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_arguments_get_log_levels( - const rcl_arguments_t * arguments, - rcl_log_levels_t * log_levels); - -/// Copy one arguments structure into another. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] args The structure to be copied. - * Its allocator is used to copy memory into the new structure. - * \param[out] args_out A zero-initialized arguments structure to be copied into. - * \return #RCL_RET_OK if the structure was copied successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_arguments_copy( - const rcl_arguments_t * args, - rcl_arguments_t * args_out); - -/// Reclaim resources held inside rcl_arguments_t structure. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] args The structure to be deallocated. - * \return #RCL_RET_OK if the memory was successfully freed, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_arguments_fini( - rcl_arguments_t * args); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__ARGUMENTS_H_ diff --git a/src/rcl/client.h b/src/rcl/client.h deleted file mode 100755 index 46566efdf..000000000 --- a/src/rcl/client.h +++ /dev/null @@ -1,548 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__CLIENT_H_ -#define RCL__CLIENT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/service_type_support_struct.h" - -#include "rcl/allocator.h" -#include "rcl/event_callback.h" -#include "rcl/macros.h" -#include "rcl/node.h" -#include "rcl/publisher.h" -#include "rcl/service_introspection.h" -#include "rcl/time.h" -#include "rcl/visibility_control.h" - -#include "rmw/types.h" - -/// Internal rcl client implementation struct. -typedef struct rcl_client_impl_s rcl_client_impl_t; - -/// Structure which encapsulates a ROS Client. -typedef struct rcl_client_s -{ - /// Pointer to the client implementation - rcl_client_impl_t * impl; -} rcl_client_t; - -/// Options available for a rcl_client_t. -typedef struct rcl_client_options_s -{ - /// Middleware quality of service settings for the client. - rmw_qos_profile_t qos; - /// Custom allocator for the client, used for incidental allocations. - /** For default behavior (malloc/free), use: rcl_get_default_allocator() */ - rcl_allocator_t allocator; -} rcl_client_options_t; - -/// Return a rcl_client_t struct with members set to `NULL`. -/** - * Should be called to get a null rcl_client_t before passing to - * rcl_client_init(). - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_client_t -rcl_get_zero_initialized_client(void); - -/// Initialize a rcl client. -/** - * After calling this function on a rcl_client_t, it can be used to send - * requests of the given type by calling rcl_send_request(). - * If the request is received by a (possibly remote) service and if the service - * sends a response, the client can access the response through - * rcl_take_response() once the response is available to the client. - * - * The given rcl_node_t must be valid and the resulting rcl_client_t is only - * valid as long as the given rcl_node_t remains valid. - * - * The rosidl_service_type_support_t is obtained on a per `.srv` type basis. - * When the user defines a ROS service, code is generated which provides the - * required rosidl_service_type_support_t object. - * This object can be obtained using a language appropriate mechanism. - * \todo TODO(wjwwood) write these instructions once and link to it instead - * - * For C, a macro can be used (for example `example_interfaces/AddTwoInts`): - * - * ```c - * #include - * #include - * - * const rosidl_service_type_support_t * ts = - * ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts); - * ``` - * - * For C++, a template function is used: - * - * ```cpp - * #include - * #include - * - * using rosidl_typesupport_cpp::get_service_type_support_handle; - * const rosidl_service_type_support_t * ts = - * get_service_type_support_handle(); - * ``` - * - * The rosidl_service_type_support_t object contains service type specific - * information used to send or take requests and responses. - * - * The topic name must be a c string which follows the topic and service name - * format rules for unexpanded names, also known as non-fully qualified names: - * - * \see rcl_expand_topic_name - * - * The options struct allows the user to set the quality of service settings as - * well as a custom allocator which is used when initializing/finalizing the - * client to allocate space for incidentals, e.g. the service name string. - * - * Expected usage (for C services): - * - * ```c - * #include - * #include - * #include - * - * rcl_node_t node = rcl_get_zero_initialized_node(); - * rcl_node_options_t node_ops = rcl_node_get_default_options(); - * rcl_ret_t ret = rcl_node_init(&node, "node_name", "/my_namespace", &node_ops); - * // ... error handling - * const rosidl_service_type_support_t * ts = - * ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts); - * rcl_client_t client = rcl_get_zero_initialized_client(); - * rcl_client_options_t client_ops = rcl_client_get_default_options(); - * ret = rcl_client_init(&client, &node, ts, "add_two_ints", &client_ops); - * // ... error handling, and on shutdown do finalization: - * ret = rcl_client_fini(&client, &node); - * // ... error handling for rcl_client_fini() - * ret = rcl_node_fini(&node); - * // ... error handling for rcl_node_fini() - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] client preallocated rcl_client_t structure - * \param[in] node valid rcl_node_t - * \param[in] type_support type support object for the service's type - * \param[in] service_name the name of the service to request - * \param[in] options client options, including quality of service settings - * \return #RCL_RET_OK if the client was initialized successfully, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_ALREADY_INIT if the client is already initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory fails, or - * \return #RCL_RET_SERVICE_NAME_INVALID if the given service name is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_client_init( - rcl_client_t * client, - const rcl_node_t * node, - const rosidl_service_type_support_t * type_support, - const char * service_name, - const rcl_client_options_t * options); - -/// Finalize a rcl_client_t. -/** - * After calling this function, calls to rcl_send_request() and - * rcl_take_response() will fail when using this client. - * However, the given node handle is still valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] client handle to the client to be finalized - * \param[in] node a valid (not finalized) handle to the node used to create the client - * \return #RCL_RET_OK if client was finalized successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_client_fini(rcl_client_t * client, rcl_node_t * node); - -/// Return the default client options in a rcl_client_options_t. -/** - * The defaults are: - * - * - qos = rmw_qos_profile_services_default - * - allocator = rcl_get_default_allocator() - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_client_options_t -rcl_client_get_default_options(void); - -/// Send a ROS request using a client. -/** - * It is the job of the caller to ensure that the type of the `ros_request` - * parameter and the type associate with the client (via the type support) - * match. - * Passing a different type to `send_request` produces undefined behavior and - * cannot be checked by this function and therefore no deliberate error will - * occur. - * - * rcl_send_request() is an non-blocking call. - * - * The ROS request message given by the `ros_request` void pointer is always - * owned by the calling code, but should remain constant during `send_request`. - * - * This function is thread safe so long as access to both the client and the - * `ros_request` is synchronized. - * That means that calling rcl_send_request() from multiple threads is allowed, - * but calling rcl_send_request() at the same time as non-thread safe client - * functions is not, e.g. calling rcl_send_request() and rcl_client_fini() - * concurrently is not allowed. - * The message cannot change during the rcl_send_request() call. - * Before calling rcl_send_request() the message can change but after calling - * rcl_send_request() it depends on RMW implementation behavior. - * The same `ros_request`, however, can be passed to multiple calls of - * rcl_send_request() simultaneously, even if the clients differ. - * The `ros_request` is unmodified by rcl_send_request(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes [1] - * Uses Atomics | No - * Lock-Free | Yes - * [1] for unique pairs of clients and requests, see above for more - * - * \param[in] client handle to the client which will make the response - * \param[in] ros_request type-erased pointer to the ROS request message - * \param[out] sequence_number the sequence number - * \return #RCL_RET_OK if the request was sent successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_CLIENT_INVALID if the client is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_send_request(const rcl_client_t * client, const void * ros_request, int64_t * sequence_number); - - -/// Take a ROS response using a client -/** - * It is the job of the caller to ensure that the type of the `ros_response` - * parameter and the type associate with the client (via the type support) - * match. - * Passing a different type to take_response produces undefined behavior and - * cannot be checked by this function and therefore no deliberate error will - * occur. - * The request_header is an rmw struct for meta-information about the request - * sent (e.g. the sequence number). - * The caller must provide a pointer to an allocated struct. - * This function will populate the struct's fields. - * `ros_response` should point to an already allocated ROS response message - * struct of the correct type, into which the response from the service will be - * copied. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] only if required when filling the message, avoided for fixed sizes - * - * \param[in] client handle to the client which will take the response - * \param[inout] request_header pointer to the request header - * \param[inout] ros_response type-erased pointer to the ROS response message - * \return #RCL_RET_OK if the response was taken successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_CLIENT_INVALID if the client is invalid, or - * \return #RCL_RET_CLIENT_TAKE_FAILED if take failed but no error occurred - * in the middleware, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_take_response_with_info( - const rcl_client_t * client, - rmw_service_info_t * request_header, - void * ros_response); - -/// backwards compatibility function that takes a rmw_request_id_t only -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_take_response( - const rcl_client_t * client, - rmw_request_id_t * request_header, - void * ros_response); - -/// Get the name of the service that this client will request a response from. -/** - * This function returns the client's internal service name string. - * This function can fail, and therefore return `NULL`, if the: - * - client is `NULL` - * - client is invalid (never called init, called fini, or invalid node) - * - * The returned string is only valid as long as the rcl_client_t is valid. - * The value of the string may change if the service name changes, and therefore - * copying the string is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] client pointer to the client - * \return name string if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const char * -rcl_client_get_service_name(const rcl_client_t * client); - -/// Return the rcl client options. -/** - * This function returns the client's internal options struct. - * This function can fail, and therefore return `NULL`, if the: - * - client is `NULL` - * - client is invalid (never called init, called fini, or invalid node) - * - * The returned struct is only valid as long as the rcl_client_t is valid. - * The values in the struct may change if the options of the client change, - * and therefore copying the struct is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] client pointer to the client - * \return options struct if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rcl_client_options_t * -rcl_client_get_options(const rcl_client_t * client); - -/// Return the rmw client handle. -/** - * The handle returned is a pointer to the internally held rmw handle. - * This function can fail, and therefore return `NULL`, if the: - * - client is `NULL` - * - client is invalid (never called init, called fini, or invalid node) - * - * The returned handle is made invalid if the client is finalized or if - * rcl_shutdown() is called. - * The returned handle is not guaranteed to be valid for the life time of the - * client as it may be finalized and recreated itself. - * Therefore it is recommended to get the handle from the client using - * this function each time it is needed and avoid use of the handle - * concurrently with functions that might change it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] client pointer to the rcl client - * \return rmw client handle if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rmw_client_t * -rcl_client_get_rmw_handle(const rcl_client_t * client); - -/// Check that the client is valid. -/** - * The bool returned is `false` if client is invalid. - * The bool returned is `true` otherwise. - * In the case where `false` is to be returned, an error message is set. - * This function cannot fail. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] client pointer to the rcl client - * \return `true` if `client` is valid, otherwise `false` - */ -RCL_PUBLIC -bool -rcl_client_is_valid(const rcl_client_t * client); - -/// Get the actual qos settings of the client's request publisher. -/** - * Used to get the actual qos settings of the client's request publisher. - * The actual configuration applied when using RMW_*_SYSTEM_DEFAULT - * can only be resolved after the creation of the client, and it - * depends on the underlying rmw implementation. - * If the underlying setting in use can't be represented in ROS terms, - * it will be set to RMW_*_UNKNOWN. - * The returned struct is only valid as long as the rcl_client_t is valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] client pointer to the rcl client - * \return qos struct if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rmw_qos_profile_t * -rcl_client_request_publisher_get_actual_qos(const rcl_client_t * client); - -/// Get the actual qos settings of the client's response subscription. -/** - * Used to get the actual qos settings of the client's response subscription. - * The actual configuration applied when using RMW_*_SYSTEM_DEFAULT - * can only be resolved after the creation of the client, and it - * depends on the underlying rmw implementation. - * If the underlying setting in use can't be represented in ROS terms, - * it will be set to RMW_*_UNKNOWN. - * The returned struct is only valid as long as the rcl_client_t is valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] client pointer to the rcl client - * \return qos struct if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rmw_qos_profile_t * -rcl_client_response_subscription_get_actual_qos(const rcl_client_t * client); - -/// Set the on new response callback function for the client. -/** - * This API sets the callback function to be called whenever the - * client is notified about a new response. - * - * \sa rmw_client_set_on_new_response_callback for details about this function. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined - * - * \param[in] client The client on which to set the callback - * \param[in] callback The callback to be called when new responses arrive, may be NULL - * \param[in] user_data Given to the callback when called later, may be NULL - * \return `RCL_RET_OK` if callback was set to the listener, or - * \return `RCL_RET_INVALID_ARGUMENT` if `client` is NULL, or - * \return `RCL_RET_UNSUPPORTED` if the API is not implemented in the dds implementation - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_client_set_on_new_response_callback( - const rcl_client_t * client, - rcl_event_callback_t callback, - const void * user_data); - -/// Configures service introspection features for the client. -/** - * \anchor rcl_client_configure_service_introspection - * Enables or disables service introspection features for this client. - * If the introspection state is RCL_SERVICE_INTROSPECTION_OFF, then introspection will - * be disabled. If the state is RCL_SERVICE_INTROSPECTION_METADATA, the client metadata - * will be published. If the state is RCL_SERVICE_INTROSPECTION_CONTENTS, then the client - * metadata and service request and response contents will be published. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined - * - * \param[in] client client on which to configure service introspection - * \param[in] node valid rcl_node_t to use to create the introspection publisher - * \param[in] clock valid rcl_clock_t to use to generate the introspection timestamps - * \param[in] type_support type support library associated with this client - * \param[in] publisher_options options to use when creating the introspection publisher - * \param[in] introspection_state rcl_service_introspection_state_t describing whether - * introspection should be OFF, METADATA, or CONTENTS - * \return #RCL_RET_OK if the call was successful, or - * \return #RCL_RET_ERROR if the event publisher is invalid, or - * \return #RCL_RET_NODE_INVALID if the given node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if the client or node structure is invalid, - * \return #RCL_RET_BAD_ALLOC if a memory allocation failed - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_client_configure_service_introspection( - rcl_client_t * client, - rcl_node_t * node, - rcl_clock_t * clock, - const rosidl_service_type_support_t * type_support, - const rcl_publisher_options_t publisher_options, - rcl_service_introspection_state_t introspection_state); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__CLIENT_H_ diff --git a/src/rcl/context.h b/src/rcl/context.h deleted file mode 100755 index 06d1ca334..000000000 --- a/src/rcl/context.h +++ /dev/null @@ -1,320 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__CONTEXT_H_ -#define RCL__CONTEXT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/init.h" - -#include "rcl/allocator.h" -#ifdef RCL_MICROROS_COMPLETE_IMPL -#include "rcl/arguments.h" -#endif // RCL_MICROROS_COMPLETE_IMPL -#include "rcl/init_options.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -/// @cond Doxygen_Suppress -#ifdef _MSC_VER -#define RCL_ALIGNAS(N) __declspec(align(N)) -#else -#include -#define RCL_ALIGNAS(N) alignas(N) -#endif -/// @endcond - -/// A unique ID per context instance. -typedef uint64_t rcl_context_instance_id_t; - -typedef struct rcl_context_impl_s rcl_context_impl_t; - -/// Encapsulates the non-global state of an init/shutdown cycle. -/** - * The context is used in the creation of top level entities like nodes and - * guard conditions, as well as to shutdown a specific instance of init. - * - * Here is a diagram of a typical context's lifecycle: - * - * ``` - * +---------------+ - * | | - * +--> uninitialized +---> rcl_get_zero_initialized_context() + - * | | | | - * | +---------------+ | - * | | - * | +-----------------------------------------------+ - * | | - * | +--------v---------+ +-----------------------+ - * | | | | | - * | | zero-initialized +-> rcl_init() +-> initialized and valid +-> rcl_shutdown() + - * | | | | | | - * | +------------------+ +-----------------------+ | - * | | - * | +-----------------------------------------------------------------+ - * | | - * | +------------v------------+ - * | | | - * | | initialized but invalid +---> finalize all entities, then rcl_context_fini() + - * | | | | - * | +-------------------------+ | - * | | - * +---------------------------------------------------------------------------------+ - * ``` - * - * A declared but not defined rcl_context_t instance is considered to be - * "uninitialized", and passing an uninitialized context to any functions will - * result in undefined behavior. - * Some functions, like rcl_init() require the context instance to be - * zero initialized (all members set to "zero" state) before use. - * - * Zero initialization of an rcl_context_t should be done with - * rcl_get_zero_initialized_context(), which ensures the context is in a safe - * state for initialization with rcl_init(). - * - * Initialization of an rcl_context_t should be done with rcl_init(), after - * which the context is considered both initialized and valid. - * After initialization it can be used in the creation of other entities like - * nodes and guard conditions. - * - * At any time the context can be invalidated by calling rcl_shutdown() on - * the rcl_context_t, after which the context is still initialized but now - * invalid. - * - * Invalidation indicates to other entities that the context was shutdown, but - * is still accessible for use during cleanup of themselves. - * - * After being invalidated, and after all of the entities which used it have - * been finalized, the context should be finalized with rcl_context_fini(). - * - * Finalizing the context while entities which have copies of it have not yet - * been finalized is undefined behavior. - * Therefore, the context's lifetime (between calls to rcl_init() and - * rcl_context_fini()) should exceed the lifetime of all entities which use - * it directly (e.g. nodes and guard conditions) or indirectly (e.g. - * subscriptions and topics). - */ -typedef struct rcl_context_s -{ -#ifdef RCL_MICROROS_COMPLETE_IMPL - /// Global arguments for all nodes which share this context. - /** Typically generated by the parsing of argc/argv in rcl_init(). */ - rcl_arguments_t global_arguments; -#endif // RCL_MICROROS_COMPLETE_IMPL - - /// Implementation specific pointer. - rcl_context_impl_t * impl; - - // The assumption that this is big enough for an atomic_uint_least64_t is - // ensured with a static_assert in the context.c file. - // In most cases it should just be a plain uint64_t. - /// Private storage for instance ID atomic. - /** - * Accessing the instance id should be done using the function - * rcl_context_get_instance_id() because the instance id's type is an - * atomic and needs to be accessed properly to ensure safety. - * - * The instance id should not be changed manually - doing so is undefined - * behavior. - * - * The instance id cannot be protected within the `impl` pointer's type - * because it needs to be accessible even when the context is zero - * initialized and therefore `impl` is `NULL`. - * Specifically, storing the instance id in the `impl` would introduce a - * race condition between accessing it and finalizing the context. - * Additionally, C11 atomics (i.e. "stdatomic.h") cannot be used directly - * here in the case that this header is included into a C++ program. - * See this paper for an effort to make this possible in the future: - * http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0943r1.html - */ - uint32_t instance_id_storage; -} rcl_context_t; - -/// Return a zero initialization context object. -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_context_t -rcl_get_zero_initialized_context(void); - -/// Finalize a context. -/** - * The context to be finalized must have been previously initialized with - * rcl_init(), and then later invalidated with rcl_shutdown(). - * A zero-initialized context that has not been initialized can be finalized. - * If context is `NULL`, then #RCL_RET_INVALID_ARGUMENT is returned. - * If context is zero-initialized, then #RCL_RET_OK is returned. - * If context is initialized and valid (rcl_shutdown() was not called on it), - * then #RCL_RET_INVALID_ARGUMENT is returned. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_uint_least64_t` - * - * \param[inout] context object to be finalized. - * \return #RCL_RET_OK if the shutdown was completed successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_context_fini(rcl_context_t * context); - -/// Return the init options used during initialization for this context. -/** - * This function can fail and return `NULL` if: - * - context is NULL - * - context is zero-initialized, e.g. context->impl is `NULL` - * - * If context is uninitialized then that is undefined behavior. - * - * If `NULL` is returned an error message will have been set. - * - * The options are for reference only, and therefore the returned pointer is - * const. - * Changing the values in the options is undefined behavior but will likely - * have no effect. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes - * - * \param[in] context object from which the init options should be retrieved - * \return pointer to the the init options, or - * \return `NULL` if there was an error - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rcl_init_options_t * -rcl_context_get_init_options(const rcl_context_t * context); - -/// Returns an unsigned integer that is unique to the given context, or `0` if invalid. -/** - * The given context must be non-`NULL`, but does not need to be initialized or valid. - * If context is `NULL`, then `0` will be returned. - * If context is uninitialized, then it is undefined behavior. - * - * The instance ID may be `0` if the context is zero-initialized or if the - * context has been invalidated by rcl_shutdown(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_uint_least64_t` - * - * \param[in] context object from which the instance id should be retrieved - * \return a unique id specific to this context instance, or - * \return `0` if invalid, or - * \return `0` if context is `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_context_instance_id_t -rcl_context_get_instance_id(const rcl_context_t * context); - -/// Returns the context domain id. -/** - * \pre If context is uninitialized, then it is undefined behavior. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes [1] - * Uses Atomics | No - * Lock-Free | No - * - * [1] Calling the function asynchronously with rcl_init() or rcl_shutdown() can result - * in the function sometimes succeeding and sometimes returning #RCL_RET_INVALID_ARGUMENT. - * - * \param[in] context from which the domain id should be retrieved. - * \param[out] domain_id output variable where the domain id will be returned. - * \return #RCL_RET_INVALID_ARGUMENT if `context` is invalid (see rcl_context_is_valid()), or - * \return #RCL_RET_INVALID_ARGUMENT if `domain_id` is `NULL`, or - * \return #RCL_RET_OK if the domain id was correctly retrieved. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_context_get_domain_id(rcl_context_t * context, size_t * domain_id); - -/// Return `true` if the given context is currently valid, otherwise `false`. -/** - * If context is `NULL`, then `false` is returned. - * If context is zero-initialized, then `false` is returned. - * If context is uninitialized, then it is undefined behavior. - * - * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_uint_least64_t` - * - * \param[in] context object which should be checked for validity - * \return `true` if valid, otherwise `false` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -bool -rcl_context_is_valid(const rcl_context_t * context); - -/// Return pointer to the rmw context if the given context is currently valid, otherwise `NULL`. -/** - * If context is `NULL`, then `NULL` is returned. - * If context is zero-initialized, then `NULL` is returned. - * If context is uninitialized, then it is undefined behavior. - * - * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_uint_least64_t` - * - * \param[in] context object from which the rmw context should be retrieved. - * \return pointer to rmw context if valid, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rmw_context_t * -rcl_context_get_rmw_context(rcl_context_t * context); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__CONTEXT_H_ diff --git a/src/rcl/discovery_options.h b/src/rcl/discovery_options.h deleted file mode 100755 index a62708eea..000000000 --- a/src/rcl/discovery_options.h +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__DISCOVERY_OPTIONS_H_ -#define RCL__DISCOVERY_OPTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -#include "rcutils/allocator.h" - -#include "rmw/discovery_options.h" - -/// Determine how the user wishes to discover other ROS nodes automatically. -/** - * Use the ROS_AUTOMATIC_DISCOVERY_RANGE environment variable to determine how - * far automatic discovery should be allowed to propagate: - * - * - not at all (no automatic discovery), - * - the local machine only, - * - or the subnet (or as far beyond the local system as the middleware can) - * - * When the subnet is specified the automatic discovery mechanism used by the - * rmw implementation dictates how far discovery can propagate on the network, - * e.g. for multicast-based discovery this will be the local subnet, hence the - * name. - * - * The option indicated by the environment variable will be stored in the - * automatic_discovery_range field of the given discovery_options struct. - * - * If the environment variable isn't set, then the default discovery range - * will be the value of the preprocessor definition - * `RCL_DEFAULT_DISCOVERY_RANGE`. - * If the definition is undefined, then the default will be SUBNET. - * It is intended that the default will be LOCALHOST in future versions of ROS. - * - * \param[out] discovery_options Must not be NULL. - * \return #RCL_RET_INVALID_ARGUMENT if an argument is invalid, or - * \return #RCL_RET_ERROR if an unexpected error happened, or - * \return #RCL_RET_OK. - */ -RCL_PUBLIC -rcl_ret_t -rcl_get_automatic_discovery_range(rmw_discovery_options_t * discovery_options); - -/// Convert the automatic discovery range value to a string for easy printing. -/** - * \param[in] automatic_discovery_range range enum to stringify - * \return string version of enum, or NULL if not recognized - */ -RCL_PUBLIC -const char * -rcl_automatic_discovery_range_to_string(rmw_automatic_discovery_range_t automatic_discovery_range); - -/// Determine how the user wishes to discover other ROS nodes via statically-configured peers. -/** - * Use the ROS_STATIC_PEERS environment variable to determine which hosts - * the user wants to communicate with, in addition to localhost. - * - * Values for the static peers are not validated beyond basic string checks, - * e.g. avoiding empty strings, etc. - * Any validation of IP addresses or hostnames is left up to the - * rmw implementation, and therefore what is and is not acceptable in these - * fields is dependent on it. - * - * The general expectation, however, is that IP addresses and hostnames are - * acceptable. - * - * The static peers are split by ';' and returned as a list of fixed length - * c-strings in the static_peers and static_peers_count fields of the given - * discovery_options struct. - * Each peer may only be RMW_DISCOVERY_OPTIONS_STATIC_PEERS_MAX_LENGTH long, - * and if it is longer it will be skipped and a warning log message will be - * produced. - * - * \param[out] discovery_options Must not be NULL. - * \return #RCL_RET_INVALID_ARGUMENT if an argument is invalid, or - * \return #RCL_RET_ERROR if an unexpected error happened, or - * \return #RCL_RET_OK. - */ -RCL_PUBLIC -rcl_ret_t -rcl_get_discovery_static_peers( - rmw_discovery_options_t * discovery_options, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__DISCOVERY_OPTIONS_H_ diff --git a/src/rcl/domain_id.h b/src/rcl/domain_id.h deleted file mode 100755 index 946c6830d..000000000 --- a/src/rcl/domain_id.h +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2019 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__DOMAIN_ID_H_ -#define RCL__DOMAIN_ID_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcl/types.h" -#include "rcl/visibility_control.h" -#include "rmw/domain_id.h" - -/// The default domain ID used by RCL. -#define RCL_DEFAULT_DOMAIN_ID RMW_DEFAULT_DOMAIN_ID - -extern const char * const RCL_DOMAIN_ID_ENV_VAR; - -/// Determine the default domain ID, based on the environment. -/** - * \param[out] domain_id Must not be NULL. - * \returns #RCL_RET_INVALID_ARGUMENT if an argument is invalid, or, - * \returns #RCL_RET_ERROR in case of an unexpected error, or, - * \returns #RCL_RET_OK. - */ -RCL_PUBLIC -rcl_ret_t -rcl_get_default_domain_id(size_t * domain_id); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__DOMAIN_ID_H_ diff --git a/src/rcl/dynamic_message_type_support.h b/src/rcl/dynamic_message_type_support.h deleted file mode 100755 index 7fb4f0db0..000000000 --- a/src/rcl/dynamic_message_type_support.h +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL__DYNAMIC_MESSAGE_TYPE_SUPPORT_H_ -#define RCL__DYNAMIC_MESSAGE_TYPE_SUPPORT_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include - -#include "rcl/allocator.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -/// Initialize a rosidl_message_type_support_t struct with dynamic message type support -/// Does not take ownership of description (copies) -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_dynamic_message_type_support_handle_init( - const char * serialization_lib_name, - const rosidl_runtime_c__type_description__TypeDescription * desc, - rcl_allocator_t * allocator, - rosidl_message_type_support_t * ts); // OUT - -/// Finalize a rosidl_message_type_support_t initialized with -/// `rcl_dynamic_message_type_support_handle_init()` -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_dynamic_message_type_support_handle_fini(rosidl_message_type_support_t * ts); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__DYNAMIC_MESSAGE_TYPE_SUPPORT_H_ diff --git a/src/rcl/error_handling.h b/src/rcl/error_handling.h deleted file mode 100755 index f06c892f1..000000000 --- a/src/rcl/error_handling.h +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL__ERROR_HANDLING_H_ -#define RCL__ERROR_HANDLING_H_ - -#include "rcutils/error_handling.h" - -/// The error handling in RCL is just an alias to the error handling in rcutils. - -typedef rcutils_error_state_t rcl_error_state_t; -typedef rcutils_error_string_t rcl_error_string_t; - -#define rcl_initialize_error_handling_thread_local_storage \ - rcutils_initialize_error_handling_thread_local_storage - -#define rcl_set_error_state rcutils_set_error_state - -#define RCL_CHECK_ARGUMENT_FOR_NULL(argument, error_return_type) \ - RCUTILS_CHECK_ARGUMENT_FOR_NULL(argument, error_return_type) - -#define RCL_CHECK_FOR_NULL_WITH_MSG(value, msg, error_statement) \ - RCUTILS_CHECK_FOR_NULL_WITH_MSG(value, msg, error_statement) - -#define RCL_SET_ERROR_MSG(msg) RCUTILS_SET_ERROR_MSG(msg) - -#define RCL_SET_ERROR_MSG_WITH_FORMAT_STRING(fmt_str, ...) \ - RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING(fmt_str, __VA_ARGS__) - -#define rcl_error_is_set rcutils_error_is_set - -#define rcl_get_error_state rcutils_get_error_state - -#define rcl_get_error_string rcutils_get_error_string - -#define rcl_reset_error rcutils_reset_error - -#endif // RCL__ERROR_HANDLING_H_ diff --git a/src/rcl/event.h b/src/rcl/event.h deleted file mode 100755 index 0d57c93c1..000000000 --- a/src/rcl/event.h +++ /dev/null @@ -1,241 +0,0 @@ -// Copyright 2019 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__EVENT_H_ -#define RCL__EVENT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcl/client.h" -#include "rcl/event_callback.h" -#include "rcl/macros.h" -#include "rcl/publisher.h" -#include "rcl/service.h" -#include "rcl/subscription.h" -#include "rcl/visibility_control.h" - -/// Enumeration of all of the publisher events that may fire. -typedef enum rcl_publisher_event_type_e -{ - RCL_PUBLISHER_OFFERED_DEADLINE_MISSED, - RCL_PUBLISHER_LIVELINESS_LOST, - RCL_PUBLISHER_OFFERED_INCOMPATIBLE_QOS, - RCL_PUBLISHER_INCOMPATIBLE_TYPE, - RCL_PUBLISHER_MATCHED, -} rcl_publisher_event_type_t; - -/// Enumeration of all of the subscription events that may fire. -typedef enum rcl_subscription_event_type_e -{ - RCL_SUBSCRIPTION_REQUESTED_DEADLINE_MISSED, - RCL_SUBSCRIPTION_LIVELINESS_CHANGED, - RCL_SUBSCRIPTION_REQUESTED_INCOMPATIBLE_QOS, - RCL_SUBSCRIPTION_MESSAGE_LOST, - RCL_SUBSCRIPTION_INCOMPATIBLE_TYPE, - RCL_SUBSCRIPTION_MATCHED, -} rcl_subscription_event_type_t; - -/// Internal rcl implementation struct. -typedef struct rcl_event_impl_s rcl_event_impl_t; - -/// Structure which encapsulates a ROS QoS event handle. -typedef struct rcl_event_s -{ - /// Pointer to the event implementation - rcl_event_impl_t * impl; -} rcl_event_t; - -/// Return a rcl_event_t struct with members set to `NULL`. -/** - * Should be called to get a null rcl_event_t before passing to - * rcl_event_init(). - * - * \return Zero initialized rcl_event_t. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_event_t -rcl_get_zero_initialized_event(void); - -/// Initialize an rcl_event_t with a publisher. -/** - * Fill the rcl_event_t with the publisher and desired event_type. - * - * \param[in,out] event pointer to fill - * \param[in] publisher to get events from - * \param[in] event_type to listen for - * \return #RCL_RET_OK if the rcl_event_t is filled, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory fails, or - * \return #RCL_RET_UNSUPPORTED if event_type is not supported, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_publisher_event_init( - rcl_event_t * event, - const rcl_publisher_t * publisher, - const rcl_publisher_event_type_t event_type); - -/// Initialize an rcl_event_t with a subscription. -/** - * Fill the rcl_event_t with the subscription and desired event_type. - * - * \param[in,out] event pointer to fill - * \param[in] subscription to get events from - * \param[in] event_type to listen for - * \return #RCL_RET_OK if the rcl_event_t is filled, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory fails, or - * \return #RCL_RET_UNSUPPORTED if event_type is not supported, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_subscription_event_init( - rcl_event_t * event, - const rcl_subscription_t * subscription, - const rcl_subscription_event_type_t event_type); - -// Take event using the event handle. -/** - * Take an event from the event handle. - * - * \param[in] event event object to take from - * \param[in, out] event_info event info object to write taken data into - * \return #RCL_RET_OK if successful, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if memory allocation failed, or - * \return #RCL_RET_EVENT_TAKE_FAILED if the take event failed, or - * \return #RCL_RET_ERROR if an unexpected error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_take_event( - const rcl_event_t * event, - void * event_info); - -// Finalize an event. -/** - * Finalize an event. - * - * \param[in] event to finalize - * \return #RCL_RET_OK if successful, or - * \return #RCL_RET_EVENT_INVALID if event is null, or - * \return #RCL_RET_ERROR if an unexpected error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_event_fini(rcl_event_t * event); - -/// Return the rmw event handle. -/** - * The handle returned is a pointer to the internally held rmw handle. - * This function can fail, and therefore return `NULL`, if the: - * - event is `NULL` - * - event is invalid (never called init, called fini, or invalid node) - * - * The returned handle is made invalid if the event is finalized or if - * rcl_shutdown() is called. - * The returned handle is not guaranteed to be valid for the life time of the - * event as it may be finalized and recreated itself. - * Therefore it is recommended to get the handle from the event using - * this function each time it is needed and avoid use of the handle - * concurrently with functions that might change it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] event pointer to the rcl event - * \return rmw event handle if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rmw_event_t * -rcl_event_get_rmw_handle(const rcl_event_t * event); - -/// Check that the event is valid. -/** - * The bool returned is `false` if `event` is invalid. - * The bool returned is `true` otherwise. - * In the case where `false` is to be returned, an error message is set. - * This function cannot fail. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] event pointer to the rcl event - * \return `true` if `event` is valid, otherwise `false` - */ -RCL_PUBLIC -bool -rcl_event_is_valid(const rcl_event_t * event); - -/// Set the callback function for the event. -/** - * This API sets the callback function to be called whenever the - * event is notified about a new instance of the event. - * - * \sa rmw_event_set_callback for more details about this function. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined - * - * \param[in] event The event on which to set the callback - * \param[in] callback The callback to be called when new events occur, may be NULL - * \param[in] user_data Given to the callback when called later, may be NULL - * \return `RCL_RET_OK` if callback was set to the listener, or - * \return `RCL_RET_INVALID_ARGUMENT` if `event` is NULL, or - * \return `RCL_RET_UNSUPPORTED` if the API is not implemented in the dds implementation - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_event_set_callback( - const rcl_event_t * event, - rcl_event_callback_t callback, - const void * user_data); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__EVENT_H_ diff --git a/src/rcl/event_callback.h b/src/rcl/event_callback.h deleted file mode 100755 index 9124907ab..000000000 --- a/src/rcl/event_callback.h +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2021 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL__EVENT_CALLBACK_H_ -#define RCL__EVENT_CALLBACK_H_ - -#include "rmw/event_callback_type.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -typedef rmw_event_callback_t rcl_event_callback_t; - -#ifdef __cplusplus -} -#endif - -#endif // RCL__EVENT_CALLBACK_H_ diff --git a/src/rcl/expand_topic_name.h b/src/rcl/expand_topic_name.h deleted file mode 100755 index 058e57e23..000000000 --- a/src/rcl/expand_topic_name.h +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__EXPAND_TOPIC_NAME_H_ -#define RCL__EXPAND_TOPIC_NAME_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/types/string_map.h" -#include "rcl/allocator.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -/// Expand a given topic name into a fully-qualified topic name. -/** - * The input_topic_name, node_name, and node_namespace arguments must all be - * valid, null terminated c strings. - * The output_topic_name will not be assigned a value in the event of an error. - * - * The output_topic_name will be null terminated. - * It is also allocated, so it needs to be deallocated, when it is no longer - * needed, with the same allocator given to this function. - * Make sure the `char *` which is passed for the output_topic_name does not - * point to allocated memory before calling this function, because it will be - * overwritten and therefore leaked if this function is successful. - * - * Expected usage: - * - * ```c - * rcl_allocator_t allocator = rcl_get_default_allocator(); - * rcutils_allocator_t rcutils_allocator = rcutils_get_default_allocator(); - * rcutils_string_map_t substitutions_map = rcutils_get_zero_initialized_string_map(); - * rcutils_ret_t rcutils_ret = rcutils_string_map_init(&substitutions_map, 0, rcutils_allocator); - * if (rcutils_ret != RCUTILS_RET_OK) { - * // ... error handling - * } - * rcl_ret_t ret = rcl_get_default_topic_name_substitutions(&substitutions_map); - * if (ret != RCL_RET_OK) { - * // ... error handling - * } - * char * expanded_topic_name = NULL; - * ret = rcl_expand_topic_name( - * "some/topic", - * "my_node", - * "my_ns", - * &substitutions_map, - * allocator, - * &expanded_topic_name); - * if (ret != RCL_RET_OK) { - * // ... error handling - * } else { - * RCUTILS_LOG_INFO_NAMED(ROS_PACKAGE_NAME, "Expanded topic name: %s", expanded_topic_name) - * // ... when done the output topic name needs to be deallocated: - * allocator.deallocate(expanded_topic_name, allocator.state); - * } - * ``` - * - * The input topic name is validated using rcl_validate_topic_name(), - * but if it fails validation RCL_RET_TOPIC_NAME_INVALID is returned. - * - * The input node name is validated using rmw_validate_node_name(), - * but if it fails validation RCL_RET_NODE_INVALID_NAME is returned. - * - * The input node namespace is validated using rmw_validate_namespace(), - * but if it fails validation RCL_RET_NODE_INVALID_NAMESPACE is returned. - * - * In addition to what is given by rcl_get_default_topic_name_substitutions(), - * there are there these substitutions: - * - * - {node} -> the name of the node - * - {namespace} -> the namespace of the node - * - {ns} -> the namespace of the node - * - * If an unknown substitution is used, RCL_RET_UNKNOWN_SUBSTITUTION is returned. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] input_topic_name topic name to be expanded - * \param[in] node_name name of the node associated with the topic - * \param[in] node_namespace namespace of the node associated with the topic - * \param[in] substitutions string map with possible substitutions - * \param[in] allocator the allocator to be used when creating the output topic - * \param[out] output_topic_name output char * pointer - * \return #RCL_RET_OK if the topic name was expanded successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_TOPIC_NAME_INVALID if the given topic name is invalid, or - * \return #RCL_RET_NODE_INVALID_NAME if the name is invalid, or - * \return #RCL_RET_NODE_INVALID_NAMESPACE if the namespace_ is invalid, or - * \return #RCL_RET_UNKNOWN_SUBSTITUTION for unknown substitutions in name, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_expand_topic_name( - const char * input_topic_name, - const char * node_name, - const char * node_namespace, - const rcutils_string_map_t * substitutions, - rcl_allocator_t allocator, - char ** output_topic_name); - -/// Fill a given string map with the default substitution pairs. -/** - * If the string map is not initialized RCL_RET_INVALID_ARGUMENT is returned. - * - * \param[inout] string_map rcutils_string_map_t map to be filled with pairs - * \return #RCL_RET_OK if successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_get_default_topic_name_substitutions(rcutils_string_map_t * string_map); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__EXPAND_TOPIC_NAME_H_ diff --git a/src/rcl/graph.h b/src/rcl/graph.h deleted file mode 100755 index 59663d321..000000000 --- a/src/rcl/graph.h +++ /dev/null @@ -1,947 +0,0 @@ -// Copyright 2016-2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__GRAPH_H_ -#define RCL__GRAPH_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -#include "rcutils/time.h" -#include "rcutils/types.h" - -#include "rosidl_runtime_c/service_type_support_struct.h" - -#include "rcl/macros.h" -#include "rcl/client.h" -#include "rcl/node.h" -#include "rcl/visibility_control.h" - -/// A structure that contains topic names and types. -typedef rmw_names_and_types_t rcl_names_and_types_t; - -/// A structure that encapsulates the node name, node namespace, -/// topic type, gid, and qos_profile or publishers and subscriptions -/// for a topic. -typedef rmw_topic_endpoint_info_t rcl_topic_endpoint_info_t; - -/// An array of topic endpoint information. -typedef rmw_topic_endpoint_info_array_t rcl_topic_endpoint_info_array_t; - -/// Return a zero-initialized rcl_names_and_types_t structure. -#define rcl_get_zero_initialized_names_and_types rmw_get_zero_initialized_names_and_types - -/// Return a zero-initialized rcl_topic_endpoint_info_t structure. -#define rcl_get_zero_initialized_topic_endpoint_info_array \ - rmw_get_zero_initialized_topic_endpoint_info_array - -/// Finalize a topic_endpoint_info_array_t structure. -#define rcl_topic_endpoint_info_array_fini rmw_topic_endpoint_info_array_fini - -/// Return a list of topic names and types for publishers associated with a node. -/** - * The `node` parameter must point to a valid node. - * - * The `topic_names_and_types` parameter must be allocated and zero initialized. - * This function allocates memory for the returned list of names and types and so it is the - * callers responsibility to pass `topic_names_and_types` to rcl_names_and_types_fini() - * when it is no longer needed. - * Failing to do so will result in leaked memory. - * - * There may be some demangling that occurs when listing the names from the middleware - * implementation. - * If the `no_demangle` argument is set to `true`, then this will be avoided and the names will be - * returned as they appear to the middleware. - * - * \see rmw_get_topic_names_and_types for more details on no_demangle - * - * The returned names are not automatically remapped by this function. - * Attempting to create publishers or subscribers using names returned by this function may not - * result in the desired topic name being used depending on the remap rules in use. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator allocator to be used when allocating space for strings - * \param[in] no_demangle if true, list all topics without any demangling - * \param[in] node_name the node name of the topics to return - * \param[in] node_namespace the node namespace of the topics to return - * \param[out] topic_names_and_types list of topic names and their types - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NODE_INVALID_NAME if the node name is invalid, or - * \return #RCL_RET_NODE_INVALID_NAMESPACE if the node namespace is invalid, or - * \return #RCL_RET_NODE_NAME_NON_EXISTENT if the node name wasn't found, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_get_publisher_names_and_types_by_node( - const rcl_node_t * node, - rcl_allocator_t * allocator, - bool no_demangle, - const char * node_name, - const char * node_namespace, - rcl_names_and_types_t * topic_names_and_types); - -/// Return a list of topic names and types for subscriptions associated with a node. -/** - * The `node` parameter must point to a valid node. - * - * The `topic_names_and_types` parameter must be allocated and zero initialized. - * This function allocates memory for the returned list of names and types and so it is the - * callers responsibility to pass `topic_names_and_types` to rcl_names_and_types_fini() - * when it is no longer needed. - * Failing to do so will result in leaked memory. - * - * \see rcl_get_publisher_names_and_types_by_node for details on the `no_demangle` parameter. - * - * The returned names are not automatically remapped by this function. - * Attempting to create publishers or subscribers using names returned by this function may not - * result in the desired topic name being used depending on the remap rules in use. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator allocator to be used when allocating space for strings - * \param[in] no_demangle if true, list all topics without any demangling - * \param[in] node_name the node name of the topics to return - * \param[in] node_namespace the node namespace of the topics to return - * \param[out] topic_names_and_types list of topic names and their types - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NODE_INVALID_NAME if the node name is invalid, or - * \return #RCL_RET_NODE_INVALID_NAMESPACE if the node namespace is invalid, or - * \return #RCL_RET_NODE_NAME_NON_EXISTENT if the node name wasn't found, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_get_subscriber_names_and_types_by_node( - const rcl_node_t * node, - rcl_allocator_t * allocator, - bool no_demangle, - const char * node_name, - const char * node_namespace, - rcl_names_and_types_t * topic_names_and_types); - -/// Return a list of service names and types associated with a node. -/** - * The `node` parameter must point to a valid node. - * - * The `service_names_and_types` parameter must be allocated and zero initialized. - * This function allocates memory for the returned list of names and types and so it is the - * callers responsibility to pass `service_names_and_types` to rcl_names_and_types_fini() - * when it is no longer needed. - * Failing to do so will result in leaked memory. - * - * \see rcl_get_publisher_names_and_types_by_node for details on the `no_demangle` parameter. - * - * The returned names are not automatically remapped by this function. - * Attempting to create service clients using names returned by this function may not - * result in the desired service name being used depending on the remap rules in use. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator allocator to be used when allocating space for strings - * \param[in] node_name the node name of the services to return - * \param[in] node_namespace the node namespace of the services to return - * \param[out] service_names_and_types list of service names and their types - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NODE_INVALID_NAME if the node name is invalid, or - * \return #RCL_RET_NODE_INVALID_NAMESPACE if the node namespace is invalid, or - * \return #RCL_RET_NODE_NAME_NON_EXISTENT if the node name wasn't found, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_get_service_names_and_types_by_node( - const rcl_node_t * node, - rcl_allocator_t * allocator, - const char * node_name, - const char * node_namespace, - rcl_names_and_types_t * service_names_and_types); - -/// Return a list of service client names and types associated with a node. -/** - * The `node` parameter must point to a valid node. - * - * The `service_names_and_types` parameter must be allocated and zero initialized. - * This function allocates memory for the returned list of names and types and so it is the - * callers responsibility to pass `service_names_and_types` to rcl_names_and_types_fini() - * when it is no longer needed. - * Failing to do so will result in leaked memory. - * - * \see rcl_get_publisher_names_and_types_by_node for details on the `no_demangle` parameter. - * - * The returned names are not automatically remapped by this function. - * Attempting to create service servers using names returned by this function may not - * result in the desired service name being used depending on the remap rules in use. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator allocator to be used when allocating space for strings - * \param[in] node_name the node name of the services to return - * \param[in] node_namespace the node namespace of the services to return - * \param[out] service_names_and_types list of service client names and their types - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NODE_INVALID_NAME if the node name is invalid, or - * \return #RCL_RET_NODE_INVALID_NAMESPACE if the node namespace is invalid, or - * \return #RCL_RET_NODE_NAME_NON_EXISTENT if the node name wasn't found, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_get_client_names_and_types_by_node( - const rcl_node_t * node, - rcl_allocator_t * allocator, - const char * node_name, - const char * node_namespace, - rcl_names_and_types_t * service_names_and_types); - -/// Return a list of topic names and their types. -/** - * The `node` parameter must point to a valid node. - * - * The `topic_names_and_types` parameter must be allocated and zero initialized. - * This function allocates memory for the returned list of names and types and so it is the - * callers responsibility to pass `topic_names_and_types` to rcl_names_and_types_fini() - * when it is no longer needed. - * Failing to do so will result in leaked memory. - * - * \see rcl_get_publisher_names_and_types_by_node for details on the `no_demangle` parameter. - * - * The returned names are not automatically remapped by this function. - * Attempting to create publishers or subscribers using names returned by this function may not - * result in the desired topic name being used depending on the remap rules in use. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator allocator to be used when allocating space for strings - * \param[in] no_demangle if true, list all topics without any demangling - * \param[out] topic_names_and_types list of topic names and their types - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NODE_INVALID_NAME if the node name is invalid, or - * \return #RCL_RET_NODE_INVALID_NAMESPACE if the node namespace is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_get_topic_names_and_types( - const rcl_node_t * node, - rcl_allocator_t * allocator, - bool no_demangle, - rcl_names_and_types_t * topic_names_and_types); - -/// Return a list of service names and their types. -/** - * The `node` parameter must point to a valid node. - * - * The `service_names_and_types` parameter must be allocated and zero initialized. - * This function allocates memory for the returned list of names and types and so it is the - * callers responsibility to pass `service_names_and_types` to rcl_names_and_types_fini() - * when it is no longer needed. - * Failing to do so will result in leaked memory. - * - * The returned names are not automatically remapped by this function. - * Attempting to create clients or services using names returned by this function may not result in - * the desired service name being used depending on the remap rules in use. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator allocator to be used when allocating space for strings - * \param[out] service_names_and_types list of service names and their types - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_get_service_names_and_types( - const rcl_node_t * node, - rcl_allocator_t * allocator, - rcl_names_and_types_t * service_names_and_types); - -/// Initialize a rcl_names_and_types_t object. -/** - * This function initializes the string array for the names and allocates space - * for all the string arrays for the types according to the given size, but - * it does not initialize the string array for each set of types. - * However, the string arrays for each set of types is zero initialized. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] names_and_types object to be initialized - * \param[in] size the number of names and sets of types to be stored - * \param[in] allocator to be used to allocate and deallocate memory - * \return #RCL_RET_OK on success, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCL_RET_ERROR when an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_names_and_types_init( - rcl_names_and_types_t * names_and_types, - size_t size, - rcl_allocator_t * allocator); - -/// Finalize a rcl_names_and_types_t object. -/** - * The object is populated when given to one of the rcl_get_*_names_and_types() - * functions. - * This function reclaims any resources allocated during population. - * - * The `names_and_types` parameter must not be `NULL`, and must point to an - * already allocated rcl_names_and_types_t struct that was previously - * passed to a successful rcl_get_*_names_and_types() function call. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] names_and_types struct to be finalized - * \return #RCL_RET_OK if successful, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_names_and_types_fini(rcl_names_and_types_t * names_and_types); - -/// Return a list of node names and their associated namespaces in the ROS graph. -/** - * The `node` parameter must point to a valid node. - * - * The `node_names` and `node_namespaces` parameters must be allocated and zero initialized. - * `node_names` and `node_namespaces` are the output for this function, - * and contain allocated memory. - * Use rcutils_get_zero_initialized_string_array() for initializing an empty - * rcutils_string_array_t struct. - * These `node_names` and `node_namespaces` structs should therefore be passed - * to rcutils_string_array_fini() when they are no longer needed. - * Failing to do so will result in leaked memory. - * - * Example: - * - * ```c - * rcutils_string_array_t node_names = - * rcutils_get_zero_initialized_string_array(); - * rcutils_string_array_t node_namespaces = - * rcutils_get_zero_initialized_string_array(); - * rcl_ret_t ret = rcl_get_node_names(node, &node_names, &node_namespaces); - * if (ret != RCL_RET_OK) { - * // ... error handling - * } - * // ... use the node_names struct, and when done: - * rcutils_ret_t rcutils_ret = rcutils_string_array_fini(&node_names); - * if (rcutils_ret != RCUTILS_RET_OK) { - * // ... error handling - * } - * rcutils_ret_t rcutils_ret = rcutils_string_array_fini(&node_namespaces); - * if (rcutils_ret != RCUTILS_RET_OK) { - * // ... error handling - * } - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator used to control allocation and deallocation of names - * \param[out] node_names struct storing discovered node names - * \param[out] node_namespaces struct storing discovered node namespaces - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_BAD_ALLOC if an error occurred while allocating memory, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NODE_INVALID_NAME if a node with an invalid name is detected, or - * \return #RCL_RET_NODE_INVALID_NAMESPACE if a node with an invalid namespace is detected, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_get_node_names( - const rcl_node_t * node, - rcl_allocator_t allocator, - rcutils_string_array_t * node_names, - rcutils_string_array_t * node_namespaces); - -/// Return a list of node names and their associated namespaces and enclaves in the ROS graph. -/** - * An rcl_get_node_names() equivalent, but including in its output the enclave - * name the node is using. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] RMW implementation in use may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator used to control allocation and deallocation of names - * \param[out] node_names struct storing discovered node names - * \param[out] node_namespaces struct storing discovered node namespaces - * \param[out] enclaves struct storing discovered node enclaves - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_BAD_ALLOC if an error occurred while allocating memory, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_get_node_names_with_enclaves( - const rcl_node_t * node, - rcl_allocator_t allocator, - rcutils_string_array_t * node_names, - rcutils_string_array_t * node_namespaces, - rcutils_string_array_t * enclaves); - -/// Return the number of publishers on a given topic. -/** - * The `node` parameter must point to a valid node. - * - * The `topic_name` parameter must not be `NULL`, and must not be an empty string. - * It should also follow the topic name rules. - * - * See: https://design.ros2.org/articles/topic_and_service_names.html - * - * The `count` parameter must point to a valid bool. - * The `count` parameter is the output for this function and will be set. - * - * In the event that error handling needs to allocate memory, this function - * will try to use the node's allocator. - * - * The topic name is not automatically remapped by this function. - * If there is a publisher created with topic name `foo` and remap rule `foo:=bar` then calling - * this with `topic_name` set to `bar` will return a count of 1, and with `topic_name` set to `foo` - * will return a count of 0. - * /sa rcl_remap_topic_name() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] topic_name the name of the topic in question - * \param[out] count number of publishers on the given topic - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_count_publishers( - const rcl_node_t * node, - const char * topic_name, - size_t * count); - -/// Return the number of subscriptions on a given topic. -/** - * The `node` parameter must point to a valid node. - * - * The `topic_name` parameter must not be `NULL`, and must not be an empty string. - * It should also follow the topic name rules. - * - * See: https://design.ros2.org/articles/topic_and_service_names.html - * - * The `count` parameter must point to a valid bool. - * The `count` parameter is the output for this function and will be set. - * - * In the event that error handling needs to allocate memory, this function - * will try to use the node's allocator. - * - * The topic name is not automatically remapped by this function. - * If there is a subscriber created with topic name `foo` and remap rule `foo:=bar` then calling - * this with `topic_name` set to `bar` will return a count of 1, and with `topic_name` set to `foo` - * will return a count of 0. - * /sa rcl_remap_topic_name() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] topic_name the name of the topic in question - * \param[out] count number of subscriptions on the given topic - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_count_subscribers( - const rcl_node_t * node, - const char * topic_name, - size_t * count); - -/// Return the number of clients on a given service. -/** - * The `node` parameter must point to a valid node. - * - * The `service_name` parameter must not be `NULL`, and must not be an empty string. - * It should also follow the service name rules. - * - * See: https://design.ros2.org/articles/topic_and_service_names.html - * - * The `count` parameter must point to a valid size_t. - * The `count` parameter is the output for this function and will be set. - * - * In the event that error handling needs to allocate memory, this function - * will try to use the node's allocator. - * - * The service name is not automatically remapped by this function. - * If there is a client created with service name `foo` and remap rule `foo:=bar` then calling - * this with `service_name` set to `bar` will return a count of 1, and with `service_name` set to `foo` - * will return a count of 0. - * /sa rcl_remap_service_name() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] service_name the name of the service in question - * \param[out] count number of clients on the given service - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_count_clients( - const rcl_node_t * node, - const char * service_name, - size_t * count); - -/// Return the number of servers on a given service. -/** - * The `node` parameter must point to a valid node. - * - * The `service_name` parameter must not be `NULL`, and must not be an empty string. - * It should also follow the service name rules. - * - * See: https://design.ros2.org/articles/topic_and_service_names.html - * - * The `count` parameter must point to a valid size_t. - * The `count` parameter is the output for this function and will be set. - * - * In the event that error handling needs to allocate memory, this function - * will try to use the node's allocator. - * - * The service name is not automatically remapped by this function. - * If there is a server created with service name `foo` and remap rule `foo:=bar` then calling - * this with `service_name` set to `bar` will return a count of 1, and with `service_name` set to `foo` - * will return a count of 0. - * /sa rcl_remap_service_name() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] service_name the name of the service in question - * \param[out] count number of services on the given service - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_count_services( - const rcl_node_t * node, - const char * service_name, - size_t * count); - -/// Wait for there to be a specified number of publishers on a given topic. -/** - * The `node` parameter must point to a valid node. - * The nodes graph guard condition is used by this function, and therefore the caller should - * take care not to use the guard condition concurrently in any other wait sets. - * - * The `allocator` parameter must point to a valid allocator. - * - * The `topic_name` parameter must not be `NULL`, and must not be an empty string. - * It should also follow the topic name rules. - * - * This function blocks and will return when the number of publishers for `topic_name` - * is greater than or equal to the `count` parameter, or the specified `timeout` is reached. - * - * The `timeout` parameter is in nanoseconds. - * The timeout is based on system time elapsed. - * A negative value disables the timeout (i.e. this function blocks until the number of - * publishers is greater than or equals to `count`). - * - * The `success` parameter must point to a valid bool. - * The `success` parameter is the output for this function and will be set. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator to allocate space for the rcl_wait_set_t used to wait for graph events - * \param[in] topic_name the name of the topic in question - * \param[in] count number of publishers to wait for - * \param[in] timeout maximum duration to wait for publishers - * \param[out] success `true` if the number of publishers is equal to or greater than count, or - * `false` if a timeout occurred waiting for publishers. - * \return #RCL_RET_OK if there was no errors, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMEOUT if a timeout occurs before the number of publishers is detected, or - * \return #RCL_RET_ERROR if an unspecified error occurred. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait_for_publishers( - const rcl_node_t * node, - rcl_allocator_t * allocator, - const char * topic_name, - const size_t count, - rcutils_duration_value_t timeout, - bool * success); - -/// Wait for there to be a specified number of subscribers on a given topic. -/** - * \see rcl_wait_for_publishers - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator to allocate space for the rcl_wait_set_t used to wait for graph events - * \param[in] topic_name the name of the topic in question - * \param[in] count number of subscribers to wait for - * \param[in] timeout maximum duration to wait for subscribers - * \param[out] success `true` if the number of subscribers is equal to or greater than count, or - * `false` if a timeout occurred waiting for subscribers. - * \return #RCL_RET_OK if there was no errors, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMEOUT if a timeout occurs before the number of subscribers is detected, or - * \return #RCL_RET_ERROR if an unspecified error occurred. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait_for_subscribers( - const rcl_node_t * node, - rcl_allocator_t * allocator, - const char * topic_name, - const size_t count, - rcutils_duration_value_t timeout, - bool * success); - -/// Return a list of all publishers to a topic. -/** - * The `node` parameter must point to a valid node. - * - * The `topic_name` parameter must not be `NULL`. - * - * When the `no_mangle` parameter is `true`, the provided `topic_name` should be a valid topic name - * for the middleware (useful when combining ROS with native middleware (e.g. DDS) apps). - * When the `no_mangle` parameter is `false`, the provided `topic_name` should follow - * ROS topic name conventions. - * In either case, the topic name should always be fully qualified. - * - * Each element in the `publishers_info` array will contain the node name, node namespace, - * topic type, gid and the qos profile of the publisher. - * It is the responsibility of the caller to ensure that `publishers_info` parameter points - * to a valid struct of type rcl_topic_endpoint_info_array_t. - * The `count` field inside the struct must be set to 0 and the `info_array` field inside - * the struct must be set to null. - * \see rmw_get_zero_initialized_topic_endpoint_info_array - * - * The `allocator` will be used to allocate memory to the `info_array` member - * inside of `publishers_info`. - * Moreover, every const char * member inside of - * rmw_topic_endpoint_info_t will be assigned a copied value on allocated memory. - * \see rmw_topic_endpoint_info_set_node_name and the likes. - * However, it is the responsibility of the caller to - * reclaim any allocated resources to `publishers_info` to avoid leaking memory. - * \see rmw_topic_endpoint_info_array_fini - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator allocator to be used when allocating space for - * the array inside publishers_info - * \param[in] topic_name the name of the topic in question - * \param[in] no_mangle if `true`, `topic_name` needs to be a valid middleware topic name, - * otherwise it should be a valid ROS topic name - * \param[out] publishers_info a struct representing a list of publisher information - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_get_publishers_info_by_topic( - const rcl_node_t * node, - rcutils_allocator_t * allocator, - const char * topic_name, - bool no_mangle, - rcl_topic_endpoint_info_array_t * publishers_info); - -/// Return a list of all subscriptions to a topic. -/** - * The `node` parameter must point to a valid node. - * - * The `topic_name` parameter must not be `NULL`. - * - * When the `no_mangle` parameter is `true`, the provided `topic_name` should be a valid topic name - * for the middleware (useful when combining ROS with native middleware (e.g. DDS) apps). - * When the `no_mangle` parameter is `false`, the provided `topic_name` should follow - * ROS topic name conventions. - * In either case, the topic name should always be fully qualified. - * - * Each element in the `subscriptions_info` array will contain the node name, node namespace, - * topic type, gid and the qos profile of the subscription. - * It is the responsibility of the caller to ensure that `subscriptions_info` parameter points - * to a valid struct of type rcl_topic_endpoint_info_array_t. - * The `count` field inside the struct must be set to 0 and the `info_array` field inside - * the struct must be set to null. - * \see rmw_get_zero_initialized_topic_endpoint_info_array - * - * The `allocator` will be used to allocate memory to the `info_array` member - * inside of `subscriptions_info`. - * Moreover, every const char * member inside of - * rmw_topic_endpoint_info_t will be assigned a copied value on allocated memory. - * \see rmw_topic_endpoint_info_set_node_name and the likes. - * However, it is the responsibility of the caller to - * reclaim any allocated resources to `subscriptions_info` to avoid leaking memory. - * \see rmw_topic_endpoint_info_array_fini - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator allocator to be used when allocating space for - * the array inside publishers_info - * \param[in] topic_name the name of the topic in question - * \param[in] no_mangle if `true`, `topic_name` needs to be a valid middleware topic name, - * otherwise it should be a valid ROS topic name - * \param[out] subscriptions_info a struct representing a list of subscriptions information - * \return #RCL_RET_OK if the query was successful, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_get_subscriptions_info_by_topic( - const rcl_node_t * node, - rcutils_allocator_t * allocator, - const char * topic_name, - bool no_mangle, - rcl_topic_endpoint_info_array_t * subscriptions_info); - -/// Check if a service server is available for the given service client. -/** - * This function will return true for `is_available` if there is a service server - * available for the given client. - * - * The `node` parameter must point to a valid node. - * - * The `client` parameter must point to a valid client. - * - * The given client and node must match, i.e. the client must have been created - * using the given node. - * - * The `is_available` parameter must not be `NULL`, and must point a bool variable. - * The result of the check will be stored in the `is_available` parameter. - * - * In the event that error handling needs to allocate memory, this function - * will try to use the node's allocator. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] client the handle to the service client being queried - * \param[out] is_available set to true if there is a service server available, else false - * \return #RCL_RET_OK if the check was made successfully (regardless of the service readiness), or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_service_server_is_available( - const rcl_node_t * node, - const rcl_client_t * client, - bool * is_available); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__GRAPH_H_ diff --git a/src/rcl/guard_condition.h b/src/rcl/guard_condition.h deleted file mode 100755 index 368a9a6b4..000000000 --- a/src/rcl/guard_condition.h +++ /dev/null @@ -1,269 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__GUARD_CONDITION_H_ -#define RCL__GUARD_CONDITION_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl/allocator.h" -#include "rcl/context.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -/// Internal rcl guard condition implementation struct. -typedef struct rcl_guard_condition_impl_s rcl_guard_condition_impl_t; - -/// Handle for a rcl guard condition. -typedef struct rcl_guard_condition_s -{ - /// Context associated with this guard condition. - rcl_context_t * context; - - /// Pointer to the guard condition implementation - rcl_guard_condition_impl_t * impl; -} rcl_guard_condition_t; - -/// Options available for a rcl guard condition. -typedef struct rcl_guard_condition_options_s -{ - /// Custom allocator for the guard condition, used for internal allocations. - rcl_allocator_t allocator; -} rcl_guard_condition_options_t; - -/// Return a rcl_guard_condition_t struct with members set to `NULL`. -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_guard_condition_t -rcl_get_zero_initialized_guard_condition(void); - -/// Initialize a rcl guard_condition. -/** - * After calling this function on a rcl_guard_condition_t, it can be passed to - * rcl_wait() and then concurrently it can be triggered to wake-up rcl_wait(). - * - * Expected usage: - * - * ```c - * #include - * - * // ... error handling - * rcl_guard_condition_t guard_condition = rcl_get_zero_initialized_guard_condition(); - * // ... customize guard condition options - * rcl_ret_t ret = rcl_guard_condition_init( - * &guard_condition, context, rcl_guard_condition_get_default_options()); - * // ... error handling, and on shutdown do deinitialization: - * ret = rcl_guard_condition_fini(&guard_condition); - * // ... error handling for rcl_guard_condition_fini() - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] guard_condition preallocated guard_condition structure - * \param[in] context the context instance with which the guard condition - * should be associated - * \param[in] options the guard_condition's options - * \return #RCL_RET_OK if guard_condition was initialized successfully, or - * \return #RCL_RET_ALREADY_INIT if the guard condition is already initialized, or - * \return #RCL_RET_NOT_INIT if the given context is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_guard_condition_init( - rcl_guard_condition_t * guard_condition, - rcl_context_t * context, - const rcl_guard_condition_options_t options); - -/// Same as rcl_guard_condition_init(), but reusing an existing rmw handle. -/** - * In addition to the documentation for rcl_guard_condition_init(), the - * `rmw_guard_condition` parameter must not be `NULL` and must point to a valid - * rmw guard condition. - * - * Also the life time of the rcl guard condition is tied to the life time of - * the rmw guard condition. - * So if the rmw guard condition is destroyed before the rcl guard condition, - * the rcl guard condition becomes invalid. - * - * Similarly if the resulting rcl guard condition is fini'ed before the rmw - * guard condition, then the rmw guard condition is no longer valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] guard_condition preallocated guard_condition structure - * \param[in] rmw_guard_condition existing rmw guard condition to reuse - * \param[in] context the context instance with which the rmw guard condition - * was initialized with, i.e. the rmw context inside rcl context needs to - * match rmw context in rmw guard condition - * \param[in] options the guard_condition's options - * \return #RCL_RET_OK if guard_condition was initialized successfully, or - * \return #RCL_RET_ALREADY_INIT if the guard condition is already initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -rcl_ret_t -rcl_guard_condition_init_from_rmw( - rcl_guard_condition_t * guard_condition, - const rmw_guard_condition_t * rmw_guard_condition, - rcl_context_t * context, - const rcl_guard_condition_options_t options); - -/// Finalize a rcl_guard_condition_t. -/** - * After calling, calls to rcl_trigger_guard_condition() will fail when using - * this guard condition. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No [1] - * Uses Atomics | No - * Lock-Free | Yes - * [1] specifically not thread-safe with rcl_trigger_guard_condition() - * - * \param[inout] guard_condition handle to the guard_condition to be finalized - * \return #RCL_RET_OK if guard_condition was finalized successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_guard_condition_fini(rcl_guard_condition_t * guard_condition); - -/// Return the default options in a rcl_guard_condition_options_t struct. -/** - * The defaults are: - * - * - allocator = rcl_get_default_allocator() - * - * \return the default options in an rcl_guard_condition_options_t struct. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_guard_condition_options_t -rcl_guard_condition_get_default_options(void); - -/// Trigger a rcl guard condition. -/** - * This function can fail, and return RCL_RET_INVALID_ARGUMENT, if the: - * - guard condition is `NULL` - * - guard condition is invalid (never called init or called fini) - * - * A guard condition can be triggered from any thread. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No [1] - * Uses Atomics | No - * Lock-Free | Yes - * [1] it can be called concurrently with itself, even on the same guard condition - * - * \param[in] guard_condition handle to the guard_condition to be triggered - * \return #RCL_RET_OK if the guard condition was triggered, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_trigger_guard_condition(rcl_guard_condition_t * guard_condition); - -/// Return the guard condition options. -/** - * Returned is a pointer to the internally held rcl_guard_condition_options_t. - * This function can fail, and therefore return `NULL`, if the: - * - guard_condition is `NULL` - * - guard_condition is invalid (never called init, called fini, or invalid node) - * - * The returned pointer is made invalid if the guard condition is finalized. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] guard_condition pointer to the rcl guard_condition - * \return rcl guard condition options if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rcl_guard_condition_options_t * -rcl_guard_condition_get_options(const rcl_guard_condition_t * guard_condition); - -/// Return the rmw guard condition handle. -/** - * The handle returned is a pointer to the internally held rmw handle. - * This function can fail, and therefore return `NULL`, if the: - * - guard_condition is `NULL` - * - guard_condition is invalid (never called init, called fini, or invalid node) - * - * The returned handle is made invalid if the guard condition is finalized or - * if rcl_shutdown() is called. - * The returned handle is not guaranteed to be valid for the life time of the - * guard condition as it may be finalized and recreated itself. - * Therefore it is recommended to get the handle from the guard condition using - * this function each time it is needed and avoid use of the handle - * concurrently with functions that might change it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] guard_condition pointer to the rcl guard_condition - * \return rmw guard condition handle if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rmw_guard_condition_t * -rcl_guard_condition_get_rmw_handle(const rcl_guard_condition_t * guard_condition); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__GUARD_CONDITION_H_ diff --git a/src/rcl/init.h b/src/rcl/init.h deleted file mode 100755 index a85aae609..000000000 --- a/src/rcl/init.h +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__INIT_H_ -#define RCL__INIT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl/allocator.h" -#include "rcl/context.h" -#include "rcl/init_options.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -/// Initialization of rcl. -/** - * This function can be run any number of times, so long as the given context - * has been properly prepared. - * - * The given rcl_context_t must be zero initialized with the function - * rcl_get_zero_initialized_context() and must not be already initialized - * by this function. - * If the context is already initialized this function will fail and return the - * #RCL_RET_ALREADY_INIT error code. - * A context may be initialized again after it has been finalized with the - * rcl_shutdown() function and zero initialized again with - * rcl_get_zero_initialized_context(). - * - * The `argc` and `argv` parameters may contain command line arguments for the - * program. - * rcl specific arguments will be parsed, but not removed. - * If `argc` is `0` and `argv` is `NULL` no parameters will be parsed. - * - * The `options` argument must be non-`NULL` and must have been initialized - * with rcl_init_options_init(). - * It is unmodified by this function, and the ownership is not transfered to - * the context, but instead a copy is made into the context for later reference. - * Therefore, the given options need to be cleaned up with - * rcl_init_options_fini() after this function returns. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_uint_least64_t` - * - * \param[in] argc number of strings in argv - * \param[in] argv command line arguments; rcl specific arguments are removed - * \param[in] options options used during initialization - * \param[out] context resulting context object that represents this init - * \return #RCL_RET_OK if initialization is successful, or - * \return #RCL_RET_ALREADY_INIT if rcl_init has already been called, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_INVALID_ROS_ARGS if an invalid ROS argument is found, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_init( - int argc, - char const * const * argv, - const rcl_init_options_t * options, - rcl_context_t * context); - -/// Shutdown a given rcl context. -/** - * The given context must have been initialized with rcl_init(). - * If not, this function will fail with #RCL_RET_ALREADY_SHUTDOWN. - * - * When this function is called: - * - Any rcl objects created using this context are invalidated. - * - Functions called on invalid objects may or may not fail. - * - Calls to rcl_context_is_initialized() will return `false`. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_uint_least64_t` - * - * \param[inout] context object to shutdown - * \return #RCL_RET_OK if the shutdown was completed successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ALREADY_SHUTDOWN if the context is not currently valid, or - * \return #RCL_RET_ERROR if an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_shutdown(rcl_context_t * context); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__INIT_H_ diff --git a/src/rcl/init_options.h b/src/rcl/init_options.h deleted file mode 100755 index f80dd7759..000000000 --- a/src/rcl/init_options.h +++ /dev/null @@ -1,230 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__INIT_OPTIONS_H_ -#define RCL__INIT_OPTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/init.h" - -#include "rcl/allocator.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -typedef struct rcl_init_options_impl_s rcl_init_options_impl_t; - -/// Encapsulation of init options and implementation defined init options. -typedef struct rcl_init_options_s -{ - /// Implementation specific pointer. - rcl_init_options_impl_t * impl; -} rcl_init_options_t; - -/// Return a zero initialized rcl_init_options_t struct. -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_init_options_t -rcl_get_zero_initialized_init_options(void); - -/// Initialize given init_options with the default values and implementation specific values. -/** - * The given allocator is used, if required, during setup of the init options, - * but is also used during initialization. - * - * In either case the given allocator is stored in the returned init options. - * - * The `impl` pointer should not be changed manually. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes - * - * \param[inout] init_options object to be setup - * \param[in] allocator to be used during setup and during initialization - * \return #RCL_RET_OK if setup is successful, or - * \return #RCL_RET_ALREADY_INIT if init_options has already be initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_init_options_init(rcl_init_options_t * init_options, rcl_allocator_t allocator); - -/// Copy the given source init_options to the destination init_options. -/** - * The allocator from the source is used for any allocations and stored in the - * destination. - * - * The destination should either be zero initialized with - * rcl_get_zero_initialized_init_options() or should have had - * rcl_init_options_fini() called on it. - * Giving an already initialized init options for the destination will result - * in a failure with return code #RCL_RET_ALREADY_INIT. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes - * - * \param[in] src rcl_init_options_t object to be copied from - * \param[out] dst rcl_init_options_t object to be copied into - * \return #RCL_RET_OK if the copy is successful, or - * \return #RCL_RET_ALREADY_INIT if the dst has already be initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_init_options_copy(const rcl_init_options_t * src, rcl_init_options_t * dst); - -/// Finalize the given init_options. -/** - * The given init_options must be non-`NULL` and valid, i.e. had - * rcl_init_options_init() called on it but not this function yet. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes - * - * \param[inout] init_options object to be setup - * \return #RCL_RET_OK if setup is successful, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_init_options_fini(rcl_init_options_t * init_options); - -/// Return the domain_id stored in the init options. -/** - * Get the domain id from the specified rcl_init_options_t object. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] init_options object from which the domain id should be retrieved. - * \param[out] domain_id domain id to be set in init_options object. - * \return #RCL_RET_OK if successful, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_init_options_get_domain_id(const rcl_init_options_t * init_options, size_t * domain_id); - -/// Set a domain id in the init options provided. -/** - * Store the domain id in the specified init_options object. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] init_options objects in which to set the specified domain id. - * \param[in] domain_id domain id to be set in init_options object. - * \return #RCL_RET_OK if successful, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_init_options_set_domain_id(rcl_init_options_t * init_options, size_t domain_id); - -/// Return the rmw init options which are stored internally. -/** - * This function can fail and return `NULL` if: - * - init_options is NULL - * - init_options is invalid, e.g. init_options->impl is NULL - * - * If NULL is returned an error message will have been set. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes - * - * \param[in] init_options object from which the rmw init options should be retrieved - * \return pointer to the the rcl init options, or - * \return `NULL` if there was an error - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rmw_init_options_t * -rcl_init_options_get_rmw_init_options(rcl_init_options_t * init_options); - -/// Return the allocator stored in the init_options. -/** - * This function can fail and return `NULL` if: - * - init_options is NULL - * - init_options is invalid, e.g. init_options->impl is NULL - * - * If NULL is returned an error message will have been set. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] init_options object from which the allocator should be retrieved - * \return pointer to the rcl allocator, or - * \return `NULL` if there was an error - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rcl_allocator_t * -rcl_init_options_get_allocator(const rcl_init_options_t * init_options); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__INIT_OPTIONS_H_ diff --git a/src/rcl/lexer.h b/src/rcl/lexer.h deleted file mode 100755 index 5c41ad149..000000000 --- a/src/rcl/lexer.h +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__LEXER_H_ -#define RCL__LEXER_H_ - -#include - -#include "rcl/allocator.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -#if __cplusplus -extern "C" -{ -#endif - -/// Type of lexeme found by lexical analysis. -typedef enum rcl_lexeme_e -{ - /// Indicates no valid lexeme was found (end of input not reached) - RCL_LEXEME_NONE = 0, - /// Indicates end of input has been reached - RCL_LEXEME_EOF = 1, - /// ~/ - RCL_LEXEME_TILDE_SLASH = 2, - /// rosservice:// - RCL_LEXEME_URL_SERVICE = 3, - /// rostopic:// - RCL_LEXEME_URL_TOPIC = 4, - /// : - RCL_LEXEME_COLON = 5, - /// __node or __name - RCL_LEXEME_NODE = 6, - /// __ns - RCL_LEXEME_NS = 7, - /// := - RCL_LEXEME_SEPARATOR = 8, - /// \1 - RCL_LEXEME_BR1 = 9, - /// \2 - RCL_LEXEME_BR2 = 10, - /// \3 - RCL_LEXEME_BR3 = 11, - /// \4 - RCL_LEXEME_BR4 = 12, - /// \5 - RCL_LEXEME_BR5 = 13, - /// \6 - RCL_LEXEME_BR6 = 14, - /// \7 - RCL_LEXEME_BR7 = 15, - /// \8 - RCL_LEXEME_BR8 = 16, - /// \9 - RCL_LEXEME_BR9 = 17, - /// a name between slashes, must match (([a-zA-Z](_)?)|_)([0-9a-zA-Z](_)?)* - RCL_LEXEME_TOKEN = 18, - /// / - RCL_LEXEME_FORWARD_SLASH = 19, - /// * - RCL_LEXEME_WILD_ONE = 20, - /// ** - RCL_LEXEME_WILD_MULTI = 21, - // TODO(hidmic): remove when parameter names are standardized to - // use slashes in lieu of dots - /// \. - RCL_LEXEME_DOT = 22, -} rcl_lexeme_t; - - -/// Do lexical analysis on a string. -/** - * This function analyzes a string to see if it starts with a valid lexeme. - * If the string does not begin with a valid lexeme then lexeme will be RCL_LEXEME_NONE, and the - * length will be set to include the character that made it impossible. - * It will never be longer than the length of the string. - * If the first character is '\0' then lexeme will be RCL_LEXEME_EOF. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] text The string to analyze. - * \param[out] lexeme The type of lexeme found in the string. - * \param[out] length The length of text in the string that constitutes the found lexeme. - * \return #RCL_RET_OK if analysis is successful regardless whether a valid lexeme is found, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_ERROR if an internal bug is detected. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lexer_analyze( - const char * text, - rcl_lexeme_t * lexeme, - size_t * length); - -#if __cplusplus -} -#endif - -#endif // RCL__LEXER_H_ diff --git a/src/rcl/lexer_lookahead.h b/src/rcl/lexer_lookahead.h deleted file mode 100755 index b45be37df..000000000 --- a/src/rcl/lexer_lookahead.h +++ /dev/null @@ -1,264 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__LEXER_LOOKAHEAD_H_ -#define RCL__LEXER_LOOKAHEAD_H_ - -#include - -#include "rcl/allocator.h" -#include "rcl/lexer.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -#if __cplusplus -extern "C" -{ -#endif - -// Forward declaration -typedef struct rcl_lexer_lookahead2_impl_s rcl_lexer_lookahead2_impl_t; - -/// Track lexical analysis and allow looking ahead 2 lexemes. -typedef struct rcl_lexer_lookahead2_s -{ - /// Pointer to the lexer look ahead2 implementation - rcl_lexer_lookahead2_impl_t * impl; -} rcl_lexer_lookahead2_t; - -/// Get a zero initialized rcl_lexer_lookahead2_t instance. -/** - * \sa rcl_lexer_lookahead2_init() - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \return zero initialized lookahead2 buffer. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_lexer_lookahead2_t -rcl_get_zero_initialized_lexer_lookahead2(void); - -/// Initialize an rcl_lexer_lookahead2_t instance. -/** - * The lookahead2 buffer borrows a reference to the provided text. - * The text must not be freed before the buffer is finalized. - * The lookahead2 buffer only needs to be finalized if this function does not return RCL_RET_OK. - * \sa rcl_lexer_lookahead2_fini() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] buffer A buffer that is zero initialized. - * \sa rcl_get_zero_initialized_lexer_lookahead2() - * \param[in] text The string to analyze. - * \param[in] allocator An allocator to use if an error occurs. - * \return #RCL_RET_OK if the buffer is successfully initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurrs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lexer_lookahead2_init( - rcl_lexer_lookahead2_t * buffer, - const char * text, - rcl_allocator_t allocator); - -/// Finalize an instance of an rcl_lexer_lookahead2_t structure. -/** - * \sa rcl_lexer_lookahead2_init() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes [1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] Only allocates if an argument is invalid. - * - * \param[in] buffer The structure to be deallocated. - * \return #RCL_RET_OK if the structure was successfully finalized, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lexer_lookahead2_fini( - rcl_lexer_lookahead2_t * buffer); - -/// Look ahead at the next lexeme in the string. -/** - * Repeated calls to peek will return the same lexeme. - * A parser that deems the next lexeme as valid must accept it to advance lexing. - * \sa rcl_lexer_lookahead2_accept() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes [1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] Only allocates if an argument is invalid or an internal bug is detected. - * - * \param[in] buffer the lookahead2 buffer being used to analyze a string. - * \param[out] next_type an output variable for the next lexeme in the string. - * \return #RCL_RET_OK if peeking was successfull, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lexer_lookahead2_peek( - rcl_lexer_lookahead2_t * buffer, - rcl_lexeme_t * next_type); - -/// Look ahead at the next two lexemes in the string. -/** - * Repeated calls to peek2 will return the same two lexemes. - * A parser that deems the next two lexemes as valid must accept twice to advance lexing. - * \sa rcl_lexer_lookahead2_accept() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes [1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] Only allocates if an argument is invalid or an internal bug is detected. - * - * \param[in] buffer the lookahead2 buffer being used to analyze a string. - * \param[out] next_type1 an output variable for the next lexeme in the string. - * \param[out] next_type2 an output variable for the lexeme after the next lexeme in the string. - * \return #RCL_RET_OK if peeking was successfull, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lexer_lookahead2_peek2( - rcl_lexer_lookahead2_t * buffer, - rcl_lexeme_t * next_type1, - rcl_lexeme_t * next_type2); - -/// Accept a lexeme and advance analysis. -/** - * A token must have been peeked before it can be accepted. - * \sa rcl_lexer_lookahead2_peek() - * \sa rcl_lexer_lookahead2_peek2() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes [1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] Only allocates if an argument is invalid or an error occurs. - * - * \param[in] buffer the lookahead2 buffer being used to analyze a string. - * \param[out] lexeme_text pointer to where lexeme begins in string. - * \param[out] lexeme_text_length length of lexeme_text. - * \return #RCL_RET_OK if peeking was successfull, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lexer_lookahead2_accept( - rcl_lexer_lookahead2_t * buffer, - const char ** lexeme_text, - size_t * lexeme_text_length); - -/// Require the next lexeme to be a certain type and advance analysis. -/** - * This method is a shortcut to peeking and accepting a lexeme. - * It should be used by a parser when there is only one valid lexeme that could come next. - * \sa rcl_lexer_lookahead2_peek() - * \sa rcl_lexer_lookahead2_accept() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes [1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] Only allocates if an argument is invalid or an error occurs. - * - * \param[in] buffer the lookahead2 buffer being used to analyze a string. - * \param[in] type the type the next lexeme must be. - * \param[out] lexeme_text pointer to where lexeme begins in string. - * \param[out] lexeme_text_length length of lexeme_text. - * \return #RCL_RET_OK if the next lexeme was the expected one, or - * \return #RCL_RET_WRONG_LEXEME if the next lexeme was not the expected one, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lexer_lookahead2_expect( - rcl_lexer_lookahead2_t * buffer, - rcl_lexeme_t type, - const char ** lexeme_text, - size_t * lexeme_text_length); - -/// Get the text at the point where it is currently being analyzed. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] buffer the lookahead2 buffer being used to analyze a string. - * \return a pointer inside the original text at the position being analyzed, or - * \return `NULL` if buffer is itself `NULL` or zero initialized, or - * \return an undefined value if buffer is not initialized or has been finalized. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const char * -rcl_lexer_lookahead2_get_text( - const rcl_lexer_lookahead2_t * buffer); - -#if __cplusplus -} -#endif - -#endif // RCL__LEXER_LOOKAHEAD_H_ diff --git a/src/rcl/log_level.h b/src/rcl/log_level.h deleted file mode 100755 index 55b75c083..000000000 --- a/src/rcl/log_level.h +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__LOG_LEVEL_H_ -#define RCL__LOG_LEVEL_H_ - -#include "rcl/allocator.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// typedef for RCUTILS_LOG_SEVERITY; -typedef enum RCUTILS_LOG_SEVERITY rcl_log_severity_t; - -/// A logger item to specify a name and a log level. -typedef struct rcl_logger_setting_s -{ - /// Name for the logger. - const char * name; - /// Minimum log level severity of the logger. - rcl_log_severity_t level; -} rcl_logger_setting_t; - -/// Hold default logger level and other logger setting. -typedef struct rcl_log_levels_s -{ - /// Minimum default logger level severity. - rcl_log_severity_t default_logger_level; - /// Array of logger setting. - rcl_logger_setting_t * logger_settings; - /// Number of logger settings. - size_t num_logger_settings; - /// Capacity of logger settings. - size_t capacity_logger_settings; - /// Allocator used to allocate objects in this struct. - rcl_allocator_t allocator; -} rcl_log_levels_t; - -/// Return a rcl_log_levels_t struct with members initialized to zero value. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \return a rcl_log_levels_t struct with members initialized to zero value. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_log_levels_t -rcl_get_zero_initialized_log_levels(void); - -/// Initialize a log levels structure. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] log_levels The structure to be initialized. - * \param[in] allocator Memory allocator to be used and assigned into log_levels. - * \param[in] logger_count Number of logger settings to be allocated. - * This reserves memory for logger_settings, but doesn't initialize it. - * \return #RCL_RET_OK if the structure was initialized successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if log_levels is NULL, or - * \return #RCL_RET_INVALID_ARGUMENT if log_levels contains initialized memory, or - * \return #RCL_RET_INVALID_ARGUMENT if allocator is invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_log_levels_init( - rcl_log_levels_t * log_levels, const rcl_allocator_t * allocator, size_t logger_count); - -/// Copy one log levels structure into another. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] src The structure to be copied. - * Its allocator is used to copy memory into the new structure. - * \param[out] dst A log levels structure to be copied into. - * \return #RCL_RET_OK if the structure was copied successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if src is NULL, or - * \return #RCL_RET_INVALID_ARGUMENT if src allocator is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if dst is NULL, or - * \return #RCL_RET_INVALID_ARGUMENT if dst contains already allocated memory, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_log_levels_copy(const rcl_log_levels_t * src, rcl_log_levels_t * dst); - -/// Reclaim resources held inside rcl_log_levels_t structure. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] log_levels The structure which its resources have to be deallocated. - * \return #RCL_RET_OK if the memory was successfully freed, or - * \return #RCL_RET_INVALID_ARGUMENT if log_levels is NULL, or - * \return #RCL_RET_INVALID_ARGUMENT if the log_levels allocator is invalid and the structure contains initialized memory. - */ -RCL_PUBLIC -rcl_ret_t -rcl_log_levels_fini(rcl_log_levels_t * log_levels); - -/// Shrink log levels structure. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] log_levels The structure to be shrunk. - * \return #RCL_RET_OK if the memory was successfully shrunk, or - * \return #RCL_RET_INVALID_ARGUMENT if log_levels is NULL or if its allocator is invalid, or - * \return #RCL_RET_BAD_ALLOC if reallocating memory failed. - */ -RCL_PUBLIC -rcl_ret_t -rcl_log_levels_shrink_to_size(rcl_log_levels_t * log_levels); - -/// Add logger setting with a name and a level. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] log_levels The structure where to set the logger log level. - * \param[in] logger_name Name for the logger, a copy of it will be stored in the structure. - * \param[in] log_level Minimum log level severity to be set for logger_name. - * \return #RCL_RET_OK if add logger setting successfully, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_INVALID_ARGUMENT if log_levels is NULL, or - * \return #RCL_RET_INVALID_ARGUMENT if log_levels was not initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if log_levels allocator is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if logger_name is NULL, or - * \return #RCL_RET_ERROR if the log_levels structure is already full. - */ -RCL_PUBLIC -rcl_ret_t -rcl_log_levels_add_logger_setting( - rcl_log_levels_t * log_levels, const char * logger_name, rcl_log_severity_t log_level); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__LOG_LEVEL_H_ diff --git a/src/rcl/logging.h b/src/rcl/logging.h deleted file mode 100755 index 23f54b29d..000000000 --- a/src/rcl/logging.h +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__LOGGING_H_ -#define RCL__LOGGING_H_ - -#include "rcl/allocator.h" -#include "rcl/arguments.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -#include "rcutils/logging.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// The function signature to log messages. -typedef rcutils_logging_output_handler_t rcl_logging_output_handler_t; - -/// Configure the logging system. -/** - * This function should be called during the ROS initialization process. - * It will add the enabled log output appenders to the root logger. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] global_args The global arguments for the system - * \param[in] allocator Used to allocate memory used by the logging system - * \return #RCL_RET_OK if successful, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if a general error occurs - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_logging_configure( - const rcl_arguments_t * global_args, - const rcl_allocator_t * allocator); - -/// Configure the logging system with the provided output handler. -/** - * Similar to rcl_logging_configure, but it uses the provided output handler. - * \sa rcl_logging_configure - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] global_args The global arguments for the system - * \param[in] allocator Used to allocate memory used by the logging system - * \param[in] output_handler Output handler to be installed - * \return #RCL_RET_OK if successful, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if a general error occurs - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_logging_configure_with_output_handler( - const rcl_arguments_t * global_args, - const rcl_allocator_t * allocator, - rcl_logging_output_handler_t output_handler); - -/** - * This function should be called to tear down the logging setup by the configure function. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \return #RCL_RET_OK if successful. - * \return #RCL_RET_ERROR if a general error occurs - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t rcl_logging_fini(void); - -/// See if logging rosout is enabled. -/** - * This function is meant to be used to check if logging rosout is enabled. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \return `TRUE` if logging rosout is enabled, or - * \return `FALSE` if logging rosout is disabled. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -bool rcl_logging_rosout_enabled(void); - -/// Default output handler used by rcl. -/** - * This function can be wrapped in a language specific client library, - * adding the necessary mutual exclusion protection there, and then use - * rcl_logging_configure_with_output_handler() instead of - * rcl_logging_configure(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] location The pointer to the location struct or NULL - * \param[in] severity The severity level - * \param[in] name The name of the logger, must be null terminated c string - * \param[in] timestamp The timestamp for when the log message was made - * \param[in] format The list of arguments to insert into the formatted log message - * \param[in] args argument for the string format - */ -RCL_PUBLIC -void -rcl_logging_multiple_output_handler( - const rcutils_log_location_t * location, - int severity, const char * name, rcutils_time_point_value_t timestamp, - const char * format, va_list * args); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__LOGGING_H_ diff --git a/src/rcl/logging_rosout.h b/src/rcl/logging_rosout.h deleted file mode 100755 index 26cd51420..000000000 --- a/src/rcl/logging_rosout.h +++ /dev/null @@ -1,263 +0,0 @@ -// Copyright 2018-2019 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__LOGGING_ROSOUT_H_ -#define RCL__LOGGING_ROSOUT_H_ - -#include "rcl/allocator.h" -#include "rcl/error_handling.h" -#include "rcl/node.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -#include "rmw/qos_profiles.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// The default qos profile setting for topic /rosout -/** - * - depth = 1000 - * - durability = RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL - * - lifespan = {10, 0} - */ -RCUTILS_DEPRECATED_WITH_MSG("use rmw_qos_profile_rosout_default instead") -static const rmw_qos_profile_t rcl_qos_profile_rosout_default = -{ - RMW_QOS_POLICY_HISTORY_KEEP_LAST, - 1000, - RMW_QOS_POLICY_RELIABILITY_RELIABLE, - RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL, - RMW_QOS_DEADLINE_DEFAULT, - {10, 0}, - RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT, - RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT, - false -}; - -/// Initializes the rcl_logging_rosout features -/** - * Calling this will initialize the rcl_logging_rosout features. This function must be called - * before any other rcl_logging_rosout_* functions can be called. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] allocator The allocator used for metadata related to the rcl_logging_rosout features - * \return #RCL_RET_OK if the rcl_logging_rosout features are successfully initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_logging_rosout_init( - const rcl_allocator_t * allocator); - -/// Uninitializes the rcl_logging_rosout features -/** - * Calling this will set the rcl_logging_rosout features into the an unitialized state that is - * functionally the same as before rcl_logging_rosout_init was called. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \return #RCL_RET_OK if the rcl_logging_rosout feature was successfully unitialized, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_logging_rosout_fini(void); - -/// Creates a rosout publisher for a node and registers it to be used by the logging system -/** - * Calling this for an rcl_node_t will create a new publisher on that node that will be - * used by the logging system to publish all log messages from that Node's logger. - * - * If a publisher already exists for this node then a new publisher will NOT be created. - * - * It is expected that after creating a rosout publisher with this function - * rcl_logging_destroy_rosout_publisher_for_node() will be called for the node to cleanup - * the publisher while the Node is still valid. - * - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node a valid rcl_node_t that the publisher will be created on - * \return #RCL_RET_OK if the logging publisher was created successfully, or - * \return #RCL_RET_NODE_INVALID if the argument is invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_logging_rosout_init_publisher_for_node( - rcl_node_t * node); - -/// Deregisters a rosout publisher for a node and cleans up allocated resources -/** - * Calling this for an rcl_node_t will destroy the rosout publisher on that node and remove it from - * the logging system so that no more Log messages are published to this function. - * - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node a valid rcl_node_t that the publisher will be created on - * \return #RCL_RET_OK if the logging publisher was finalized successfully, or - * \return #RCL_RET_NODE_INVALID if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_logging_rosout_fini_publisher_for_node( - rcl_node_t * node); - -/// The output handler outputs log messages to rosout topics. -/** - * When called with a logger name and log message this function will attempt to - * find a rosout publisher correlated with the logger name and publish a Log - * message out via that publisher. If there is no publisher directly correlated - * with the logger then nothing will be done. - * - * This function is meant to be registered with the logging functions for - * rcutils, and shouldn't be used outside of that context. - * Additionally, arguments like args should be non-null and properly initialized - * otherwise it is undefined behavior. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] location The pointer to the location struct or NULL - * \param[in] severity The severity level - * \param[in] name The name of the logger, must be null terminated c string - * \param[in] timestamp The timestamp for when the log message was made - * \param[in] format The list of arguments to insert into the formatted log message - * \param[in] args argument for the string format - */ -RCL_PUBLIC -void -rcl_logging_rosout_output_handler( - const rcutils_log_location_t * location, - int severity, - const char * name, - rcutils_time_point_value_t timestamp, - const char * format, - va_list * args); - -/// Add a subordinate logger based on a logger -/** - * Calling this will use the existing publisher of `logger_name` on a node to create an subordinate - * logger that will be used by the logging system to publish all log messages from that Node's - * logger. - * - * If a subordinate logger already exists, it will NOT be created. - * - * It is expected that after creating a subordinate logger with this function - * rcl_logging_rosout_remove_sublogger() will be called for the node to cleanup - * the subordinate logger while the publisher of `logger_name` is still valid. - * - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] logger_name a logger_name that has a corresponding rosout publisher on a node - * \param[in] sublogger_name a sublogger name - * \return #RCL_RET_OK if the subordinate logger was created successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NOT_FOUND if the parent logger does not exist, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_logging_rosout_add_sublogger( - const char * logger_name, const char * sublogger_name); - -/// Remove a subordinate logger and cleans up allocated resources -/** - * Calling this will destroy the subordinate logger based on - * `logger_name+RCUTILS_LOGGING_SEPARATOR_STRING+sublogger_name` on that node and remove it from - * the logging system so that no more Log messages are published to this function. - * - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] logger_name a logger_name that has a corresponding rosout publisher on a node - * \param[in] sublogger_name a sublogger name - * \return #RCL_RET_OK if the subordinate logger was finalized successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NOT_FOUND if the sublogger does not exist, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_logging_rosout_remove_sublogger( - const char * logger_name, const char * sublogger_name); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__LOGGING_ROSOUT_H_ diff --git a/src/rcl/macros.h b/src/rcl/macros.h deleted file mode 100755 index 4df9ff427..000000000 --- a/src/rcl/macros.h +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL__MACROS_H_ -#define RCL__MACROS_H_ - -#include "rcutils/macros.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Ignored return values of functions with this macro will emit a warning. -#define RCL_WARN_UNUSED RCUTILS_WARN_UNUSED - -#define RCL_UNUSED(x) RCUTILS_UNUSED(x) - -#ifdef __cplusplus -} -#endif - -#endif // RCL__MACROS_H_ diff --git a/src/rcl/network_flow_endpoints.h b/src/rcl/network_flow_endpoints.h deleted file mode 100755 index 4b0988124..000000000 --- a/src/rcl/network_flow_endpoints.h +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright 2020 Ericsson AB -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - - -#ifndef RCL__NETWORK_FLOW_ENDPOINTS_H_ -#define RCL__NETWORK_FLOW_ENDPOINTS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rcl/allocator.h" -#include "rcl/arguments.h" -#include "rcl/context.h" -#include "rcl/macros.h" -#include "rcl/publisher.h" -#include "rcl/subscription.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -typedef rmw_network_flow_endpoint_t rcl_network_flow_endpoint_t; -typedef rmw_network_flow_endpoint_array_t rcl_network_flow_endpoint_array_t; -typedef rmw_transport_protocol_t rcl_transport_protocol_t; -typedef rmw_internet_protocol_t rcl_internet_protocol_t; - -#define rcl_get_zero_initialized_network_flow_endpoint_array \ - rmw_get_zero_initialized_network_flow_endpoint_array -#define rcl_network_flow_endpoint_array_fini rmw_network_flow_endpoint_array_fini - -#define rcl_network_flow_endpoint_get_transport_protocol_string \ - rmw_network_flow_endpoint_get_transport_protocol_string -#define rcl_network_flow_endpoint_get_internet_protocol_string \ - rmw_network_flow_endpoint_get_internet_protocol_string - -/// Get network flow endpoints of a publisher -/** - * Query the underlying middleware for a given publisher's network flow endpoints - * - * The `publisher` argument must point to a valid publisher. - * - * The `allocator` argument must be a valid allocator. - * - * The `network_flow_endpoint_array` argument must be allocated and zero-initialized. - * The function returns network flow endpoints in the `network_flow_endpoint_array` argument, - * using the allocator to allocate memory for the `network_flow_endpoint_array` - * argument's internal data structures whenever required. The caller is - * reponsible for memory deallocation by passing the `network_flow_endpoint_array` - * argument to `rcl_network_flow_endpoint_array_fini` function. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] publisher the publisher instance to inspect - * \param[in] allocator allocator to be used when allocating space for network_flow_endpoint_array_t - * \param[out] network_flow_endpoint_array the network flow endpoints - * \return `RCL_RET_OK` if successful, or - * \return `RCL_RET_INVALID_ARGUMENT` if any argument is null, or - * \return `RCL_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RCL_RET_UNSUPPORTED` if not supported, or - * \return `RCL_RET_ERROR` if an unexpected error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_publisher_get_network_flow_endpoints( - const rcl_publisher_t * publisher, - rcutils_allocator_t * allocator, - rcl_network_flow_endpoint_array_t * network_flow_endpoint_array); - -/// Get network flow endpoints of a subscription -/** - * Query the underlying middleware for a given subscription's network flow endpoints - * - * The `subscription` argument must point to a valid subscription. - * - * The `allocator` argument must be a valid allocator. - * - * The `network_flow_endpoint_array` argument must be allocated and zero-initialized. - * The function returns network flow endpoints in the `network_flow_endpoint_array` argument, - * using the allocator to allocate memory for the `network_flow_endpoint_array` - * argument's internal data structures whenever required. The caller is - * reponsible for memory deallocation by passing the `network_flow_endpoint_array` - * argument to `rcl_network_flow_endpoint_array_fini` function. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] subscription the subscription instance to inspect - * \param[in] allocator allocator to be used when allocating space for network_flow_endpoint_array_t - * \param[out] network_flow_endpoint_array the network flow endpoints - * \return `RCL_RET_OK` if successful, or - * \return `RCL_RET_INVALID_ARGUMENT` if any argument is null, or - * \return `RCL_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RCL_RET_UNSUPPORTED` if not supported, or - * \return `RCL_RET_ERROR` if an unexpected error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_subscription_get_network_flow_endpoints( - const rcl_subscription_t * subscription, - rcutils_allocator_t * allocator, - rcl_network_flow_endpoint_array_t * network_flow_endpoint_array); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__NETWORK_FLOW_ENDPOINTS_H_ diff --git a/src/rcl/node.h b/src/rcl/node.h deleted file mode 100755 index e58df8d9f..000000000 --- a/src/rcl/node.h +++ /dev/null @@ -1,622 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__NODE_H_ -#define RCL__NODE_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcl/allocator.h" -#ifdef RCL_MICROROS_COMPLETE_IMPL -#include "rcl/arguments.h" -#endif // RCL_MICROROS_COMPLETE_IMPL -#include "rcl/context.h" -#include "rcl/guard_condition.h" -#include "rcl/macros.h" -#include "rcl/node_options.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -#include "type_description_interfaces/srv/get_type_description.h" - -extern const char * const RCL_DISABLE_LOANED_MESSAGES_ENV_VAR; - -typedef struct rcl_node_impl_s rcl_node_impl_t; -typedef struct rcl_service_s rcl_service_t; - -/// Structure which encapsulates a ROS Node. -typedef struct rcl_node_s -{ - /// Context associated with this node. - rcl_context_t * context; - - /// Private implementation pointer. - rcl_node_impl_t * impl; -} rcl_node_t; - -/// Return a rcl_node_t struct with members initialized to `NULL`. -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_node_t -rcl_get_zero_initialized_node(void); - -/// Initialize a ROS node. -/** - * Calling this on a rcl_node_t makes it a valid node handle until rcl_shutdown - * is called or until rcl_node_fini is called on it. - * - * After calling, the ROS node object can be used to create other middleware - * primitives like publishers, services, parameters, etc. - * - * The name of the node must not be NULL and adhere to naming restrictions, - * see the rmw_validate_node_name() function for rules. - * - * \todo TODO(wjwwood): node name uniqueness is not yet enforced - * - * The name of the node cannot coincide with another node of the same name. - * If a node of the same name is already in the domain, it will be shutdown. - * - * The namespace of the node should not be NULL and should also pass the - * rmw_validate_namespace() function's rules. - * - * Additionally this function allows namespaces which lack a leading forward - * slash. - * Because there is no notion of a relative namespace, there is no difference - * between a namespace which lacks a forward and the same namespace with a - * leading forward slash. - * Therefore, a namespace like ``"foo/bar"`` is automatically changed to - * ``"/foo/bar"`` by this function. - * Similarly, the namespace ``""`` will implicitly become ``"/"`` which is a - * valid namespace. - * - * \todo TODO(wjwwood): - * Parameter infrastructure is currently initialized in the language specific - * client library, e.g. rclcpp for C++, but will be initialized here in the - * future. When that happens there will be an option to avoid parameter - * infrastructure with an option in the rcl_node_options_t struct. - * - * A node contains infrastructure for ROS parameters, which include advertising - * publishers and service servers. - * This function will create those external parameter interfaces even if - * parameters are not used later. - * - * The rcl_node_t given must be allocated and zero initialized. - * Passing an rcl_node_t which has already had this function called on it, more - * recently than rcl_node_fini, will fail. - * An allocated rcl_node_t with uninitialized memory is undefined behavior. - * - * Expected usage: - * - * ```c - * rcl_context_t context = rcl_get_zero_initialized_context(); - * // ... initialize the context with rcl_init() - * rcl_node_t node = rcl_get_zero_initialized_node(); - * rcl_node_options_t node_ops = rcl_node_get_default_options(); - * // ... node options customization - * rcl_ret_t ret = rcl_node_init(&node, "node_name", "/node_ns", &context, &node_ops); - * // ... error handling and then use the node, but eventually deinitialize it: - * ret = rcl_node_fini(&node); - * // ... error handling for rcl_node_fini() - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_uint_least64_t` - * - * \pre the node handle must be allocated, zero initialized, and invalid - * \pre the context handle must be allocated, initialized, and valid - * \post the node handle is valid and can be used in other `rcl_*` functions - * - * \param[inout] node a preallocated rcl_node_t - * \param[in] name the name of the node, must be a valid c-string - * \param[in] namespace_ the namespace of the node, must be a valid c-string - * \param[in] context the context instance with which the node should be - * associated - * \param[in] options the node options. - * The options are deep copied into the node. - * The caller is always responsible for freeing memory used options they - * pass in. - * \return #RCL_RET_OK if the node was initialized successfully, or - * \return #RCL_RET_ALREADY_INIT if the node has already be initialized, or - * \return #RCL_RET_NOT_INIT if the given context is not initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid or context is NULL, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_NODE_INVALID_NAME if the name is invalid, or - * \return #RCL_RET_NODE_INVALID_NAMESPACE if the namespace_ is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_node_init( - rcl_node_t * node, - const char * name, - const char * namespace_, - rcl_context_t * context, - const rcl_node_options_t * options); - -/// Finalize a rcl_node_t. -/** - * Destroys any automatically created infrastructure and deallocates memory. - * After calling, the rcl_node_t can be safely deallocated. - * - * All middleware primitives created by the user, e.g. publishers, services, etc, - * which were created from this node must be finalized using their respective - * `rcl_*_fini()` functions before this is called. - * \sa rcl_publisher_fini() - * \sa rcl_subscription_fini() - * \sa rcl_client_fini() - * \sa rcl_service_fini() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_uint_least64_t` - * - * \param[in] node rcl_node_t to be finalized - * \return #RCL_RET_OK if node was finalized successfully, or - * \return #RCL_RET_NODE_INVALID if the node pointer is null, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_node_fini(rcl_node_t * node); - -/// Return `true` if the node is valid, else `false`. -/** - * Also return `false` if the node pointer is `NULL` or the allocator is invalid. - * - * A node is invalid if: - * - the implementation is `NULL` (rcl_node_init not called or failed) - * - rcl_shutdown has been called since the node has been initialized - * - the node has been finalized with rcl_node_fini - * - * There is a possible validity race condition. - * - * Consider: - * - * ```c - * assert(rcl_node_is_valid(node)); // <-- thread 1 - * rcl_shutdown(); // <-- thread 2 - * // use node as if valid // <-- thread 1 - * ``` - * - * In the third line the node is now invalid, even though on the previous line - * of thread 1 it was checked to be valid. - * This is why this function is considered not thread-safe. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_uint_least64_t` - * - * \param[in] node rcl_node_t to be validated - * \return `true` if the node and allocator are valid, otherwise `false`. - */ -RCL_PUBLIC -bool -rcl_node_is_valid(const rcl_node_t * node); - -/// Return true if node is valid, except for the context being valid. -/** - * This is used in clean up functions that need to access the node, but do not - * need use any functions with the context. - * - * It is identical to rcl_node_is_valid except it ignores the state of the - * context associated with the node. - * \sa rcl_node_is_valid() - */ -RCL_PUBLIC -bool -rcl_node_is_valid_except_context(const rcl_node_t * node); - -/// Return the name of the node. -/** - * This function returns the node's internal name string. - * This function can fail, and therefore return `NULL`, if: - * - node is `NULL` - * - node has not been initialized (the implementation is invalid) - * - * The returned string is only valid as long as the given rcl_node_t is valid. - * The value of the string may change if the value in the rcl_node_t changes, - * and therefore copying the string is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node pointer to the node - * \return name string if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const char * -rcl_node_get_name(const rcl_node_t * node); - -/// Return the namespace of the node. -/** - * This function returns the node's internal namespace string. - * This function can fail, and therefore return `NULL`, if: - * - node is `NULL` - * - node has not been initialized (the implementation is invalid) - * - * The returned string is only valid as long as the given rcl_node_t is valid. - * The value of the string may change if the value in the rcl_node_t changes, - * and therefore copying the string is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node pointer to the node - * \return name string if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const char * -rcl_node_get_namespace(const rcl_node_t * node); - -/// Return the fully qualified name of the node. -/** - * This function returns the node's internal namespace and name combined string. - * This function can fail, and therefore return `NULL`, if: - * - node is `NULL` - * - node has not been initialized (the implementation is invalid) - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node pointer to the node - * \return fully qualified name string if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const char * -rcl_node_get_fully_qualified_name(const rcl_node_t * node); - -/// Return the rcl node options. -/** - * This function returns the node's internal options struct. - * This function can fail, and therefore return `NULL`, if: - * - node is `NULL` - * - node has not been initialized (the implementation is invalid) - * - * The returned struct is only valid as long as the given rcl_node_t is valid. - * The values in the struct may change if the options of the rcl_node_t changes, - * and therefore copying the struct is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node pointer to the node - * \return options struct if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rcl_node_options_t * -rcl_node_get_options(const rcl_node_t * node); - -/// Return the ROS domain ID that the node is using. -/** - * This function returns the ROS domain ID that the node is in. - * - * This function should be used to determine what `domain_id` was used rather - * than checking the domain_id field in the node options, because if - * #RCL_NODE_OPTIONS_DEFAULT_DOMAIN_ID is used when creating the node then - * it is not changed after creation, but this function will return the actual - * `domain_id` used. - * - * The `domain_id` field must point to an allocated `size_t` object to which - * the ROS domain ID will be written. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node the handle to the node being queried - * \param[out] domain_id storage for the domain id - * \return #RCL_RET_OK if node the domain ID was retrieved successfully, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_node_get_domain_id(const rcl_node_t * node, size_t * domain_id); - -/// Return the rmw node handle. -/** - * The handle returned is a pointer to the internally held rmw handle. - * This function can fail, and therefore return `NULL`, if: - * - node is `NULL` - * - node has not been initialized (the implementation is invalid) - * - * The returned handle is made invalid if the node is finalized or if - * rcl_shutdown() is called. - * The returned handle is not guaranteed to be valid for the life time of the - * node as it may be finalized and recreated itself. - * Therefore it is recommended to get the handle from the node using - * this function each time it is needed and avoid use of the handle - * concurrently with functions that might change it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node pointer to the rcl node - * \return rmw node handle if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rmw_node_t * -rcl_node_get_rmw_handle(const rcl_node_t * node); - -/// Return the associated rcl instance id. -/** - * This id is stored when rcl_node_init is called and can be compared with the - * value returned by rcl_get_instance_id() to check if this node was created in - * the current rcl context (since the latest call to rcl_init(). - * - * This function can fail, and therefore return `0`, if: - * - node is `NULL` - * - node has not been initialized (the implementation is invalid) - * - * This function will succeed even if rcl_shutdown() has been called - * since the node was created. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node pointer to the rcl node - * \return rcl instance id captured during node init or `0` on error - */ -RCL_PUBLIC -RCL_WARN_UNUSED -uint64_t -rcl_node_get_rcl_instance_id(const rcl_node_t * node); - -/// Return a guard condition which is triggered when the ROS graph changes. -/** - * The handle returned is a pointer to an internally held rcl guard condition. - * This function can fail, and therefore return `NULL`, if: - * - node is `NULL` - * - node is invalid - * - * The returned handle is made invalid if the node is finialized or if - * rcl_shutdown() is called. - * - * The guard condition will be triggered anytime a change to the ROS graph occurs. - * A ROS graph change includes things like (but not limited to) a new publisher - * advertises, a new subscription is created, a new service becomes available, - * a subscription is canceled, etc. - * - * \todo TODO(wjwwood): link to exhaustive list of graph events - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node pointer to the rcl node - * \return rcl guard condition handle if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rcl_guard_condition_t * -rcl_node_get_graph_guard_condition(const rcl_node_t * node); - -/// Return the logger name of the node. -/** - * This function returns the node's internal logger name string. - * This function can fail, and therefore return `NULL`, if: - * - node is `NULL` - * - node has not been initialized (the implementation is invalid) - * - * The returned string is only valid as long as the given rcl_node_t is valid. - * The value of the string may change if the value in the rcl_node_t changes, - * and therefore copying the string is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node pointer to the node - * \return logger_name string if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const char * -rcl_node_get_logger_name(const rcl_node_t * node); - -/// Expand a given name into a fully-qualified topic name and apply remapping rules. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node Node object. Its name, namespace, local/global command line arguments are used. - * \param[in] input_name Topic name to be expanded and remapped. - * \param[in] allocator The allocator to be used when creating the output topic. - * \param[in] is_service For services use `true`, for topics use `false`. - * \param[in] only_expand When `true`, remapping rules are ignored. - * \param[out] output_name Output char * pointer. - * \return #RCL_RET_OK if the topic name was expanded successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any of input_name, node_name, node_namespace - * or output_name are NULL, or - * \return #RCL_RET_INVALID_ARGUMENT if both local_args and global_args are NULL, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_TOPIC_NAME_INVALID if the given topic name is invalid - * (see rcl_validate_topic_name()), or - * \return #RCL_RET_NODE_INVALID_NAME if the given node name is invalid - * (see rmw_validate_node_name()), or - * \return #RCL_RET_NODE_INVALID_NAMESPACE if the given node namespace is invalid - * (see rmw_validate_namespace()), or - * \return #RCL_RET_UNKNOWN_SUBSTITUTION for unknown substitutions in name, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_node_resolve_name( - const rcl_node_t * node, - const char * input_name, - rcl_allocator_t allocator, - bool is_service, - bool only_expand, - char ** output_name); - -/// Check if loaned message is disabled, according to the environment variable. -/** - * If the `ROS_DISABLE_LOANED_MESSAGES` environment variable is set to "1", - * `disable_loaned_message` will be set to true. - * - * \param[out] disable_loaned_message Must not be NULL. - * \return #RCL_RET_INVALID_ARGUMENT if an argument is not valid, or - * \return #RCL_RET_ERROR if an unexpected error happened, or - * \return #RCL_RET_OK. - */ -RCL_PUBLIC -rcl_ret_t -rcl_get_disable_loaned_message(bool * disable_loaned_message); - -/// Initialize the node's ~/get_type_description service. -/** - * This function initializes the node's ~/get_type_description service - * which can be used to retrieve information about types used by the node's - * publishers, subscribers, services or actions. - * - * Note that this will not register any callback for the service, client-level code - * must register rcl_node_type_description_service_handle_request or a custom callback - * to handle incoming requests, via that client's executor/waitset capabilities. - * - * Note that the returned service must be cleaned up by the caller by calling - * rcl_service_fini. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] service the handle to the type description service to be initialized - * \param[in] node handle to the node for which to initialize the service - * \return #RCL_RET_OK if the service was successfully initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ALREADY_INIT if the service is already initialized, or - * \return #RCL_RET_BAD_ALLOC if memory allocation for the service failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t rcl_node_type_description_service_init( - rcl_service_t * service, - const rcl_node_t * node); - -/// Process a single pending request to the GetTypeDescription service. -/** - * This function may be called to handle incoming requests by any client starting the service. - * It is not intended to be called directly by users. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node the handle to the node - * \param[in] request_header ID of the incoming request - * \param[in] request Request that came in to the service - * \param[out] response Allocated, uninitialized response to the request - * \return void - */ -RCL_PUBLIC -void rcl_node_type_description_service_handle_request( - rcl_node_t * node, - const rmw_request_id_t * request_header, - const type_description_interfaces__srv__GetTypeDescription_Request * request, - type_description_interfaces__srv__GetTypeDescription_Response * response); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__NODE_H_ diff --git a/src/rcl/node_options.h b/src/rcl/node_options.h deleted file mode 100755 index a3eae90a6..000000000 --- a/src/rcl/node_options.h +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright 2019 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__NODE_OPTIONS_H_ -#define RCL__NODE_OPTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl/allocator.h" -#ifdef RCL_MICROROS_COMPLETE_IMPL -#include "rcl/arguments.h" -#endif // RCL_MICROROS_COMPLETE_IMPL -#include "rcl/macros.h" - -#include "rcl/domain_id.h" - -/// Constant which indicates that the default domain id should be used. -#define RCL_NODE_OPTIONS_DEFAULT_DOMAIN_ID RCL_DEFAULT_DOMAIN_ID - -/// Structure which encapsulates the options for creating a rcl_node_t. -typedef struct rcl_node_options_s -{ - // bool anonymous_name; - - // rmw_qos_profile_t parameter_qos; - - /// If true, no parameter infrastructure will be setup. - // bool no_parameters; - - /// Custom allocator used for internal allocations. - rcl_allocator_t allocator; - - /// If false then only use arguments in this struct, otherwise use global arguments also. - bool use_global_arguments; - -#ifdef RCL_MICROROS_COMPLETE_IMPL - /// Command line arguments that apply only to this node. - rcl_arguments_t arguments; -#endif // RCL_MICROROS_COMPLETE_IMPL - - /// Flag to enable rosout for this node - bool enable_rosout; - - /// Middleware quality of service settings for /rosout. - rmw_qos_profile_t rosout_qos; -} rcl_node_options_t; - -/// Return the default node options in a rcl_node_options_t. -/** - * The default values are: - * - * - allocator = rcl_get_default_allocator() - * - use_global_arguments = true - * - enable_rosout = true - * - arguments = rcl_get_zero_initialized_arguments() - * - rosout_qos = rcl_qos_profile_rosout_default - * - * \return A structure with the default node options. - */ -RCL_PUBLIC -rcl_node_options_t -rcl_node_get_default_options(void); - -/// Copy one options structure into another. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] options The structure to be copied. - * Its allocator is used to copy memory into the new structure. - * \param[out] options_out An options structure containing default values. - * \return #RCL_RET_OK if the structure was copied successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_node_options_copy( - const rcl_node_options_t * options, - rcl_node_options_t * options_out); - -/// Finalize the given node_options. -/** - * The given node_options must be non-`NULL` and valid, i.e. had - * rcl_node_get_default_options() called on it but not this function yet. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes - * - * \param[inout] options object to be finalized - * \return #RCL_RET_OK if setup is successful, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_node_options_fini(rcl_node_options_t * options); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__NODE_OPTIONS_H_ diff --git a/src/rcl/node_type_cache.h b/src/rcl/node_type_cache.h deleted file mode 100755 index c9f21b117..000000000 --- a/src/rcl/node_type_cache.h +++ /dev/null @@ -1,174 +0,0 @@ -// Copyright 2023 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL__NODE_TYPE_CACHE_H_ -#define RCL__NODE_TYPE_CACHE_H_ - -#include "rcl/node.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "type_description_interfaces/msg/type_description.h" -#include "type_description_interfaces/msg/type_source.h" - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct rcl_type_info_t -{ - type_description_interfaces__msg__TypeDescription * type_description; - type_description_interfaces__msg__TypeSource__Sequence * type_sources; -} rcl_type_info_t; - -/// Initialize the node's type cache. -/** - * This function initializes hash map of the node's type cache such that types - * can be registered and retrieved. - * Note that to correctly capture all types used by a node, this needs to be called - * before any "builtin" publishers or services are created. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node the handle to the node whose type cache should be initialized - * \return #RCL_RET_OK if the node's type cache was successfully initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NODE_INVALID if the given `node` is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_WARN_UNUSED -rcl_ret_t rcl_node_type_cache_init(rcl_node_t * node); - -/// Finalize the node's type cache. -/** - * This function clears the hash map of the node's type cache and deallocates - * used memory. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node the handle to the node whose type cache should be finalized - * \return #RCL_RET_OK if the node's type cache was successfully finalized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NODE_INVALID if the given `node` is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_WARN_UNUSED -rcl_ret_t rcl_node_type_cache_fini(rcl_node_t * node); - -/// Register a type with the node's type cache. -/** - * This function registers the given type, uniquely identified by the type_hash, - * with the node with the node's type cache. Multiple registrations of the same - * type will increment its registration count. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node the handle to the node whose type cache should be finalized - * \param[in] type_hash hash of the type - * \param[in] type_description type description struct - * \param[in] type_description_sources type description sources struct - * \return #RCL_RET_OK if the type was successfully registered, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NODE_INVALID if the given `node` is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t rcl_node_type_cache_register_type( - const rcl_node_t * node, const rosidl_type_hash_t * type_hash, - const rosidl_runtime_c__type_description__TypeDescription * type_description, - const rosidl_runtime_c__type_description__TypeSource__Sequence * type_description_sources -); - -/// Unregister a message type from the node's type cache. -/** - * This function uses the given `type_hash` to unregister the associated type in - * the node's type cache. If the type has been registered multiple times, the - * type will only be removed if its registration count reaches 0. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node the handle to the node whose type cache should be finalized - * \param[in] type_hash type hash - * \return #RCL_RET_OK if the type was successfully registered, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NODE_INVALID if the given `node` is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t rcl_node_type_cache_unregister_type( - const rcl_node_t * node, const rosidl_type_hash_t * type_hash); - -/// Retrieve type information from the node's type cache. -/** - * This function returns the desired type information from the node's type cache - * - * The `type_info` field must point to an allocated `rcl_type_info_t` object to - * which the type information will be written. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] node the handle to the node whose type cache should be queried - * \param[in] type_hash type hash - * \param[out] type_info pointer to the type info struct that will be populated - * \return #RCL_RET_OK if type information was retrieved successfully - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_NODE_INVALID if the given `node` is invalid, or - * \return #RCL_RET_NOT_INIT if node's type cache has not been initialized, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t rcl_node_type_cache_get_type_info( - const rcl_node_t * node, - const rosidl_type_hash_t * type_hash, - rcl_type_info_t * type_info); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__NODE_TYPE_CACHE_H_ diff --git a/src/rcl/publisher.h b/src/rcl/publisher.h deleted file mode 100755 index 51aa7421e..000000000 --- a/src/rcl/publisher.h +++ /dev/null @@ -1,697 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__PUBLISHER_H_ -#define RCL__PUBLISHER_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -#include "rcl/macros.h" -#include "rcl/node.h" -#include "rcl/visibility_control.h" -#include "rcl/time.h" - -/// Internal rcl publisher implementation struct. -typedef struct rcl_publisher_impl_s rcl_publisher_impl_t; - -/// Structure which encapsulates a ROS Publisher. -typedef struct rcl_publisher_s -{ - /// Pointer to the publisher implementation - rcl_publisher_impl_t * impl; -} rcl_publisher_t; - -/// Options available for a rcl publisher. -typedef struct rcl_publisher_options_s -{ - /// Middleware quality of service settings for the publisher. - rmw_qos_profile_t qos; - /// Custom allocator for the publisher, used for incidental allocations. - /** For default behavior (malloc/free), use: rcl_get_default_allocator() */ - rcl_allocator_t allocator; - /// rmw specific publisher options, e.g. the rmw implementation specific payload. - rmw_publisher_options_t rmw_publisher_options; - /// Disable flag to LoanedMessage, initialized via environmental variable. - bool disable_loaned_message; -} rcl_publisher_options_t; - -/// Return a rcl_publisher_t struct with members set to `NULL`. -/** - * Should be called to get a null rcl_publisher_t before passing to - * rcl_publisher_init(). - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_publisher_t -rcl_get_zero_initialized_publisher(void); - -/// Initialize a rcl publisher. -/** - * After calling this function on a rcl_publisher_t, it can be used to publish - * messages of the given type to the given topic using rcl_publish(). - * - * The given rcl_node_t must be valid and the resulting rcl_publisher_t is only - * valid as long as the given rcl_node_t remains valid. - * - * The rosidl_message_type_support_t is obtained on a per .msg type basis. - * When the user defines a ROS message, code is generated which provides the - * required rosidl_message_type_support_t object. - * This object can be obtained using a language appropriate mechanism. - * \todo TODO(wjwwood) write these instructions once and link to it instead - * - * For C, a macro can be used (for example `std_msgs/String`): - * - * ```c - * #include - * #include - * const rosidl_message_type_support_t * string_ts = - * ROSIDL_GET_MSG_TYPE_SUPPORT(std_msgs, msg, String); - * ``` - * - * For C++, a template function is used: - * - * ```cpp - * #include - * #include - * const rosidl_message_type_support_t * string_ts = - * rosidl_typesupport_cpp::get_message_type_support_handle(); - * ``` - * - * The rosidl_message_type_support_t object contains message type specific - * information used to publish messages. - * - * The topic name must be a c string which follows the topic and service name - * format rules for unexpanded names, also known as non-fully qualified names: - * - * \see rcl_expand_topic_name - * - * The options struct allows the user to set the quality of service settings as - * well as a custom allocator which is used when initializing/finalizing the - * publisher to allocate space for incidentals, e.g. the topic name string. - * - * Expected usage (for C messages): - * - * ```c - * #include - * #include - * #include - * - * rcl_node_t node = rcl_get_zero_initialized_node(); - * rcl_node_options_t node_ops = rcl_node_get_default_options(); - * rcl_ret_t ret = rcl_node_init(&node, "node_name", "/my_namespace", &node_ops); - * // ... error handling - * const rosidl_message_type_support_t * ts = ROSIDL_GET_MSG_TYPE_SUPPORT(std_msgs, msg, String); - * rcl_publisher_t publisher = rcl_get_zero_initialized_publisher(); - * rcl_publisher_options_t publisher_ops = rcl_publisher_get_default_options(); - * ret = rcl_publisher_init(&publisher, &node, ts, "chatter", &publisher_ops); - * // ... error handling, and on shutdown do finalization: - * ret = rcl_publisher_fini(&publisher, &node); - * // ... error handling for rcl_publisher_fini() - * ret = rcl_node_fini(&node); - * // ... error handling for rcl_deinitialize_node() - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] publisher preallocated publisher structure - * \param[in] node valid rcl node handle - * \param[in] type_support type support object for the topic's type - * \param[in] topic_name the name of the topic to publish on - * \param[in] options publisher options, including quality of service settings - * \return #RCL_RET_OK if the publisher was initialized successfully, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_ALREADY_INIT if the publisher is already initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory fails, or - * \return #RCL_RET_TOPIC_NAME_INVALID if the given topic name is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_publisher_init( - rcl_publisher_t * publisher, - const rcl_node_t * node, - const rosidl_message_type_support_t * type_support, - const char * topic_name, - const rcl_publisher_options_t * options); - -/// Finalize a rcl_publisher_t. -/** - * After calling, the node will no longer be advertising that it is publishing - * on this topic (assuming this is the only publisher on this topic). - * - * After calling, calls to rcl_publish will fail when using this publisher. - * However, the given node handle is still valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] publisher handle to the publisher to be finalized - * \param[in] node a valid (not finalized) handle to the node used to create the publisher - * \return #RCL_RET_OK if publisher was finalized successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_PUBLISHER_INVALID if the publisher is invalid, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_publisher_fini(rcl_publisher_t * publisher, rcl_node_t * node); - -/// Return the default publisher options in a rcl_publisher_options_t. -/** - * The defaults are: - * - * - qos = rmw_qos_profile_default - * - allocator = rcl_get_default_allocator() - * - rmw_publisher_options = rmw_get_default_publisher_options() - * - disable_loaned_message = false, true only if ROS_DISABLE_LOANED_MESSAGES=1 - * - * \return A structure with the default publisher options. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_publisher_options_t -rcl_publisher_get_default_options(void); - -/// Borrow a loaned message. -/** - * The memory allocated for the ros message belongs to the middleware and must not be deallocated - * other than by a call to \sa rcl_return_loaned_message_from_publisher. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No [0] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [0] the underlying middleware might allocate new memory or returns an existing chunk form a pool. - * The function in rcl however does not allocate any additional memory. - * - * \param[in] publisher Publisher to which the allocated message is associated. - * \param[in] type_support Typesupport to which the internal ros message is allocated. - * \param[out] ros_message The pointer to be filled to a valid ros message by the middleware. - * \return #RCL_RET_OK if the ros message was correctly initialized, or - * \return #RCL_RET_PUBLISHER_INVALID if the passed publisher is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if an argument other than the ros message is null, or - * \return #RCL_RET_BAD_ALLOC if the ros message could not be correctly created, or - * \return #RCL_RET_UNSUPPORTED if the middleware does not support that feature, or - * \return #RCL_RET_ERROR if an unexpected error occured. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_borrow_loaned_message( - const rcl_publisher_t * publisher, - const rosidl_message_type_support_t * type_support, - void ** ros_message); - -/// Return a loaned message previously borrowed from a publisher. -/** - * The ownership of the passed in ros message will be transferred back to the middleware. - * The middleware might deallocate and destroy the message so that the pointer is no longer - * guaranteed to be valid after that call. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] publisher Publisher to which the loaned message is associated. - * \param[in] loaned_message Loaned message to be deallocated and destroyed. - * \return #RCL_RET_OK if successful, or - * \return #RCL_RET_INVALID_ARGUMENT if an argument is null, or - * \return #RCL_RET_UNSUPPORTED if the middleware does not support that feature, or - * \return #RCL_RET_PUBLISHER_INVALID if the publisher is invalid, or - * \return #RCL_RET_ERROR if an unexpected error occurs and no message can be initialized. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_return_loaned_message_from_publisher( - const rcl_publisher_t * publisher, - void * loaned_message); - -/// Publish a ROS message on a topic using a publisher. -/** - * It is the job of the caller to ensure that the type of the ros_message - * parameter and the type associate with the publisher (via the type support) - * match. - * Passing a different type to publish produces undefined behavior and cannot - * be checked by this function and therefore no deliberate error will occur. - * - * \todo TODO(wjwwood): - * The blocking behavior of publish is a still a point of dispute. - * This section should be updated once the behavior is clearly defined. - * See: https://github.com/ros2/ros2/issues/255 - * - * Calling rcl_publish() is a potentially blocking call. - * When called rcl_publish() will immediately do any publishing related work, - * including, but not limited to, converting the message into a different type, - * serializing the message, collecting publish statistics, etc. - * The last thing it will do is call the underlying middleware's publish - * function which may or may not block based on the quality of service settings - * given via the publisher options in rcl_publisher_init(). - * For example, if the reliability is set to reliable, then a publish may block - * until space in the publish queue is available, but if the reliability is set - * to best effort then it should not block. - * - * The ROS message given by the `ros_message` void pointer is always owned by - * the calling code, but should remain constant during publish. - * - * This function is thread safe so long as access to both the publisher and the - * `ros_message` is synchronized. - * That means that calling rcl_publish() from multiple threads is allowed, but - * calling rcl_publish() at the same time as non-thread safe publisher - * functions is not, e.g. calling rcl_publish() and rcl_publisher_fini() - * concurrently is not allowed. - * The message cannot change during the rcl_publish() call. - * Before calling rcl_publish() the message can change but after calling - * rcl_publish() it depends on RMW implementation behavior. - * The same `ros_message`, however, can be passed to multiple calls of - * rcl_publish() simultaneously, even if the publishers differ. - * The `ros_message` is unmodified by rcl_publish(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes [1] - * Uses Atomics | No - * Lock-Free | Yes - * [1] for unique pairs of publishers and messages, see above for more - * - * \param[in] publisher handle to the publisher which will do the publishing - * \param[in] ros_message type-erased pointer to the ROS message - * \param[in] allocation structure pointer, used for memory preallocation (may be NULL) - * \return #RCL_RET_OK if the message was published successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_PUBLISHER_INVALID if the publisher is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_publish( - const rcl_publisher_t * publisher, - const void * ros_message, - rmw_publisher_allocation_t * allocation); - -/// Publish a serialized message on a topic using a publisher. -/** - * It is the job of the caller to ensure that the type of the serialized message - * parameter and the type associate with the publisher (via the type support) - * match. - * Even though this call to publish takes an already serialized serialized message, - * the publisher has to register its type as a ROS known message type. - * Passing a serialized message from a different type leads to undefined behavior on the subscriber side. - * The publish call might be able to send any abitrary serialized message, it is however - * not garantueed that the subscriber side successfully deserializes this byte stream. - * - * Apart from this, the `publish_serialized` function has the same behavior as rcl_publish() - * expect that no serialization step is done. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes [1] - * Uses Atomics | No - * Lock-Free | Yes - * [1] for unique pairs of publishers and messages, see above for more - * - * \param[in] publisher handle to the publisher which will do the publishing - * \param[in] serialized_message pointer to the already serialized message in raw form - * \param[in] allocation structure pointer, used for memory preallocation (may be NULL) - * \return #RCL_RET_OK if the message was published successfully, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_PUBLISHER_INVALID if the publisher is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_publish_serialized_message( - const rcl_publisher_t * publisher, - const rcl_serialized_message_t * serialized_message, - rmw_publisher_allocation_t * allocation); - -/// Publish a loaned message on a topic using a publisher. -/** - * A previously borrowed loaned message can be sent via this call to rcl_publish_loaned_message(). - * By calling this function, the ownership of the loaned message is getting transferred back - * to the middleware. - * The pointer to the `ros_message` is not guaranteed to be valid after as the middleware - * migth deallocate the memory for this message internally. - * It is thus recommended to call this function only in combination with - * \sa rcl_borrow_loaned_message(). - * - * Apart from this, the `publish_loaned_message` function has the same behavior as rcl_publish() - * except that no serialization step is done. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No [0] - * Thread-Safe | Yes [1] - * Uses Atomics | No - * Lock-Free | Yes - * [0] the middleware might deallocate the loaned message. - * The RCL function however does not allocate any memory. - * [1] for unique pairs of publishers and messages, see above for more - * - * \param[in] publisher handle to the publisher which will do the publishing - * \param[in] ros_message pointer to the previously borrow loaned message - * \param[in] allocation structure pointer, used for memory preallocation (may be NULL) - * \return #RCL_RET_OK if the message was published successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_PUBLISHER_INVALID if the publisher is invalid, or - * \return #RCL_RET_UNSUPPORTED if the middleware does not support that feature, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_publish_loaned_message( - const rcl_publisher_t * publisher, - void * ros_message, - rmw_publisher_allocation_t * allocation); - -/// Manually assert that this Publisher is alive (for RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC) -/** - * If the rmw Liveliness policy is set to RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC, the creator of - * this publisher may manually call `assert_liveliness` at some point in time to signal to the rest - * of the system that this Node is still alive. - * This function must be called at least as often as the qos_profile's liveliness_lease_duration - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] publisher handle to the publisher that needs liveliness to be asserted - * \return #RCL_RET_OK if the liveliness assertion was completed successfully, or - * \return #RCL_RET_PUBLISHER_INVALID if the publisher is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_publisher_assert_liveliness(const rcl_publisher_t * publisher); - -/// Wait until all published message data is acknowledged or until the specified timeout elapses. -/** - * This function waits until all published message data were acknowledged by peer node or timeout. - * - * The timeout unit is nanoseconds. - * If the timeout is negative then this function will block indefinitely until all published message - * data were acknowledged. - * If the timeout is 0 then this function will be non-blocking; checking all published message data - * were acknowledged (If acknowledged, return RCL_RET_OK. Otherwise, return RCL_RET_TIMEOUT), but - * not waiting. - * If the timeout is greater than 0 then this function will return after that period of time has - * elapsed (return RCL_RET_TIMEOUT) or all published message data were acknowledged (return - * RCL_RET_OK). - * - * This function only waits for acknowledgments if the publisher's QOS profile is RELIABLE. - * Otherwise this function will immediately return RCL_RET_OK. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] publisher handle to the publisher that needs to wait for all acked. - * \param[in] timeout the duration to wait for all published message data were acknowledged, in - * nanoseconds. - * \return #RCL_RET_OK if successful, or - * \return #RCL_RET_TIMEOUT if timed out, or - * \return #RCL_RET_PUBLISHER_INVALID if publisher is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs, or - * \return #RCL_RET_UNSUPPORTED if the middleware does not support that feature. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_publisher_wait_for_all_acked( - const rcl_publisher_t * publisher, - rcl_duration_value_t timeout); - -/// Get the topic name for the publisher. -/** - * This function returns the publisher's internal topic name string. - * This function can fail, and therefore return `NULL`, if the: - * - publisher is `NULL` - * - publisher is invalid (never called init, called fini, or invalid node) - * - * The returned string is only valid as long as the rcl_publisher_t is valid. - * The value of the string may change if the topic name changes, and therefore - * copying the string is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] publisher pointer to the publisher - * \return name string if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const char * -rcl_publisher_get_topic_name(const rcl_publisher_t * publisher); - -/// Return the rcl publisher options. -/** - * This function returns the publisher's internal options struct. - * This function can fail, and therefore return `NULL`, if the: - * - publisher is `NULL` - * - publisher is invalid (never called init, called fini, or invalid node) - * - * The returned struct is only valid as long as the rcl_publisher_t is valid. - * The values in the struct may change if the options of the publisher change, - * and therefore copying the struct is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] publisher pointer to the publisher - * \return options struct if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rcl_publisher_options_t * -rcl_publisher_get_options(const rcl_publisher_t * publisher); - -/// Return the rmw publisher handle. -/** - * The handle returned is a pointer to the internally held rmw handle. - * This function can fail, and therefore return `NULL`, if the: - * - publisher is `NULL` - * - publisher is invalid (never called init, called fini, or invalid node) - * - * The returned handle is made invalid if the publisher is finalized or if - * rcl_shutdown() is called. - * The returned handle is not guaranteed to be valid for the life time of the - * publisher as it may be finalized and recreated itself. - * Therefore it is recommended to get the handle from the publisher using - * this function each time it is needed and avoid use of the handle - * concurrently with functions that might change it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] publisher pointer to the rcl publisher - * \return rmw publisher handle if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rmw_publisher_t * -rcl_publisher_get_rmw_handle(const rcl_publisher_t * publisher); - -/// Return the context associated with this publisher. -/** - * This function can fail, and therefore return `NULL`, if the: - * - publisher is `NULL` - * - publisher is invalid (never called init, called fini, etc.) - * - * The returned context is made invalid if the publisher is finalized or if - * rcl_shutdown() is called. - * Therefore it is recommended to get the handle from the publisher using - * this function each time it is needed and avoid use of the handle - * concurrently with functions that might change it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] publisher pointer to the rcl publisher - * \return context if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_context_t * -rcl_publisher_get_context(const rcl_publisher_t * publisher); - -/// Return true if the publisher is valid, otherwise false. -/** - * The bool returned is `false` if `publisher` is invalid. - * The bool returned is `true` otherwise. - * In the case where `false` is to be returned, an error message is set. - * This function cannot fail. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] publisher pointer to the rcl publisher - * \return `true` if `publisher` is valid, otherwise `false` - */ -RCL_PUBLIC -bool -rcl_publisher_is_valid(const rcl_publisher_t * publisher); - -/// Return true if the publisher is valid except the context, otherwise false. -/** - * This is used in clean up functions that need to access the publisher, but do - * not need use any functions with the context. - * - * It is identical to rcl_publisher_is_valid except it ignores the state of the - * context associated with the publisher. - * \sa rcl_publisher_is_valid() - */ -RCL_PUBLIC -bool -rcl_publisher_is_valid_except_context(const rcl_publisher_t * publisher); - -/// Get the number of subscriptions matched to a publisher. -/** - * Used to get the internal count of subscriptions matched to a publisher. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] only if the underlying rmw doesn't make use of this feature - * - * \param[in] publisher pointer to the rcl publisher - * \param[out] subscription_count number of matched subscriptions - * \return #RCL_RET_OK if the count was retrieved, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_PUBLISHER_INVALID if the publisher is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_publisher_get_subscription_count( - const rcl_publisher_t * publisher, - size_t * subscription_count); - -/// Get the actual qos settings of the publisher. -/** - * Used to get the actual qos settings of the publisher. - * The actual configuration applied when using RMW_*_SYSTEM_DEFAULT - * can only be resolved after the creation of the publisher, and it - * depends on the underlying rmw implementation. - * If the underlying setting in use can't be represented in ROS terms, - * it will be set to RMW_*_UNKNOWN. - * The returned struct is only valid as long as the rcl_publisher_t is valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] publisher pointer to the rcl publisher - * \return qos struct if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rmw_qos_profile_t * -rcl_publisher_get_actual_qos(const rcl_publisher_t * publisher); - - -/// Check if publisher instance can loan messages. -/** - * Depending on the middleware and the message type, this will return true if the middleware - * can allocate a ROS message instance. - */ -RCL_PUBLIC -bool -rcl_publisher_can_loan_messages(const rcl_publisher_t * publisher); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__PUBLISHER_H_ diff --git a/src/rcl/rcl.h b/src/rcl/rcl.h deleted file mode 100755 index b63e6a97c..000000000 --- a/src/rcl/rcl.h +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** \mainpage rcl: Common functionality for other ROS Client Libraries - * - * `rcl` consists of functions and structs (pure C) organized into ROS concepts: - * - * - Nodes - * - rcl/node.h - * - Publisher - * - rcl/publisher.h - * - Subscription - * - rcl/subscription.h - * - Service Client - * - rcl/client.h - * - Service Server - * - rcl/service.h - * - Timer - * - rcl/timer.h - * - * There are some functions for working with "Topics" and "Services": - * - * - A function to validate a topic or service name (not necessarily fully qualified): - * - rcl_validate_topic_name() - * - rcl/validate_topic_name.h - * - A function to expand a topic or service name to a fully qualified name: - * - rcl_expand_topic_name() - * - rcl/expand_topic_name.h - * - * It also has some machinery that is necessary to wait on and act on these concepts: - * - * - Initialization and shutdown management - * - rcl/init.h - * - Wait sets for waiting on messages/service requests and responses/timers to be ready - * - rcl/wait.h - * - Guard conditions for waking up wait sets asynchronously - * - rcl/guard_condition.h - * - Functions for introspecting and getting notified of changes of the ROS graph - * - rcl/graph.h - * - * Further still there are some useful abstractions and utilities: - * - * - Allocator concept, which can be used to control allocation in `rcl_*` functions - * - rcl/allocator.h - * - Concept of ROS Time and access to steady and system wall time - * - rcl/time.h - * - Error handling functionality (C style) - * - rcl/error_handling.h - * - Macros - * - rcl/macros.h - * - Return code types - * - rcl/types.h - * - Macros for controlling symbol visibility on the library - * - rcl/visibility_control.h - */ - -#ifndef RCL__RCL_H_ -#define RCL__RCL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl/init.h" -#include "rcl/node.h" -#include "rcl/publisher.h" -#include "rcl/subscription.h" -#include "rcl/wait.h" - -#ifdef __cplusplus -} -#endif - -#endif // RCL__RCL_H_ diff --git a/src/rcl/remap.h b/src/rcl/remap.h deleted file mode 100755 index 5acf5e48e..000000000 --- a/src/rcl/remap.h +++ /dev/null @@ -1,302 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__REMAP_H_ -#define RCL__REMAP_H_ - -#include "rcl/allocator.h" -#include "rcl/arguments.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -typedef struct rcl_remap_impl_s rcl_remap_impl_t; - -/// Hold remapping rules. -typedef struct rcl_remap_s -{ - /// Private implementation pointer. - rcl_remap_impl_t * impl; -} rcl_remap_t; - -/// Return a rcl_remap_t struct with members initialized to `NULL`. -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_remap_t -rcl_get_zero_initialized_remap(void); - -// TODO(sloretz) add documentation about rostopic:// when it is supported -/// Remap a topic name based on given rules. -/** - * The supplied topic name must have already been expanded to a fully qualified name. - * \sa rcl_expand_topic_name() - * - * If `local_arguments` is not NULL and not zero intialized then its remap rules are checked first. - * If no rules matched and `global_arguments` is not NULL and not zero intitialized then its rules - * are checked next. - * If both `local_arguments` and global_arguments are NULL or zero intialized then the function will - * return RCL_RET_INVALID_ARGUMENT. - * - * `global_arguments` is usually the arguments passed to rcl_init(). - * \sa rcl_init() - * \sa rcl_get_global_arguments() - * - * Remap rules are checked in the order they were given. - * For rules passed to rcl_init() this usually is the order they were passed on the command line. - * \sa rcl_parse_arguments() - * - * Only the first remap rule that matches is used to remap a name. - * For example, if the command line arguments are `foo:=bar bar:=baz` the topic `foo` is remapped to - * `bar` and not `baz`. - * - * `node_name` and `node_namespace` are used to expand the match and replacement into fully - * qualified names. - * Given node_name `trudy`, namespace `/ns`, and rule `foo:=~/bar` the names in the rule are - * expanded to `/ns/foo:=/ns/trudy/bar`. - * The rule will only apply if the given topic name is `/ns/foo`. - * - * `node_name` is also used to match against node specific rules. - * Given rules `alice:foo:=bar foo:=baz`, node name `alice`, and topic `foo` the remapped topic - * name will be `bar`. - * If given the node name `bob` and topic `foo` the remaped topic name would be `baz` instead. - * Note that processing always stops at the first matching rule even if there is a more specific one - * later on. - * Given `foo:=bar alice:foo:=baz` and topic name `foo` the remapped topic name will always be - * `bar` regardless of the node name given. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] local_arguments Command line arguments to be used before global arguments, or - * if NULL or zero-initialized then only global arguments are used. - * \param[in] global_arguments Command line arguments to use if no local rules matched, or - * `NULL` or zero-initialized to ignore global arguments. - * \param[in] topic_name A fully qualified and expanded topic name to be remapped. - * \param[in] node_name The name of the node to which name belongs. - * \param[in] node_namespace The namespace of a node to which name belongs. - * \param[in] allocator A valid allocator to use. - * \param[out] output_name Either an allocated string with the remapped name, or - * `NULL` if no remap rules matched the name. - * \return #RCL_RET_OK if the topic name was remapped or no rules matched, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_TOPIC_NAME_INVALID if the given topic name is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_remap_topic_name( - const rcl_arguments_t * local_arguments, - const rcl_arguments_t * global_arguments, - const char * topic_name, - const char * node_name, - const char * node_namespace, - rcl_allocator_t allocator, - char ** output_name); - -// TODO(sloretz) add documentation about rosservice:// when it is supported -/// Remap a service name based on given rules. -/** - * The supplied service name must have already been expanded to a fully qualified name. - * - * The behavior of this function is identical to rcl_expand_topic_name() except that it applies - * to service names instead of topic names. - * \sa rcl_expand_topic_name() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] local_arguments Command line arguments to be used before global arguments, or - * if NULL or zero-initialized then only global arguments are used. - * \param[in] global_arguments Command line arguments to use if no local rules matched, or - * `NULL` or zero-initialized to ignore global arguments. - * \param[in] service_name A fully qualified and expanded service name to be remapped. - * \param[in] node_name The name of the node to which name belongs. - * \param[in] node_namespace The namespace of a node to which name belongs. - * \param[in] allocator A valid allocator to use. - * \param[out] output_name Either an allocated string with the remapped name, or - * `NULL` if no remap rules matched the name. - * \return #RCL_RET_OK if the name was remapped or no rules matched, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_SERVICE_NAME_INVALID if the given name is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_remap_service_name( - const rcl_arguments_t * local_arguments, - const rcl_arguments_t * global_arguments, - const char * service_name, - const char * node_name, - const char * node_namespace, - rcl_allocator_t allocator, - char ** output_name); - -/// Remap a node name based on given rules. -/** - * This function returns the node name that a node with the given name would be remapped to. - * When a node's name is remapped it changes its logger name and the output of expanding relative - * topic and service names. - * - * When composing nodes make sure that the final node names used are unique per process. - * There is not currently a way to independently remap the names of two nodes that were created - * with the same node name and are manually composed into one process. - * - * The behavior of `local_arguments`, `global_arguments`, `node_name`, the order remap rules are - * applied, and node specific rules is identical to rcl_remap_topic_name(). - * \sa rcl_remap_topic_name() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] local_arguments Arguments to be used before global arguments. - * \param[in] global_arguments Command line arguments to use if no local rules matched, or - * `NULL` or zero-initialized to ignore global arguments. - * \param[in] node_name The current name of the node. - * \param[in] allocator A valid allocator to use. - * \param[out] output_name Either an allocated string with the remapped name, or - * `NULL` if no remap rules matched the name. - * \return #RCL_RET_OK If the name was remapped or no rules matched, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_NODE_INVALID_NAME if the name is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_remap_node_name( - const rcl_arguments_t * local_arguments, - const rcl_arguments_t * global_arguments, - const char * node_name, - rcl_allocator_t allocator, - char ** output_name); - -/// Remap a namespace based on given rules. -/** - * This function returns the namespace that a node with the given name would be remapped to. - * When a node's namespace is remapped it changes its logger name and the output of expanding - * relative topic and service names. - * - * The behavior of `local_arguments`, `global_arguments`, `node_name`, the order remap rules are - * applied, and node specific rules is identical to rcl_remap_topic_name(). - * \sa rcl_remap_topic_name() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] local_arguments Arguments to be used before global arguments. - * \param[in] global_arguments Command line arguments to use if no local rules matched, or - * `NULL` or zero-initialized to ignore global arguments. - * \param[in] node_name The name of the node whose namespace is being remapped. - * \param[in] allocator A valid allocator to be used. - * \param[out] output_namespace Either an allocated string with the remapped namespace, or - * `NULL` if no remap rules matched the name. - * \return #RCL_RET_OK if the node name was remapped or no rules matched, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_NODE_INVALID_NAMESPACE if the remapped namespace is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_remap_node_namespace( - const rcl_arguments_t * local_arguments, - const rcl_arguments_t * global_arguments, - const char * node_name, - rcl_allocator_t allocator, - char ** output_namespace); - -/// Copy one remap structure into another. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] rule The structure to be copied. - * Its allocator is used to copy memory into the new structure. - * \param[out] rule_out A zero-initialized rcl_remap_t structure to be copied into. - * \return #RCL_RET_OK if the structure was copied successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_remap_copy( - const rcl_remap_t * rule, - rcl_remap_t * rule_out); - -/// Reclaim resources held inside rcl_remap_t structure. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] remap The structure to be deallocated. - * \return #RCL_RET_OK if the memory was successfully freed, or - * \return #RCL_RET_INVALID_ARGUMENT if any function arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_remap_fini( - rcl_remap_t * remap); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__REMAP_H_ diff --git a/src/rcl/rmw_implementation_identifier_check.h b/src/rcl/rmw_implementation_identifier_check.h deleted file mode 100755 index cf39fc077..000000000 --- a/src/rcl/rmw_implementation_identifier_check.h +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__RMW_IMPLEMENTATION_IDENTIFIER_CHECK_H_ -#define RCL__RMW_IMPLEMENTATION_IDENTIFIER_CHECK_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl/visibility_control.h" - -/// The environment variable name to control which RMW implementation is used. -#define RMW_IMPLEMENTATION_ENV_VAR_NAME "RMW_IMPLEMENTATION" - -/// The environment variable name to control whether the chosen RMW implementation -/// matches the one that is in use. -#define RCL_ASSERT_RMW_ID_MATCHES_ENV_VAR_NAME "RCL_ASSERT_RMW_ID_MATCHES" - -/// Check whether the RMW implementation in use matches what the user requested. -/** - * \return #RCL_RET_OK if the RMW implementation in use matches what the user requested, or - * \return #RCL_RET_MISMATCHED_RMW_ID if the RMW implementation does not match, or - * \return #RCL_RET_BAD_ALLOC if memory allocation failed, or - * \return #RCL_RET_ERROR if some other error occurred. - */ -RCL_PUBLIC -rcl_ret_t rcl_rmw_implementation_identifier_check(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__RMW_IMPLEMENTATION_IDENTIFIER_CHECK_H_ diff --git a/src/rcl/security.h b/src/rcl/security.h deleted file mode 100755 index b37fd92cf..000000000 --- a/src/rcl/security.h +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright 2018-2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__SECURITY_H_ -#define RCL__SECURITY_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcl/allocator.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" -#include "rmw/security_options.h" - -#ifndef ROS_SECURITY_ENCLAVE_OVERRIDE -/// The name of the environment variable containing the security enclave override. -# define ROS_SECURITY_ENCLAVE_OVERRIDE "ROS_SECURITY_ENCLAVE_OVERRIDE" -#endif - -#ifndef ROS_SECURITY_KEYSTORE_VAR_NAME -/// The name of the environment variable containing the path to the keystore. -# define ROS_SECURITY_KEYSTORE_VAR_NAME "ROS_SECURITY_KEYSTORE" -#endif - -#ifndef ROS_SECURITY_STRATEGY_VAR_NAME -/// The name of the environment variable containing the security strategy. -# define ROS_SECURITY_STRATEGY_VAR_NAME "ROS_SECURITY_STRATEGY" -#endif - -#ifndef ROS_SECURITY_ENABLE_VAR_NAME -/// The name of the environment variable controlling whether security is enabled. -# define ROS_SECURITY_ENABLE_VAR_NAME "ROS_SECURITY_ENABLE" -#endif - -/// Initialize security options from values in the environment variables and given names. -/** - * Initialize the given security options based on the environment. - * For more details: - * \sa rcl_security_enabled() - * \sa rcl_get_enforcement_policy() - * \sa rcl_get_secure_root() - * - * \param[in] name name used to find the security root path. - * \param[in] allocator used to do allocations. - * \param[out] security_options security options that will be configured according to - * the environment. - * \return #RCL_RET_OK If the security options are returned properly, or - * \return #RCL_RET_INVALID_ARGUMENT if an argument is not valid, or - * \return #RCL_RET_ERROR if an unexpected error happened - */ -RCL_PUBLIC -rcl_ret_t -rcl_get_security_options_from_environment( - const char * name, - const rcutils_allocator_t * allocator, - rmw_security_options_t * security_options); - -/// Check if security has to be used, according to the environment. -/** - * If the `ROS_SECURITY_ENABLE` environment variable is set to "true", `use_security` will be set to - * true. - * - * \param[out] use_security Must not be NULL. - * \return #RCL_RET_INVALID_ARGUMENT if an argument is not valid, or - * \return #RCL_RET_ERROR if an unexpected error happened, or - * \return #RCL_RET_OK. - */ -RCL_PUBLIC -rcl_ret_t -rcl_security_enabled(bool * use_security); - -/// Get security enforcement policy from the environment. -/** - * Sets `policy` based on the value of the `ROS_SECURITY_STRATEGY` environment variable. - * If `ROS_SECURITY_STRATEGY` is "Enforce", `policy` will be `RMW_SECURITY_ENFORCEMENT_ENFORCE`. - * If not, `policy` will be `RMW_SECURITY_ENFORCEMENT_PERMISSIVE`. - * - * \param[out] policy Must not be NULL. - * \return #RCL_RET_INVALID_ARGUMENT if an argument is not valid, or - * \return #RCL_RET_ERROR if an unexpected error happened, or - * \return #RCL_RET_OK. - */ -RCL_PUBLIC -rcl_ret_t -rcl_get_enforcement_policy(rmw_security_enforcement_policy_t * policy); - -/// Return the secure root given a enclave name. -/** - * Return the security directory associated with the enclave name. - * - * The value of the environment variable `ROS_SECURITY_KEYSTORE` is used as a root. - * The specific directory to be used is found from that root using the `name` passed. - * E.g. for a context named "/a/b/c" and root "/r", the secure root path will be - * "/r/a/b/c", where the delimiter "/" is native for target file system (e.g. "\\" for _WIN32). - * - * However, this expansion can be overridden by setting the secure enclave override environment - * (`ROS_SECURITY_ENCLAVE_OVERRIDE`) variable, allowing users to explicitly specify the exact enclave - * `name` to be utilized. - * Such an override is useful for applications where the enclave is non-deterministic - * before runtime, or when testing and using additional tools that may not otherwise be easily - * provisioned. - * - * \param[in] name validated name (a single token) - * \param[in] allocator the allocator to use for allocation - * \return Machine specific (absolute) enclave directory path or NULL on failure. - * Returned pointer must be deallocated by the caller of this function - */ -RCL_PUBLIC -char * -rcl_get_secure_root(const char * name, const rcl_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__SECURITY_H_ diff --git a/src/rcl/service.h b/src/rcl/service.h deleted file mode 100755 index 3cae55ce1..000000000 --- a/src/rcl/service.h +++ /dev/null @@ -1,580 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__SERVICE_H_ -#define RCL__SERVICE_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/service_type_support_struct.h" - -#include "rcl/allocator.h" -#include "rcl/event_callback.h" -#include "rcl/macros.h" -#include "rcl/node.h" -#include "rcl/publisher.h" -#include "rcl/service_introspection.h" -#include "rcl/time.h" -#include "rcl/visibility_control.h" - -#include "rmw/types.h" - -/// Internal rcl implementation struct. -typedef struct rcl_service_impl_s rcl_service_impl_t; - -/// Structure which encapsulates a ROS Service. -typedef struct rcl_service_s -{ - /// Pointer to the service implementation - rcl_service_impl_t * impl; -} rcl_service_t; - -/// Options available for a rcl service. -typedef struct rcl_service_options_s -{ - /// Middleware quality of service settings for the service. - rmw_qos_profile_t qos; - /// Custom allocator for the service, used for incidental allocations. - /** For default behavior (malloc/free), see: rcl_get_default_allocator() */ - rcl_allocator_t allocator; -} rcl_service_options_t; - -/// Return a rcl_service_t struct with members set to `NULL`. -/** - * Should be called to get a null rcl_service_t before passing to - * rcl_service_init(). - * - * \return A structure with a zero initialized service. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_service_t -rcl_get_zero_initialized_service(void); - -/// Initialize a rcl service. -/** - * After calling this function on a rcl_service_t, it can be used to take - * requests of the given type to the given topic using rcl_take_request(). - * It can also send a response to a request using rcl_send_response(). - * - * The given rcl_node_t must be valid and the resulting rcl_service_t is - * only valid as long as the given rcl_node_t remains valid. - * - * The rosidl_service_type_support_t is obtained on a per .srv type basis. - * When the user defines a ROS service, code is generated which provides the - * required rosidl_service_type_support_t object. - * This object can be obtained using a language appropriate mechanism. - * \todo TODO(wjwwood) write these instructions once and link to it instead - * - * For C, a macro can be used (for example `example_interfaces/AddTwoInts`): - * - * ```c - * #include - * #include - * const rosidl_service_type_support_t * ts = - * ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts); - * ``` - * - * For C++, a template function is used: - * - * ```cpp - * #include - * #include - * using rosidl_typesupport_cpp::get_service_type_support_handle; - * const rosidl_service_type_support_t * ts = - * get_service_type_support_handle(); - * ``` - * - * The rosidl_service_type_support_t object contains service type specific - * information used to send or take requests and responses. - * - * The topic name must be a c string which follows the topic and service name - * format rules for unexpanded names, also known as non-fully qualified names: - * - * \see rcl_expand_topic_name - * - * The options struct allows the user to set the quality of service settings as - * well as a custom allocator which is used when initializing/finalizing the - * service to allocate space for incidentals, e.g. the service name string. - * - * Expected usage (for C services): - * - * ```c - * #include - * #include - * #include - * - * rcl_node_t node = rcl_get_zero_initialized_node(); - * rcl_node_options_t node_ops = rcl_node_get_default_options(); - * rcl_ret_t ret = rcl_node_init(&node, "node_name", "/my_namespace", &node_ops); - * // ... error handling - * const rosidl_service_type_support_t * ts = - * ROSIDL_GET_SRV_TYPE_SUPPORT(example_interfaces, srv, AddTwoInts); - * rcl_service_t service = rcl_get_zero_initialized_service(); - * rcl_service_options_t service_ops = rcl_service_get_default_options(); - * ret = rcl_service_init(&service, &node, ts, "add_two_ints", &service_ops); - * // ... error handling, and on shutdown do finalization: - * ret = rcl_service_fini(&service, &node); - * // ... error handling for rcl_service_fini() - * ret = rcl_node_fini(&node); - * // ... error handling for rcl_node_fini() - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[out] service preallocated service structure - * \param[in] node valid rcl node handle - * \param[in] type_support type support object for the service's type - * \param[in] service_name the name of the service - * \param[in] options service options, including quality of service settings - * \return #RCL_RET_OK if service was initialized successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ALREADY_INIT if the service is already initialized, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_SERVICE_NAME_INVALID if the given service name is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_service_init( - rcl_service_t * service, - const rcl_node_t * node, - const rosidl_service_type_support_t * type_support, - const char * service_name, - const rcl_service_options_t * options); - -/// Finalize a rcl_service_t. -/** - * After calling, the node will no longer listen for requests for this service. - * (assuming this is the only service of this type in this node). - * - * After calling, calls to rcl_wait(), rcl_take_request(), and - * rcl_send_response() will fail when using this service. - * Additionally rcl_wait() will be interrupted if currently blocking. - * However, the given node handle is still valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] service handle to the service to be deinitialized - * \param[in] node a valid (not finalized) handle to the node used to create the service - * \return #RCL_RET_OK if service was deinitialized successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_SERVICE_INVALID if the service is invalid, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_service_fini(rcl_service_t * service, rcl_node_t * node); - -/// Return the default service options in a rcl_service_options_t. -/** - * The defaults are: - * - * - qos = rmw_qos_profile_services_default - * - allocator = rcl_get_default_allocator() - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_service_options_t -rcl_service_get_default_options(void); - -/// Take a pending ROS request using a rcl service. -/** - * It is the job of the caller to ensure that the type of the ros_request - * argument and the type associate with the service, via the type - * support, match. - * Passing a different type to rcl_take produces undefined behavior and cannot - * be checked by this function and therefore no deliberate error will occur. - * - * TODO(jacquelinekay) blocking of take? - * TODO(jacquelinekay) pre-, during-, and post-conditions for message ownership? - * TODO(jacquelinekay) is rcl_take_request thread-safe? - * TODO(jacquelinekay) Should there be an rcl_request_id_t? - * - * The ros_request pointer should point to an already allocated ROS request message - * struct of the correct type, into which the taken ROS request will be copied - * if one is available. - * If taken is false after calling, then the ROS request will be unmodified. - * - * If allocation is required when taking the request, e.g. if space needs to - * be allocated for a dynamically sized array in the target message, then the - * allocator given in the service options is used. - * - * request_header is a pointer to pre-allocated a rmw struct containing - * meta-information about the request (e.g. the sequence number). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] only if required when filling the request, avoided for fixed sizes - * - * \param[in] service the handle to the service from which to take - * \param[inout] request_header ptr to the struct holding metadata about the request - * \param[inout] ros_request type-erased ptr to an allocated ROS request message - * \return #RCL_RET_OK if the request was taken, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_SERVICE_INVALID if the service is invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_SERVICE_TAKE_FAILED if take failed but no error occurred - * in the middleware, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_take_request_with_info( - const rcl_service_t * service, - rmw_service_info_t * request_header, - void * ros_request); - -/// Backwards compatibility function to take a pending ROS request using a rcl service. -/** - * This version takes a request ID only. See rcl_take_request_with_info() for a full - * explanation of what this does. - * - * \param[in] service the handle to the service from which to take - * \param[inout] request_header ptr to the struct holding the id of the request - * \param[inout] ros_request type-erased ptr to an allocated ROS request message - * \return #RCL_RET_OK if the request was taken, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_SERVICE_INVALID if the service is invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_SERVICE_TAKE_FAILED if take failed but no error occurred - * in the middleware, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_take_request( - const rcl_service_t * service, - rmw_request_id_t * request_header, - void * ros_request); - -/// Send a ROS response to a client using a service. -/** - * It is the job of the caller to ensure that the type of the `ros_response` - * parameter and the type associate with the service (via the type support) - * match. - * Passing a different type to send_response produces undefined behavior and - * cannot be checked by this function and therefore no deliberate error will - * occur. - * - * send_response() is an non-blocking call. - * - * The ROS response message given by the `ros_response` void pointer is always - * owned by the calling code, but should remain constant during - * rcl_send_response(). - * - * This function is thread safe so long as access to both the service and the - * `ros_response` is synchronized. - * That means that calling rcl_send_response() from multiple threads is - * allowed, but calling rcl_send_response() at the same time as non-thread safe - * service functions is not, e.g. calling rcl_send_response() and - * rcl_service_fini() concurrently is not allowed. - * The message cannot change during the rcl_send_response() call. - * Before calling rcl_send_response() the message can change but after calling - * rcl_send_response() it depends on RMW implementation behavior. - * The same `ros_response`, however, can be passed to multiple calls of - * rcl_send_response() simultaneously, even if the services differ. - * The `ros_response` is unmodified by rcl_send_response(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes [1] - * Uses Atomics | No - * Lock-Free | Yes - * [1] for unique pairs of services and responses, see above for more - * - * \param[in] service handle to the service which will make the response - * \param[inout] response_header ptr to the struct holding metadata about the request ID - * \param[in] ros_response type-erased pointer to the ROS response message - * \return #RCL_RET_OK if the response was sent successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_SERVICE_INVALID if the service is invalid, or - * \return #RCL_RET_TIMEOUT if a response reader is not ready yet, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_send_response( - const rcl_service_t * service, - rmw_request_id_t * response_header, - void * ros_response); - -/// Get the topic name for the service. -/** - * This function returns the service's internal topic name string. - * This function can fail, and therefore return `NULL`, if the: - * - service is `NULL` - * - service is invalid (never called init, called fini, or invalid) - * - * The returned string is only valid as long as the service is valid. - * The value of the string may change if the topic name changes, and therefore - * copying the string is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] service the pointer to the service - * \return name string if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const char * -rcl_service_get_service_name(const rcl_service_t * service); - -/// Return the rcl service options. -/** - * This function returns the service's internal options struct. - * This function can fail, and therefore return `NULL`, if the: - * - service is `NULL` - * - service is invalid (never called init, called fini, or invalid) - * - * The returned struct is only valid as long as the service is valid. - * The values in the struct may change if the service's options change, - * and therefore copying the struct is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] service pointer to the service - * \return options struct if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rcl_service_options_t * -rcl_service_get_options(const rcl_service_t * service); - -/// Return the rmw service handle. -/** - * The handle returned is a pointer to the internally held rmw handle. - * This function can fail, and therefore return `NULL`, if the: - * - service is `NULL` - * - service is invalid (never called init, called fini, or invalid) - * - * The returned handle is made invalid if the service is finalized or if - * rcl_shutdown() is called. - * The returned handle is not guaranteed to be valid for the life time of the - * service as it may be finalized and recreated itself. - * Therefore it is recommended to get the handle from the service using - * this function each time it is needed and avoid use of the handle - * concurrently with functions that might change it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] service pointer to the rcl service - * \return rmw service handle if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rmw_service_t * -rcl_service_get_rmw_handle(const rcl_service_t * service); - -/// Check that the service is valid. -/** - * The bool returned is `false` if `service` is invalid. - * The bool returned is `true` otherwise. - * In the case where `false` is to be returned, an error message is set. - * This function cannot fail. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] service pointer to the rcl service - * \return `true` if `service` is valid, otherwise `false` - */ -RCL_PUBLIC -bool -rcl_service_is_valid(const rcl_service_t * service); - -/// Get the actual qos settings of the service's request subscription. -/** - * Used to get the actual qos settings of the service's request subscription. - * The actual configuration applied when using RMW_*_SYSTEM_DEFAULT - * can only be resolved after the creation of the service, and it - * depends on the underlying rmw implementation. - * If the underlying setting in use can't be represented in ROS terms, - * it will be set to RMW_*_UNKNOWN. - * The returned struct is only valid as long as the rcl_service_t is valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] service pointer to the rcl service - * \return qos struct if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rmw_qos_profile_t * -rcl_service_request_subscription_get_actual_qos(const rcl_service_t * service); - -/// Get the actual qos settings of the service's response publisher. -/** - * Used to get the actual qos settings of the service's response publisher. - * The actual configuration applied when using RMW_*_SYSTEM_DEFAULT - * can only be resolved after the creation of the service, and it - * depends on the underlying rmw implementation. - * If the underlying setting in use can't be represented in ROS terms, - * it will be set to RMW_*_UNKNOWN. - * The returned struct is only valid as long as the rcl_service_t is valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] service pointer to the rcl service - * \return qos struct if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rmw_qos_profile_t * -rcl_service_response_publisher_get_actual_qos(const rcl_service_t * service); - -/// Set the on new request callback function for the service. -/** - * This API sets the callback function to be called whenever the - * service is notified about a new request. - * - * \sa rmw_service_set_on_new_request_callback for details about this function. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined - * - * \param[in] service The service on which to set the callback - * \param[in] callback The callback to be called when new requests arrive, may be NULL - * \param[in] user_data Given to the callback when called later, may be NULL - * \return `RCL_RET_OK` if callback was set to the listener, or - * \return `RCL_RET_INVALID_ARGUMENT` if `service` is NULL, or - * \return `RCL_RET_UNSUPPORTED` if the API is not implemented in the dds implementation - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_service_set_on_new_request_callback( - const rcl_service_t * service, - rcl_event_callback_t callback, - const void * user_data); - -/// Configure service introspection features for the service. -/** - * \anchor rcl_service_configure_service_introspection - * Enables or disables service introspection features for this service. - * If the introspection state is RCL_SERVICE_INTROSPECTION_OFF, then introspection will - * be disabled. If the state is RCL_SERVICE_INTROSPECTION_METADATA, the client metadata - * will be published. If the state is RCL_SERVICE_INTROSPECTION_CONTENTS, then the client - * metadata and service request and response contents will be published. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined - * - * \param[in] service service on which to configure service introspection - * \param[in] node valid rcl_node_t to use to create the introspection publisher - * \param[in] clock valid rcl_clock_t to use to generate the introspection timestamps - * \param[in] type_support type support library associated with this service - * \param[in] publisher_options options to use when creating the introspection publisher - * \param[in] introspection_state rcl_service_introspection_state_t describing whether - * introspection should be OFF, METADATA, or CONTENTS - * \return #RCL_RET_OK if the call was successful, or - * \return #RCL_RET_ERROR if the event publisher is invalid, or - * \return #RCL_RET_NODE_INVALID if the given node is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if the client or node structure is invalid, - * \return #RCL_RET_BAD_ALLOC if a memory allocation failed - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_service_configure_service_introspection( - rcl_service_t * service, - rcl_node_t * node, - rcl_clock_t * clock, - const rosidl_service_type_support_t * type_support, - const rcl_publisher_options_t publisher_options, - rcl_service_introspection_state_t introspection_state); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__SERVICE_H_ diff --git a/src/rcl/service_introspection.h b/src/rcl/service_introspection.h deleted file mode 100755 index 1055d6b9d..000000000 --- a/src/rcl/service_introspection.h +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL__SERVICE_INTROSPECTION_H_ -#define RCL__SERVICE_INTROSPECTION_H_ - -#define RCL_SERVICE_INTROSPECTION_TOPIC_POSTFIX "/_service_event" - -/// The introspection state for a client or service. -typedef enum rcl_service_introspection_state_e -{ - /// Introspection disabled - RCL_SERVICE_INTROSPECTION_OFF, - /// Introspect metadata only - RCL_SERVICE_INTROSPECTION_METADATA, - /// Introspection metadata and contents - RCL_SERVICE_INTROSPECTION_CONTENTS, -} rcl_service_introspection_state_t; - -#endif // RCL__SERVICE_INTROSPECTION_H_ diff --git a/src/rcl/subscription.h b/src/rcl/subscription.h deleted file mode 100755 index 929d4dcd5..000000000 --- a/src/rcl/subscription.h +++ /dev/null @@ -1,917 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__SUBSCRIPTION_H_ -#define RCL__SUBSCRIPTION_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -#include "rcl/event_callback.h" -#include "rcl/macros.h" -#include "rcl/node.h" -#include "rcl/visibility_control.h" - -#include "rmw/dynamic_message_type_support.h" -#include "rmw/message_sequence.h" - -/// Internal rcl implementation struct. -typedef struct rcl_subscription_impl_s rcl_subscription_impl_t; - -/// Structure which encapsulates a ROS Subscription. -typedef struct rcl_subscription_s -{ - /// Pointer to the subscription implementation - rcl_subscription_impl_t * impl; -} rcl_subscription_t; - -/// Options available for a rcl subscription. -typedef struct rcl_subscription_options_s -{ - /// Middleware quality of service settings for the subscription. - rmw_qos_profile_t qos; - /// Custom allocator for the subscription, used for incidental allocations. - /** For default behavior (malloc/free), see: rcl_get_default_allocator() */ - rcl_allocator_t allocator; - /// rmw specific subscription options, e.g. the rmw implementation specific payload. - rmw_subscription_options_t rmw_subscription_options; - /// Disable flag to LoanedMessage, initialized via environmental variable. - bool disable_loaned_message; -} rcl_subscription_options_t; - -typedef struct rcl_subscription_content_filter_options_s -{ - rmw_subscription_content_filter_options_t rmw_subscription_content_filter_options; -} rcl_subscription_content_filter_options_t; - -/// Return a rcl_subscription_t struct with members set to `NULL`. -/** - * Should be called to get a null rcl_subscription_t before passing to - * rcl_subscription_init(). - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_subscription_t -rcl_get_zero_initialized_subscription(void); - -/// Initialize a ROS subscription. -/** - * After calling this function on a rcl_subscription_t, it can be used to take - * messages of the given type to the given topic using rcl_take(). - * - * The given rcl_node_t must be valid and the resulting rcl_subscription_t is - * only valid as long as the given rcl_node_t remains valid. - * - * The rosidl_message_type_support_t is obtained on a per .msg type basis. - * When the user defines a ROS message, code is generated which provides the - * required rosidl_message_type_support_t object. - * This object can be obtained using a language appropriate mechanism. - * \todo TODO(wjwwood) write these instructions once and link to it instead - * For C a macro can be used (for example `std_msgs/String`): - * - * ```c - * #include - * #include - * const rosidl_message_type_support_t * string_ts = - * ROSIDL_GET_MSG_TYPE_SUPPORT(std_msgs, msg, String); - * ``` - * - * For C++ a template function is used: - * - * ```cpp - * #include - * #include - * using rosidl_typesupport_cpp::get_message_type_support_handle; - * const rosidl_message_type_support_t * string_ts = - * get_message_type_support_handle(); - * ``` - * - * The rosidl_message_type_support_t object contains message type specific - * information used to subscribe to messages. - * - * The topic name must be a c string which follows the topic and service name - * format rules for unexpanded names, also known as non-fully qualified names: - * - * \see rcl_expand_topic_name - * - * The options struct allows the user to set the quality of service settings as - * well as a custom allocator which is used when (de)initializing the - * subscription to allocate space for incidental things, e.g. the topic - * name string. - * - * Expected usage (for C messages): - * - * ```c - * #include - * #include - * #include - * - * rcl_node_t node = rcl_get_zero_initialized_node(); - * rcl_node_options_t node_ops = rcl_node_get_default_options(); - * rcl_ret_t ret = rcl_node_init(&node, "node_name", "/my_namespace", &node_ops); - * // ... error handling - * const rosidl_message_type_support_t * ts = - * ROSIDL_GET_MSG_TYPE_SUPPORT(std_msgs, msg, String); - * rcl_subscription_t subscription = rcl_get_zero_initialized_subscription(); - * rcl_subscription_options_t subscription_ops = rcl_subscription_get_default_options(); - * ret = rcl_subscription_init(&subscription, &node, ts, "chatter", &subscription_ops); - * // ... error handling, and when finished deinitialization - * ret = rcl_subscription_fini(&subscription, &node); - * // ... error handling for rcl_subscription_fini() - * ret = rcl_node_fini(&node); - * // ... error handling for rcl_node_fini() - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[out] subscription preallocated subscription structure - * \param[in] node valid rcl node handle - * \param[in] type_support type support object for the topic's type - * \param[in] topic_name the name of the topic - * \param[in] options subscription options, including quality of service settings - * \return #RCL_RET_OK if subscription was initialized successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ALREADY_INIT if the subcription is already initialized, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_TOPIC_NAME_INVALID if the given topic name is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_subscription_init( - rcl_subscription_t * subscription, - const rcl_node_t * node, - const rosidl_message_type_support_t * type_support, - const char * topic_name, - const rcl_subscription_options_t * options -); - -/// Finalize a rcl_subscription_t. -/** - * After calling, the node will no longer be subscribed on this topic - * (assuming this is the only subscription on this topic in this node). - * - * After calling, calls to rcl_wait and rcl_take will fail when using this - * subscription. - * Additioanlly rcl_wait will be interrupted if currently blocking. - * However, the given node handle is still valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] subscription handle to the subscription to be deinitialized - * \param[in] node a valid (not finalized) handle to the node used to create the subscription - * \return #RCL_RET_OK if subscription was deinitialized successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_SUBSCRIPTION_INVALID if the subscription is invalid, or - * \return #RCL_RET_NODE_INVALID if the node is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_subscription_fini(rcl_subscription_t * subscription, rcl_node_t * node); - -/// Return the default subscription options in a rcl_subscription_options_t. -/** - * The defaults are: - * - * - qos = rmw_qos_profile_default - * - allocator = rcl_get_default_allocator() - * - rmw_subscription_options = rmw_get_default_subscription_options(); - * - disable_loaned_message = true, false only if ROS_DISABLE_LOANED_MESSAGES=0 - * - * \return A structure containing the default options for a subscription. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_subscription_options_t -rcl_subscription_get_default_options(void); - -/// Reclaim resources held inside rcl_subscription_options_t structure. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] option The structure which its resources have to be deallocated. - * \return `RCL_RET_OK` if the memory was successfully freed, or - * \return `RCL_RET_INVALID_ARGUMENT` if option is NULL, or - * \return `RCL_RET_BAD_ALLOC` if deallocating memory fails. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_subscription_options_fini(rcl_subscription_options_t * option); - -/// Set the content filter options for the given subscription options. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] filter_expression The filter expression is similar to the WHERE part of an SQL clause. - * \param[in] expression_parameters_argc The maximum of expression parameters argc is 100. - * \param[in] expression_parameter_argv The expression parameters argv are the tokens placeholder - * ‘parameters’ (i.e., "%n" tokens begin from 0) in the filter_expression. - * - * It can be NULL if there is no "%n" tokens placeholder in filter_expression. - * \param[out] options The subscription options to be set. - * \return `RCL_RET_OK` if set options successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if arguments invalid, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory fails. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_subscription_options_set_content_filter_options( - const char * filter_expression, - size_t expression_parameters_argc, - const char * expression_parameter_argv[], - rcl_subscription_options_t * options); - -/// Return the zero initialized subscription content filter options. -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_subscription_content_filter_options_t -rcl_get_zero_initialized_subscription_content_filter_options(void); - -/// Initialize the content filter options for the given subscription options. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] subscription the handle to the subscription. - * \param[in] filter_expression The filter expression is similar to the WHERE part of an SQL clause, - * use empty ("") can reset (or clear) the content filter setting of a subscription. - * \param[in] expression_parameters_argc The maximum of expression parameters argc is 100. - * \param[in] expression_parameter_argv The expression parameters argv are the tokens placeholder - * ‘parameters’ (i.e., "%n" tokens begin from 0) in the filter_expression. - * - * It can be NULL if there is no "%n" tokens placeholder in filter_expression. - * \param[out] options The subscription options to be set. - * \return `RCL_RET_OK` if set options successfully, or - * \return `RCL_RET_SUBSCRIPTION_INVALID` if subscription is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if arguments invalid, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory fails. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_subscription_content_filter_options_init( - const rcl_subscription_t * subscription, - const char * filter_expression, - size_t expression_parameters_argc, - const char * expression_parameter_argv[], - rcl_subscription_content_filter_options_t * options); - -/// Set the content filter options for the given subscription options. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] subscription the handle to the subscription. - * \param[in] filter_expression The filter expression is similar to the WHERE part of an SQL clause, - * use empty ("") can reset (or clear) the content filter setting of a subscription. - * \param[in] expression_parameters_argc The maximum of expression parameters argc is 100. - * \param[in] expression_parameter_argv The expression parameters argv are the tokens placeholder - * ‘parameters’ (i.e., "%n" tokens begin from 0) in the filter_expression. - * - * It can be NULL if there is no "%n" tokens placeholder in filter_expression. - * \param[out] options The subscription options to be set. - * \return `RCL_RET_OK` if set options successfully, or - * \return `RCL_RET_SUBSCRIPTION_INVALID` if subscription is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if arguments invalid, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory fails. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_subscription_content_filter_options_set( - const rcl_subscription_t * subscription, - const char * filter_expression, - size_t expression_parameters_argc, - const char * expression_parameter_argv[], - rcl_subscription_content_filter_options_t * options); - -/// Reclaim rcl_subscription_content_filter_options_t structure. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] subscription the handle to the subscription. - * \param[in] options The structure which its resources have to be deallocated. - * \return `RCL_RET_OK` if the memory was successfully freed, or - * \return `RCL_RET_SUBSCRIPTION_INVALID` if subscription is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if option is NULL, or - * if its allocator is invalid and the structure contains initialized memory. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_subscription_content_filter_options_fini( - const rcl_subscription_t * subscription, - rcl_subscription_content_filter_options_t * options); - -/// Check if the content filtered topic feature is enabled in the subscription. -/** - * Depending on the middleware and whether cft is enabled in the subscription. - * - * \return `true` if the content filtered topic of `subscription` is enabled, otherwise `false` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -bool -rcl_subscription_is_cft_enabled(const rcl_subscription_t * subscription); - -/// Set the filter expression and expression parameters for the subscription. -/** - * This function will set a filter expression and an array of expression parameters - * for the given subscription. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * \param[in] subscription The subscription to set content filter options. - * \param[in] options The rcl content filter options. - * \return `RCL_RET_OK` if the query was successful, or - * \return `RCL_RET_INVALID_ARGUMENT` if `subscription` is NULL, or - * \return `RCL_RET_INVALID_ARGUMENT` if `options` is NULL, or - * \return `RCL_RET_UNSUPPORTED` if the implementation does not support content filter topic, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_subscription_set_content_filter( - const rcl_subscription_t * subscription, - const rcl_subscription_content_filter_options_t * options -); - -/// Retrieve the filter expression of the subscription. -/** - * This function will return an filter expression by the given subscription. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * \param[in] subscription The subscription object to inspect. - * \param[out] options The rcl content filter options. - * It is up to the caller to finalize this options later on, using - * rcl_subscription_content_filter_options_fini(). - * \return `RCL_RET_OK` if the query was successful, or - * \return `RCL_RET_INVALID_ARGUMENT` if `subscription` is NULL, or - * \return `RCL_RET_INVALID_ARGUMENT` if `options` is NULL, or - * \return `RCL_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RCL_RET_UNSUPPORTED` if the implementation does not support content filter topic, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_subscription_get_content_filter( - const rcl_subscription_t * subscription, - rcl_subscription_content_filter_options_t * options -); - -/// Take a ROS message from a topic using a rcl subscription. -/** - * It is the job of the caller to ensure that the type of the ros_message - * argument and the type associated with the subscription, via the type - * support, match. - * Passing a different type to rcl_take produces undefined behavior and cannot - * be checked by this function and therefore no deliberate error will occur. - * - * TODO(wjwwood) blocking of take? - * TODO(wjwwood) pre-, during-, and post-conditions for message ownership? - * TODO(wjwwood) is rcl_take thread-safe? - * TODO(wjwwood) Should there be an rcl_message_info_t? - * - * The ros_message pointer should point to an already allocated ROS message - * struct of the correct type, into which the taken ROS message will be copied - * if one is available. - * If taken is false after calling, then the ROS message will be unmodified. - * - * The taken boolean may be false even if a wait set reports that the - * subscription was ready to be taken from in some cases, e.g. when the - * state of the subscription changes it may cause the wait set to wake up - * but subsequent takes to fail to take anything. - * - * If allocation is required when taking the message, e.g. if space needs to - * be allocated for a dynamically sized array in the target message, then the - * allocator given in the subscription options is used. - * - * The rmw_message_info struct contains meta information about this particular - * message instance, like what the GUID of the publisher which published it - * originally or whether or not the message received from within the same - * process. - * The message_info argument should be an already allocated rmw_message_info_t - * structure. - * Passing `NULL` for message_info will result in the argument being ignored. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] only if required when filling the message, avoided for fixed sizes - * - * \param[in] subscription the handle to the subscription from which to take - * \param[inout] ros_message type-erased ptr to a allocated ROS message - * \param[out] message_info rmw struct which contains meta-data for the message - * \param[in] allocation structure pointer used for memory preallocation (may be NULL) - * \return #RCL_RET_OK if the message was taken, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_SUBSCRIPTION_INVALID if the subscription is invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_SUBSCRIPTION_TAKE_FAILED if take failed but no error - * occurred in the middleware, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_take( - const rcl_subscription_t * subscription, - void * ros_message, - rmw_message_info_t * message_info, - rmw_subscription_allocation_t * allocation -); - -/// Take a sequence of messages from a topic using a rcl subscription. -/** - * In contrast to rcl_take(), this function can take multiple messages at - * the same time. - * It is the job of the caller to ensure that the type of the message_sequence - * argument and the type associated with the subscription, via the type - * support, match. - * - * The message_sequence pointer should point to an already allocated sequence - * of ROS messages of the correct type, into which the taken ROS messages will - * be copied if messages are available. - * The message_sequence `size` member will be set to the number of messages - * correctly taken. - * - * The rmw_message_info_sequence struct contains meta information about the - * corresponding message instance index. - * The message_info_sequence argument should be an already allocated - * rmw_message_info_sequence_t structure. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] only if storage in the serialized_message is insufficient - * - * \param[in] subscription the handle to the subscription from which to take. - * \param[in] count number of messages to attempt to take. - * \param[inout] message_sequence pointer to a (pre-allocated) message sequence. - * \param[inout] message_info_sequence pointer to a (pre-allocated) message info sequence. - * \param[in] allocation structure pointer used for memory preallocation (may be NULL) - * \return #RCL_RET_OK if one or more messages was taken, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_SUBSCRIPTION_INVALID if the subscription is invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_SUBSCRIPTION_TAKE_FAILED if take failed but no error - * occurred in the middleware, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_take_sequence( - const rcl_subscription_t * subscription, - size_t count, - rmw_message_sequence_t * message_sequence, - rmw_message_info_sequence_t * message_info_sequence, - rmw_subscription_allocation_t * allocation -); - -/// Take a serialized raw message from a topic using a rcl subscription. -/** - * In contrast to rcl_take(), this function stores the taken message in - * its raw binary representation. - * It is the job of the caller to ensure that the type associate with the subscription - * matches, and can optionally be deserialized into its ROS message via, the correct - * type support. - * If the `serialized_message` parameter contains enough preallocated memory, the incoming - * message can be taken without any additional memory allocation. - * If not, the function will dynamically allocate enough memory for the message. - * Passing a different type to rcl_take produces undefined behavior and cannot - * be checked by this function and therefore no deliberate error will occur. - * - * Apart from the differences above, this function behaves like rcl_take(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] only if storage in the serialized_message is insufficient - * - * \param[in] subscription the handle to the subscription from which to take - * \param[inout] serialized_message pointer to a (pre-allocated) serialized message. - * \param[out] message_info rmw struct which contains meta-data for the message - * \param[in] allocation structure pointer used for memory preallocation (may be NULL) - * \return #RCL_RET_OK if the message was published, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_SUBSCRIPTION_INVALID if the subscription is invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_SUBSCRIPTION_TAKE_FAILED if take failed but no error - * occurred in the middleware, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_take_serialized_message( - const rcl_subscription_t * subscription, - rcl_serialized_message_t * serialized_message, - rmw_message_info_t * message_info, - rmw_subscription_allocation_t * allocation); - -/// Take a dynamic type message from a topic using a rcl subscription. -/** - * In contrast to rcl_take(), this function takes a dynamic type message with dynamic data taken - * directly from the middleware. - * It is the job of the caller to ensure that the type associated with the subscription - * matches, and that the subscription uses the dynamic type rosidl_message_type_support_t. - * - * Apart from the differences above, this function behaves like rcl_take(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] subscription the handle to the subscription from which to take - * \param[inout] dynamic_message pointer to a (pre-allocated) dynamic type message. - * \param[out] message_info rmw struct which contains meta-data for the message - * \param[in] allocation structure pointer used for memory preallocation (may be NULL) - * \return #RCL_RET_OK if the message was taken, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_SUBSCRIPTION_INVALID if the subscription is invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_SUBSCRIPTION_TAKE_FAILED if take failed but no error - * occurred in the middleware, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_take_dynamic_message( - const rcl_subscription_t * subscription, - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_message, - rmw_message_info_t * message_info, - rmw_subscription_allocation_t * allocation); - -/// Take a loaned message from a topic using a rcl subscription. -/** - * Depending on the middleware, incoming messages can be loaned to the user's callback - * without further copying. - * The implicit contract here is that the middleware owns the memory allocated for this message. - * The user must not destroy the message, but rather has to return it with a call to - * \sa rcl_return_loaned_message to the middleware. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] subscription the handle to the subscription from which to take - * \param[inout] loaned_message a pointer to the loaned messages. - * \param[out] message_info rmw struct which contains meta-data for the message. - * \param[in] allocation structure pointer used for memory preallocation (may be NULL) - * \return #RCL_RET_OK if the loaned message sequence was taken, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_SUBSCRIPTION_INVALID if the subscription is invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_SUBSCRIPTION_TAKE_FAILED if take failed but no error - * occurred in the middleware, or - * \return #RCL_RET_UNSUPPORTED if the middleware does not support that feature, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_take_loaned_message( - const rcl_subscription_t * subscription, - void ** loaned_message, - rmw_message_info_t * message_info, - rmw_subscription_allocation_t * allocation); - -/// Return a loaned message from a topic using a rcl subscription. -/** - * If a loaned message was previously obtained from the middleware with a call to - * \sa rcl_take_loaned_message, this message has to be returned to indicate to the middleware - * that the user no longer needs that memory. - * The user must not delete the message. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] subscription the handle to the subscription from which to take - * \param[in] loaned_message a pointer to the loaned messages. - * \return #RCL_RET_OK if the message was published, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_SUBSCRIPTION_INVALID if the subscription is invalid, or - * \return #RCL_RET_UNSUPPORTED if the middleware does not support that feature, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_return_loaned_message_from_subscription( - const rcl_subscription_t * subscription, - void * loaned_message); - -/// Get the topic name for the subscription. -/** - * This function returns the subscription's internal topic name string. - * This function can fail, and therefore return `NULL`, if the: - * - subscription is `NULL` - * - subscription is invalid (never called init, called fini, or invalid) - * - * The returned string is only valid as long as the subscription is valid. - * The value of the string may change if the topic name changes, and therefore - * copying the string is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] subscription the pointer to the subscription - * \return name string if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const char * -rcl_subscription_get_topic_name(const rcl_subscription_t * subscription); - -/// Return the rcl subscription options. -/** - * This function returns the subscription's internal options struct. - * This function can fail, and therefore return `NULL`, if the: - * - subscription is `NULL` - * - subscription is invalid (never called init, called fini, or invalid) - * - * The returned struct is only valid as long as the subscription is valid. - * The values in the struct may change if the subscription's options change, - * and therefore copying the struct is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] subscription pointer to the subscription - * \return options struct if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rcl_subscription_options_t * -rcl_subscription_get_options(const rcl_subscription_t * subscription); - -/// Return the rmw subscription handle. -/** - * The handle returned is a pointer to the internally held rmw handle. - * This function can fail, and therefore return `NULL`, if the: - * - subscription is `NULL` - * - subscription is invalid (never called init, called fini, or invalid) - * - * The returned handle is made invalid if the subscription is finalized or if - * rcl_shutdown() is called. - * The returned handle is not guaranteed to be valid for the life time of the - * subscription as it may be finalized and recreated itself. - * Therefore it is recommended to get the handle from the subscription using - * this function each time it is needed and avoid use of the handle - * concurrently with functions that might change it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] subscription pointer to the rcl subscription - * \return rmw subscription handle if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rmw_subscription_t * -rcl_subscription_get_rmw_handle(const rcl_subscription_t * subscription); - -/// Check that the subscription is valid. -/** - * The bool returned is `false` if `subscription` is invalid. - * The bool returned is `true` otherwise. - * In the case where `false` is to be returned, an error message is set. - * This function cannot fail. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] subscription pointer to the rcl subscription - * \return `true` if `subscription` is valid, otherwise `false` - */ -RCL_PUBLIC -bool -rcl_subscription_is_valid(const rcl_subscription_t * subscription); - -/// Get the number of publishers matched to a subscription. -/** - * Used to get the internal count of publishers matched to a subscription. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] only if the underlying rmw doesn't make use of this feature - * - * \param[in] subscription pointer to the rcl subscription - * \param[out] publisher_count number of matched publishers - * \return #RCL_RET_OK if the count was retrieved, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_SUBSCRIPTION_INVALID if the subscription is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rmw_ret_t -rcl_subscription_get_publisher_count( - const rcl_subscription_t * subscription, - size_t * publisher_count); - -/// Get the actual qos settings of the subscription. -/** - * Used to get the actual qos settings of the subscription. - * The actual configuration applied when using RMW_*_SYSTEM_DEFAULT - * can only be resolved after the creation of the subscription, and it - * depends on the underlying rmw implementation. - * If the underlying setting in use can't be represented in ROS terms, - * it will be set to RMW_*_UNKNOWN. - * The returned struct is only valid as long as the rcl_subscription_t is valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] subscription pointer to the rcl subscription - * \return qos struct if successful, otherwise `NULL` - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rmw_qos_profile_t * -rcl_subscription_get_actual_qos(const rcl_subscription_t * subscription); - -/// Check if subscription instance can loan messages. -/** - * Depending on the middleware and the message type, this will return true if the middleware - * can allocate a ROS message instance. - * - * \param[in] subscription The subscription instance to check for the ability to loan messages - * \return `true` if the subscription instance can loan messages, `false` otherwise. - */ -RCL_PUBLIC -bool -rcl_subscription_can_loan_messages(const rcl_subscription_t * subscription); - -/// Set the on new message callback function for the subscription. -/** - * This API sets the callback function to be called whenever the - * subscription is notified about a new message. - * - * \sa rmw_subscription_set_on_new_message_callback for details about this - * function. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined - * - * \param[in] subscription The subscription on which to set the callback - * \param[in] callback The callback to be called when new messages arrive, may be NULL - * \param[in] user_data Given to the callback when called later, may be NULL - * \return `RCL_RET_OK` if successful, or - * \return `RCL_RET_INVALID_ARGUMENT` if `subscription` is NULL, or - * \return `RCL_RET_UNSUPPORTED` if the API is not implemented in the dds implementation - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_subscription_set_on_new_message_callback( - const rcl_subscription_t * subscription, - rcl_event_callback_t callback, - const void * user_data); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__SUBSCRIPTION_H_ diff --git a/src/rcl/time.h b/src/rcl/time.h deleted file mode 100755 index 30f6f1299..000000000 --- a/src/rcl/time.h +++ /dev/null @@ -1,734 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__TIME_H_ -#define RCL__TIME_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl/allocator.h" -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" -#include "rcutils/time.h" - -/// Convenience macro to convert seconds to nanoseconds. -#define RCL_S_TO_NS RCUTILS_S_TO_NS -/// Convenience macro to convert milliseconds to nanoseconds. -#define RCL_MS_TO_NS RCUTILS_MS_TO_NS -/// Convenience macro to convert microseconds to nanoseconds. -#define RCL_US_TO_NS RCUTILS_US_TO_NS - -/// Convenience macro to convert nanoseconds to seconds. -#define RCL_NS_TO_S RCUTILS_NS_TO_S -/// Convenience macro to convert nanoseconds to milliseconds. -#define RCL_NS_TO_MS RCUTILS_NS_TO_MS -/// Convenience macro to convert nanoseconds to microseconds. -#define RCL_NS_TO_US RCUTILS_NS_TO_US - -/// A single point in time, measured in nanoseconds since the Unix epoch. -typedef rcutils_time_point_value_t rcl_time_point_value_t; -/// A duration of time, measured in nanoseconds. -typedef rcutils_duration_value_t rcl_duration_value_t; - -/// Time source type, used to indicate the source of a time measurement. -/** - * RCL_ROS_TIME will report the latest value reported by a ROS time source, or - * if a ROS time source is not active it reports the same as RCL_SYSTEM_TIME. - * For more information about ROS time sources, refer to the design document: - * http://design.ros2.org/articles/clock_and_time.html - * - * RCL_SYSTEM_TIME reports the same value as the system clock. - * - * RCL_STEADY_TIME reports a value from a monotonically increasing clock. - */ -typedef enum rcl_clock_type_e -{ - /// Clock uninitialized - RCL_CLOCK_UNINITIALIZED = 0, - /// Use ROS time - RCL_ROS_TIME, - /// Use system time - RCL_SYSTEM_TIME, - /// Use a steady clock time - RCL_STEADY_TIME -} rcl_clock_type_t; - -/// A duration of time, measured in nanoseconds and its source. -typedef struct rcl_duration_s -{ - /// Duration in nanoseconds and its source. - rcl_duration_value_t nanoseconds; -} rcl_duration_t; - -/// Enumeration to describe the type of time jump. -typedef enum rcl_clock_change_e -{ - /// The source before and after the jump is ROS_TIME. - RCL_ROS_TIME_NO_CHANGE = 1, - /// The source switched to ROS_TIME from SYSTEM_TIME. - RCL_ROS_TIME_ACTIVATED = 2, - /// The source switched to SYSTEM_TIME from ROS_TIME. - RCL_ROS_TIME_DEACTIVATED = 3, - /// The source before and after the jump is SYSTEM_TIME. - RCL_SYSTEM_TIME_NO_CHANGE = 4 -} rcl_clock_change_t; - -/// Struct to describe a jump in time. -typedef struct rcl_time_jump_s -{ - /// Indicate whether or not the source of time changed. - rcl_clock_change_t clock_change; - /// The new time minus the last time before the jump. - rcl_duration_t delta; -} rcl_time_jump_t; - -/// Signature of a time jump callback. -/// \param[in] time_jump A description of the jump in time. -/// \param[in] before_jump Every jump callback is called twice: once before the clock changes and -/// once after. This is true the first call and false the second. -/// \param[in] user_data A pointer given at callback registration which is passed to the callback. -typedef void (* rcl_jump_callback_t)( - const rcl_time_jump_t * time_jump, - bool before_jump, - void * user_data); - -/// Describe the prerequisites for calling a time jump callback. -typedef struct rcl_jump_threshold_s -{ - /// True to call callback when the clock type changes. - bool on_clock_change; - /// A positive duration indicating the minimum jump forwards to be considered exceeded, or zero - /// to disable. - rcl_duration_t min_forward; - /// A negative duration indicating the minimum jump backwards to be considered exceeded, or zero - /// to disable. - rcl_duration_t min_backward; -} rcl_jump_threshold_t; - -/// Struct to describe an added callback. -typedef struct rcl_jump_callback_info_s -{ - /// Callback to fucntion. - rcl_jump_callback_t callback; - /// Threshold to decide when to call the callback. - rcl_jump_threshold_t threshold; - /// Pointer passed to the callback. - void * user_data; -} rcl_jump_callback_info_t; - -/// Encapsulation of a time source. -typedef struct rcl_clock_s -{ - /// Clock type - rcl_clock_type_t type; - /// An array of added jump callbacks. - rcl_jump_callback_info_t * jump_callbacks; - /// Number of callbacks in jump_callbacks. - size_t num_jump_callbacks; - /// Pointer to get_now function - rcl_ret_t (* get_now)(void * data, rcl_time_point_value_t * now); - // void (*set_now) (rcl_time_point_value_t); - /// Clock storage - void * data; - /// Custom allocator used for internal allocations. - rcl_allocator_t allocator; -} rcl_clock_t; - -/// A single point in time, measured in nanoseconds, the reference point is based on the source. -typedef struct rcl_time_point_s -{ - /// Nanoseconds of the point in time - rcl_time_point_value_t nanoseconds; - /// Clock type of the point in time - rcl_clock_type_t clock_type; -} rcl_time_point_t; - -// typedef struct rcl_rate_t -// { -// rcl_time_point_value_t trigger_time; -// int64_t period; -// rcl_clock_type_t clock;; -// } rcl_rate_t; -// TODO(tfoote) integrate rate and timer implementations - -/// Check if the clock has started. -/** - * This function returns true if the clock contains a time point value - * that is non-zero. - * Note that if data is uninitialized it may give a false positive. - * - * This function is primarily used to check if a clock using ROS time - * has started. This is because it is possible that a simulator might be - * initialized paused, causing ROS time to be 0 until it is unpaused. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] clock the handle to the clock which is being queried - * \return true if the clock has started, otherwise return false. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -bool -rcl_clock_time_started(rcl_clock_t * clock); - -/// Check if the clock has valid values. -/** - * This function returns true if the time source appears to be valid. - * It will check that the type is not uninitialized, and that pointers - * are not invalid. - * Note that if data is uninitialized it may give a false positive. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] clock the handle to the clock which is being queried - * \return true if the source is believed to be valid, otherwise return false. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -bool -rcl_clock_valid(rcl_clock_t * clock); - -/// Initialize a clock based on the passed type. -/** - * This will allocate all necessary internal structures, and initialize variables. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes [1] - * Thread-Safe | No [2] - * Uses Atomics | No - * Lock-Free | Yes - * - * [1] If `clock_type` is #RCL_ROS_TIME - * [2] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * Thread-safety is also affected by that of the `allocator` object. - * - * \param[in] clock_type the type identifying the time source to provide - * \param[in] clock the handle to the clock which is being initialized - * \param[in] allocator The allocator to use for allocations - * \return #RCL_RET_OK if the time source was successfully initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_clock_init( - rcl_clock_type_t clock_type, rcl_clock_t * clock, - rcl_allocator_t * allocator); - -/// Finalize a clock. -/** - * This will deallocate all necessary internal structures, and clean up any variables. - * It can be combined with any of the init functions. - * - * Passing a clock with type #RCL_CLOCK_UNINITIALIZED will result in - * #RCL_RET_INVALID_ARGUMENT being returned. - * - * This function is not thread-safe with any other function operating on the same - * clock object. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No [1] - * Uses Atomics | No - * Lock-Free | Yes - * - * [1] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * Thread-safety is also affected by that of the `allocator` object associated with the - * `clock` object. - * - * \param[in] clock the handle to the clock which is being finalized - * \return #RCL_RET_OK if the time source was successfully finalized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_clock_fini( - rcl_clock_t * clock); - -/// Initialize a clock as a #RCL_ROS_TIME time source. -/** - * This will allocate all necessary internal structures, and initialize variables. - * It is specifically setting up a #RCL_ROS_TIME time source. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No [1] - * Uses Atomics | No - * Lock-Free | Yes - * - * [2] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * Thread-safety is also affected by that of the `allocator` object. - * - * \param[in] clock the handle to the clock which is being initialized - * \param[in] allocator The allocator to use for allocations - * \return #RCL_RET_OK if the time source was successfully initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_ros_clock_init( - rcl_clock_t * clock, - rcl_allocator_t * allocator); - -/// Finalize a clock as a #RCL_ROS_TIME time source. -/** - * This will deallocate all necessary internal structures, and clean up any variables. - * It is specifically setting up a #RCL_ROS_TIME time source. It is expected - * to be paired with the init fuction. - * - * This function is not thread-safe with any other function operating on the same - * clock object. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No [1] - * Uses Atomics | No - * Lock-Free | Yes - * - * [1] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * Thread-safety is also affected by that of the `allocator` object associated with the - * `clock` object. - * - * \param[in] clock the handle to the clock which is being initialized - * \return #RCL_RET_OK if the time source was successfully finalized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_ros_clock_fini( - rcl_clock_t * clock); - -/// Initialize a clock as a #RCL_STEADY_TIME time source. -/** - * This will allocate all necessary internal structures, and initialize variables. - * It is specifically setting up a #RCL_STEADY_TIME time source. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No [1] - * Uses Atomics | No - * Lock-Free | Yes - * - * [1] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * Thread-safety is also affected by that of the `allocator` object. - * - * \param[in] clock the handle to the clock which is being initialized - * \param[in] allocator The allocator to use for allocations - * \return #RCL_RET_OK if the time source was successfully initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_steady_clock_init( - rcl_clock_t * clock, - rcl_allocator_t * allocator); - -/// Finalize a clock as a #RCL_STEADY_TIME time source. -/** - * Finalize the clock as a #RCL_STEADY_TIME time source. - * - * This will deallocate all necessary internal structures, and clean up any variables. - * It is specifically setting up a steady time source. It is expected to be - * paired with the init fuction. - * - * This function is not thread-safe with any other function operating on the same - * clock object. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No [1] - * Uses Atomics | No - * Lock-Free | Yes - * - * [1] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * Thread-safety is also affected by that of the `allocator` object associated with the - * `clock` object. - * - * \param[in] clock the handle to the clock which is being initialized - * \return #RCL_RET_OK if the time source was successfully finalized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_steady_clock_fini( - rcl_clock_t * clock); - -/// Initialize a clock as a #RCL_SYSTEM_TIME time source. -/** - * Initialize the clock as a #RCL_SYSTEM_TIME time source. - * - * This will allocate all necessary internal structures, and initialize variables. - * It is specifically setting up a system time source. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No [1] - * Uses Atomics | No - * Lock-Free | Yes - * - * [1] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * Thread-safety is also affected by that of the `allocator` object associated with the - * `clock` object. - * - * \param[in] clock the handle to the clock which is being initialized - * \param[in] allocator The allocator to use for allocations - * \return #RCL_RET_OK if the time source was successfully initialized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_system_clock_init( - rcl_clock_t * clock, - rcl_allocator_t * allocator); - -/// Finalize a clock as a #RCL_SYSTEM_TIME time source. -/** - * Finalize the clock as a #RCL_SYSTEM_TIME time source. - * - * This will deallocate all necessary internal structures, and clean up any variables. - * It is specifically setting up a system time source. It is expected to be paired with - * the init fuction. - * - * This function is not thread-safe with any function operating on the same clock object. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No [1] - * Uses Atomics | No - * Lock-Free | Yes - * - * [1] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * Thread-safety is also affected by that of the `allocator` object associated with the - * `clock` object. - * - * \param[in] clock the handle to the clock which is being initialized. - * \return #RCL_RET_OK if the time source was successfully finalized, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_system_clock_fini( - rcl_clock_t * clock); - -/// Compute the difference between two time points -/** - * This function takes two time points and computes the duration between them. - * The two time points must be using the same time abstraction, and the - * resultant duration will also be of the same abstraction. - * - * The value will be computed as duration = finish - start. If start is after - * finish the duration will be negative. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] start The time point for the start of the duration. - * \param[in] finish The time point for the end of the duration. - * \param[out] delta The duration between the start and finish. - * \return #RCL_RET_OK if the difference was computed successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_difference_times( - const rcl_time_point_t * start, const rcl_time_point_t * finish, rcl_duration_t * delta); - -/// Fill the time point value with the current value of the associated clock. -/** - * This function will populate the data of the time_point_value object with the - * current value from it's associated time abstraction. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes [1] - * Lock-Free | Yes - * - * [1] If `clock` is of #RCL_ROS_TIME type. - * - * \param[in] clock The time source from which to set the value. - * \param[out] time_point_value The time_point value to populate. - * \return #RCL_RET_OK if the last call time was retrieved successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_clock_get_now(rcl_clock_t * clock, rcl_time_point_value_t * time_point_value); - - -/// Enable the ROS time abstraction override. -/** - * This method will enable the ROS time abstraction override values, - * such that the time source will report the set value instead of falling - * back to system time. - * - * This function is not thread-safe with rcl_clock_add_jump_callback(), - * nor rcl_clock_remove_jump_callback() functions when used on the same - * clock object. - * - *
- * Attribute | Adherence [1] - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No [2] - * Uses Atomics | No - * Lock-Free | Yes - * - * [1] Only applies to the function itself, as jump callbacks may not abide to it. - * [2] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * - * \param[in] clock The clock to enable. - * \return #RCL_RET_OK if the time source was enabled successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_enable_ros_time_override(rcl_clock_t * clock); - -/// Disable the ROS time abstraction override. -/** - * This method will disable the #RCL_ROS_TIME time abstraction override values, - * such that the time source will report the system time even if a custom - * value has been set. - * - * This function is not thread-safe with rcl_clock_add_jump_callback(), - * nor rcl_clock_remove_jump_callback() functions when used on the same - * clock object. - * - *
- * Attribute | Adherence [1] - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No [2] - * Uses Atomics | No - * Lock-Free | Yes - * - * [1] Only applies to the function itself, as jump callbacks may not abide to it. - * [2] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * - * \param[in] clock The clock to disable. - * \return #RCL_RET_OK if the time source was disabled successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_disable_ros_time_override(rcl_clock_t * clock); - - -/// Check if the #RCL_ROS_TIME time source has the override enabled. -/** - * This will populate the is_enabled object to indicate if the - * time overide is enabled. If it is enabled, the set value will be returned. - * Otherwise this time source will return the equivalent to system time abstraction. - * - * This function is not thread-safe with rcl_enable_ros_time_override() nor - * rcl_disable_ros_time_override() functions when used on the same clock object. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No [1] - * Uses Atomics | No - * Lock-Free | Yes - * - * [1] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * - * \param[in] clock The clock to query. - * \param[out] is_enabled Whether the override is enabled.. - * \return #RCL_RET_OK if the time source was queried successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_is_enabled_ros_time_override( - rcl_clock_t * clock, bool * is_enabled); - -/// Set the current time for this #RCL_ROS_TIME time source. -/** - * This function will update the internal storage for the #RCL_ROS_TIME - * time source. - * If queried and override enabled the time source will return this value, - * otherwise it will return the system time. - * - * This function is not thread-safe with rcl_clock_add_jump_callback(), - * nor rcl_clock_remove_jump_callback() functions when used on the same - * clock object. - * - *
- * Attribute | Adherence [1] - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No [2] - * Uses Atomics | Yes - * Lock-Free | Yes - * - * [1] Only applies to the function itself, as jump callbacks may not abide to it. - * [2] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * - * \param[in] clock The clock to update. - * \param[in] time_value The new current time. - * \return #RCL_RET_OK if the time source was set successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_set_ros_time_override( - rcl_clock_t * clock, rcl_time_point_value_t time_value); - -/// Add a callback to be called when a time jump exceeds a threshold. -/** - * The callback is called twice when the threshold is exceeded: once before the clock is - * updated, and once after. - * The user_data pointer is passed to the callback as the last argument. - * A callback and user_data pair must be unique among the callbacks added to a clock. - * - * This function is not thread-safe with rcl_clock_remove_jump_callback(), - * rcl_enable_ros_time_override(), rcl_disable_ros_time_override() nor - * rcl_set_ros_time_override() functions when used on the same clock object. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No [1] - * Uses Atomics | No - * Lock-Free | Yes - * - * [1] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * Thread-safety is also affected by that of the `allocator` object associated with the - * `clock` object. - * - * \param[in] clock A clock to add a jump callback to. - * \param[in] threshold Criteria indicating when to call the callback. - * \param[in] callback A callback to call. - * \param[in] user_data A pointer to be passed to the callback. - * \return #RCL_RET_OK if the callback was added successfully, or - * \return #RCL_RET_BAD_ALLOC if a memory allocation failed, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_clock_add_jump_callback( - rcl_clock_t * clock, rcl_jump_threshold_t threshold, rcl_jump_callback_t callback, - void * user_data); - -/// Remove a previously added time jump callback. -/** - * This function is not thread-safe with rcl_clock_add_jump_callback() - * rcl_enable_ros_time_override(), rcl_disable_ros_time_override() nor - * rcl_set_ros_time_override() functions when used on the same clock object. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No [1] - * Uses Atomics | No - * Lock-Free | Yes - * - * [1] Function is reentrant, but concurrent calls on the same `clock` object are not safe. - * Thread-safety is also affected by that of the `allocator` object associated with the - * `clock` object. - * - * \param[in] clock The clock to remove a jump callback from. - * \param[in] callback The callback to call. - * \param[in] user_data A pointer to be passed to the callback. - * \return #RCL_RET_OK if the callback was added successfully, or - * \return #RCL_RET_BAD_ALLOC if a memory allocation failed, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR the callback was not found or an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_clock_remove_jump_callback( - rcl_clock_t * clock, rcl_jump_callback_t callback, void * user_data); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__TIME_H_ diff --git a/src/rcl/timer.h b/src/rcl/timer.h deleted file mode 100755 index 9a4e45664..000000000 --- a/src/rcl/timer.h +++ /dev/null @@ -1,696 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__TIMER_H_ -#define RCL__TIMER_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcl/allocator.h" -#include "rcl/context.h" -#include "rcl/event_callback.h" -#include "rcl/guard_condition.h" -#include "rcl/macros.h" -#include "rcl/time.h" -#include "rcl/types.h" -#include "rcutils/logging_macros.h" -#include "rmw/rmw.h" - -typedef struct rcl_timer_impl_s rcl_timer_impl_t; - -/// Structure which encapsulates a ROS Timer. -typedef struct rcl_timer_s -{ - /// Private implementation pointer. - rcl_timer_impl_t * impl; -} rcl_timer_t; - -/// Structure which encapsulates the on reset callback data -typedef struct rcl_timer_on_reset_callback_data_s -{ - rcl_event_callback_t on_reset_callback; - const void * user_data; - size_t reset_counter; -} rcl_timer_on_reset_callback_data_t; - -/// Structure which encapsulates timer information when called. -typedef struct rcl_timer_call_info_s -{ - rcl_time_point_value_t expected_call_time; - rcl_time_point_value_t actual_call_time; -} rcl_timer_call_info_t; - -/// User callback signature for timers. -/** - * The first argument the callback gets is a pointer to the timer. - * This can be used to cancel the timer, query the time until the next - * timer callback, exchange the callback with a different one, etc. - * - * The only caveat is that the function rcl_timer_get_time_since_last_call() - * will return the time since just before this callback was called, not the - * previous call. - * Therefore the second argument given is the time since the previous callback - * was called, because that information is no longer accessible via the timer. - * The time since the last callback call is given in nanoseconds. - */ -typedef void (* rcl_timer_callback_t)(rcl_timer_t *, int64_t); - -/// Return a zero initialized timer. -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_timer_t -rcl_get_zero_initialized_timer(void); - -/// Initialize a timer. -/** - * A timer consists of a clock, a callback function and a period. - * A timer can be added to a wait set and waited on, such that the wait set - * will wake up when a timer is ready to be executed. - * - * A timer simply holds state and does not automatically call callbacks. - * It does not create any threads, register interrupts, or consume signals. - * For blocking behavior it can be used in conjunction with a wait set and - * rcl_wait(). - * When rcl_timer_is_ready() returns true, the timer must still be called - * explicitly using rcl_timer_call(). - * - * The timer handle must be a pointer to an allocated and zero initialized - * rcl_timer_t struct. - * Calling this function on an already initialized timer will fail. - * Calling this function on a timer struct which has been allocated but not - * zero initialized is undefined behavior. - * - * The clock handle must be a pointer to an initialized rcl_clock_t struct. - * The life time of the clock must exceed the life time of the timer. - * - * The period is a non-negative duration (rather an absolute time in the - * future). - * If the period is `0` then it will always be ready. - * - * The callback is an optional argument. - * Valid inputs are either a pointer to the function callback, or `NULL` to - * indicate that no callback will be stored in rcl. - * If the callback is `NULL`, the caller client library is responsible for - * firing the timer callback. - * Else, it must be a function which returns void and takes two arguments, - * the first being a pointer to the associated timer, and the second a int64_t - * which is the time since the previous call, or since the timer was created - * if it is the first call to the callback. - * - * Expected usage: - * - * ```c - * #include - * - * void my_timer_callback(rcl_timer_t * timer, int64_t last_call_time) - * { - * // Do timer work... - * // Optionally reconfigure, cancel, or reset the timer... - * } - * - * rcl_context_t * context; // initialized previously by rcl_init()... - * rcl_clock_t clock; - * rcl_allocator_t allocator = rcl_get_default_allocator(); - * rcl_ret_t ret = rcl_clock_init(RCL_STEADY_TIME, &clock, &allocator); - * // ... error handling - * - * rcl_timer_t timer = rcl_get_zero_initialized_timer(); - * ret = rcl_timer_init2( - * &timer, &clock, context, RCL_MS_TO_NS(100), my_timer_callback, allocator, true); - * // ... error handling, use the timer with a wait set, or poll it manually, then cleanup - * ret = rcl_timer_fini(&timer); - * // ... error handling - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes [1][2][3] - * [1] if `atomic_is_lock_free()` returns true for `atomic_uintptr_t` - * - * [2] if `atomic_is_lock_free()` returns true for `atomic_uint_least64_t` - * - * [3] if `atomic_is_lock_free()` returns true for `atomic_bool` - * - * \param[inout] timer the timer handle to be initialized - * \param[in] clock the clock providing the current time - * \param[in] context the context that this timer is to be associated with - * \param[in] period the duration between calls to the callback in nanoseconds - * \param[in] callback the user defined function to be called every period - * \param[in] allocator the allocator to use for allocations - * \param[in] autostart the state of the timer at initialization - * \return #RCL_RET_OK if the timer was initialized successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ALREADY_INIT if the timer was already initialized, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_init2( - rcl_timer_t * timer, - rcl_clock_t * clock, - rcl_context_t * context, - int64_t period, - const rcl_timer_callback_t callback, - rcl_allocator_t allocator, - bool autostart); - -/// Finalize a timer. -/** - * This function will deallocate any memory and make the timer invalid. - * - * A timer that is already invalid (zero initialized) or `NULL` will not fail. - * - * This function is not thread-safe with any rcl_timer_* functions used on the - * same timer object. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes [1][2][3] - * [1] if `atomic_is_lock_free()` returns true for `atomic_uintptr_t` - * - * [2] if `atomic_is_lock_free()` returns true for `atomic_uint_least64_t` - * - * [3] if `atomic_is_lock_free()` returns true for `atomic_bool` - * - * \param[inout] timer the handle to the timer to be finalized. - * \return #RCL_RET_OK if the timer was finalized successfully, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_fini(rcl_timer_t * timer); - -/// Call the timer's callback and set the last call time. -/** - * This function will call the callback and change the last call time even if - * the timer's period has not yet elapsed. - * It is up to the calling code to make sure the period has elapsed by first - * calling rcl_timer_is_ready(). - * If the callback pointer is `NULL` (either set in init or exchanged after - * initialized), no callback is fired. - * However, this function should still be called by the client library to - * update the state of the timer. - * The order of operations in this command are as follows: - * - * - Ensure the timer has not been canceled. - * - Get the current time into a temporary rcl_steady_time_point_t. - * - Exchange the current time with the last call time of the timer. - * - Call the callback, passing this timer and the time since the last call. - * - Return after the callback has completed. - * - * During the callback the timer can be canceled or have its period and/or - * callback modified. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes [1] - * Uses Atomics | Yes - * Lock-Free | Yes [2] - * [1] user callback might not be thread-safe - * - * [2] if `atomic_is_lock_free()` returns true for `atomic_int_least64_t` - * - * \param[inout] timer the handle to the timer to call - * \return #RCL_RET_OK if the timer was called successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMER_INVALID if the timer->impl is invalid, or - * \return #RCL_RET_TIMER_CANCELED if the timer has been canceled, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_call(rcl_timer_t * timer); - -/// Same as rcl_timer_call() except that it also retrieves the actual and expected call time. -/** - * Same as rcl_timer_call() except that it also retrieves the actual and expected call time. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes [1] - * Uses Atomics | Yes - * Lock-Free | Yes [2] - * [1] user callback might not be thread-safe - * - * [2] if `atomic_is_lock_free()` returns true for `atomic_int_least64_t` - * - * \param[inout] timer the handle to the timer to call - * \param[out] call_info the struct in which the actual and expected call times are stored - * \return #RCL_RET_OK if the timer was called successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMER_INVALID if the timer->impl is invalid, or - * \return #RCL_RET_TIMER_CANCELED if the timer has been canceled, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_call_with_info(rcl_timer_t * timer, rcl_timer_call_info_t * call_info); - -/// Retrieve the clock of the timer. -/** - * This function retrieves the clock pointer and copies it into the given variable. - * - * The clock argument must be a pointer to an already allocated rcl_clock_t *. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] timer the handle to the timer which is being queried - * \param[out] clock the rcl_clock_t * in which the clock is stored - * \return #RCL_RET_OK if the clock was retrieved successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMER_INVALID if the timer is invalid. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_clock(const rcl_timer_t * timer, rcl_clock_t ** clock); - -/// Calculates whether or not the timer should be called. -/** - * The result is true if the time until next call is less than, or equal to, 0 - * and the timer has not been canceled. - * Otherwise the result is false, indicating the timer should not be called. - * - * The is_ready argument must point to an allocated bool object, as the result - * is copied into it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_int_least64_t` - * - * \param[in] timer the handle to the timer which is being checked - * \param[out] is_ready the bool used to store the result of the calculation - * \return #RCL_RET_OK if the last call time was retrieved successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMER_INVALID if the timer->impl is invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_is_ready(const rcl_timer_t * timer, bool * is_ready); - -/// Calculate and retrieve the time until the next call in nanoseconds. -/** - * This function calculates the time until the next call by adding the timer's - * period to the last call time and subtracting that sum from the current time. - * The calculated time until the next call can be positive, indicating that it - * is not ready to be called as the period has not elapsed since the last call. - * The calculated time until the next call can also be 0 or negative, - * indicating that the period has elapsed since the last call and the timer - * should be called. - * A negative value indicates the timer call is overdue by that amount. - * - * The `time_until_next_call` argument must point to an allocated int64_t, as - * the time until is copied into that instance. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_int_least64_t` - * - * \param[in] timer the handle to the timer that is being queried - * \param[out] time_until_next_call the output variable for the result - * \return #RCL_RET_OK if the timer until next call was successfully calculated, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMER_INVALID if the timer->impl is invalid, or - * \return #RCL_RET_TIMER_CANCELED if the timer is canceled, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_get_time_until_next_call(const rcl_timer_t * timer, int64_t * time_until_next_call); - -/// Retrieve the time when the next call to rcl_timer_call() shall occur. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_int_least64_t` - * - * \param[in] timer the handle to the timer that is being queried - * \param[out] next_call_time the output variable for the result - * \return #RCL_RET_OK if the timer until next call was successfully calculated, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMER_INVALID if the timer->impl is invalid, or - * \return #RCL_RET_TIMER_CANCELED if the timer is canceled, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_get_next_call_time(const rcl_timer_t * timer, int64_t * next_call_time); - -/// Retrieve the time since the previous call to rcl_timer_call() occurred. -/** - * This function calculates the time since the last call and copies it into - * the given int64_t variable. - * - * Calling this function within a callback will not return the time since the - * previous call but instead the time since the current callback was called. - * - * The time_since_last_call argument must be a pointer to an already allocated - * int64_t. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_int_least64_t` - * - * \param[in] timer the handle to the timer which is being queried - * \param[out] time_since_last_call the struct in which the time is stored - * \return #RCL_RET_OK if the last call time was retrieved successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMER_INVALID if the timer->impl is invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_get_time_since_last_call(const rcl_timer_t * timer, int64_t * time_since_last_call); - -/// Retrieve the period of the timer. -/** - * This function retrieves the period and copies it into the given variable. - * - * The period argument must be a pointer to an already allocated int64_t. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_int_least64_t` - * - * \param[in] timer the handle to the timer which is being queried - * \param[out] period the int64_t in which the period is stored - * \return #RCL_RET_OK if the period was retrieved successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMER_INVALID if the timer->impl is invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_get_period(const rcl_timer_t * timer, int64_t * period); - -/// Exchange the period of the timer and return the previous period. -/** - * This function exchanges the period in the timer and copies the old one into - * the given variable. - * - * Exchanging (changing) the period will not affect already waiting wait sets. - * - * The old_period argument must be a pointer to an already allocated int64_t. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_int_least64_t` - * - * \param[in] timer the handle to the timer which is being modified - * \param[out] new_period the int64_t to exchange into the timer - * \param[out] old_period the int64_t in which the previous period is stored - * \return #RCL_RET_OK if the period was retrieved successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMER_INVALID if the timer->impl is invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_exchange_period(const rcl_timer_t * timer, int64_t new_period, int64_t * old_period); - -/// Return the current timer callback. -/** - * This function can fail, and therefore return `NULL`, if: - * - timer is `NULL` - * - timer has not been initialized (the implementation is invalid) - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_int_least64_t` - * - * \param[in] timer handle to the timer from the callback should be returned - * \return function pointer to the callback, or `NULL` if an error occurred - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_timer_callback_t -rcl_timer_get_callback(const rcl_timer_t * timer); - -/// Exchange the current timer callback and return the current callback. -/** - * This function can fail, and therefore return `NULL`, if: - * - timer is `NULL` - * - timer has not been initialized (the implementation is invalid) - * - * This function can set callback to `NULL`, in which case the callback is - * ignored when rcl_timer_call is called. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_int_least64_t` - * - * \param[inout] timer handle to the timer from the callback should be exchanged - * \param[in] new_callback the callback to be exchanged into the timer - * \return function pointer to the old callback, or `NULL` if an error occurred - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_timer_callback_t -rcl_timer_exchange_callback(rcl_timer_t * timer, const rcl_timer_callback_t new_callback); - -/// Cancel a timer. -/** - * When a timer is canceled, rcl_timer_is_ready() will return false for that - * timer, and rcl_timer_call() will fail with RCL_RET_TIMER_CANCELED. - * - * A canceled timer can be reset with rcl_timer_reset(), and then used again. - * Calling this function on an already canceled timer will succeed. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_int_least64_t` - * - * \param[inout] timer the timer to be canceled - * \return #RCL_RET_OK if the timer was canceled successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMER_INVALID if the timer is invalid. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_cancel(rcl_timer_t * timer); - -/// Retrieve the canceled state of a timer. -/** - * If the timer is canceled true will be stored in the is_canceled argument. - * Otherwise false will be stored in the is_canceled argument. - * - * The is_canceled argument must point to an allocated bool, as the result is - * copied into this variable. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_bool` - * - * \param[in] timer the timer to be queried - * \param[out] is_canceled storage for the is canceled bool - * \return #RCL_RET_OK if the last call time was retrieved successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMER_INVALID if the timer->impl is invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_is_canceled(const rcl_timer_t * timer, bool * is_canceled); - -/// Reset a timer. -/** - * This function can be called on a timer, canceled or not. - * For all timers it will reset the last call time to now. - * For canceled timers it will additionally make the timer not canceled. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_int_least64_t` - * - * \param[inout] timer the timer to be reset - * \return #RCL_RET_OK if the timer was reset successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_TIMER_INVALID if the timer is invalid, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_reset(rcl_timer_t * timer); - -/// Return the allocator for the timer. -/** - * This function can fail, and therefore return `NULL`, if: - * - timer is `NULL` - * - timer has not been initialized (the implementation is invalid) - * - * The returned pointer is only valid as long as the timer object is valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] timer handle to the timer object - * \return pointer to the allocator, or `NULL` if an error occurred - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const rcl_allocator_t * -rcl_timer_get_allocator(const rcl_timer_t * timer); - -/// Retrieve a guard condition used by the timer to wake the waitset when using ROSTime. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] timer the timer to be queried - * \return `NULL` if the timer is invalid or does not have a guard condition, or - * \return a guard condition pointer. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_guard_condition_t * -rcl_timer_get_guard_condition(const rcl_timer_t * timer); - -/// Set the on reset callback function for the timer. -/** - * This API sets the callback function to be called whenever the - * timer is reset. - * If the timer has already been reset, the callback will be called. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] timer The handle to the timer on which to set the callback - * \param[in] on_reset_callback The callback to be called when timer is reset - * \param[in] user_data Given to the callback when called later, may be NULL - * \return `RCL_RET_OK` if successful, or - * \return `RCL_RET_INVALID_ARGUMENT` if `timer` is NULL - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_timer_set_on_reset_callback( - const rcl_timer_t * timer, - rcl_event_callback_t on_reset_callback, - const void * user_data); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__TIMER_H_ diff --git a/src/rcl/type_description_conversions.h b/src/rcl/type_description_conversions.h deleted file mode 100755 index 25b604767..000000000 --- a/src/rcl/type_description_conversions.h +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright 2023 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL__TYPE_DESCRIPTION_CONVERSIONS_H_ -#define RCL__TYPE_DESCRIPTION_CONVERSIONS_H_ - -#include "rcl/macros.h" -#include "rcl/visibility_control.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "type_description_interfaces/msg/type_description.h" -#include "type_description_interfaces/msg/type_source.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/// Convert type description runtime struct to msg struct. -/** - * This function converts a rosidl_runtime_c__type_description__TypeDescription - * to the corresponding type_description_interfaces/msg/TypeDescription struct. - * The retrieved pointer shall be destroyed with - * `type_description_interfaces__msg__TypeDescription__destroy()` after use. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] runtime_description the pointer to the runtime type description struct - * \return a valid type_description_interfaces/msg/TypeDescription pointer, or - * \return NULL if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -type_description_interfaces__msg__TypeDescription * -rcl_convert_type_description_runtime_to_msg( - const rosidl_runtime_c__type_description__TypeDescription * runtime_description); - -/// Convert type description msg struct to a rosidl runtime struct. -/** - * This function converts a type_description_interfaces/msg/TypeDescription - * to the corresponding rosidl_runtime_c__type_description__TypeDescription - * struct. The retrieved pointer shall be destroyed with - * `rosidl_runtime_c__type_description__TypeDescription__destroy()` after use. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] description_msg the pointer to the msg type description struct - * \return a valid pointer to the runtime struct, or - * \return NULL if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rosidl_runtime_c__type_description__TypeDescription * -rcl_convert_type_description_msg_to_runtime( - const type_description_interfaces__msg__TypeDescription * description_msg); - -/// Convert type sources sequence runtime struct to msg struct. -/** - * This function converts a rosidl_runtime_c__type_description__TypeSource__Sequence - * struct to the corresponding type_description_interfaces__msg__TypeSource__Sequence - * struct. The retrieved pointer shall be destroyed with - * `type_description_interfaces__msg__TypeSource__Sequence__destroy()` after use. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] runtime_type_sources the pointer to the type sources sequence struct - * \return a valid pointer to the msg struct, or - * \return NULL if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -type_description_interfaces__msg__TypeSource__Sequence * -rcl_convert_type_source_sequence_runtime_to_msg( - const rosidl_runtime_c__type_description__TypeSource__Sequence * runtime_type_sources); - -/// Convert type sources sequece msg struct to a rosidl runtime struct. -/** - * This function converts a rosidl_runtime_c__type_description__TypeSource__Sequence - * struct to the corresponding type_description_interfaces__msg__TypeSource__Sequence - * struct. The retrieved pointer shall be destroyed with - * `type_description_interfaces__msg__TypeSource__Sequence__destroy()` after use. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] type_sources_msg the pointer to the type sources sequence struct - * \return a valid pointer to the msg struct, or - * \return NULL if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_convert_type_source_sequence_msg_to_runtime( - const type_description_interfaces__msg__TypeSource__Sequence * type_sources_msg); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__TYPE_DESCRIPTION_CONVERSIONS_H_ diff --git a/src/rcl/type_hash.h b/src/rcl/type_hash.h deleted file mode 100755 index 08ac509ce..000000000 --- a/src/rcl/type_hash.h +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright 2023 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL__TYPE_HASH_H_ -#define RCL__TYPE_HASH_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl/types.h" -#include "rcl/visibility_control.h" -#include "rcutils/sha256.h" -#include "rosidl_runtime_c/type_hash.h" -#include "type_description_interfaces/msg/type_description.h" - -/// Given a TypeDescription, output a string of the hashable JSON representation of that data. -/** - * The output here is generally hashed via rcl_calculate_type_hash() below. - * Compare this reference implementation with the .json output files from - * `rosidl_generator_type_description.generate_type_hash`. - * Both must produce the same output for the same types, providing a stable reference for - * external implementations of the ROS 2 Type Version Hash. - * - * The JSON representation contains all types and fields of the original message, but excludes: - * - Default values - * - Comments - * - The input plaintext files that generated the TypeDescription - * - * \param[in] type_description Prefilled TypeDescription message to be translated - * \param[out] output_repr An initialized empty char array that will be filled with - * the JSON representation of type_description. Note that output_repr will have a - * terminating null character, which should be omitted from hashing. To do so, use - * (output_repr.buffer_length - 1) or strlen(output_repr.buffer) for the size of data to hash. - * \return #RCL_RET_OK on success, or - * \return #RCL_RET_ERROR if any problems occur in translation. - */ -RCL_PUBLIC -rcl_ret_t -rcl_type_description_to_hashable_json( - const type_description_interfaces__msg__TypeDescription * type_description, - rcutils_char_array_t * output_repr); - -/// Calculate the Type Version Hash for a given TypeDescription. -/** - * This function produces a stable hash value for a ROS communication interface type. - * For design motivations leading to this implementation, see REP-2011. - * - * This convenience wrapper calls rcl_type_description_to_hashable_json, - * then runs sha256 hash on the result. - * - * \param[in] msg Prefilled TypeDescription message describing the type to be hashed - * \param[out] message_digest Preallocated buffer, to be filled with calculated checksum - * \return #RCL_RET_OK on success, or - * \return #RCL_RET_ERROR if any problems occur while hashing. - */ -RCL_PUBLIC -rcl_ret_t -rcl_calculate_type_hash( - const type_description_interfaces__msg__TypeDescription * type_description, - rosidl_type_hash_t * out_type_hash); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__TYPE_HASH_H_ diff --git a/src/rcl/types.h b/src/rcl/types.h deleted file mode 100755 index 223817eb1..000000000 --- a/src/rcl/types.h +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__TYPES_H_ -#define RCL__TYPES_H_ - -#include -#include - -/// The type that holds an rcl return code. -typedef rmw_ret_t rcl_ret_t; - -/// Success return code. -#define RCL_RET_OK RMW_RET_OK -/// Unspecified error return code. -#define RCL_RET_ERROR RMW_RET_ERROR -/// Timeout occurred return code. -#define RCL_RET_TIMEOUT RMW_RET_TIMEOUT -/// Failed to allocate memory return code. -#define RCL_RET_BAD_ALLOC RMW_RET_BAD_ALLOC -/// Invalid argument return code. -#define RCL_RET_INVALID_ARGUMENT RMW_RET_INVALID_ARGUMENT -/// Unsupported return code. -#define RCL_RET_UNSUPPORTED RMW_RET_UNSUPPORTED - -// rcl specific ret codes start at 100 -/// rcl_init() already called return code. -#define RCL_RET_ALREADY_INIT 100 -/// rcl_init() not yet called return code. -#define RCL_RET_NOT_INIT 101 -/// Mismatched rmw identifier return code. -#define RCL_RET_MISMATCHED_RMW_ID 102 -/// Topic name does not pass validation. -#define RCL_RET_TOPIC_NAME_INVALID 103 -/// Service name (same as topic name) does not pass validation. -#define RCL_RET_SERVICE_NAME_INVALID 104 -/// Topic name substitution is unknown. -#define RCL_RET_UNKNOWN_SUBSTITUTION 105 -/// rcl_shutdown() already called return code. -#define RCL_RET_ALREADY_SHUTDOWN 106 -/// Resource not found -#define RCL_RET_NOT_FOUND 107 - -// rcl node specific ret codes in 2XX -/// Invalid rcl_node_t given return code. -#define RCL_RET_NODE_INVALID 200 -/// Invalid node name return code. -#define RCL_RET_NODE_INVALID_NAME 201 -/// Invalid node namespace return code. -#define RCL_RET_NODE_INVALID_NAMESPACE 202 -/// Failed to find node name -#define RCL_RET_NODE_NAME_NON_EXISTENT 203 - -// rcl publisher specific ret codes in 3XX -/// Invalid rcl_publisher_t given return code. -#define RCL_RET_PUBLISHER_INVALID 300 - -// rcl subscription specific ret codes in 4XX -/// Invalid rcl_subscription_t given return code. -#define RCL_RET_SUBSCRIPTION_INVALID 400 -/// Failed to take a message from the subscription return code. -#define RCL_RET_SUBSCRIPTION_TAKE_FAILED 401 - -// rcl service client specific ret codes in 5XX -/// Invalid rcl_client_t given return code. -#define RCL_RET_CLIENT_INVALID 500 -/// Failed to take a response from the client return code. -#define RCL_RET_CLIENT_TAKE_FAILED 501 - -// rcl service server specific ret codes in 6XX -/// Invalid rcl_service_t given return code. -#define RCL_RET_SERVICE_INVALID 600 -/// Failed to take a request from the service return code. -#define RCL_RET_SERVICE_TAKE_FAILED 601 - -// rcl guard condition specific ret codes in 7XX - -// rcl timer specific ret codes in 8XX -/// Invalid rcl_timer_t given return code. -#define RCL_RET_TIMER_INVALID 800 -/// Given timer was canceled return code. -#define RCL_RET_TIMER_CANCELED 801 - -// rcl wait and wait set specific ret codes in 9XX -/// Invalid rcl_wait_set_t given return code. -#define RCL_RET_WAIT_SET_INVALID 900 -/// Given rcl_wait_set_t is empty return code. -#define RCL_RET_WAIT_SET_EMPTY 901 -/// Given rcl_wait_set_t is full return code. -#define RCL_RET_WAIT_SET_FULL 902 - -// rcl argument parsing specific ret codes in 1XXX -/// Argument is not a valid remap rule -#define RCL_RET_INVALID_REMAP_RULE 1001 -/// Expected one type of lexeme but got another -#define RCL_RET_WRONG_LEXEME 1002 -/// Found invalid ros argument while parsing -#define RCL_RET_INVALID_ROS_ARGS 1003 -/// Argument is not a valid parameter rule -#define RCL_RET_INVALID_PARAM_RULE 1010 -/// Argument is not a valid log level rule -#define RCL_RET_INVALID_LOG_LEVEL_RULE 1020 - -// rcl event specific ret codes in 20XX -/// Invalid rcl_event_t given return code. -#define RCL_RET_EVENT_INVALID 2000 -/// Failed to take an event from the event handle -#define RCL_RET_EVENT_TAKE_FAILED 2001 - -/// rcl_lifecycle state register ret codes in 30XX -/// rcl_lifecycle state registered -#define RCL_RET_LIFECYCLE_STATE_REGISTERED 3000 -/// rcl_lifecycle state not registered -#define RCL_RET_LIFECYCLE_STATE_NOT_REGISTERED 3001 - -// rcl action specific ret codes in 40XX -/// Action name does not pass validation return code. -#define RCL_RET_ACTION_NAME_INVALID 4000 -/// No terminal timestamp for the goal as it has not reached a terminal state. -#define RCL_RET_ACTION_NOT_TERMINATED_YET 4001 -/// Action goal accepted return code. -#define RCL_RET_ACTION_GOAL_ACCEPTED 4100 -/// Action goal rejected return code. -#define RCL_RET_ACTION_GOAL_REJECTED 4101 -/// Action client is invalid return code. -#define RCL_RET_ACTION_CLIENT_INVALID 4102 -/// Action client failed to take response return code. -#define RCL_RET_ACTION_CLIENT_TAKE_FAILED 4103 -/// Action server is invalid return code. -#define RCL_RET_ACTION_SERVER_INVALID 4200 -/// Action server failed to take request return code. -#define RCL_RET_ACTION_SERVER_TAKE_FAILED 4201 -/// Action goal handle invalid return code. -#define RCL_RET_ACTION_GOAL_HANDLE_INVALID 4300 -/// Action invalid event return code. -#define RCL_RET_ACTION_GOAL_EVENT_INVALID 4301 - -/// typedef for rmw_serialized_message_t; -typedef rmw_serialized_message_t rcl_serialized_message_t; - -#endif // RCL__TYPES_H_ diff --git a/src/rcl/validate_enclave_name.h b/src/rcl/validate_enclave_name.h deleted file mode 100755 index 7b96d9610..000000000 --- a/src/rcl/validate_enclave_name.h +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__VALIDATE_ENCLAVE_NAME_H_ -#define RCL__VALIDATE_ENCLAVE_NAME_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/validate_namespace.h" -#include "rmw/validate_node_name.h" - -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -/// The enclave name is valid. -#define RCL_ENCLAVE_NAME_VALID RMW_NAMESPACE_VALID - -/// The enclave name is invalid because it is an empty string. -#define RCL_ENCLAVE_NAME_INVALID_IS_EMPTY_STRING RMW_NAMESPACE_INVALID_IS_EMPTY_STRING - -/// The enclave name is invalid because it is not absolute. -#define RCL_ENCLAVE_NAME_INVALID_NOT_ABSOLUTE RMW_NAMESPACE_INVALID_NOT_ABSOLUTE - -/// The enclave name is invalid because it ends with a forward slash. -#define RCL_ENCLAVE_NAME_INVALID_ENDS_WITH_FORWARD_SLASH \ - RMW_NAMESPACE_INVALID_ENDS_WITH_FORWARD_SLASH - -/// The enclave name is invalid because it has characters that are not allowed. -#define RCL_ENCLAVE_NAME_INVALID_CONTAINS_UNALLOWED_CHARACTERS \ - RMW_NAMESPACE_INVALID_CONTAINS_UNALLOWED_CHARACTERS - -/// The enclave name is invalid because it contains repeated forward slashes. -#define RCL_ENCLAVE_NAME_INVALID_CONTAINS_REPEATED_FORWARD_SLASH \ - RMW_NAMESPACE_INVALID_CONTAINS_REPEATED_FORWARD_SLASH - -/// The enclave name is invalid because one of the tokens starts with a number. -#define RCL_ENCLAVE_NAME_INVALID_NAME_TOKEN_STARTS_WITH_NUMBER \ - RMW_NAMESPACE_INVALID_NAME_TOKEN_STARTS_WITH_NUMBER - -/// The enclave name is invalid because the name is too long. -#define RCL_ENCLAVE_NAME_INVALID_TOO_LONG RMW_NAMESPACE_INVALID_TOO_LONG - -/// The maximum length of an enclave name. -#define RCL_ENCLAVE_NAME_MAX_LENGTH RMW_NODE_NAME_MAX_NAME_LENGTH - -/// Determine if a given enclave name is valid. -/** - * The same rules as rmw_validate_namespace() are used. - * The only difference is in the maximum allowed length, which can be up to 255 characters. - * - * \param[in] enclave enclave to be validated - * \param[out] validation_result int in which the result of the check is stored - * \param[out] invalid_index index of the input string where an error occurred - * \return #RCL_RET_OK on successfully running the check, or - * \return #RCL_RET_INVALID_ARGUMENT on invalid parameters, or - * \return #RCL_RET_ERROR when an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_validate_enclave_name( - const char * enclave, - int * validation_result, - size_t * invalid_index); - -/// Determine if a given enclave name is valid. -/** - * This is an overload of rcl_validate_enclave_name() with an extra parameter - * for the length of enclave. - * - * \param[in] enclave enclave to be validated - * \param[in] enclave_length The number of characters in enclave - * \param[out] validation_result int in which the result of the check is stored - * \param[out] invalid_index index of the input string where an error occurred - * \return #RCL_RET_OK on successfully running the check, or - * \return #RCL_RET_INVALID_ARGUMENT on invalid parameters, or - * \return #RCL_RET_ERROR when an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_validate_enclave_name_with_size( - const char * enclave, - size_t enclave_length, - int * validation_result, - size_t * invalid_index); - -/// Return a validation result description, or NULL if unknown or RCL_ENCLAVE_NAME_VALID. -/** - * \param[in] validation_result The validation result to get the string for - * \return A string description of the validation result if successful, or - * \return NULL if the validation result is invalid. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const char * -rcl_enclave_name_validation_result_string(int validation_result); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__VALIDATE_ENCLAVE_NAME_H_ diff --git a/src/rcl/validate_topic_name.h b/src/rcl/validate_topic_name.h deleted file mode 100755 index 76696f212..000000000 --- a/src/rcl/validate_topic_name.h +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__VALIDATE_TOPIC_NAME_H_ -#define RCL__VALIDATE_TOPIC_NAME_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl/macros.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -/// The topic name is valid. -#define RCL_TOPIC_NAME_VALID 0 - -/// The topic name is invalid because it is an empty string. -#define RCL_TOPIC_NAME_INVALID_IS_EMPTY_STRING 1 - -/// The topic name is invalid because it ends with a forward slash. -#define RCL_TOPIC_NAME_INVALID_ENDS_WITH_FORWARD_SLASH 2 - -/// The topic name is invalid because it has characters that are not allowed. -#define RCL_TOPIC_NAME_INVALID_CONTAINS_UNALLOWED_CHARACTERS 3 - -/// The topic name is invalid because one of the tokens starts with a number. -#define RCL_TOPIC_NAME_INVALID_NAME_TOKEN_STARTS_WITH_NUMBER 4 - -/// The topic name is invalid because it has an unmatched curly brace. -#define RCL_TOPIC_NAME_INVALID_UNMATCHED_CURLY_BRACE 5 - -/// The topic name is invalid because it has a misplaced tilde in it. -#define RCL_TOPIC_NAME_INVALID_MISPLACED_TILDE 6 - -/// The topic name is invalid because a tilde is not directly followed by a forward slash. -#define RCL_TOPIC_NAME_INVALID_TILDE_NOT_FOLLOWED_BY_FORWARD_SLASH 7 - -/// The topic name is invalid because one of the substitutions has characters that are not allowed. -#define RCL_TOPIC_NAME_INVALID_SUBSTITUTION_CONTAINS_UNALLOWED_CHARACTERS 8 - -/// The topic name is invalid because one of the substitutions starts with a number. -#define RCL_TOPIC_NAME_INVALID_SUBSTITUTION_STARTS_WITH_NUMBER 9 - -/// Validate a given topic name. -/** - * The topic name does not need to be a full qualified name, but it should - * follow some of the rules in this document: - * - * http://design.ros2.org/articles/topic_and_service_names.html - * - * Note that this function expects any URL suffixes as described in the above - * document to have already been removed. - * - * If the input topic is valid, RCL_TOPIC_NAME_VALID will be stored - * into validation_result. - * If the input topic violates any of the rules then one of these values will - * be stored into validation_result: - * - * - RCL_TOPIC_NAME_INVALID_IS_EMPTY_STRING - * - RCL_TOPIC_NAME_INVALID_ENDS_WITH_FORWARD_SLASH - * - RCL_TOPIC_NAME_INVALID_CONTAINS_UNALLOWED_CHARACTERS - * - RCL_TOPIC_NAME_INVALID_NAME_TOKEN_STARTS_WITH_NUMBER - * - RCL_TOPIC_NAME_INVALID_UNMATCHED_CURLY_BRACE - * - RCL_TOPIC_NAME_INVALID_MISPLACED_TILDE - * - RCL_TOPIC_NAME_INVALID_TILDE_NOT_FOLLOWED_BY_FORWARD_SLASH - * - RCL_TOPIC_NAME_INVALID_SUBSTITUTION_CONTAINS_UNALLOWED_CHARACTERS - * - RCL_TOPIC_NAME_INVALID_SUBSTITUTION_STARTS_WITH_NUMBER - * - * Some checks, like the check for illegal repeated forward slashes, are not - * checked in this function because they would need to be checked again after - * expansion anyways. - * The purpose of this subset of checks is to try to catch issues with content - * that will be expanded in some way by rcl_expand_topic_name(), like `~` or - * substitutions inside of `{}`, or with other issues that would obviously - * prevent expansion, like RCL_TOPIC_NAME_INVALID_IS_EMPTY_STRING. - * - * This function does not check that the substitutions are known substitutions, - * only that the contents of the `{}` follow the rules outline in the document - * which was linked to above. - * - * Stricter validation can be done with rmw_validate_full_topic_name() after using - * rcl_expand_topic_name(). - * - * Additionally, if the invalid_index argument is not NULL, then it will be - * assigned the index in the topic_name string where the violation occurs. - * The invalid_index is not set if the validation passes. - * - * \param[in] topic_name the topic name to be validated, must be null terminated - * \param[out] validation_result the reason for validation failure, if any - * \param[out] invalid_index index of violation if the input topic is invalid - * \return #RCL_RET_OK if the topic name was expanded successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_validate_topic_name( - const char * topic_name, - int * validation_result, - size_t * invalid_index); - -/// Validate a given topic name. -/** - * This is an overload with an extra parameter for the length of topic_name. - * \param[in] topic_name the topic name to be validated, must be null terminated - * \param[in] topic_name_length The number of characters in topic_name. - * \param[out] validation_result the reason for validation failure, if any - * \param[out] invalid_index index of violation if the input topic is invalid - * \return #RCL_RET_OK if the topic name was expanded successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - * - * \sa rcl_validate_topic_name() - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_validate_topic_name_with_size( - const char * topic_name, - size_t topic_name_length, - int * validation_result, - size_t * invalid_index); - -/// Return a validation result description, or NULL if unknown or RCL_TOPIC_NAME_VALID. -/** - * \param[in] validation_result The validation result to get the string for - * \return A string description of the validation result if successful, or - * \return NULL if the validation result is invalid. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -const char * -rcl_topic_name_validation_result_string(int validation_result); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__VALIDATE_TOPIC_NAME_H_ diff --git a/src/rcl/visibility_control.h b/src/rcl/visibility_control.h deleted file mode 100755 index 9c8c49735..000000000 --- a/src/rcl/visibility_control.h +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL__VISIBILITY_CONTROL_H_ -#define RCL__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define RCL_EXPORT __attribute__ ((dllexport)) - #define RCL_IMPORT __attribute__ ((dllimport)) - #else - #define RCL_EXPORT __declspec(dllexport) - #define RCL_IMPORT __declspec(dllimport) - #endif - #ifdef RCL_BUILDING_DLL - #define RCL_PUBLIC RCL_EXPORT - #else - #define RCL_PUBLIC RCL_IMPORT - #endif - #define RCL_PUBLIC_TYPE RCL_PUBLIC - #define RCL_LOCAL -#else - #define RCL_EXPORT __attribute__ ((visibility("default"))) - #define RCL_IMPORT - #if __GNUC__ >= 4 - #define RCL_PUBLIC __attribute__ ((visibility("default"))) - #define RCL_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define RCL_PUBLIC - #define RCL_LOCAL - #endif - #define RCL_PUBLIC_TYPE -#endif - -#ifdef __cplusplus -} -#endif - -#endif // RCL__VISIBILITY_CONTROL_H_ diff --git a/src/rcl/wait.h b/src/rcl/wait.h deleted file mode 100755 index 3437f8d38..000000000 --- a/src/rcl/wait.h +++ /dev/null @@ -1,503 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCL__WAIT_H_ -#define RCL__WAIT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rcl/client.h" -#include "rcl/guard_condition.h" -#include "rcl/macros.h" -#include "rcl/service.h" -#include "rcl/subscription.h" -#include "rcl/timer.h" -#include "rcl/event.h" -#include "rcl/types.h" -#include "rcl/visibility_control.h" - -typedef struct rcl_wait_set_impl_s rcl_wait_set_impl_t; - -/// Container for subscription's, guard condition's, etc to be waited on. -typedef struct rcl_wait_set_s -{ - /// Storage for subscription pointers. - const rcl_subscription_t ** subscriptions; - /// Number of subscriptions - size_t size_of_subscriptions; - /// Storage for guard condition pointers. - const rcl_guard_condition_t ** guard_conditions; - /// Number of guard_conditions - size_t size_of_guard_conditions; - /// Storage for timer pointers. - const rcl_timer_t ** timers; - /// Number of timers - size_t size_of_timers; - /// Storage for client pointers. - const rcl_client_t ** clients; - /// Number of clients - size_t size_of_clients; - /// Storage for service pointers. - const rcl_service_t ** services; - /// Number of services - size_t size_of_services; - /// Storage for event pointers. - const rcl_event_t ** events; - /// Number of events - size_t size_of_events; - /// Implementation specific storage. - rcl_wait_set_impl_t * impl; -} rcl_wait_set_t; - -/// Return a rcl_wait_set_t struct with members set to `NULL`. -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_wait_set_t -rcl_get_zero_initialized_wait_set(void); - -/// Initialize a rcl wait set with space for items to be waited on. -/** - * This function allocates space for the subscriptions and other wait-able - * entities that can be stored in the wait set. - * It also sets the allocator to the given allocator and initializes the pruned - * member to be false. - * - * The wait_set struct should be allocated and initialized to `NULL`. - * If the wait_set is allocated but the memory is uninitialized the behavior is - * undefined. - * Calling this function on a wait set that has already been initialized will - * result in an error. - * A wait set can be reinitialized if rcl_wait_set_fini() was called on it. - * - * To use the default allocator use rcl_get_default_allocator(). - * - * Expected usage: - * - * ```c - * #include - * - * rcl_wait_set_t wait_set = rcl_get_zero_initialized_wait_set(); - * rcl_ret_t ret = - * rcl_wait_set_init(&wait_set, 42, 42, 42, 42, 42, 42, &context, rcl_get_default_allocator()); - * // ... error handling, then use it, then call the matching fini: - * ret = rcl_wait_set_fini(&wait_set); - * // ... error handling - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] wait_set the wait set struct to be initialized - * \param[in] number_of_subscriptions non-zero size of the subscriptions set - * \param[in] number_of_guard_conditions non-zero size of the guard conditions set - * \param[in] number_of_timers non-zero size of the timers set - * \param[in] number_of_clients non-zero size of the clients set - * \param[in] number_of_services non-zero size of the services set - * \param[in] number_of_events non-zero size of the events set - * \param[in] context the context that the wait set should be associated with - * \param[in] allocator the allocator to use when allocating space in the sets - * \return #RCL_RET_OK if the wait set is initialized successfully, or - * \return #RCL_RET_ALREADY_INIT if the wait set is not zero initialized, or - * \return #RCL_RET_NOT_INIT if the given context is invalid, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_WAIT_SET_INVALID if the wait set is not destroyed properly, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait_set_init( - rcl_wait_set_t * wait_set, - size_t number_of_subscriptions, - size_t number_of_guard_conditions, - size_t number_of_timers, - size_t number_of_clients, - size_t number_of_services, - size_t number_of_events, - rcl_context_t * context, - rcl_allocator_t allocator); - -/// Finalize a rcl wait set. -/** - * Deallocates any memory in the wait set that was allocated in - * rcl_wait_set_init() using the allocator given in the initialization. - * - * Calling this function on a zero initialized wait set will do nothing and - * return RCL_RET_OK. - * Calling this function on uninitialized memory results in undefined behavior. - * After calling this function the wait set will once again be zero initialized - * and so calling this function or rcl_wait_set_init() immediately after will - * succeed. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] wait_set the wait set struct to be finalized. - * \return #RCL_RET_OK if the finalization was successful, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_WAIT_SET_INVALID if the wait set is not destroyed properly, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait_set_fini(rcl_wait_set_t * wait_set); - -/// Retrieve the wait set's allocator. -/** - * The allocator must be an allocated rcl_allocator_t struct, as the result is - * copied into this variable. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] wait_set the handle to the wait set - * \param[out] allocator the rcl_allocator_t struct to which the result is copied - * \return #RCL_RET_OK if the allocator was successfully retrieved, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_WAIT_SET_INVALID if the wait set is invalid, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait_set_get_allocator(const rcl_wait_set_t * wait_set, rcl_allocator_t * allocator); - -/// Store a pointer to the given subscription in the next empty spot in the set. -/** - * This function does not guarantee that the subscription is not already in the - * wait set. - * - * Also add the rmw representation to the underlying rmw array and increment - * the rmw array count. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] wait_set struct in which the subscription is to be stored - * \param[in] subscription the subscription to be added to the wait set - * \param[out] index the index of the added subscription in the storage container. - * This parameter is optional and can be set to `NULL` to be ignored. - * \return #RCL_RET_OK if added successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_WAIT_SET_INVALID if the wait set is zero initialized, or - * \return #RCL_RET_WAIT_SET_FULL if the subscription set is full, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait_set_add_subscription( - rcl_wait_set_t * wait_set, - const rcl_subscription_t * subscription, - size_t * index); - -/// Remove (sets to `NULL`) all entities in the wait set. -/** - * This function should be used after passing using rcl_wait, but before - * adding new entities to the set. - * Sets all of the entries in the underlying rmw array to `NULL`, and sets the - * count in the rmw array to `0`. - * - * Calling this on an uninitialized (zero initialized) wait set will fail. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] wait_set struct to have its entities cleared - * \return #RCL_RET_OK if cleared successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_WAIT_SET_INVALID if the wait set is zero initialized, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait_set_clear(rcl_wait_set_t * wait_set); - -/// Reallocate space for entities in the wait set. -/** - * This function will deallocate and reallocate the memory for all entity sets. - * - * A size of 0 will just deallocate the memory and assign `NULL` to the array. - * - * Allocation and deallocation is done with the allocator given during the - * wait set's initialization. - * - * After calling this function all values in the set will be set to `NULL`, - * effectively the same as calling rcl_wait_set_clear(). - * Similarly, the underlying rmw representation is reallocated and reset: - * all entries are set to `NULL` and the count is set to zero. - * - * If the requested size matches the current size, no allocation will be done. - * - * This can be called on an uninitialized (zero initialized) wait set. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] wait_set struct to be resized - * \param[in] subscriptions_size a size for the new subscriptions set - * \param[in] guard_conditions_size a size for the new guard conditions set - * \param[in] timers_size a size for the new timers set - * \param[in] clients_size a size for the new clients set - * \param[in] services_size a size for the new services set - * \param[in] events_size a size for the new events set - * \return #RCL_RET_OK if resized successfully, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_BAD_ALLOC if allocating memory failed, or - * \return #RCL_RET_ERROR if an unspecified error occurs. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait_set_resize( - rcl_wait_set_t * wait_set, - size_t subscriptions_size, - size_t guard_conditions_size, - size_t timers_size, - size_t clients_size, - size_t services_size, - size_t events_size); - -/// Store a pointer to the guard condition in the next empty spot in the set. -/** - * This function behaves exactly the same as for subscriptions. - * \see rcl_wait_set_add_subscription - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait_set_add_guard_condition( - rcl_wait_set_t * wait_set, - const rcl_guard_condition_t * guard_condition, - size_t * index); - -/// Store a pointer to the timer in the next empty spot in the set. -/** - * This function behaves exactly the same as for subscriptions. - * \see rcl_wait_set_add_subscription - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait_set_add_timer( - rcl_wait_set_t * wait_set, - const rcl_timer_t * timer, - size_t * index); - -/// Store a pointer to the client in the next empty spot in the set. -/** - * This function behaves exactly the same as for subscriptions. - * \see rcl_wait_set_add_subscription - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait_set_add_client( - rcl_wait_set_t * wait_set, - const rcl_client_t * client, - size_t * index); - -/// Store a pointer to the service in the next empty spot in the set. -/** - * This function behaves exactly the same as for subscriptions. - * \see rcl_wait_set_add_subscription - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait_set_add_service( - rcl_wait_set_t * wait_set, - const rcl_service_t * service, - size_t * index); - -/// Store a pointer to the event in the next empty spot in the set. -/** - * This function behaves exactly the same as for subscriptions. - * \see rcl_wait_set_add_subscription - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait_set_add_event( - rcl_wait_set_t * wait_set, - const rcl_event_t * event, - size_t * index); - -/// Block until the wait set is ready or until the timeout has been exceeded. -/** - * This function will collect the items in the rcl_wait_set_t and pass them - * to the underlying rmw_wait function. - * - * The items in the wait set will be either left untouched or set to `NULL` after - * this function returns. - * Items that are not `NULL` are ready, where ready means different things based - * on the type of the item. - * For subscriptions this means there may be messages that can be taken, or - * perhaps that the state of the subscriptions has changed, in which case - * rcl_take may succeed but return with taken == false. - * For guard conditions this means the guard condition was triggered. - * - * Expected usage: - * - * ```c - * #include - * - * rcl_context_t context; // ... initialize the context with rcl_init() - * // rcl_init() called successfully before here... - * rcl_node_t node; // initialize this, see rcl_node_init() - * rcl_subscription_t sub1; // initialize this, see rcl_subscription_init() - * rcl_subscription_t sub2; // initialize this, see rcl_subscription_init() - * rcl_guard_condition_t gc1; // initialize this, see rcl_guard_condition_init() - * rcl_wait_set_t wait_set = rcl_get_zero_initialized_wait_set(); - * rcl_ret_t ret = rcl_wait_set_init(&wait_set, 2, 1, 0, 0, 0, 0, &context, rcl_get_default_allocator()); - * // ... error handling - * do { - * ret = rcl_wait_set_clear(&wait_set); - * // ... error handling - * ret = rcl_wait_set_add_subscription(&wait_set, &sub1); - * // ... error handling - * ret = rcl_wait_set_add_subscription(&wait_set, &sub2); - * // ... error handling - * ret = rcl_wait_set_add_guard_condition(&wait_set, &gc1); - * // ... error handling - * ret = rcl_wait(&wait_set, RCL_MS_TO_NS(1000)); // 1000ms == 1s, passed as ns - * if (ret == RCL_RET_TIMEOUT) { - * continue; - * } - * for (int i = 0; i < wait_set.size_of_subscriptions; ++i) { - * if (wait_set.subscriptions[i]) { - * // The subscription is ready... - * } - * } - * for (int i = 0; i < wait_set.size_of_guard_conditions; ++i) { - * if (wait_set.guard_conditions[i]) { - * // The subscription is ready... - * } - * } - * } while(check_some_condition()); - * // ... fini node, and subscriptions and guard conditions... - * ret = rcl_wait_set_fini(&wait_set); - * // ... error handling - * ``` - * - * The wait set struct must be allocated, initialized, and should have been - * cleared and then filled with items, e.g. subscriptions and guard conditions. - * Passing a wait set with no wait-able items in it will fail. - * `NULL` items in the sets are ignored, e.g. it is valid to have as input: - * - `subscriptions[0]` = valid pointer - * - `subscriptions[1]` = `NULL` - * - `subscriptions[2]` = valid pointer - * - `size_of_subscriptions` = 3 - * Passing an uninitialized (zero initialized) wait set struct will fail. - * Passing a wait set struct with uninitialized memory is undefined behavior. - * - * The unit of timeout is nanoseconds. - * If the timeout is negative then this function will block indefinitely until - * something in the wait set is valid or it is interrupted. - * If the timeout is 0 then this function will be non-blocking; checking what's - * ready now, but not waiting if nothing is ready yet. - * If the timeout is greater than 0 then this function will return after - * that period of time has elapsed or the wait set becomes ready, which ever - * comes first. - * Passing a timeout struct with uninitialized memory is undefined behavior. - * - * This function is thread-safe for unique wait sets with unique contents. - * This function cannot operate on the same wait set in multiple threads, and - * the wait sets may not share content. - * For example, calling rcl_wait() in two threads on two different wait sets - * that both contain a single, shared guard condition is undefined behavior. - * - * \param[inout] wait_set the set of things to be waited on and to be pruned if not ready - * \param[in] timeout the duration to wait for the wait set to be ready, in nanoseconds - * \return #RCL_RET_OK something in the wait set became ready, or - * \return #RCL_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCL_RET_WAIT_SET_INVALID if the wait set is zero initialized, or - * \return #RCL_RET_WAIT_SET_EMPTY if the wait set contains no items, or - * \return #RCL_RET_TIMEOUT if the timeout expired before something was ready, or - * \return #RCL_RET_ERROR an unspecified error occur. - */ -RCL_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_wait(rcl_wait_set_t * wait_set, int64_t timeout); - -/// Return `true` if the wait set is valid, else `false`. -/** - * A wait set is invalid if: - * - the implementation is `NULL` (rcl_wait_set_init not called or failed) - * - the wait set has been finalized with rcl_wait_set_fini - * - * Also return `false` if the wait set pointer is `NULL`. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] wait_set the rcl_wait_set_t to be validated - * \return `true` if the wait_set is valid, otherwise `false`. - */ -RCL_PUBLIC -bool -rcl_wait_set_is_valid(const rcl_wait_set_t * wait_set); - -#ifdef __cplusplus -} -#endif - -#endif // RCL__WAIT_H_ diff --git a/src/rcl_action/action_client.h b/src/rcl_action/action_client.h deleted file mode 100755 index 69ab136d2..000000000 --- a/src/rcl_action/action_client.h +++ /dev/null @@ -1,828 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_ACTION__ACTION_CLIENT_H_ -#define RCL_ACTION__ACTION_CLIENT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl_action/types.h" -#include "rcl_action/visibility_control.h" -#include "rcl/event_callback.h" -#include "rcl/macros.h" -#include "rcl/node.h" -#include "rcl/publisher.h" -#include "rcl/service_introspection.h" - - -/// Internal action client implementation struct. -typedef struct rcl_action_client_impl_s rcl_action_client_impl_t; - -/// Structure which encapsulates a ROS action client. -typedef struct rcl_action_client_s -{ - /// Pointer to the action client implementation - rcl_action_client_impl_t * impl; -} rcl_action_client_t; - -/// Options available for a rcl_action_client_t. -typedef struct rcl_action_client_options_s -{ - /// Middleware quality of service settings for the action client. - /// Goal service quality of service - rmw_qos_profile_t goal_service_qos; - /// Result service quality of service - rmw_qos_profile_t result_service_qos; - /// Cancel service quality of service - rmw_qos_profile_t cancel_service_qos; - /// Feedback topic quality of service - rmw_qos_profile_t feedback_topic_qos; - /// Status topic quality of service - rmw_qos_profile_t status_topic_qos; - /// Custom allocator for the action client, used for incidental allocations. - /** For default behavior (malloc/free), see: rcl_get_default_allocator() */ - rcl_allocator_t allocator; -} rcl_action_client_options_t; - -/// Return a rcl_action_client_t struct with members set to `NULL`. -/** - * Should be called to get a null rcl_action_client_t before passing to - * rcl_action_client_init(). - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_action_client_t -rcl_action_get_zero_initialized_client(void); - -/// Initialize a rcl_action_client_t. -/** - * After calling this function on a rcl_action_client_t, it can be used to send - * goals of the given type to the given topic using rcl_action_send_goal_request(). - * If a goal request is sent to a (possibly remote) server and if the server - * sends a response, the client can access the response with - * rcl_take_goal_response() once the response is available. - * - * After a goal request has been accepted, the rcl_action_client_t associated with the - * goal can perform the following operations: - * - * - Send a request for the result with rcl_action_send_result_request(). - * If the server sends a response when the goal terminates, the result can be accessed - * with rcl_action_take_result_response(), once the response is available. - * - Send a cancel request for the goal with rcl_action_send_cancel_request(). - * If the server sends a response to a cancel request, the client can access the - * response with rcl_action_take_cancel_response() once the response is available. - * - Take feedback about the goal with rcl_action_take_feedback(). - * - * A rcl_action_client_t can be used to access the current status of all accepted goals - * communicated by the action server with rcl_action_take_status(). - * - * The given rcl_node_t must be valid and the resulting rcl_action_client_t is - * only valid as long as the given rcl_node_t remains valid. - * - * The rosidl_action_type_support_t is obtained on a per .action type basis. - * When the user defines a ROS action, code is generated which provides the - * required rosidl_action_type_support_t object. - * This object can be obtained using a language appropriate mechanism. - * - * \todo TODO(jacobperron) write these instructions once and link to it instead - * - * For C, a macro can be used (for example `example_interfaces/Fibonacci`): - * - * ```c - * #include - * #include - * const rosidl_action_type_support_t * ts = - * ROSIDL_GET_ACTION_TYPE_SUPPORT(example_interfaces, Fibonacci); - * ``` - * - * For C++, a template function is used: - * - * ```cpp - * #include - * #include - * using rosidl_typesupport_cpp::get_action_type_support_handle; - * const rosidl_action_type_support_t * ts = - * get_action_type_support_handle(); - * ``` - * - * The rosidl_action_type_support_t object contains action type specific - * information used to send or take goals, results, and feedback. - * - * The topic name must be a c string that follows the topic and service name - * format rules for unexpanded names, also known as non-fully qualified names: - * - * \see rcl_expand_topic_name - * - * The options struct allows the user to set the quality of service settings as - * well as a custom allocator that is used when initializing/finalizing the - * client to allocate space for incidentals, e.g. the action client name string. - * - * Expected usage (for C action clients): - * - * ```c - * #include - * #include - * #include - * #include - * - * rcl_node_t node = rcl_get_zero_initialized_node(); - * rcl_node_options_t node_ops = rcl_node_get_default_options(); - * rcl_ret_t ret = rcl_node_init(&node, "node_name", "/my_namespace", &node_ops); - * // ... error handling - * const rosidl_action_type_support_t * ts = - * ROSIDL_GET_ACTION_TYPE_SUPPORT(example_interfaces, Fibonacci); - * rcl_action_client_t action_client = rcl_action_get_zero_initialized_client(); - * rcl_action_client_options_t action_client_ops = rcl_action_client_get_default_options(); - * ret = rcl_action_client_init(&action_client, &node, ts, "fibonacci", &action_client_ops); - * // ... error handling, and on shutdown do finalization: - * ret = rcl_action_client_fini(&action_client, &node); - * // ... error handling for rcl_action_client_fini() - * ret = rcl_node_fini(&node); - * // ... error handling for rcl_node_fini() - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[out] action_client a preallocated, zero-initialized action client structure - * to be initialized - * \param[in] node valid rcl node handle - * \param[in] type_support type support object for the action's type - * \param[in] action_name the name of the action - * \param[in] options action_client options, including quality of service settings - * \return `RCL_RET_OK` if action_client was initialized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_NODE_INVALID` if the node is invalid, or - * \return `RCL_RET_ALREADY_INIT` if the action client is already initialized, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RCL_RET_ACTION_NAME_INVALID` if the given action name is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_client_init( - rcl_action_client_t * action_client, - rcl_node_t * node, - const rosidl_action_type_support_t * type_support, - const char * action_name, - const rcl_action_client_options_t * options); - -/// Finalize a rcl_action_client_t. -/** - * After calling, the node will no longer listen for goals for this action client - * (assuming this is the only action client of this type in this node). - * - * After calling, calls to rcl_wait(), rcl_action_send_goal_request(), - * rcl_action_take_goal_response(), rcl_action_send_cancel_request(), - * rcl_action_take_cancel_response(), rcl_action_send_result_request(), - * rcl_action_take_result_response(), rcl_action_take_feedback(), and - * rcl_action_take_status(), will fail when using this action client. - * - * Additionally, rcl_wait() will be interrupted if currently blocking. - * - * The given node handle is still valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] action_client handle to the action_client to be deinitialized - * \param[in] node handle to the node used to create the action client - * \return `RCL_RET_OK` if the action client was deinitialized successfully, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the action client is invalid, or - * \return `RCL_RET_NODE_INVALID` if the node is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_client_fini(rcl_action_client_t * action_client, rcl_node_t * node); - -/// Return the default action client options in a rcl_action_client_options_t. -/** - * The defaults are: - * - * - goal_service_qos = rmw_qos_profile_services_default; - * - result_service_qos = rmw_qos_profile_services_default; - * - cancel_service_qos = rmw_qos_profile_services_default; - * - feedback_topic_qos = rmw_qos_profile_default; - * - status_topic_qos = rcl_action_qos_profile_status_default; - * - allocator = rcl_get_default_allocator() - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_action_client_options_t -rcl_action_client_get_default_options(void); - -/// Check if an action server is available for the given action client. -/** - * This function will return true for is_available if there is an action server - * available for the given action client. - * - * The node parameter must not be `NULL`, and must point to a valid node. - * - * The client parameter must not be `NULL`, and must point to a valid client. - * - * The given client and node must match, i.e. the client must have been created - * using the given node. - * - * The is_available parameter must not be `NULL`, and must point a bool variable. - * The result of the check will be stored in the is_available parameter. - * - * In the event that error handling needs to allocate memory, this function - * will try to use the node's allocator. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] client the handle to the action client being queried - * \param[out] is_available set to true if there is an action server available, else false - * \return `RCL_RET_OK` if successful (regardless of the action server availability), or - * \return `RCL_RET_NODE_INVALID` if the node is invalid, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the action client is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_server_is_available( - const rcl_node_t * node, - const rcl_action_client_t * client, - bool * is_available); - -/// Send a ROS goal using a rcl_action_client_t. -/** - * This is a non-blocking call. - * - * The caller is responsible for ensuring that the type of `ros_goal_request` - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - * - * The ROS goal message given by the `ros_goal_request` void pointer is always - * owned by the calling code, but should remain constant during execution of this - * function. i.e. The message cannot change during the rcl_action_send_goal_request() call. - * Before calling rcl_action_send_goal_request() the message can change but after calling - * rcl_action_send_goal_request() it depends on RMW implementation behavior. - * The same `ros_goal_request` can be passed to multiple calls of this function - * simultaneously, even if the action clients differ. - * - * This function is thread safe so long as access to both the rcl_action_client_t - * and the `ros_goal_request` are synchronized. - * That means that calling rcl_action_send_goal_request() from multiple threads is allowed, - * but calling rcl_action_send_goal_request() at the same time as non-thread safe action - * client functions is not, e.g. calling rcl_action_send_goal_request() and - * rcl_action_client_fini() concurrently is not allowed. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes [1] - * Uses Atomics | No - * Lock-Free | Yes - * [1] for unique pairs of clients and goals, see above for more - * - * \param[in] action_client handle to the client that will make the goal request - * \param[in] ros_goal_request pointer to the ROS goal message - * \param[out] sequence_number pointer to the goal request sequence number - * \return `RCL_RET_OK` if the request was sent successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the client is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_send_goal_request( - const rcl_action_client_t * action_client, - const void * ros_goal_request, - int64_t * sequence_number); - -/// Take a response for a goal request from an action server using a rcl_action_client_t. -/** - * \todo TODO(jacobperron) blocking of take? - * - * \todo TODO(jacobperron) pre-, during-, and post-conditions for message ownership? - * - * \todo TODO(jacobperron) is this thread-safe? - * - * The caller is responsible for ensuring that the type of `ros_goal_response` - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - * - * The caller must provide a pointer to an allocated message for the `ros_goal_response`. - * If the take is successful, this function will populate the fields of `ros_goal_response`. - * The ROS message given by the `ros_goal_response` void pointer is always - * owned by the calling code, but should remain constant during execution of this - * function. i.e. The message cannot change during the rcl_action_send_goal_response() call. - * Before calling rcl_action_send_goal_response() the message can change but after calling - * rcl_action_send_goal_response() it depends on RMW implementation behavior. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_client handle to the client that will take the goal response - * \param[out] response_header pointer to the goal response header - * \param[out] ros_goal_response pointer to the response of a goal request - * \return `RCL_RET_OK` if the response was taken successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the action client is invalid, or - * \return `RCL_RET_ACTION_CLIENT_TAKE_FAILED` if take failed but no error occurred - * in the middleware, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_take_goal_response( - const rcl_action_client_t * action_client, - rmw_request_id_t * response_header, - void * ros_goal_response); - -/// Take a ROS feedback message for an active goal associated with a rcl_action_client_t. -/** - * The caller is responsible for ensuring that the type of `ros_feedback` - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - * - * \todo TODO(jacobperron) blocking of take? - * - * \todo TODO(jacobperron) pre-, during-, and post-conditions for message ownership? - * - * \todo TODO(jacobperron) is this thread-safe? - * - * `ros_feedback` should point to a preallocated ROS message struct of the - * correct type. - * If feedback is successfully taken, the feedback message is copied to into the - * `ros_feedback` struct. - * - * If allocation is required when taking the feedback, e.g. if space needs to - * be allocated for a dynamically sized array in the target message, then the - * allocator given in the action client options is used. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] only if required when filling the feedback message, avoided for fixed sizes - * - * \param[in] action_client handle to the client that will take action feedback - * \param[out] ros_feedback pointer to the ROS feedback message. - * \return `RCL_RET_OK` if the response was taken successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the action client is invalid, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RCL_RET_ACTION_CLIENT_TAKE_FAILED` if take failed but no error occurred - * in the middleware, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_take_feedback( - const rcl_action_client_t * action_client, - void * ros_feedback); - -/// Take a ROS status message using a rcl_action_client_t. -/** - * The caller is responsible for ensuring that the type of `ros_status_array` - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - * - * \todo TODO(jacobperron) blocking of take? - * - * \todo TODO(jacobperron) pre-, during-, and post-conditions for message ownership? - * - * \todo TODO(jacobperron) is this thread-safe? - * - * The caller is responsible for allocating the `ros_status_array` struct with a - * zero-initialization (the internal array should not be allocated). - * If there is a successful take, then `ros_status_array` is populated - * with the allocator given in the action client options. - * It is the callers responsibility to deallocate the `ros_status_array` struct using - * the allocator given in the action client options. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_client handle to the client that will take status message - * \param[out] ros_status_array pointer to ROS aciton_msgs/StatusArray message that - * will be populated with information about goals that have accepted the cancel request. - * \return `RCL_RET_OK` if the response was taken successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the action client is invalid, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RCL_RET_ACTION_CLIENT_TAKE_FAILED` if take failed but no error occurred - * in the middleware, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_take_status( - const rcl_action_client_t * action_client, - void * ros_status_array); - -/// Send a request for the result of a completed goal associated with a rcl_action_client_t. -/** - * This is a non-blocking call. - * - * The caller is responsible for ensuring that the type of `ros_result_request` - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - * - * The ROS message given by the `ros_result_request` void pointer is always - * owned by the calling code, but should remain constant during execution of this - * function. i.e. The message cannot change during the rcl_action_send_result_request() call. - * Before calling rcl_action_send_result_request() the message can change but after calling - * rcl_action_send_result_request() it depends on RMW implementation behavior. - * The same `ros_result_request` can be passed to multiple calls of this function - * simultaneously, even if the action clients differ. - * - * This function is thread safe so long as access to both the rcl_action_client_t - * and the `ros_result_request` are synchronized. - * That means that calling rcl_action_send_result_request() from multiple threads is allowed, - * but calling rcl_action_send_result_request() at the same time as non-thread safe action - * client functions is not, e.g. calling rcl_action_send_result_request() and - * rcl_action_client_fini() concurrently is not allowed. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes [1] - * Uses Atomics | No - * Lock-Free | Yes - * [1] for unique pairs of clients and result requests, see above for more - - * \param[in] action_client handle to the client that will send the result request - * \param[in] ros_result_request pointer to a ROS result request message - * \param[out] sequence_number pointer to the result request sequence number - * \return `RCL_RET_OK` if the request was sent successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the action client is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_send_result_request( - const rcl_action_client_t * action_client, - const void * ros_result_request, - int64_t * sequence_number); - -/// Take a ROS result message for a completed goal associated with a rcl_action_client_t. -/** - * \todo TODO(jacobperron) blocking of take? - * - * \todo TODO(jacobperron) pre-, during-, and post-conditions for message ownership? - * - * \todo TODO(jacobperron) is this thread-safe? - * - * The caller is responsible for ensuring that the type of `ros_result_response` - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - * - * The caller must provide a pointer to an allocated message for the `ros_result_response`. - * If the take is successful, this function will populate the fields of `ros_result_response`. - * The ROS message given by the `ros_result_response` void pointer is always - * owned by the calling code, but should remain constant during execution of this - * function. i.e. The message cannot change during the rcl_action_take_result_response() call. - * Before calling rcl_action_take_result_response() the message can change but after calling - * rcl_action_take_result_response() it depends on RMW implementation behavior. - * - * If allocation is required when taking the result, e.g. if space needs to - * be allocated for a dynamically sized array in the target message, then the - * allocator given in the action client options is used. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] only if required when filling the result response message, avoided for fixed sizes - * - * \param[in] action_client handle to the client that will take the result response - * \param[out] response_header pointer to the result response header - * \param[out] ros_result preallocated, zero-initialized, struct where the ROS - * result message is copied. - * \return `RCL_RET_OK` if the response was taken successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the action client is invalid, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RCL_RET_ACTION_CLIENT_TAKE_FAILED` if take failed but no error occurred - * in the middleware, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_take_result_response( - const rcl_action_client_t * action_client, - rmw_request_id_t * response_header, - void * ros_result); - -/// Send a cancel request for a goal using a rcl_action_client_t. -/** - * This is a non-blocking call. - * - * The caller is responsible for ensuring that the type of `ros_cancel_request` - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - * - * The following cancel policy applies based on the goal ID and the timestamp provided - * by the `ros_cancel_request` message: - * - * - If the goal ID is zero and timestamp is zero, cancel all goals. - * - If the goal ID is zero and timestamp is not zero, cancel all goals accepted - * at or before the timestamp. - * - If the goal ID is not zero and timestamp is zero, cancel the goal with the - * given ID regardless of the time it was accepted. - * - If the goal ID is not zero and timestamp is not zero, cancel the goal with the - * given ID and all goals accepted at or before the timestamp. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_client handle to the client that will make the cancel request - * \param[in] ros_cancel_request pointer the ROS cancel request message - * \param[out] sequence_number pointer to the cancel request sequence number - * \return `RCL_RET_OK` if the response was taken successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the action client is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_send_cancel_request( - const rcl_action_client_t * action_client, - const void * ros_cancel_request, - int64_t * sequence_number); - -/// Take a cancel response using a rcl_action_client_t. -/** - * \todo TODO(jacobperron) blocking of take? - * - * \todo TODO(jacobperron) pre-, during-, and post-conditions for message ownership? - * - * \todo TODO(jacobperron) is this thread-safe? - * - * The caller is responsible for ensuring that the type of `ros_cancel_response` - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - - * The caller is responsible for allocating the `ros_cancel_response` message - * with a zero-initialization (the internal array should not be allocated). - * If a successful response is taken, then `ros_cancel_response` is populated - * using the allocator given in the action client options. - * It is the callers responsibility to deallocate `ros_cancel_response` using - * the allocator given in the action client options. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_client handle to the client that will take the cancel response - * \param[out] response_header pointer to the cancel response header - * \param[out] ros_cancel_response a zero-initialized ROS cancel response message where - * the cancel response is copied. - * \return `RCL_RET_OK` if the response was taken successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the action client is invalid, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RCL_RET_ACTION_CLIENT_TAKE_FAILED` if take failed but no error occurred - * in the middleware, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_take_cancel_response( - const rcl_action_client_t * action_client, - rmw_request_id_t * response_header, - void * ros_cancel_response); - -/// Get the name of the action for a rcl_action_client_t. -/** - * This function returns the action client's name string. - * This function can fail, and therefore return `NULL`, if the: - * - action client is `NULL` - * - action client is invalid (never called init, called fini, or invalid) - * - * The returned string is only valid as long as the action client is valid. - * The value of the string may change if the topic name changes, and therefore - * copying the string is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_client the pointer to the action client - * \return name string if successful, otherwise `NULL` - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -const char * -rcl_action_client_get_action_name(const rcl_action_client_t * action_client); - -/// Return the options for a rcl_action_client_t. -/** - * This function returns the action client's internal options struct. - * This function can fail, and therefore return `NULL`, if the: - * - action client is `NULL` - * - action client is invalid (never called init, called fini, or invalid) - * - * The returned struct is only valid as long as the action client is valid. - * The values in the struct may change if the action client's options change, - * and therefore copying the struct is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_client pointer to the action client - * \return options struct if successful, otherwise `NULL` - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -const rcl_action_client_options_t * -rcl_action_client_get_options(const rcl_action_client_t * action_client); - -/// Check that a rcl_action_client_t is valid. -/** - * The bool returned is `false` if `action_client` is invalid. - * The bool returned is `true` otherwise. - * In the case where `false` is to be returned, an error message is set. - * This function cannot fail. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_client pointer to the rcl action client - * \return `true` if `action_client` is valid, otherwise `false` - */ -RCL_ACTION_PUBLIC -bool -rcl_action_client_is_valid( - const rcl_action_client_t * action_client); - -/// Configures service introspection features for all internal service clients of the action client. -/** - * For the internal goal, cancel, and result clients of the action client, call - * \ref rcl_client_configure_service_introspection separately for each. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined - * - * \param[in] action_client action client on which to configure internal service introspection - * \param[in] node valid rcl_node_t to use to create the introspection publisher - * \param[in] clock valid rcl_clock_t to use to generate the introspection timestamps - * \param[in] type_support type support library associated with this action client - * \param[in] publisher_options options to use when creating the introspection publisher - * \param[in] introspection_state rcl_service_introspection_state_t describing whether - * introspection should be OFF, METADATA, or CONTENTS - * \return #RCL_RET_OK if the call was successful, or - * \return #RCL_RET_ERROR if calling rcl_client_configure_service_introspection for each internal - * client doesn't return RCL_RET_OK, or - * \return #RCL_RET_INVALID_ARGUMENT if the given node or clock or type_support is invalid - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_client_configure_action_introspection( - rcl_action_client_t * action_client, - rcl_node_t * node, - rcl_clock_t * clock, - const rosidl_action_type_support_t * type_support, - const rcl_publisher_options_t publisher_options, - rcl_service_introspection_state_t introspection_state); - -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_client_set_goal_client_callback( - const rcl_action_client_t * action_client, - rcl_event_callback_t callback, - const void * user_data); - -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_client_set_cancel_client_callback( - const rcl_action_client_t * action_client, - rcl_event_callback_t callback, - const void * user_data); - -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_client_set_result_client_callback( - const rcl_action_client_t * action_client, - rcl_event_callback_t callback, - const void * user_data); - -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_client_set_feedback_subscription_callback( - const rcl_action_client_t * action_client, - rcl_event_callback_t callback, - const void * user_data); - -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_client_set_status_subscription_callback( - const rcl_action_client_t * action_client, - rcl_event_callback_t callback, - const void * user_data); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_ACTION__ACTION_CLIENT_H_ diff --git a/src/rcl_action/action_server.h b/src/rcl_action/action_server.h deleted file mode 100755 index 70fc4fcbd..000000000 --- a/src/rcl_action/action_server.h +++ /dev/null @@ -1,1017 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_ACTION__ACTION_SERVER_H_ -#define RCL_ACTION__ACTION_SERVER_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl_action/goal_handle.h" -#include "rcl_action/types.h" -#include "rcl_action/visibility_control.h" -#include "rcl/event_callback.h" -#include "rcl/macros.h" -#include "rcl/node.h" -#include "rcl/publisher.h" -#include "rcl/service_introspection.h" -#include "rcl/time.h" -#include "rcl/timer.h" - -#include "rosidl_runtime_c/action_type_support_struct.h" - -/// Internal rcl_action implementation struct. -typedef struct rcl_action_server_impl_s rcl_action_server_impl_t; - -/// Structure which encapsulates a ROS Action Server. -typedef struct rcl_action_server_s -{ - /// Pointer to the action server implementation - rcl_action_server_impl_t * impl; -} rcl_action_server_t; - -/// Options available for a rcl_action_server_t. -typedef struct rcl_action_server_options_s -{ - /// Middleware quality of service settings for the action server. - /// Goal service quality of service - rmw_qos_profile_t goal_service_qos; - /// Cancel service quality of service - rmw_qos_profile_t cancel_service_qos; - /// Result service quality of service - rmw_qos_profile_t result_service_qos; - /// Feedback topic quality of service - rmw_qos_profile_t feedback_topic_qos; - /// Status topic quality of service - rmw_qos_profile_t status_topic_qos; - /// Custom allocator for the action server, used for incidental allocations. - /** For default behavior (malloc/free), see: rcl_get_default_allocator() */ - rcl_allocator_t allocator; - /// Goal handles that have results longer than this time are deallocated. - rcl_duration_t result_timeout; -} rcl_action_server_options_t; - -/// Return a rcl_action_server_t struct with members set to `NULL`. -/** - * Should be called to get a null rcl_action_server_t before passing to - * rcl_action_server_init(). - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_action_server_t -rcl_action_get_zero_initialized_server(void); - -/// Initialize an action server. -/** - * After calling this function on a rcl_action_server_t, it can be used to take - * goals of the given type for the given action name using rcl_action_take_goal_request() - * and take cancel requests with rcl_action_take_cancel_request(). - * It can also send a result for a request using rcl_action_send_result() or - * rcl_action_send_cancel_response(). - * - * After accepting a goal with rcl_action_take_goal_request(), the action server can - * be used to send feedback with rcl_action_publish_feedback() and send status - * messages with rcl_action_publish_status(). - * - * The given rcl_node_t must be valid and the resulting rcl_action_server_t is - * only valid as long as the given rcl_node_t remains valid. - * - * The give rcl_clock_t must be valid and the resulting rcl_ction_server_t is - * only valid as long ast he given rcl_clock_t remains valid. - * - * The rosidl_action_type_support_t is obtained on a per .action type basis. - * When the user defines a ROS action, code is generated which provides the - * required rosidl_action_type_support_t object. - * This object can be obtained using a language appropriate mechanism. - * \todo TODO(jacobperron) write these instructions once and link to it instead - * - * For C, a macro can be used (for example `example_interfaces/Fibonacci`): - * - * ```c - * #include - * #include - * const rosidl_action_type_support_t * ts = - * ROSIDL_GET_ACTION_TYPE_SUPPORT(example_interfaces, Fibonacci); - * ``` - * - * For C++, a template function is used: - * - * ```cpp - * #include - * #include - * using rosidl_typesupport_cpp::get_action_type_support_handle; - * const rosidl_action_type_support_t * ts = - * get_action_type_support_handle(); - * ``` - * - * The rosidl_action_type_support_t object contains action type specific - * information used to send or take goals, results, and feedback. - * - * The topic name must be a c string that follows the topic and service name - * format rules for unexpanded names, also known as non-fully qualified names: - * - * \see rcl_expand_topic_name - * - * The options struct allows the user to set the quality of service settings as - * well as a custom allocator that is used when initializing/finalizing the - * client to allocate space for incidentals, e.g. the action server name string. - * - * Expected usage (for C action servers): - * - * ```c - * #include - * #include - * #include - * #include - * - * rcl_node_t node = rcl_get_zero_initialized_node(); - * rcl_node_options_t node_ops = rcl_node_get_default_options(); - * rcl_ret_t ret = rcl_node_init(&node, "node_name", "/my_namespace", &node_ops); - * // ... error handling - * const rosidl_action_type_support_t * ts = - * ROSIDL_GET_ACTION_TYPE_SUPPORT(example_interfaces, Fibonacci); - * rcl_action_server_t action_server = rcl_action_get_zero_initialized_server(); - * rcl_action_server_options_t action_server_ops = rcl_action_server_get_default_options(); - * ret = rcl_action_server_init(&action_server, &node, ts, "fibonacci", &action_server_ops); - * // ... error handling, and on shutdown do finalization: - * ret = rcl_action_server_fini(&action_server, &node); - * // ... error handling for rcl_action_server_fini() - * ret = rcl_node_fini(&node); - * // ... error handling for rcl_node_fini() - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[out] action_server handle to a preallocated, zero-initialized action server structure - * to be initialized. - * \param[in] node valid node handle - * \param[in] expire_timer An initialized and canceled timer. The caller must guarantee the lifetime of the - * timer until the action is finished. - * \param[in] type_support type support object for the action's type - * \param[in] action_name the name of the action - * \param[in] options action_server options, including quality of service settings - * \return `RCL_RET_OK` if action_server was initialized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_NODE_INVALID` if the node is invalid, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RCL_RET_ACTION_NAME_INVALID` if the given action name is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_server_init2( - rcl_action_server_t * action_server, - rcl_node_t * node, - const rcl_timer_t * expire_timer, - const rosidl_action_type_support_t * type_support, - const char * action_name, - const rcl_action_server_options_t * options); - -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_server_init( - rcl_action_server_t * action_server, - rcl_node_t * node, - rcl_clock_t * clock, - const rosidl_action_type_support_t * type_support, - const char * action_name, - const rcl_action_server_options_t * options); - -/// Finalize an action server. -/** - * After calling, the node will no longer listen to services and topics for this action server. - * (assuming this is the only action server of this type in this node). - * - * After calling, calls to rcl_wait(), rcl_action_take_goal_request(), - * rcl_action_take_cancel_request(), rcl_action_publish_feedback(), - * rcl_action_publish_status(), rcl_action_send_result(), and - * rcl_action_send_cancel_response() will fail when using this action server. - * Additionally, rcl_wait() will be interrupted if currently blocking. - * However, the given node handle is still valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] action_server handle to the action_server to be deinitialized - * \param[in] node handle to the node used to create the action server - * \return `RCL_RET_OK` if the action server was deinitialized successfully, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server pointer is null, or - * \return `RCL_RET_NODE_INVALID` if the node is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_server_fini(rcl_action_server_t * action_server, rcl_node_t * node); - -/// Return the default action server options in a rcl_action_server_options_t. -/** - * The defaults are: - * - * - goal_service_qos = rmw_qos_profile_services_default; - * - cancel_service_qos = rmw_qos_profile_services_default; - * - result_service_qos = rmw_qos_profile_services_default; - * - feedback_topic_qos = rmw_qos_profile_default; - * - status_topic_qos = rcl_action_qos_profile_status_default; - * - allocator = rcl_get_default_allocator(); - * - result_timeout = RCUTILS_S_TO_NS(10); // 10 seconds - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_action_server_options_t -rcl_action_server_get_default_options(void); - -/// Take a pending ROS goal using an action server. -/** - * \todo TODO(jacobperron) blocking of take? - * - * \todo TODO(jacobperron) pre-, during-, and post-conditions for message ownership? - * - * \todo TODO(jacobperron) is this thread-safe? - * - * The caller is responsible for ensuring that the type of `ros_goal_request` - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - * - * `ros_goal_request` should point to a preallocated, zero-initialized, - * ROS goal message. - * If a goal request is taken successfully, it will be copied into `ros_goal_request`. - * - * If allocation is required when taking the request, e.g. if space needs to - * be allocated for a dynamically sized array in the target message, then the - * allocator given in the action server options is used. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] only if required when filling the request, avoided for fixed sizes - * - * \param[in] action_server handle to the action server that will take the request - * \param[out] request_header pointer to the goal request header - * \param[out] ros_goal_request a preallocated, zero-initialized, ROS goal request message - * where the request is copied - * \return `RCL_RET_OK` if the request was taken, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RCL_RET_ACTION_SERVER_TAKE_FAILED` if take failed but no error occurred - * in the middleware, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_take_goal_request( - const rcl_action_server_t * action_server, - rmw_request_id_t * request_header, - void * ros_goal_request); - -/// Send a response for a goal request to an action client using an action server. -/** - * This is a non-blocking call. - * - * The caller is responsible for ensuring that the type of `ros_goal_response` - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - * - * If the caller intends to send an 'accepted' response, before calling this function - * the caller should use rcl_action_accept_new_goal() to get a rcl_action_goal_handle_t - * for future interaction with the goal (e.g. publishing feedback and canceling the goal). - * - * This function is thread safe so long as access to both the action server and the - * `ros_goal_response` are synchronized. - * That means that calling rcl_action_send_goal_response() from multiple threads is - * allowed, but calling rcl_action_send_goal_response() at the same time as non-thread safe - * action server functions is not, e.g. calling rcl_action_send_goal_response() and - * rcl_action_server_fini() concurrently is not allowed. - * Before calling rcl_action_send_goal_response() the `ros_goal_request` can change and - * after calling rcl_action_send_goal_response() the `ros_goal_request` can change, but it - * cannot be changed during the rcl_action_send_goal_response() call. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes [1] - * Uses Atomics | No - * Lock-Free | Yes - * [1] for unique pairs of action servers and responses, see above for more - * - * \param[in] action_server handle to the action server that will make the goal response - * \param[in] response_header pointer to the goal response header - * \param[in] ros_goal_response a ROS goal response message to send - * \return `RCL_RET_OK` if the response was sent successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_TIMEOUT` if a goal response reader is not ready yet, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_send_goal_response( - const rcl_action_server_t * action_server, - rmw_request_id_t * response_header, - void * ros_goal_response); - -/// Accept a new goal using an action server. -/** - * This is a non-blocking call. - * - * Creates and returns a new goal handle. - * The action server starts tracking it internally. - * If a failure occurs, `NULL` is returned and an error message is set. - * Possible reasons for failure: - * - action server is invalid - * - goal info is invalid - * - goal ID is already being tracked by the action server - * - memory allocation failure - * - * This function should be called after receiving a new goal request with - * rcl_action_take_goal_request() and before sending a response with - * rcl_action_send_goal_response(). - * - * After calling this function, the action server will start tracking the goal. - * The pointer to the goal handle becomes invalid after `rcl_action_server_fini()` is called. - * The caller becomes responsible for finalizing the goal handle later. - * - * Example usage: - * - * ```c - * #include - * - * // ... init an action server - * // Take a goal request (client library type) - * rcl_ret_t ret = rcl_action_take_goal_request(&action_server, &goal_request); - * // ... error handling - * // If the goal is accepted, then tell the action server - * // First, create a goal info message - * rcl_action_goal_info_t goal_info = rcl_action_get_zero_initialized_goal_info(); - * // ... populate goal_info.uuid (unique_identifier_msgs/UUID) - * // ... populate goal_info.stamp (builtin_interfaces/Time) - * rcl_action_goal_handle_t * goal_handle = rcl_action_accept_new_goal(&action_server, &goal_info); - * // ... error_handling - * // ... Populate goal response (client library type) - * ret = rcl_action_send_goal_response(&action_server, &goal_response); - * // ... error handling, and sometime before shutdown finalize goal info message - * ret = rcl_action_goal_info_fini(&goal_info, &action_server); - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server that is accepting the goal - * \param[in] goal_info a message containing info about the goal being accepted - * \return a pointer to a new goal handle representing the accepted goal, or - * \return `NULL` if a failure occured. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_action_goal_handle_t * -rcl_action_accept_new_goal( - rcl_action_server_t * action_server, - const rcl_action_goal_info_t * goal_info); - -/// Publish a ROS feedback message for an active goal using an action server. -/** - * The caller is responsible for ensuring that the type of `ros_feedback` - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - * - * This function acts like a ROS publisher and is potentially a blocking call. - * \see rcl_publish() - * - * This function is thread safe so long as access to both the action server and - * `ros_feedback` is synchronized. - * That means that calling rcl_action_publish_feedback() from multiple threads - * is allowed, but calling rcl_action_publish_feedback() at the same time as - * non-thread safe action server functions is not, e.g. calling - * rcl_action_publish_feedback() and rcl_action_server_fini() concurrently is not - * allowed. - * - * Before calling rcl_action_publish_feedback() the `ros_feedback` message ca - * change and after calling rcl_action_publish_feedback() the `ros_feedback` message - * can change, but it cannot be changed during the publish call. - * The same `ros_feedback` can be passed to multiple calls of - * rcl_action_publish_feedback() simultaneously, even if the action servers differ. - * `ros_feedback` is unmodified by rcl_action_publish_feedback(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes [1] - * Uses Atomics | No - * Lock-Free | Yes - * [1] for unique pairs of action servers and feedback, see above for more - * - * \param[in] action_server handle to the action server that will publish the feedback - * \param[in] ros_feedback a ROS message containing the goal feedback - * \return `RCL_RET_OK` if the response was sent successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. * - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_publish_feedback( - const rcl_action_server_t * action_server, - void * ros_feedback); - -/// Get a status array message for accepted goals associated with an action server. -/** - * The provided `status_message` should be zero-initialized with - * rcl_action_get_zero_initialized_goal_status_array() before calling this function. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server that will publish the status message - * \param[out] status_message an action_msgs/StatusArray ROS message - * \return `RCL_RET_OK` if the response was sent successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_get_goal_status_array( - const rcl_action_server_t * action_server, - rcl_action_goal_status_array_t * status_message); - -/// Publish a status array message for accepted goals associated with an action server. -/** - * This function acts like a ROS publisher and is potentially a blocking call. - * \see rcl_publish() - * - * A status array message associated with the action server can be created with - * rcl_action_get_goal_status_array(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server that will publish the status message - * \param[in] status_message an action_msgs/StatusArray ROS message to publish - * \return `RCL_RET_OK` if the response was sent successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_publish_status( - const rcl_action_server_t * action_server, - const void * status_message); - -/// Take a pending result request using an action server. -/** - * \todo TODO(jacobperron) blocking of take? - * - * \todo TODO(jacobperron) pre-, during-, and post-conditions for message ownership? - * - * \todo TODO(jacobperron) is this thread-safe? - * - * The caller is responsible for ensuring that the type of `ros_result_request` - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server that will take the result request - * \param[out] request_header pointer to the result request header - * \param[out] ros_result_request a preallocated ROS result request message where the - * request is copied. - * \return `RCL_RET_OK` if the response was sent successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_ACTION_SERVER_TAKE_FAILED` if take failed but no error occurred - * in the middleware, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_take_result_request( - const rcl_action_server_t * action_server, - rmw_request_id_t * request_header, - void * ros_result_request); - -/// Send a result response using an action server. -/** - * This is a non-blocking call. - * - * The caller is responsible for ensuring that the type of `ros_result_response` - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - * - * Before calling this function, the caller should use rcl_action_update_goal_state() - * to update the goals state to the appropriate terminal state. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server that will send the result response - * \param[in] response_header pointer to the result response header - * \param[in] ros_result_response a ROS result response message to send - * \return `RCL_RET_OK` if the response was sent successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_TIMEOUT` if a result response reader is not ready yet, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_send_result_response( - const rcl_action_server_t * action_server, - rmw_request_id_t * response_header, - void * ros_result_response); - -/// Expires goals associated with an action server. -/** - * A goal is 'expired' if it has been in a terminal state (has a result) for longer - * than some duration. - * The timeout duration is set as part of the action server options. - * - * If a negative timeout value if provided, then goal results never expire (kept forever). - * If a timeout of zero is set, then goal results are discarded immediately (ie. goal - * results are discarded whenever this function is called). - * - * Expired goals are removed from the internal array of goal handles. - * rcl_action_server_goal_exists() will return false for any goals that have expired. - * - * \attention If one or more goals are expired then a previously returned goal handle - * array from rcl_action_server_get_goal_handles() becomes invalid. - * - * `expired_goals`, `expired_goals_capacity` and `num_expired` are optional arguments. - * If set to (`NULL`, 0u, `NULL`) then they are not used. - * To use them allocate an array with size equal to the maximum number of goals that you want to - * expire. - * Pass the number of goals the array can hold in as `expired_goals_capacity`. - * This function will set `num_expired` to the number of goals that were expired. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe[1] - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * [1] if one or more goals expires, then the internal goal handle array may be - * resized or deallocated - * - * \param[in] action_server handle to the action server from which expired goals - * will be cleared. - * \param[inout] expired_goals the identifiers of goals that expired, or set to `NULL` if unused - * \param[inout] expired_goals_capacity the allocated size of `expired_goals`, or 0 if unused - * \param[out] num_expired the number of expired goals, or set to `NULL` if unused - * \return `RCL_RET_OK` if the response was sent successfully, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_expire_goals( - const rcl_action_server_t * action_server, - rcl_action_goal_info_t * expired_goals, - size_t expired_goals_capacity, - size_t * num_expired); - -/// Notifies action server that a goal handle reached a terminal state. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server - * \return `RCL_RET_OK` if everything is ok, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_notify_goal_done( - const rcl_action_server_t * action_server); - -/// Take a pending cancel request using an action server. -/** - * \todo TODO(jacobperron) blocking of take? - * - * \todo TODO(jacobperron) pre-, during-, and post-conditions for message ownership? - * - * \todo TODO(jacobperron) is this thread-safe? - * - * The caller is responsible for ensuring that the type of `ros_cancel_request`_ - * and the type associate with the client (via the type support) match. - * Passing a different type produces undefined behavior and cannot be checked - * by this function and therefore no deliberate error will occur. - * - * After receiving a successful cancel request, the appropriate goals can be - * transitioned to the state CANCELING using rcl_action_process_cancel_request(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server that will take the cancel request - * \param[out] request_header pointer to the cancel request header - * \param[out] ros_cancel_request a preallocated ROS cancel request where the request - * message is copied - * \return `RCL_RET_OK` if the response was sent successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_ACTION_SERVER_TAKE_FAILED` if take failed but no error occurred - * in the middleware, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_take_cancel_request( - const rcl_action_server_t * action_server, - rmw_request_id_t * request_header, - void * ros_cancel_request); - -/// Process a cancel request using an action server. -/** - * This is a non-blocking call. - * - * This function will compute a list of goals that a cancelation request is attempting to cancel. - * It does not change the state of any goal. - * The following cancel policy applies based on the goal ID and the timestamp - * contained in the cancel request: - * - * - If the goal ID is zero and timestamp is zero, cancel all goals. - * - If the goal ID is zero and timestamp is not zero, cancel all goals accepted - * at or before the timestamp. - * - If the goal ID is not zero and timestamp is zero, cancel the goal with the - * given ID regardless of the time it was accepted. - * - If the goal ID is not zero and timestamp is not zero, cancel the goal with the - * given ID and all goals accepted at or before the timestamp. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server that will process the cancel request - * \param[in] cancel_request a C-typed ROS cancel request to process - * \param[out] cancel_response a zero-initialized cancel response struct - * where the goal info of goals which should be cancelled are copied - * \return `RCL_RET_OK` if the response was sent successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_process_cancel_request( - const rcl_action_server_t * action_server, - const rcl_action_cancel_request_t * cancel_request, - rcl_action_cancel_response_t * cancel_response); - -/// Send a cancel response using an action server. -/** - * This is a non-blocking call. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server that will send the cancel response - * \param[in] response_header pointer to the cancel response header - * \param[in] ros_cancel_response a ROS cancel response to send - * \return `RCL_RET_OK` if the request was taken, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_TIMEOUT` if a cancel response reader is not ready yet, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_send_cancel_response( - const rcl_action_server_t * action_server, - rmw_request_id_t * response_header, - void * ros_cancel_response); - -/// Get the action name for an action server. -/** - * This function returns the action server's internal topic name string. - * This function can fail, and therefore return `NULL`, if the: - * - action server is `NULL` - * - action server is invalid (e.g. never called init or called fini) - * - * The returned string is only valid as long as the action server is valid. - * The value of the string may change if the topic name changes, and therefore - * copying the string is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server pointer to the action server - * \return name string if successful, or - * \return `NULL` otherwise. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -const char * -rcl_action_server_get_action_name(const rcl_action_server_t * action_server); - -/// Return the rcl_action_server_options_t for an action server. -/** - * This function returns the action server's internal options struct. - * This function can fail, and therefore return `NULL`, if the: - * - action server is `NULL` - * - action server is invalid (e.g. never called init or called fini) - * - * The returned struct is only valid as long as the action server is valid. - * The values in the struct may change if the action server's options change, - * and therefore copying the struct is recommended if this is a concern. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server - * \return options struct if successful, or - * \return `NULL` otherwise. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -const rcl_action_server_options_t * -rcl_action_server_get_options(const rcl_action_server_t * action_server); - -/// Get the goal handles for all goals an action server is tracking. -/** - * A pointer to the internally held array of pointers to goal handle structs is returned - * along with the number of items in the array. - * - * The returned handle is made invalid if the action server is finalized, if - * rcl_shutdown() is called, or if rcl_action_expire_goals() is called and one or more - * goals are expired. - * The returned handle is not guaranteed to be valid for the life time of the - * action server as it may be finalized and recreated itself. - * Therefore, it is recommended to get the handle from the action server using - * this function each time it is needed and avoid use of the handle - * concurrently with functions that might change it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server - * \param[out] goal_handles is set to the array of pointers to goal handles if successful. - * \param[out] num_goals is set to the number of goals in the returned array if successful, - * not set otherwise. - * \return `RCL_RET_OK` if successful, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_server_get_goal_handles( - const rcl_action_server_t * action_server, - rcl_action_goal_handle_t *** goal_handles, - size_t * num_goals); - -/// Check if a goal is already being tracked by an action server. -/** - * Checks whether or not a goal is being tracked in the internal goal array. - * The goal state has no effect on the return value. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server - * \param[in] goal_info handle to a struct containing the goal ID to check for - * \return `true` if `action_server` is currently tracking a goal with the provided goal ID, or - * \return `false` otherwise. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -bool -rcl_action_server_goal_exists( - const rcl_action_server_t * action_server, - const rcl_action_goal_info_t * goal_info); - -/// Check if an action server is valid. -/** - * In the case where `false` is returned (ie. the action server is invalid), - * an error message is set. - * - * This function cannot fail. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server - * \return `true` if `action_server` is valid, or - * \return `false` otherwise. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -bool -rcl_action_server_is_valid(const rcl_action_server_t * action_server); - -/// Check if an action server is valid without erroring if the library is shutting down. -/** - * In the case where `false` is returned (ie. the action server is invalid), - * an error message is set. - * - * This function cannot fail. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server handle to the action server - * \return `true` if `action_server` is valid, or - * \return `false` otherwise. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -bool -rcl_action_server_is_valid_except_context(const rcl_action_server_t * action_server); - -/// Configure service introspection features for all internal service servers of the action server -/** - * For the internal goal, cancel, and result services of the action server, call - * \ref rcl_service_configure_service_introspection separately for each. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined - * - * \param[in] action_server The action server on which to configure internal service introspection - * \param[in] node valid rcl_node_t to use to create the introspection publisher - * \param[in] clock valid rcl_clock_t to use to generate the introspection timestamps - * \param[in] type_support type support library associated with this action server - * \param[in] publisher_options options to use when creating the introspection publisher - * \param[in] introspection_state rcl_service_introspection_state_t describing whether - * introspection should be OFF, METADATA, or CONTENTS - * \return #RCL_RET_OK if the call was successful, or - * \return #RCL_RET_ERROR if calling rcl_service_configure_service_introspection for each internal - * services doesn't return RCL_RET_OK, or - * \return #RCL_RET_INVALID_ARGUMENT if the given node or clock or type_support is invalid - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_server_configure_action_introspection( - rcl_action_server_t * action_server, - rcl_node_t * node, - rcl_clock_t * clock, - const rosidl_action_type_support_t * type_support, - const rcl_publisher_options_t publisher_options, - rcl_service_introspection_state_t introspection_state); - -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_server_set_goal_service_callback( - const rcl_action_server_t * action_server, - rcl_event_callback_t callback, - const void * user_data); - -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_server_set_cancel_service_callback( - const rcl_action_server_t * action_server, - rcl_event_callback_t callback, - const void * user_data); - -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_server_set_result_service_callback( - const rcl_action_server_t * action_server, - rcl_event_callback_t callback, - const void * user_data); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_ACTION__ACTION_SERVER_H_ diff --git a/src/rcl_action/default_qos.h b/src/rcl_action/default_qos.h deleted file mode 100755 index c1952b708..000000000 --- a/src/rcl_action/default_qos.h +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_ACTION__DEFAULT_QOS_H_ -#define RCL_ACTION__DEFAULT_QOS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/types.h" - - -static const rmw_qos_profile_t rcl_action_qos_profile_status_default = -{ - RMW_QOS_POLICY_HISTORY_KEEP_LAST, - 1, - RMW_QOS_POLICY_RELIABILITY_RELIABLE, - RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL, - RMW_QOS_DEADLINE_DEFAULT, - RMW_QOS_LIFESPAN_DEFAULT, - RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT, - RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT, - false -}; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_ACTION__DEFAULT_QOS_H_ diff --git a/src/rcl_action/goal_handle.h b/src/rcl_action/goal_handle.h deleted file mode 100755 index 46ea29e56..000000000 --- a/src/rcl_action/goal_handle.h +++ /dev/null @@ -1,298 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_ACTION__GOAL_HANDLE_H_ -#define RCL_ACTION__GOAL_HANDLE_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl_action/goal_state_machine.h" -#include "rcl_action/types.h" -#include "rcl_action/visibility_control.h" -#include "rcl/allocator.h" -#include "rcl/time.h" - - -/// Internal rcl action goal implementation struct. -typedef struct rcl_action_goal_handle_impl_s rcl_action_goal_handle_impl_t; - -/// Goal handle for an action. -typedef struct rcl_action_goal_handle_s -{ - /// Pointer to the action goal handle implementation - rcl_action_goal_handle_impl_t * impl; -} rcl_action_goal_handle_t; - -/// Define invaild value for goal terminal timestamp -#define INVAILD_GOAL_TERMINAL_TIMESTAMP -1 - -/// Return a rcl_action_goal_handle_t struct with members set to `NULL`. -/** - * Should be called to get a null rcl_action_goal_handle_t before passing to - * rcl_action_goal_handle_init(). - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_action_goal_handle_t -rcl_action_get_zero_initialized_goal_handle(void); - -/// Initialize a rcl_action_goal_handle_t. -/** - * After calling this function on a rcl_action_goal_handle_t, it can be used to update the - * goals state with rcl_action_update_goal_state(). - * It can also be used to query the state of the goal with - * rcl_action_goal_handle_get_message() and rcl_action_goal_handle_is_active(). - * Goal information can be accessed with rcl_action_goal_handle_get_message() and - * rcl_action_goal_handle_get_info(). - * - * Goal handles are typically initialized and finalized by action servers. - * I.e. The allocator should be provided by the action server. - * Goal handles are created with rcl_action_accept_new_goal() and destroyed with - * rcl_action_clear_expired_goals() or rcl_action_server_fini(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[out] goal_handle preallocated, zero-initialized, goal handle structure - * to be initialized - * \param[in] goal_info information about the goal to be copied to the goal handle - * \param[in] allocator a valid allocator used to initialized the goal handle - * \return `RCL_RET_OK` if goal_handle was initialized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if the allocator is invalid, or - * \return `RCL_RET_ACTION_GOAL_HANDLE_INVALID` if the goal handle is invalid, or - * \return `RCL_RET_ALREADY_INIT` if the goal handle has already been initialized, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_goal_handle_init( - rcl_action_goal_handle_t * goal_handle, - const rcl_action_goal_info_t * goal_info, - rcl_allocator_t allocator); - -/// Finalize a rcl_action_goal_handle_t. -/** - * After calling, rcl_action_goal_handle_t will no longer be valid and - * rcl_action_server_t will no longer track the goal associated with the goal handle. - * - * After calling, calls to rcl_action_publish_feedback(), rcl_action_publish_status(), - * rcl_action_update_goal_state(), rcl_action_goal_handle_get_status(), - * rcl_action_goal_handle_is_active(), rcl_action_goal_handle_get_message(), and - * rcl_action_goal_handle_get_info() will fail when using this goal handle. - * - * However, the given action server is still valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] goal_handle struct to be deinitialized - * \return `RCL_RET_OK` if the goal handle was deinitialized successfully, or - * \return `RCL_RET_ACTION_GOAL_HANDLE_INVALID` if the goal handle is invalid, or - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_goal_handle_fini(rcl_action_goal_handle_t * goal_handle); - -/// Update a goal state with a rcl_action_goal_handle_t and an event. -/** - * This is a non-blocking call. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] goal_handle struct containing goal state to transition - * \param[in] goal_event the event used to transition the goal state - * \return `RCL_RET_OK` if the goal state was updated successfully, or - * \return `RCL_RET_ACTION_GOAL_EVENT_INVALID` if the goal event is invalid, or - * \return `RCL_RET_ACTION_GOAL_HANDLE_INVALID` if the goal handle is invalid, or - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_update_goal_state( - rcl_action_goal_handle_t * goal_handle, - const rcl_action_goal_event_t goal_event); - -/// Get the ID of a goal using a rcl_action_goal_handle_t. -/** - * This is a non-blocking call. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] goal_handle struct containing the goal and meta - * \param[out] goal_info a preallocated struct where the goal info is copied - * \return `RCL_RET_OK` if the goal ID was accessed successfully, or - * \return `RCL_RET_ACTION_GOAL_HANDLE_INVALID` if the goal handle is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if the goal_info argument is invalid - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_goal_handle_get_info( - const rcl_action_goal_handle_t * goal_handle, - rcl_action_goal_info_t * goal_info); - -/// Get the status of a goal. -/** - * This is a non-blocking call. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] goal_handle struct containing the goal and metadata - * \param[out] status a preallocated struct where the goal status is copied - * \return `RCL_RET_OK` if the goal ID was accessed successfully, or - * \return `RCL_RET_ACTION_GOAL_HANDLE_INVALID` if the goal handle is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if the status argument is invalid - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_goal_handle_get_status( - const rcl_action_goal_handle_t * goal_handle, - rcl_action_goal_state_t * status); - -/// Get the goal terminal timestamp. -/** - * This is a non-blocking call. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] goal_handle struct containing the goal and metadata - * \param[out] timestamp a preallocated struct where goal terminal timestamp is copied. - * \return `RCL_RET_OK` if the goal ID was accessed successfully, or - * \return `RCL_RET_ACTION_GOAL_HANDLE_INVALID` if the goal handle is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if the timestamp argument is invalid or - * \return `RCL_ACTION_RET_NOT_TERMINATED_YET` if the goal has not reached terminal state - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_goal_handle_get_goal_terminal_timestamp( - const rcl_action_goal_handle_t * goal_handle, - rcl_time_point_value_t * timestamp); - -/// Check if a goal is active using a rcl_action_goal_handle_t. -/** - * This is a non-blocking call. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] goal_handle struct containing the goal and metadata - * \return `true` if the goal is in one of the following states: ACCEPTED, EXECUTING, or CANCELING, or - * \return `false` if the goal handle pointer is invalid, or - * \return `false` otherwise -*/ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -bool -rcl_action_goal_handle_is_active(const rcl_action_goal_handle_t * goal_handle); - -/// Check if a goal can be transitioned to CANCELING in its current state. -/** - * This is a non-blocking call. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] goal_handle struct containing the goal and metadata - * \return `true` if the goal can be transitioned to CANCELING from its current state, or - * \return `false` if the goal handle pointer is invalid, or - * \return `false` otherwise -*/ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -bool -rcl_action_goal_handle_is_cancelable(const rcl_action_goal_handle_t * goal_handle); - -/// Check if a rcl_action_goal_handle_t is valid. -/** - * This is a non-blocking call. - * - * A goal handle is invalid if: - * - the implementation is `NULL` (rcl_action_goal_handle_init() not called or failed) - * - rcl_shutdown() has been called since the goal handle has been initialized - * - the goal handle has been finalized with rcl_action_goal_handle_fini() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] goal_handle struct to evaluate as valid or not - * \return `true` if the goal handle is valid, or - * \return `false` if the goal handle pointer is null, or - * \return `false` otherwise - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -bool -rcl_action_goal_handle_is_valid(const rcl_action_goal_handle_t * goal_handle); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_ACTION__GOAL_HANDLE_H_ diff --git a/src/rcl_action/goal_state_machine.h b/src/rcl_action/goal_state_machine.h deleted file mode 100755 index 72a2cecf7..000000000 --- a/src/rcl_action/goal_state_machine.h +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_ACTION__GOAL_STATE_MACHINE_H_ -#define RCL_ACTION__GOAL_STATE_MACHINE_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl_action/types.h" -#include "rcl_action/visibility_control.h" - - -/// Transition a goal from one state to the next. -/** - * Given a goal state and a goal event, return the next state. - * - * \param[in] state the state to transition from - * \param[in] event the event triggering a transition - * \return the next goal state if the transition is valid, or - * \return `GOAL_STATE_UNKNOWN` if the transition is invalid or an error occured - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_action_goal_state_t -rcl_action_transition_goal_state( - const rcl_action_goal_state_t state, - const rcl_action_goal_event_t event); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_ACTION__GOAL_STATE_MACHINE_H_ diff --git a/src/rcl_action/graph.h b/src/rcl_action/graph.h deleted file mode 100755 index 7d4fc82e6..000000000 --- a/src/rcl_action/graph.h +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright 2019 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_ACTION__GRAPH_H_ -#define RCL_ACTION__GRAPH_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl/graph.h" -#include "rcl/node.h" - -#include "rcl_action/visibility_control.h" - -/// Get a list of action names and types for action clients associated with a node. -/** - * The `node` parameter must point to a valid node. - * - * The `action_names_and_types` parameter must be allocated and zero initialized. - * This function allocates memory for the returned list of names and types and so it is the - * callers responsibility to pass `action_names_and_types` to rcl_names_and_types_fini() - * when it is no longer needed. - * Failing to do so will result in leaked memory. - * - * The returned names are not automatically remapped by this function. - * Attempting to create action clients or action servers with names returned by this function may - * not result in the desired action name depending on the remap rules in use. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator allocator for allocating space for strings - * \param[in] node_name the node name of the actions to return - * \param[in] node_namespace the node namespace of the actions to return - * \param[out] action_names_and_types list of action names and their types - * \return `RCL_RET_OK` if the query was successful, or - * \return `RCL_RET_NODE_INVALID` if the node is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_get_client_names_and_types_by_node( - const rcl_node_t * node, - rcl_allocator_t * allocator, - const char * node_name, - const char * node_namespace, - rcl_names_and_types_t * action_names_and_types); - -/// Get a list of action names and types for action servers associated with a node. -/** - * This function returns a list of action names and types for action servers associated with - * the provided node name. - * - * The `node` parameter must point to a valid node. - * - * The `action_names_and_types` parameter must be allocated and zero initialized. - * This function allocates memory for the returned list of names and types and so it is the - * callers responsibility to pass `action_names_and_types` to rcl_names_and_types_fini() - * when it is no longer needed. - * Failing to do so will result in leaked memory. - * - * The returned names are not automatically remapped by this function. - * Attempting to create action clients or action servers with names returned by this function may - * not result in the desired action name depending on the remap rules in use. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator allocator for allocating space for strings - * \param[in] node_name the node name of the actions to return - * \param[in] node_namespace the node namespace of the actions to return - * \param[out] action_names_and_types list of action names and their types - * \return `RCL_RET_OK` if the query was successful, or - * \return `RCL_RET_NODE_INVALID` if the node is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_get_server_names_and_types_by_node( - const rcl_node_t * node, - rcl_allocator_t * allocator, - const char * node_name, - const char * node_namespace, - rcl_names_and_types_t * action_names_and_types); - -/// Return a list of action names and their types. -/** - * This function returns a list of action names and types in the ROS graph. - * - * The `node` parameter must point to a valid node. - * - * The `action_names_and_types` parameter must be allocated and zero initialized. - * This function allocates memory for the returned list of names and types and so it is the - * callers responsibility to pass `action_names_and_types` to rcl_names_and_types_fini() - * when it is no longer needed. - * Failing to do so will result in leaked memory. - * - * The returned names are not automatically remapped by this function. - * Attempting to create action clients or action servers with names returned by this function may - * not result in the desired action name depending on the remap rules in use. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Maybe [1] - * [1] implementation may need to protect the data structure with a lock - * - * \param[in] node the handle to the node being used to query the ROS graph - * \param[in] allocator allocator for allocating space for strings - * \param[out] action_names_and_types list of action names and types - * \return `RCL_RET_OK` if the query was successful, or - * \return `RCL_RET_NODE_INVALID` if the node is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_get_names_and_types( - const rcl_node_t * node, - rcl_allocator_t * allocator, - rcl_names_and_types_t * action_names_and_types); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_ACTION__GRAPH_H_ diff --git a/src/rcl_action/names.h b/src/rcl_action/names.h deleted file mode 100755 index 4fb67867a..000000000 --- a/src/rcl_action/names.h +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_ACTION__NAMES_H_ -#define RCL_ACTION__NAMES_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl_action/visibility_control.h" -#include "rcl_action/types.h" - -#include "rcl/allocator.h" -#include "rcl/macros.h" -#include "rcl/types.h" - - -/// Get the goal service name of an action. -/** - * This function returns the goal service name for a given action name - * that must be used by action clients and action servers to successfully - * communicate with each other. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_name The name of the action whose goal service name is - * being returned. - * \param[in] allocator A valid allocator to be used. - * \param[out] goal_service_name Either an allocated string with the action - * goal service name, or `NULL` if the function failed to allocate memory - * for it. Must refer to a `NULL` pointer upon call. - * \return `RCL_RET_OK` if the action goal service name was returned, or - * \return `RCL_RET_ACTION_NAME_INVALID` if the action name is not valid - * (i.e. empty), or - * \return `RCL_RET_INVALID_ARGUMENT` if the action name is `NULL`, or - * \return `RCL_RET_INVALID_ARGUMENT` if the allocator is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if the goal service name pointer is - * `NULL` or points to a non-`NULL` pointer, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_get_goal_service_name( - const char * action_name, - rcl_allocator_t allocator, - char ** goal_service_name); - -/// Get the cancel service name of an action. -/** - * This function returns the cancel service name for a given action name - * that must be used by action clients and action servers to successfully - * communicate with each other. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_name The name of the action whose cancel service name - * is being returned. - * \param[in] allocator A valid allocator to be used. - * \param[out] cancel_service_name Either an allocated string with the action - * cancel service name, or `NULL` if the function failed to allocate memory - * for it. Must refer to a `NULL` pointer upon call. - * \return `RCL_RET_OK` if the action cancel service name was returned, or - * \return `RCL_RET_ACTION_NAME_INVALID` if the action name is not valid - * (i.e. empty), or - * \return `RCL_RET_INVALID_ARGUMENT` if the action name is `NULL`, or - * \return `RCL_RET_INVALID_ARGUMENT` if the allocator is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if the cancel service name is `NULL` or - * points to a non-`NULL` pointer, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_get_cancel_service_name( - const char * action_name, - rcl_allocator_t allocator, - char ** cancel_service_name); - -/// Get the result service name of an action. -/** - * This function returns the result service name for a given action name - * that must be used by action clients and action servers to successfully - * communicate with each other. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_name The name of the action whose result service name - * is being returned. - * \param[in] allocator A valid allocator to be used. - * \param[out] result_service_name Either an allocated string with the action - * result service name, or `NULL` if the function failed to allocate memory - * for it. Must refer to a `NULL` pointer upon call. - * \return `RCL_RET_OK` if the action result service name was returned, or - * \return `RCL_RET_ACTION_NAME_INVALID` if the action name is not valid - * (i.e. empty), or - * \return `RCL_RET_INVALID_ARGUMENT` if the action name is `NULL`, or - * \return `RCL_RET_INVALID_ARGUMENT` if the allocator is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if the result service name pointer is - * `NULL` or points to a non-`NULL` pointer, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_get_result_service_name( - const char * action_name, - rcl_allocator_t allocator, - char ** result_service_name); - -/// Get the feedback topic name of an action. -/** - * This function returns the feedback topic name for a given action name - * that must be used by action clients and action servers to successfully - * communicate with each other. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_name The name of the action whose feedback topic name - * is being returned. - * \param[in] allocator A valid allocator to be used. - * \param[out] feedback_topic_name Either an allocated string with the action - * feedback topic name, or `NULL` if the function failed to allocate memory - * for it. Must refer to a `NULL` pointer upon call. - * \return `RCL_RET_OK` if the action feedback topic name was returned, or - * \return `RCL_RET_ACTION_NAME_INVALID` if the action name is not valid - * (i.e. empty), or - * \return `RCL_RET_INVALID_ARGUMENT` if the action name is `NULL`, or - * \return `RCL_RET_INVALID_ARGUMENT` if the allocator is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if the feedback topic name pointer is - * `NULL` or points to a non-`NULL` pointer, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_get_feedback_topic_name( - const char * action_name, - rcl_allocator_t allocator, - char ** feedback_topic_name); - -/// Get the status topic name of an action. -/** - * This function returns the status topic name for a given action name - * that must be used by action clients and action servers to successfully - * communicate with each other. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_name The name of the action whose status topic - * name is being returned. - * \param[in] allocator A valid allocator to be used. - * \param[out] status_topic_name Either an allocated string with the action - * status topic name, or `NULL` if the function failed to allocate memory - * for it. Must refer to a `NULL` pointer upon call. - * \return `RCL_RET_OK` if the action status topic name was returned, or - * \return `RCL_RET_ACTION_NAME_INVALID` if the action name is not valid - * (i.e. empty), or - * \return `RCL_RET_INVALID_ARGUMENT` if the action name is `NULL`, or - * \return `RCL_RET_INVALID_ARGUMENT` if the allocator is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if the status topic name pointer is - * `NULL` or points to a non-`NULL` pointer, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_get_status_topic_name( - const char * action_name, - rcl_allocator_t allocator, - char ** status_topic_name); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_ACTION__NAMES_H_ diff --git a/src/rcl_action/rcl_action.h b/src/rcl_action/rcl_action.h deleted file mode 100755 index c7a33bb2d..000000000 --- a/src/rcl_action/rcl_action.h +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** \mainpage rcl: Common functionality ROS actions - * - * `rcl_action` provides a pure C implementation of the ROS concept of an \b action. - * It builds on top of the implementation of topics and services in `rcl`. - * - * `rcl_action` consists of functions and structs for the following ROS action entities: - * - * - Action client - * - rcl_action/action_client.h - * - Action server - * - rcl_action/action_server.h - * - Goal handle - * - rcl_action/goal_handle.h - * - Goal state machine - * - rcl_action/goal_state_machine.h - * - * It also has some machinery that is necessary to wait on and act on these entities: - * - * - Wait sets for waiting on actions clients and action servers to be ready - * - rcl_action/wait.h - * - * Some useful abstractions and utilities: - * - * - Return codes and other types - * - rcl_action/types.h - */ - -#ifndef RCL_ACTION__RCL_ACTION_H_ -#define RCL_ACTION__RCL_ACTION_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl_action/action_client.h" -#include "rcl_action/action_server.h" -#include "rcl_action/default_qos.h" -#include "rcl_action/goal_handle.h" -#include "rcl_action/goal_state_machine.h" -#include "rcl_action/graph.h" -#include "rcl_action/types.h" -#include "rcl_action/wait.h" - -#ifdef __cplusplus -} -#endif - -#endif // RCL_ACTION__RCL_ACTION_H_ diff --git a/src/rcl_action/types.h b/src/rcl_action/types.h deleted file mode 100755 index 30a16fbe7..000000000 --- a/src/rcl_action/types.h +++ /dev/null @@ -1,280 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_ACTION__TYPES_H_ -#define RCL_ACTION__TYPES_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl_action/visibility_control.h" - -#include "action_msgs/msg/goal_info.h" -#include "action_msgs/msg/goal_status.h" -#include "action_msgs/msg/goal_status_array.h" -#include "action_msgs/srv/cancel_goal.h" - -#include "rcl/allocator.h" -#include "rcl/macros.h" -#include "rcl/types.h" - -#include "rosidl_runtime_c/action_type_support_struct.h" - -// TODO(jacobperron): Move these to a common place for UUIDs -#define UUID_SIZE 16 -#define uuidcmp(uuid0, uuid1) (0 == memcmp(uuid0, uuid1, UUID_SIZE)) -#define zerouuid (uint8_t[UUID_SIZE]) {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} -#define uuidcmpzero(uuid) uuidcmp(uuid, (zerouuid)) - -// Typedef generated messages for convenience -typedef action_msgs__msg__GoalInfo rcl_action_goal_info_t; -typedef action_msgs__msg__GoalStatus rcl_action_goal_status_t; -/// Struct with the action goal status array -typedef struct rcl_action_goal_status_array_s -{ - /// Goal status array message - action_msgs__msg__GoalStatusArray msg; - /// Allocator used to initialize this struct. - rcl_allocator_t allocator; -} rcl_action_goal_status_array_t; -typedef action_msgs__srv__CancelGoal_Request rcl_action_cancel_request_t; -/// Struct with the action cancel response -typedef struct rcl_action_cancel_response_s -{ - /// Cancel goal response message - action_msgs__srv__CancelGoal_Response msg; - /// Allocator used to initialize this struct. - rcl_allocator_t allocator; -} rcl_action_cancel_response_t; - -/// Goal states -// TODO(jacobperron): Let states be defined by action_msgs/msg/goal_status.h -// Ideally, we could use an enum type directly from the message when the feature -// is available. Issue: https://github.com/ros2/rosidl/issues/260 -typedef int8_t rcl_action_goal_state_t; -#define GOAL_STATE_UNKNOWN action_msgs__msg__GoalStatus__STATUS_UNKNOWN -#define GOAL_STATE_ACCEPTED action_msgs__msg__GoalStatus__STATUS_ACCEPTED -#define GOAL_STATE_EXECUTING action_msgs__msg__GoalStatus__STATUS_EXECUTING -#define GOAL_STATE_CANCELING action_msgs__msg__GoalStatus__STATUS_CANCELING -#define GOAL_STATE_SUCCEEDED action_msgs__msg__GoalStatus__STATUS_SUCCEEDED -#define GOAL_STATE_CANCELED action_msgs__msg__GoalStatus__STATUS_CANCELED -#define GOAL_STATE_ABORTED action_msgs__msg__GoalStatus__STATUS_ABORTED -#define GOAL_STATE_NUM_STATES 7 - -/// User friendly error messages for invalid trasntions -// Description variables in types.c should be changed if enum values change -extern const char * goal_state_descriptions[]; -extern const char * goal_event_descriptions[]; - -/// Goal state transition events -typedef enum rcl_action_goal_event_e -{ - GOAL_EVENT_EXECUTE = 0, - GOAL_EVENT_CANCEL_GOAL, - GOAL_EVENT_SUCCEED, - GOAL_EVENT_ABORT, - GOAL_EVENT_CANCELED, - GOAL_EVENT_NUM_EVENTS -} rcl_action_goal_event_t; - -/// Return a rcl_action_goal_info_t with members set to zero values. -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_action_goal_info_t -rcl_action_get_zero_initialized_goal_info(void); - -/// Return a rcl_action_goal_status_array_t with members set to `NULL`. -/** - * Should be called to get a null rcl_action_goal_status_array_t before passing to - * rcl_action_server_get_goal_status_array(). - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_action_goal_status_array_t -rcl_action_get_zero_initialized_goal_status_array(void); - -/// Return a rcl_action_cancel_request_t with members set to `NULL`. -/** - * Should be called to get a null rcl_action_cancel_request_t before passing to - * - * rcl_action_cancel_request_init(). - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_action_cancel_request_t -rcl_action_get_zero_initialized_cancel_request(void); - -/// Return a rcl_action_cancel_response_t with members set to `NULL`. -/** - * Should be called to get a null rcl_action_cancel_response_t before passing to - * rcl_action_cancel_response_init(). - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_action_cancel_response_t -rcl_action_get_zero_initialized_cancel_response(void); - -/// Initialize a rcl_action_goal_status_array_t. -/** - * After calling this function on a rcl_action_goal_status_array_t, it can be populated - * and used to get and send status array messages with an action server using - * rcl_action_get_goal_status_array() and rcl_action_publish_status() respectively. - * - * Example usage: - * - * ```c - * #include - * #include - * - * rcl_action_goal_status_array_t goal_status_array = - * rcl_action_get_zero_initialized_goal_status_array(); - * size_t num_status = 42; - * ret = rcl_action_goal_status_array_init( - * &goal_status_array, - * num_status, - * rcl_get_default_allocator()); - * // ... error handling, and when done with message, finalize - * ret = rcl_action_goal_status_array_fini(&goal_status_array, rcl_get_default_allocator()); - * // ... error handling - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[out] status_array a preallocated, zero-initialized, goal status array message - * to be initialized. - * \param[in] num_status the number of status messages to allocate space for. - * Must be greater than zero - * \param[in] allocator a valid allocator - * \return `RCL_RET_OK` if cancel response was initialized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ALREADY_INIT` if the status array has already been initialized, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_goal_status_array_init( - rcl_action_goal_status_array_t * status_array, - const size_t num_status, - const rcl_allocator_t allocator); - -/// Finalize a rcl_action_goal_status_array_t. -/** - * After calling, the goal status array message will no longer be valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] status_array the goal status array message to be deinitialized - * \return `RCL_RET_OK` if the goal status array was deinitialized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_goal_status_array_fini(rcl_action_goal_status_array_t * status_array); - -/// Initialize a rcl_action_cancel_response_t. -/** - * After calling this function on a rcl_action_cancel_response_t, it can be populated - * and used to process cancel requests with an action server using - * rcl_action_process_cancel_request(). - * - * Example usage: - * - * ```c - * #include - * #include - * - * rcl_action_cancel_response_t cancel_response = - * rcl_action_get_zero_initialized_cancel_response(); - * size_t num_goals_canceling = 10; - * ret = rcl_action_cancel_response_init( - * &cancel_response, - * num_goals_canceling, - * rcl_get_default_allocator()); - * // ... error handling, and when done processing response, finalize - * ret = rcl_action_cancel_response_fini(&cancel_response, rcl_get_default_allocator()); - * // ... error handling - * ``` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[out] cancel_response a preallocated, zero-initialized, cancel response message - * to be initialized. - * \param[in] num_goals_canceling the number of goals that are canceling to add to the response - * Must be greater than zero - * \param[in] allocator a valid allocator - * \return `RCL_RET_OK` if cancel response was initialized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ALREADY_INIT` if the cancel response has already been initialized, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_cancel_response_init( - rcl_action_cancel_response_t * cancel_response, - const size_t num_goals_canceling, - const rcl_allocator_t allocator); - -/// Finalize a rcl_action_cancel_response_t. -/** - * After calling, the cancel response message will no longer be valid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] cancel_response the cancel response message to be deinitialized - * \return `RCL_RET_OK` if the cancel response was deinitialized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_cancel_response_fini(rcl_action_cancel_response_t * cancel_response); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_ACTION__TYPES_H_ diff --git a/src/rcl_action/version.h b/src/rcl_action/version.h deleted file mode 100755 index 86fcabeb1..000000000 --- a/src/rcl_action/version.h +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_ACTION__VERSION_H_ -#define RCL_ACTION__VERSION_H_ - -/// \def RCL_ACTION_VERSION_MAJOR -/// Defines RCL_ACTION major version number -#define RCL_ACTION_VERSION_MAJOR (10) - -/// \def RCL_ACTION_VERSION_MINOR -/// Defines RCL_ACTION minor version number -#define RCL_ACTION_VERSION_MINOR (1) - -/// \def RCL_ACTION_VERSION_PATCH -/// Defines RCL_ACTION version patch number -#define RCL_ACTION_VERSION_PATCH (1) - -/// \def RCL_ACTION_VERSION_STR -/// Defines RCL_ACTION version string -#define RCL_ACTION_VERSION_STR "10.1.1" - -/// \def RCL_ACTION_VERSION_GTE -/// Defines a macro to check whether the version of RCL_ACTION is greater than or equal to -/// the given version triple. -#define RCL_ACTION_VERSION_GTE(major, minor, patch) ( \ - (major < RCL_ACTION_VERSION_MAJOR) ? true \ - : ((major > RCL_ACTION_VERSION_MAJOR) ? false \ - : ((minor < RCL_ACTION_VERSION_MINOR) ? true \ - : ((minor > RCL_ACTION_VERSION_MINOR) ? false \ - : ((patch < RCL_ACTION_VERSION_PATCH) ? true \ - : ((patch > RCL_ACTION_VERSION_PATCH) ? false \ - : true)))))) - -#endif // RCL_ACTION__VERSION_H_ diff --git a/src/rcl_action/visibility_control.h b/src/rcl_action/visibility_control.h deleted file mode 100755 index af4353222..000000000 --- a/src/rcl_action/visibility_control.h +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/* This header must be included by all rclcpp headers which declare symbols - * which are defined in the rclcpp library. When not building the rclcpp - * library, i.e. when using the headers in other package's code, the contents - * of this header change the visibility of certain symbols which the rclcpp - * library cannot have, but the consuming code must have inorder to link. - */ - -#ifndef RCL_ACTION__VISIBILITY_CONTROL_H_ -#define RCL_ACTION__VISIBILITY_CONTROL_H_ - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define RCL_ACTION_EXPORT __attribute__ ((dllexport)) - #define RCL_ACTION_IMPORT __attribute__ ((dllimport)) - #else - #define RCL_ACTION_EXPORT __declspec(dllexport) - #define RCL_ACTION_IMPORT __declspec(dllimport) - #endif - #ifdef RCL_ACTION_BUILDING_DLL - #define RCL_ACTION_PUBLIC RCL_ACTION_EXPORT - #else - #define RCL_ACTION_PUBLIC RCL_ACTION_IMPORT - #endif - #define RCL_ACTION_PUBLIC_TYPE RCL_ACTION_PUBLIC - #define RCL_ACTION_LOCAL -#else - #define RCL_ACTION_EXPORT __attribute__ ((visibility("default"))) - #define RCL_ACTION_IMPORT - #if __GNUC__ >= 4 - #define RCL_ACTION_PUBLIC __attribute__ ((visibility("default"))) - #define RCL_ACTION_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define RCL_ACTION_PUBLIC - #define RCL_ACTION_LOCAL - #endif - #define RCL_ACTION_PUBLIC_TYPE -#endif - -#endif // RCL_ACTION__VISIBILITY_CONTROL_H_ diff --git a/src/rcl_action/wait.h b/src/rcl_action/wait.h deleted file mode 100755 index 29bdeb341..000000000 --- a/src/rcl_action/wait.h +++ /dev/null @@ -1,285 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_ACTION__WAIT_H_ -#define RCL_ACTION__WAIT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcl_action/action_client.h" -#include "rcl_action/action_server.h" -#include "rcl_action/visibility_control.h" -#include "rcl/wait.h" - -/// Add a rcl_action_client_t to a wait set. -/** - * This function will add the underlying service clients and subscribers to the wait set. - * - * This function behaves similar to adding subscriptions to the wait set, but will add - * five entities: - * - * - Three service clients - * - Two subscriptions - * - * \see rcl_wait_set_add_subscription - * - * If this function fails for any reason, `client_index` and `subscription_index` are not set. - * It is also possible the provided wait set is left in an inconsistent state (e.g. some - * of the clients and subscriptions were added to the wait set, but not all). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] wait_set struct where action client service client and subscription - * are to be stored - * \param[in] action_client the action client to be added to the wait set - * \param[out] client_index the starting index in the wait set's client container where - * the action clients underlying service clients were added. Optionally, set to `NULL` - * if ignored. - * \param[out] subscription_index the starting index in the wait set's subscription container - * where the action clients underlying subscriptions were added. Optionally, set to `NULL` - * if ignored. - * \return `RCL_RET_OK` if added successfully, or - * \return `RCL_RET_WAIT_SET_INVALID` if the wait set is zero initialized, or - * \return `RCL_RET_WAIT_SET_FULL` if the subscription set is full, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the action client is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. -*/ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_wait_set_add_action_client( - rcl_wait_set_t * wait_set, - const rcl_action_client_t * action_client, - size_t * client_index, - size_t * subscription_index); - -/// Add a rcl_action_server_t to a wait set. -/** - * This function will add the underlying services to the wait set. - * - * This function behaves similar to adding services to the wait set, but will add - * three services. - * - * \see rcl_wait_set_add_service - * - * * If this function fails for any reason, `service_index` is not set. - * It is also possible the provided wait set is left in an inconsistent state (e.g. some - * of the clients and subscribers were added to the wait set, but not all). - - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] wait_set struct where action server services are to be stored - * \param[in] action_server the action server to be added to the wait set - * \param[out] service_index the starting index in the wait set's service container where - * the action servers underlying services were added. Optionally, set to `NULL` - * if ignored. - * \return `RCL_RET_OK` if added successfully, or - * \return `RCL_RET_WAIT_SET_INVALID` if the wait set is zero initialized, or - * \return `RCL_RET_WAIT_SET_FULL` if the subscription set is full, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. -*/ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_wait_set_add_action_server( - rcl_wait_set_t * wait_set, - const rcl_action_server_t * action_server, - size_t * service_index); - -/// Get the number of wait set entities associated with a rcl_action_client_t. -/** - * Returns the number of entities that are added to the wait set if - * rcl_action_wait_set_add_action_client() is called. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_client an action client to query - * \param[out] num_subscriptions the number of subscriptions added when the action client - * is added to the wait set - * \param[out] num_guard_conditions the number of guard conditions added when the action client - * is added to the wait set - * \param[out] num_timers the number of timers added when the action client - * is added to the wait set - * \param[out] num_clients the number of clients added when the action client - * is added to the wait set - * \param[out] num_services the number of services added when the action client - * is added to the wait set - * \return `RCL_RET_OK` if call is successful, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the action client is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. -*/ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_client_wait_set_get_num_entities( - const rcl_action_client_t * action_client, - size_t * num_subscriptions, - size_t * num_guard_conditions, - size_t * num_timers, - size_t * num_clients, - size_t * num_services); - -/// Get the number of wait set entities associated with a rcl_action_server_t. -/** - * Returns the number of entities that are added to the wait set if - * rcl_action_wait_set_add_action_server() is called. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] action_server an action server to query - * \param[out] num_subscriptions the number of subscriptions added when the action server - * is added to the wait set - * \param[out] num_guard_conditions the number of guard conditions added when the action server - * is added to the wait set - * \param[out] num_timers the number of timers added when the action server - * is added to the wait set - * \param[out] num_clients the number of clients added when the action server - * is added to the wait set - * \param[out] num_services the number of services added when the action server - * is added to the wait set - * \return `RCL_RET_OK` if call is successful, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_SERVER_INVALID` if the action server is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. -*/ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_server_wait_set_get_num_entities( - const rcl_action_server_t * action_server, - size_t * num_subscriptions, - size_t * num_guard_conditions, - size_t * num_timers, - size_t * num_clients, - size_t * num_services); - -/// Get the wait set entities that are ready for a rcl_action_client_t. -/** - * The caller can use this function to determine the relevant action client functions - * to call: rcl_action_take_feedback(), rcl_action_take_status(), - * rcl_action_take_goal_response(), rcl_action_take_cancel_response(), or - * rcl_action_take_result_response(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] wait_set struct where action server services are to be stored - * \param[in] action_client an action client to query - * \param[out] is_feedback_ready `true` if there is a feedback message ready to take, - * `false` otherwise - * \param[out] is_status_ready `true` if there is a status message ready to take, - * `false` otherwise - * \param[out] is_goal_response_ready `true` if there is a goal response message ready - * to take, `false` otherwise - * \param[out] is_cancel_response_ready `true` if there is a cancel response message ready - * to take, `false` otherwise - * \param[out] is_result_response_ready `true` if there is a result response message ready - * to take, `false` otherwise - * \return `RCL_RET_OK` if call is successful, or - * \return `RCL_RET_WAIT_SET_INVALID` if the wait set is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the action client is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. -*/ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_client_wait_set_get_entities_ready( - const rcl_wait_set_t * wait_set, - const rcl_action_client_t * action_client, - bool * is_feedback_ready, - bool * is_status_ready, - bool * is_goal_response_ready, - bool * is_cancel_response_ready, - bool * is_result_response_ready); - -/// Get the wait set entities that are ready for a rcl_action_server_t. -/** - * The caller can use this function to determine the relevant action server functions - * to call: rcl_action_take_goal_request(), rcl_action_take_cancel_request(), or - * rcl_action_take_result_request(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] wait_set struct where action server services are to be stored - * \param[in] action_server an action server to query - * \param[out] is_goal_request_ready `true` if there is a goal request message ready - * to take, `false` otherwise - * \param[out] is_cancel_request_ready `true` if there is a cancel request message ready - * to take, `false` otherwise - * \param[out] is_result_request_ready `true` if there is a result request message ready - * to take, `false` otherwise - * \param[out] is_goal_expired `true` if there is a goal that expired, `false` otherwise - * \return `RCL_RET_OK` if call is successful, or - * \return `RCL_RET_WAIT_SET_INVALID` if the wait set is invalid, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ACTION_CLIENT_INVALID` if the action server is invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. -*/ -RCL_ACTION_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_action_server_wait_set_get_entities_ready( - const rcl_wait_set_t * wait_set, - const rcl_action_server_t * action_server, - bool * is_goal_request_ready, - bool * is_cancel_request_ready, - bool * is_result_request_ready, - bool * is_goal_expired); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_ACTION__WAIT_H_ diff --git a/src/rcl_interfaces/msg/detail/floating_point_range__functions.h b/src/rcl_interfaces/msg/detail/floating_point_range__functions.h deleted file mode 100755 index 7a4a5491a..000000000 --- a/src/rcl_interfaces/msg/detail/floating_point_range__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:msg/FloatingPointRange.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/floating_point_range.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__FLOATING_POINT_RANGE__FUNCTIONS_H_ -#define RCL_INTERFACES__MSG__DETAIL__FLOATING_POINT_RANGE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/msg/detail/floating_point_range__struct.h" - -/// Initialize msg/FloatingPointRange message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__msg__FloatingPointRange - * )) before or use - * rcl_interfaces__msg__FloatingPointRange__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__FloatingPointRange__init(rcl_interfaces__msg__FloatingPointRange * msg); - -/// Finalize msg/FloatingPointRange message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__FloatingPointRange__fini(rcl_interfaces__msg__FloatingPointRange * msg); - -/// Create msg/FloatingPointRange message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__msg__FloatingPointRange__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__FloatingPointRange * -rcl_interfaces__msg__FloatingPointRange__create(void); - -/// Destroy msg/FloatingPointRange message. -/** - * It calls - * rcl_interfaces__msg__FloatingPointRange__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__FloatingPointRange__destroy(rcl_interfaces__msg__FloatingPointRange * msg); - -/// Check for msg/FloatingPointRange message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__FloatingPointRange__are_equal(const rcl_interfaces__msg__FloatingPointRange * lhs, const rcl_interfaces__msg__FloatingPointRange * rhs); - -/// Copy a msg/FloatingPointRange message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__FloatingPointRange__copy( - const rcl_interfaces__msg__FloatingPointRange * input, - rcl_interfaces__msg__FloatingPointRange * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__msg__FloatingPointRange__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__msg__FloatingPointRange__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__msg__FloatingPointRange__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__msg__FloatingPointRange__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/FloatingPointRange messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__msg__FloatingPointRange__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__FloatingPointRange__Sequence__init(rcl_interfaces__msg__FloatingPointRange__Sequence * array, size_t size); - -/// Finalize array of msg/FloatingPointRange messages. -/** - * It calls - * rcl_interfaces__msg__FloatingPointRange__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__FloatingPointRange__Sequence__fini(rcl_interfaces__msg__FloatingPointRange__Sequence * array); - -/// Create array of msg/FloatingPointRange messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__msg__FloatingPointRange__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__FloatingPointRange__Sequence * -rcl_interfaces__msg__FloatingPointRange__Sequence__create(size_t size); - -/// Destroy array of msg/FloatingPointRange messages. -/** - * It calls - * rcl_interfaces__msg__FloatingPointRange__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__FloatingPointRange__Sequence__destroy(rcl_interfaces__msg__FloatingPointRange__Sequence * array); - -/// Check for msg/FloatingPointRange message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__FloatingPointRange__Sequence__are_equal(const rcl_interfaces__msg__FloatingPointRange__Sequence * lhs, const rcl_interfaces__msg__FloatingPointRange__Sequence * rhs); - -/// Copy an array of msg/FloatingPointRange messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__FloatingPointRange__Sequence__copy( - const rcl_interfaces__msg__FloatingPointRange__Sequence * input, - rcl_interfaces__msg__FloatingPointRange__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__FLOATING_POINT_RANGE__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/msg/detail/floating_point_range__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/msg/detail/floating_point_range__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 8df03a00c..000000000 --- a/src/rcl_interfaces/msg/detail/floating_point_range__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:msg/FloatingPointRange.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__DETAIL__FLOATING_POINT_RANGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__MSG__DETAIL__FLOATING_POINT_RANGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, msg, FloatingPointRange)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__FLOATING_POINT_RANGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/msg/detail/floating_point_range__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/msg/detail/floating_point_range__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 3f3f8a340..000000000 --- a/src/rcl_interfaces/msg/detail/floating_point_range__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:msg/FloatingPointRange.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__MSG__FLOATING_POINT_RANGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__MSG__FLOATING_POINT_RANGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__msg__FloatingPointRange( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__msg__FloatingPointRange( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, msg, FloatingPointRange)(); - -#ifdef __cplusplus -} -#endif - - -#endif // RCL_INTERFACES__MSG__FLOATING_POINT_RANGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/msg/detail/floating_point_range__struct.h b/src/rcl_interfaces/msg/detail/floating_point_range__struct.h deleted file mode 100755 index 5d135bbc6..000000000 --- a/src/rcl_interfaces/msg/detail/floating_point_range__struct.h +++ /dev/null @@ -1,68 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:msg/FloatingPointRange.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/floating_point_range.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__FLOATING_POINT_RANGE__STRUCT_H_ -#define RCL_INTERFACES__MSG__DETAIL__FLOATING_POINT_RANGE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/FloatingPointRange in the package rcl_interfaces. -/** - * Represents bounds and a step value for a floating point typed parameter. - */ -typedef struct rcl_interfaces__msg__FloatingPointRange -{ - /// Start value for valid values, inclusive. - double from_value; - /// End value for valid values, inclusive. - double to_value; - /// Size of valid steps between the from and to bound. - /// - /// Step is considered to be a magnitude, therefore negative values are treated - /// the same as positive values, and a step value of zero implies a continuous - /// range of values. - /// - /// Ideally, the step would be less than or equal to the distance between the - /// bounds, as well as an even multiple of the distance between the bounds, but - /// neither are required. - /// - /// If the absolute value of the step is larger than or equal to the distance - /// between the two bounds, then the bounds will be the only valid values. e.g. if - /// the range is defined as {from_value: 1.0, to_value: 2.0, step: 5.0} then the - /// valid values will be 1.0 and 2.0. - /// - /// If the step is less than the distance between the bounds, but the distance is - /// not a multiple of the step, then the "to" bound will always be a valid value, - /// e.g. if the range is defined as {from_value: 2.0, to_value: 5.0, step: 2.0} - /// then the valid values will be 2.0, 4.0, and 5.0. - double step; -} rcl_interfaces__msg__FloatingPointRange; - -// Struct for a sequence of rcl_interfaces__msg__FloatingPointRange. -typedef struct rcl_interfaces__msg__FloatingPointRange__Sequence -{ - rcl_interfaces__msg__FloatingPointRange * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__msg__FloatingPointRange__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__FLOATING_POINT_RANGE__STRUCT_H_ diff --git a/src/rcl_interfaces/msg/detail/floating_point_range__type_support.h b/src/rcl_interfaces/msg/detail/floating_point_range__type_support.h deleted file mode 100755 index f638b3644..000000000 --- a/src/rcl_interfaces/msg/detail/floating_point_range__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:msg/FloatingPointRange.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/floating_point_range.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__FLOATING_POINT_RANGE__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__MSG__DETAIL__FLOATING_POINT_RANGE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - msg, - FloatingPointRange -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__FLOATING_POINT_RANGE__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/msg/detail/integer_range__functions.h b/src/rcl_interfaces/msg/detail/integer_range__functions.h deleted file mode 100755 index 444029f05..000000000 --- a/src/rcl_interfaces/msg/detail/integer_range__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:msg/IntegerRange.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/integer_range.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__INTEGER_RANGE__FUNCTIONS_H_ -#define RCL_INTERFACES__MSG__DETAIL__INTEGER_RANGE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/msg/detail/integer_range__struct.h" - -/// Initialize msg/IntegerRange message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__msg__IntegerRange - * )) before or use - * rcl_interfaces__msg__IntegerRange__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__IntegerRange__init(rcl_interfaces__msg__IntegerRange * msg); - -/// Finalize msg/IntegerRange message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__IntegerRange__fini(rcl_interfaces__msg__IntegerRange * msg); - -/// Create msg/IntegerRange message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__msg__IntegerRange__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__IntegerRange * -rcl_interfaces__msg__IntegerRange__create(void); - -/// Destroy msg/IntegerRange message. -/** - * It calls - * rcl_interfaces__msg__IntegerRange__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__IntegerRange__destroy(rcl_interfaces__msg__IntegerRange * msg); - -/// Check for msg/IntegerRange message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__IntegerRange__are_equal(const rcl_interfaces__msg__IntegerRange * lhs, const rcl_interfaces__msg__IntegerRange * rhs); - -/// Copy a msg/IntegerRange message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__IntegerRange__copy( - const rcl_interfaces__msg__IntegerRange * input, - rcl_interfaces__msg__IntegerRange * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__msg__IntegerRange__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__msg__IntegerRange__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__msg__IntegerRange__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__msg__IntegerRange__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/IntegerRange messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__msg__IntegerRange__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__IntegerRange__Sequence__init(rcl_interfaces__msg__IntegerRange__Sequence * array, size_t size); - -/// Finalize array of msg/IntegerRange messages. -/** - * It calls - * rcl_interfaces__msg__IntegerRange__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__IntegerRange__Sequence__fini(rcl_interfaces__msg__IntegerRange__Sequence * array); - -/// Create array of msg/IntegerRange messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__msg__IntegerRange__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__IntegerRange__Sequence * -rcl_interfaces__msg__IntegerRange__Sequence__create(size_t size); - -/// Destroy array of msg/IntegerRange messages. -/** - * It calls - * rcl_interfaces__msg__IntegerRange__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__IntegerRange__Sequence__destroy(rcl_interfaces__msg__IntegerRange__Sequence * array); - -/// Check for msg/IntegerRange message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__IntegerRange__Sequence__are_equal(const rcl_interfaces__msg__IntegerRange__Sequence * lhs, const rcl_interfaces__msg__IntegerRange__Sequence * rhs); - -/// Copy an array of msg/IntegerRange messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__IntegerRange__Sequence__copy( - const rcl_interfaces__msg__IntegerRange__Sequence * input, - rcl_interfaces__msg__IntegerRange__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__INTEGER_RANGE__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/msg/detail/integer_range__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/msg/detail/integer_range__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 1dd7cab35..000000000 --- a/src/rcl_interfaces/msg/detail/integer_range__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:msg/IntegerRange.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__DETAIL__INTEGER_RANGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__MSG__DETAIL__INTEGER_RANGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, msg, IntegerRange)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__INTEGER_RANGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/msg/detail/integer_range__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/msg/detail/integer_range__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index cd83644bf..000000000 --- a/src/rcl_interfaces/msg/detail/integer_range__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:msg/IntegerRange.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__MSG__INTEGER_RANGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__MSG__INTEGER_RANGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__msg__IntegerRange( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__msg__IntegerRange( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, msg, IntegerRange)(); - -#ifdef __cplusplus -} -#endif - - -#endif // RCL_INTERFACES__MSG__INTEGER_RANGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/msg/detail/integer_range__struct.h b/src/rcl_interfaces/msg/detail/integer_range__struct.h deleted file mode 100755 index 8efecfde4..000000000 --- a/src/rcl_interfaces/msg/detail/integer_range__struct.h +++ /dev/null @@ -1,64 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:msg/IntegerRange.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/integer_range.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__INTEGER_RANGE__STRUCT_H_ -#define RCL_INTERFACES__MSG__DETAIL__INTEGER_RANGE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/IntegerRange in the package rcl_interfaces. -/** - * Represents bounds and a step value for an integer typed parameter. - */ -typedef struct rcl_interfaces__msg__IntegerRange -{ - /// Start value for valid values, inclusive. - int64_t from_value; - /// End value for valid values, inclusive. - int64_t to_value; - /// Size of valid steps between the from and to bound. - /// - /// A step value of zero implies a continuous range of values. Ideally, the step - /// would be less than or equal to the distance between the bounds, as well as an - /// even multiple of the distance between the bounds, but neither are required. - /// - /// If the absolute value of the step is larger than or equal to the distance - /// between the two bounds, then the bounds will be the only valid values. e.g. if - /// the range is defined as {from_value: 1, to_value: 2, step: 5} then the valid - /// values will be 1 and 2. - /// - /// If the step is less than the distance between the bounds, but the distance is - /// not a multiple of the step, then the "to" bound will always be a valid value, - /// e.g. if the range is defined as {from_value: 2, to_value: 5, step: 2} then - /// the valid values will be 2, 4, and 5. - uint64_t step; -} rcl_interfaces__msg__IntegerRange; - -// Struct for a sequence of rcl_interfaces__msg__IntegerRange. -typedef struct rcl_interfaces__msg__IntegerRange__Sequence -{ - rcl_interfaces__msg__IntegerRange * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__msg__IntegerRange__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__INTEGER_RANGE__STRUCT_H_ diff --git a/src/rcl_interfaces/msg/detail/integer_range__type_support.h b/src/rcl_interfaces/msg/detail/integer_range__type_support.h deleted file mode 100755 index f342b6cd6..000000000 --- a/src/rcl_interfaces/msg/detail/integer_range__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:msg/IntegerRange.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/integer_range.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__INTEGER_RANGE__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__MSG__DETAIL__INTEGER_RANGE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - msg, - IntegerRange -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__INTEGER_RANGE__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/msg/detail/list_parameters_result__functions.h b/src/rcl_interfaces/msg/detail/list_parameters_result__functions.h deleted file mode 100755 index 5ef623a23..000000000 --- a/src/rcl_interfaces/msg/detail/list_parameters_result__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:msg/ListParametersResult.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/list_parameters_result.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__LIST_PARAMETERS_RESULT__FUNCTIONS_H_ -#define RCL_INTERFACES__MSG__DETAIL__LIST_PARAMETERS_RESULT__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/msg/detail/list_parameters_result__struct.h" - -/// Initialize msg/ListParametersResult message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__msg__ListParametersResult - * )) before or use - * rcl_interfaces__msg__ListParametersResult__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ListParametersResult__init(rcl_interfaces__msg__ListParametersResult * msg); - -/// Finalize msg/ListParametersResult message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ListParametersResult__fini(rcl_interfaces__msg__ListParametersResult * msg); - -/// Create msg/ListParametersResult message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__msg__ListParametersResult__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__ListParametersResult * -rcl_interfaces__msg__ListParametersResult__create(void); - -/// Destroy msg/ListParametersResult message. -/** - * It calls - * rcl_interfaces__msg__ListParametersResult__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ListParametersResult__destroy(rcl_interfaces__msg__ListParametersResult * msg); - -/// Check for msg/ListParametersResult message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ListParametersResult__are_equal(const rcl_interfaces__msg__ListParametersResult * lhs, const rcl_interfaces__msg__ListParametersResult * rhs); - -/// Copy a msg/ListParametersResult message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ListParametersResult__copy( - const rcl_interfaces__msg__ListParametersResult * input, - rcl_interfaces__msg__ListParametersResult * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__msg__ListParametersResult__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__msg__ListParametersResult__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__msg__ListParametersResult__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__msg__ListParametersResult__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/ListParametersResult messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__msg__ListParametersResult__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ListParametersResult__Sequence__init(rcl_interfaces__msg__ListParametersResult__Sequence * array, size_t size); - -/// Finalize array of msg/ListParametersResult messages. -/** - * It calls - * rcl_interfaces__msg__ListParametersResult__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ListParametersResult__Sequence__fini(rcl_interfaces__msg__ListParametersResult__Sequence * array); - -/// Create array of msg/ListParametersResult messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__msg__ListParametersResult__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__ListParametersResult__Sequence * -rcl_interfaces__msg__ListParametersResult__Sequence__create(size_t size); - -/// Destroy array of msg/ListParametersResult messages. -/** - * It calls - * rcl_interfaces__msg__ListParametersResult__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ListParametersResult__Sequence__destroy(rcl_interfaces__msg__ListParametersResult__Sequence * array); - -/// Check for msg/ListParametersResult message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ListParametersResult__Sequence__are_equal(const rcl_interfaces__msg__ListParametersResult__Sequence * lhs, const rcl_interfaces__msg__ListParametersResult__Sequence * rhs); - -/// Copy an array of msg/ListParametersResult messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ListParametersResult__Sequence__copy( - const rcl_interfaces__msg__ListParametersResult__Sequence * input, - rcl_interfaces__msg__ListParametersResult__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__LIST_PARAMETERS_RESULT__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/msg/detail/list_parameters_result__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/msg/detail/list_parameters_result__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 2190c0a87..000000000 --- a/src/rcl_interfaces/msg/detail/list_parameters_result__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:msg/ListParametersResult.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__DETAIL__LIST_PARAMETERS_RESULT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__MSG__DETAIL__LIST_PARAMETERS_RESULT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, msg, ListParametersResult)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__LIST_PARAMETERS_RESULT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/msg/detail/list_parameters_result__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/msg/detail/list_parameters_result__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ce2a36198..000000000 --- a/src/rcl_interfaces/msg/detail/list_parameters_result__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:msg/ListParametersResult.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__MSG__LIST_PARAMETERS_RESULT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__MSG__LIST_PARAMETERS_RESULT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__msg__ListParametersResult( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__msg__ListParametersResult( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, msg, ListParametersResult)(); - -#ifdef __cplusplus -} -#endif - - -#endif // RCL_INTERFACES__MSG__LIST_PARAMETERS_RESULT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/msg/detail/list_parameters_result__struct.h b/src/rcl_interfaces/msg/detail/list_parameters_result__struct.h deleted file mode 100755 index 1eb8d5a41..000000000 --- a/src/rcl_interfaces/msg/detail/list_parameters_result__struct.h +++ /dev/null @@ -1,53 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:msg/ListParametersResult.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/list_parameters_result.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__LIST_PARAMETERS_RESULT__STRUCT_H_ -#define RCL_INTERFACES__MSG__DETAIL__LIST_PARAMETERS_RESULT__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'names' -// Member 'prefixes' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/ListParametersResult in the package rcl_interfaces. -/** - * The resulting parameters under the given prefixes. - */ -typedef struct rcl_interfaces__msg__ListParametersResult -{ - rosidl_runtime_c__String__Sequence names; - /// The resulting prefixes under the given prefixes. - /// TODO(wjwwood): link to prefix definition and rules. - rosidl_runtime_c__String__Sequence prefixes; -} rcl_interfaces__msg__ListParametersResult; - -// Struct for a sequence of rcl_interfaces__msg__ListParametersResult. -typedef struct rcl_interfaces__msg__ListParametersResult__Sequence -{ - rcl_interfaces__msg__ListParametersResult * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__msg__ListParametersResult__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__LIST_PARAMETERS_RESULT__STRUCT_H_ diff --git a/src/rcl_interfaces/msg/detail/list_parameters_result__type_support.h b/src/rcl_interfaces/msg/detail/list_parameters_result__type_support.h deleted file mode 100755 index a2b5285d7..000000000 --- a/src/rcl_interfaces/msg/detail/list_parameters_result__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:msg/ListParametersResult.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/list_parameters_result.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__LIST_PARAMETERS_RESULT__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__MSG__DETAIL__LIST_PARAMETERS_RESULT__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - msg, - ListParametersResult -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__LIST_PARAMETERS_RESULT__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/msg/detail/log__functions.h b/src/rcl_interfaces/msg/detail/log__functions.h deleted file mode 100755 index 8370dcd79..000000000 --- a/src/rcl_interfaces/msg/detail/log__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:msg/Log.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/log.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__LOG__FUNCTIONS_H_ -#define RCL_INTERFACES__MSG__DETAIL__LOG__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/msg/detail/log__struct.h" - -/// Initialize msg/Log message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__msg__Log - * )) before or use - * rcl_interfaces__msg__Log__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__Log__init(rcl_interfaces__msg__Log * msg); - -/// Finalize msg/Log message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__Log__fini(rcl_interfaces__msg__Log * msg); - -/// Create msg/Log message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__msg__Log__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__Log * -rcl_interfaces__msg__Log__create(void); - -/// Destroy msg/Log message. -/** - * It calls - * rcl_interfaces__msg__Log__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__Log__destroy(rcl_interfaces__msg__Log * msg); - -/// Check for msg/Log message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__Log__are_equal(const rcl_interfaces__msg__Log * lhs, const rcl_interfaces__msg__Log * rhs); - -/// Copy a msg/Log message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__Log__copy( - const rcl_interfaces__msg__Log * input, - rcl_interfaces__msg__Log * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__msg__Log__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__msg__Log__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__msg__Log__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__msg__Log__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Log messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__msg__Log__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__Log__Sequence__init(rcl_interfaces__msg__Log__Sequence * array, size_t size); - -/// Finalize array of msg/Log messages. -/** - * It calls - * rcl_interfaces__msg__Log__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__Log__Sequence__fini(rcl_interfaces__msg__Log__Sequence * array); - -/// Create array of msg/Log messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__msg__Log__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__Log__Sequence * -rcl_interfaces__msg__Log__Sequence__create(size_t size); - -/// Destroy array of msg/Log messages. -/** - * It calls - * rcl_interfaces__msg__Log__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__Log__Sequence__destroy(rcl_interfaces__msg__Log__Sequence * array); - -/// Check for msg/Log message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__Log__Sequence__are_equal(const rcl_interfaces__msg__Log__Sequence * lhs, const rcl_interfaces__msg__Log__Sequence * rhs); - -/// Copy an array of msg/Log messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__Log__Sequence__copy( - const rcl_interfaces__msg__Log__Sequence * input, - rcl_interfaces__msg__Log__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__LOG__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/msg/detail/log__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/msg/detail/log__rosidl_typesupport_introspection_c.h deleted file mode 100755 index e0471f877..000000000 --- a/src/rcl_interfaces/msg/detail/log__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:msg/Log.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__DETAIL__LOG__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__MSG__DETAIL__LOG__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, msg, Log)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__LOG__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/msg/detail/log__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/msg/detail/log__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 1bdbf0c68..000000000 --- a/src/rcl_interfaces/msg/detail/log__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:msg/Log.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__MSG__LOG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__MSG__LOG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__msg__Log( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__msg__Log( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, msg, Log)(); - -#ifdef __cplusplus -} -#endif - - -#endif // RCL_INTERFACES__MSG__LOG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/msg/detail/log__struct.h b/src/rcl_interfaces/msg/detail/log__struct.h deleted file mode 100755 index 1e22e32a0..000000000 --- a/src/rcl_interfaces/msg/detail/log__struct.h +++ /dev/null @@ -1,125 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:msg/Log.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/log.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__LOG__STRUCT_H_ -#define RCL_INTERFACES__MSG__DETAIL__LOG__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'DEBUG'. -/** - * Debug is for pedantic information, which is useful when debugging issues. - */ -enum -{ - rcl_interfaces__msg__Log__DEBUG = 10 -}; - -/// Constant 'INFO'. -/** - * Info is the standard informational level and is used to report expected - * information. - */ -enum -{ - rcl_interfaces__msg__Log__INFO = 20 -}; - -/// Constant 'WARN'. -/** - * Warning is for information that may potentially cause issues or possibly unexpected - * behavior. - */ -enum -{ - rcl_interfaces__msg__Log__WARN = 30 -}; - -/// Constant 'ERROR'. -/** - * Error is for information that this node cannot resolve. - */ -enum -{ - rcl_interfaces__msg__Log__ERROR = 40 -}; - -/// Constant 'FATAL'. -/** - * Information about a impending node shutdown. - */ -enum -{ - rcl_interfaces__msg__Log__FATAL = 50 -}; - -// Include directives for member types -// Member 'stamp' -#include "builtin_interfaces/msg/detail/time__struct.h" -// Member 'name' -// Member 'msg' -// Member 'file' -// Member 'function' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/Log in the package rcl_interfaces. -/** - * Severity level constants - * - * These logging levels follow the Python Standard - * https://docs.python.org/3/library/logging.html#logging-levels - * And are implemented in rcutils as well - * https://github.com/ros2/rcutils/blob/35f29850064e0c33a4063cbc947ebbfeada11dba/include/rcutils/logging.h#L164-L172 - * This leaves space for other standard logging levels to be inserted in the middle in the future, - * as well as custom user defined levels. - * Since there are several other logging enumeration standard for different implementations, - * other logging implementations may need to provide level mappings to match their internal implementations. - */ -typedef struct rcl_interfaces__msg__Log -{ - /// Fields - /// - /// Timestamp when this message was generated by the node. - builtin_interfaces__msg__Time stamp; - /// Corresponding log level, see above definitions. - uint8_t level; - /// The name representing the logger this message came from. - rosidl_runtime_c__String name; - /// The full log message. - rosidl_runtime_c__String msg; - /// The file the message came from. - rosidl_runtime_c__String file; - /// The function the message came from. - rosidl_runtime_c__String function; - /// The line in the file the message came from. - uint32_t line; -} rcl_interfaces__msg__Log; - -// Struct for a sequence of rcl_interfaces__msg__Log. -typedef struct rcl_interfaces__msg__Log__Sequence -{ - rcl_interfaces__msg__Log * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__msg__Log__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__LOG__STRUCT_H_ diff --git a/src/rcl_interfaces/msg/detail/log__type_support.h b/src/rcl_interfaces/msg/detail/log__type_support.h deleted file mode 100755 index ee2d85928..000000000 --- a/src/rcl_interfaces/msg/detail/log__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:msg/Log.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/log.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__LOG__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__MSG__DETAIL__LOG__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - msg, - Log -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__LOG__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/msg/detail/logger_level__functions.h b/src/rcl_interfaces/msg/detail/logger_level__functions.h deleted file mode 100755 index 9323b7051..000000000 --- a/src/rcl_interfaces/msg/detail/logger_level__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:msg/LoggerLevel.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/logger_level.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__LOGGER_LEVEL__FUNCTIONS_H_ -#define RCL_INTERFACES__MSG__DETAIL__LOGGER_LEVEL__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/msg/detail/logger_level__struct.h" - -/// Initialize msg/LoggerLevel message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__msg__LoggerLevel - * )) before or use - * rcl_interfaces__msg__LoggerLevel__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__LoggerLevel__init(rcl_interfaces__msg__LoggerLevel * msg); - -/// Finalize msg/LoggerLevel message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__LoggerLevel__fini(rcl_interfaces__msg__LoggerLevel * msg); - -/// Create msg/LoggerLevel message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__msg__LoggerLevel__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__LoggerLevel * -rcl_interfaces__msg__LoggerLevel__create(void); - -/// Destroy msg/LoggerLevel message. -/** - * It calls - * rcl_interfaces__msg__LoggerLevel__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__LoggerLevel__destroy(rcl_interfaces__msg__LoggerLevel * msg); - -/// Check for msg/LoggerLevel message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__LoggerLevel__are_equal(const rcl_interfaces__msg__LoggerLevel * lhs, const rcl_interfaces__msg__LoggerLevel * rhs); - -/// Copy a msg/LoggerLevel message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__LoggerLevel__copy( - const rcl_interfaces__msg__LoggerLevel * input, - rcl_interfaces__msg__LoggerLevel * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__msg__LoggerLevel__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__msg__LoggerLevel__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__msg__LoggerLevel__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__msg__LoggerLevel__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/LoggerLevel messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__msg__LoggerLevel__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__LoggerLevel__Sequence__init(rcl_interfaces__msg__LoggerLevel__Sequence * array, size_t size); - -/// Finalize array of msg/LoggerLevel messages. -/** - * It calls - * rcl_interfaces__msg__LoggerLevel__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__LoggerLevel__Sequence__fini(rcl_interfaces__msg__LoggerLevel__Sequence * array); - -/// Create array of msg/LoggerLevel messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__msg__LoggerLevel__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__LoggerLevel__Sequence * -rcl_interfaces__msg__LoggerLevel__Sequence__create(size_t size); - -/// Destroy array of msg/LoggerLevel messages. -/** - * It calls - * rcl_interfaces__msg__LoggerLevel__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__LoggerLevel__Sequence__destroy(rcl_interfaces__msg__LoggerLevel__Sequence * array); - -/// Check for msg/LoggerLevel message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__LoggerLevel__Sequence__are_equal(const rcl_interfaces__msg__LoggerLevel__Sequence * lhs, const rcl_interfaces__msg__LoggerLevel__Sequence * rhs); - -/// Copy an array of msg/LoggerLevel messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__LoggerLevel__Sequence__copy( - const rcl_interfaces__msg__LoggerLevel__Sequence * input, - rcl_interfaces__msg__LoggerLevel__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__LOGGER_LEVEL__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/msg/detail/logger_level__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/msg/detail/logger_level__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 818579d31..000000000 --- a/src/rcl_interfaces/msg/detail/logger_level__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:msg/LoggerLevel.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__DETAIL__LOGGER_LEVEL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__MSG__DETAIL__LOGGER_LEVEL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, msg, LoggerLevel)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__LOGGER_LEVEL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/msg/detail/logger_level__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/msg/detail/logger_level__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 4922af891..000000000 --- a/src/rcl_interfaces/msg/detail/logger_level__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:msg/LoggerLevel.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__MSG__LOGGER_LEVEL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__MSG__LOGGER_LEVEL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__msg__LoggerLevel( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__msg__LoggerLevel( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, msg, LoggerLevel)(); - -#ifdef __cplusplus -} -#endif - - -#endif // RCL_INTERFACES__MSG__LOGGER_LEVEL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/msg/detail/logger_level__struct.h b/src/rcl_interfaces/msg/detail/logger_level__struct.h deleted file mode 100755 index f8b92c3bc..000000000 --- a/src/rcl_interfaces/msg/detail/logger_level__struct.h +++ /dev/null @@ -1,88 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:msg/LoggerLevel.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/logger_level.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__LOGGER_LEVEL__STRUCT_H_ -#define RCL_INTERFACES__MSG__DETAIL__LOGGER_LEVEL__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'LOG_LEVEL_UNKNOWN'. -enum -{ - rcl_interfaces__msg__LoggerLevel__LOG_LEVEL_UNKNOWN = 0 -}; - -/// Constant 'LOG_LEVEL_DEBUG'. -enum -{ - rcl_interfaces__msg__LoggerLevel__LOG_LEVEL_DEBUG = 10 -}; - -/// Constant 'LOG_LEVEL_INFO'. -enum -{ - rcl_interfaces__msg__LoggerLevel__LOG_LEVEL_INFO = 20 -}; - -/// Constant 'LOG_LEVEL_WARN'. -enum -{ - rcl_interfaces__msg__LoggerLevel__LOG_LEVEL_WARN = 30 -}; - -/// Constant 'LOG_LEVEL_ERROR'. -enum -{ - rcl_interfaces__msg__LoggerLevel__LOG_LEVEL_ERROR = 40 -}; - -/// Constant 'LOG_LEVEL_FATAL'. -enum -{ - rcl_interfaces__msg__LoggerLevel__LOG_LEVEL_FATAL = 50 -}; - -// Include directives for member types -// Member 'name' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/LoggerLevel in the package rcl_interfaces. -/** - * All available logger levels; these correspond to the enum in rcutils/logger.h - */ -typedef struct rcl_interfaces__msg__LoggerLevel -{ - /// The logger name. - rosidl_runtime_c__String name; - /// The logger level - uint32_t level; -} rcl_interfaces__msg__LoggerLevel; - -// Struct for a sequence of rcl_interfaces__msg__LoggerLevel. -typedef struct rcl_interfaces__msg__LoggerLevel__Sequence -{ - rcl_interfaces__msg__LoggerLevel * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__msg__LoggerLevel__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__LOGGER_LEVEL__STRUCT_H_ diff --git a/src/rcl_interfaces/msg/detail/logger_level__type_support.h b/src/rcl_interfaces/msg/detail/logger_level__type_support.h deleted file mode 100755 index 7af754a22..000000000 --- a/src/rcl_interfaces/msg/detail/logger_level__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:msg/LoggerLevel.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/logger_level.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__LOGGER_LEVEL__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__MSG__DETAIL__LOGGER_LEVEL__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - msg, - LoggerLevel -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__LOGGER_LEVEL__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter__functions.h b/src/rcl_interfaces/msg/detail/parameter__functions.h deleted file mode 100755 index 84f19a7ae..000000000 --- a/src/rcl_interfaces/msg/detail/parameter__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:msg/Parameter.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER__FUNCTIONS_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/msg/detail/parameter__struct.h" - -/// Initialize msg/Parameter message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__msg__Parameter - * )) before or use - * rcl_interfaces__msg__Parameter__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__Parameter__init(rcl_interfaces__msg__Parameter * msg); - -/// Finalize msg/Parameter message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__Parameter__fini(rcl_interfaces__msg__Parameter * msg); - -/// Create msg/Parameter message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__msg__Parameter__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__Parameter * -rcl_interfaces__msg__Parameter__create(void); - -/// Destroy msg/Parameter message. -/** - * It calls - * rcl_interfaces__msg__Parameter__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__Parameter__destroy(rcl_interfaces__msg__Parameter * msg); - -/// Check for msg/Parameter message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__Parameter__are_equal(const rcl_interfaces__msg__Parameter * lhs, const rcl_interfaces__msg__Parameter * rhs); - -/// Copy a msg/Parameter message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__Parameter__copy( - const rcl_interfaces__msg__Parameter * input, - rcl_interfaces__msg__Parameter * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__msg__Parameter__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__msg__Parameter__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__msg__Parameter__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__msg__Parameter__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Parameter messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__msg__Parameter__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__Parameter__Sequence__init(rcl_interfaces__msg__Parameter__Sequence * array, size_t size); - -/// Finalize array of msg/Parameter messages. -/** - * It calls - * rcl_interfaces__msg__Parameter__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__Parameter__Sequence__fini(rcl_interfaces__msg__Parameter__Sequence * array); - -/// Create array of msg/Parameter messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__msg__Parameter__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__Parameter__Sequence * -rcl_interfaces__msg__Parameter__Sequence__create(size_t size); - -/// Destroy array of msg/Parameter messages. -/** - * It calls - * rcl_interfaces__msg__Parameter__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__Parameter__Sequence__destroy(rcl_interfaces__msg__Parameter__Sequence * array); - -/// Check for msg/Parameter message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__Parameter__Sequence__are_equal(const rcl_interfaces__msg__Parameter__Sequence * lhs, const rcl_interfaces__msg__Parameter__Sequence * rhs); - -/// Copy an array of msg/Parameter messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__Parameter__Sequence__copy( - const rcl_interfaces__msg__Parameter__Sequence * input, - rcl_interfaces__msg__Parameter__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/msg/detail/parameter__rosidl_typesupport_introspection_c.h deleted file mode 100755 index f4cb25138..000000000 --- a/src/rcl_interfaces/msg/detail/parameter__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:msg/Parameter.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, msg, Parameter)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/msg/detail/parameter__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 6b63116bc..000000000 --- a/src/rcl_interfaces/msg/detail/parameter__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:msg/Parameter.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__MSG__PARAMETER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__MSG__PARAMETER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__msg__Parameter( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__msg__Parameter( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, msg, Parameter)(); - -#ifdef __cplusplus -} -#endif - - -#endif // RCL_INTERFACES__MSG__PARAMETER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter__struct.h b/src/rcl_interfaces/msg/detail/parameter__struct.h deleted file mode 100755 index 5def72106..000000000 --- a/src/rcl_interfaces/msg/detail/parameter__struct.h +++ /dev/null @@ -1,56 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:msg/Parameter.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER__STRUCT_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'name' -#include "rosidl_runtime_c/string.h" -// Member 'value' -#include "rcl_interfaces/msg/detail/parameter_value__struct.h" - -/// Struct defined in msg/Parameter in the package rcl_interfaces. -/** - * This is the message to communicate a parameter. It is an open struct with an enum in - * the descriptor to select which value is active. - */ -typedef struct rcl_interfaces__msg__Parameter -{ - /// The full name of the parameter. - rosidl_runtime_c__String name; - /// The parameter's value which can be one of several types, see - /// `ParameterValue.msg` and `ParameterType.msg`. - rcl_interfaces__msg__ParameterValue value; -} rcl_interfaces__msg__Parameter; - -// Struct for a sequence of rcl_interfaces__msg__Parameter. -typedef struct rcl_interfaces__msg__Parameter__Sequence -{ - rcl_interfaces__msg__Parameter * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__msg__Parameter__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER__STRUCT_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter__type_support.h b/src/rcl_interfaces/msg/detail/parameter__type_support.h deleted file mode 100755 index 33623a75b..000000000 --- a/src/rcl_interfaces/msg/detail/parameter__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:msg/Parameter.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - msg, - Parameter -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_descriptor__functions.h b/src/rcl_interfaces/msg/detail/parameter_descriptor__functions.h deleted file mode 100755 index 8bda52f27..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_descriptor__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:msg/ParameterDescriptor.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_descriptor.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_DESCRIPTOR__FUNCTIONS_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_DESCRIPTOR__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/msg/detail/parameter_descriptor__struct.h" - -/// Initialize msg/ParameterDescriptor message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__msg__ParameterDescriptor - * )) before or use - * rcl_interfaces__msg__ParameterDescriptor__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterDescriptor__init(rcl_interfaces__msg__ParameterDescriptor * msg); - -/// Finalize msg/ParameterDescriptor message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterDescriptor__fini(rcl_interfaces__msg__ParameterDescriptor * msg); - -/// Create msg/ParameterDescriptor message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__msg__ParameterDescriptor__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__ParameterDescriptor * -rcl_interfaces__msg__ParameterDescriptor__create(void); - -/// Destroy msg/ParameterDescriptor message. -/** - * It calls - * rcl_interfaces__msg__ParameterDescriptor__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterDescriptor__destroy(rcl_interfaces__msg__ParameterDescriptor * msg); - -/// Check for msg/ParameterDescriptor message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterDescriptor__are_equal(const rcl_interfaces__msg__ParameterDescriptor * lhs, const rcl_interfaces__msg__ParameterDescriptor * rhs); - -/// Copy a msg/ParameterDescriptor message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterDescriptor__copy( - const rcl_interfaces__msg__ParameterDescriptor * input, - rcl_interfaces__msg__ParameterDescriptor * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__msg__ParameterDescriptor__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__msg__ParameterDescriptor__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__msg__ParameterDescriptor__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__msg__ParameterDescriptor__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/ParameterDescriptor messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__msg__ParameterDescriptor__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterDescriptor__Sequence__init(rcl_interfaces__msg__ParameterDescriptor__Sequence * array, size_t size); - -/// Finalize array of msg/ParameterDescriptor messages. -/** - * It calls - * rcl_interfaces__msg__ParameterDescriptor__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterDescriptor__Sequence__fini(rcl_interfaces__msg__ParameterDescriptor__Sequence * array); - -/// Create array of msg/ParameterDescriptor messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__msg__ParameterDescriptor__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__ParameterDescriptor__Sequence * -rcl_interfaces__msg__ParameterDescriptor__Sequence__create(size_t size); - -/// Destroy array of msg/ParameterDescriptor messages. -/** - * It calls - * rcl_interfaces__msg__ParameterDescriptor__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterDescriptor__Sequence__destroy(rcl_interfaces__msg__ParameterDescriptor__Sequence * array); - -/// Check for msg/ParameterDescriptor message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterDescriptor__Sequence__are_equal(const rcl_interfaces__msg__ParameterDescriptor__Sequence * lhs, const rcl_interfaces__msg__ParameterDescriptor__Sequence * rhs); - -/// Copy an array of msg/ParameterDescriptor messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterDescriptor__Sequence__copy( - const rcl_interfaces__msg__ParameterDescriptor__Sequence * input, - rcl_interfaces__msg__ParameterDescriptor__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_DESCRIPTOR__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_descriptor__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/msg/detail/parameter_descriptor__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 806e802b8..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_descriptor__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:msg/ParameterDescriptor.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_DESCRIPTOR__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_DESCRIPTOR__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, msg, ParameterDescriptor)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_DESCRIPTOR__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_descriptor__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/msg/detail/parameter_descriptor__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 7959bcce1..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_descriptor__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:msg/ParameterDescriptor.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__MSG__PARAMETER_DESCRIPTOR__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__MSG__PARAMETER_DESCRIPTOR__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__msg__ParameterDescriptor( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__msg__ParameterDescriptor( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, msg, ParameterDescriptor)(); - -#ifdef __cplusplus -} -#endif - - -#endif // RCL_INTERFACES__MSG__PARAMETER_DESCRIPTOR__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_descriptor__struct.h b/src/rcl_interfaces/msg/detail/parameter_descriptor__struct.h deleted file mode 100755 index e98fad79d..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_descriptor__struct.h +++ /dev/null @@ -1,91 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:msg/ParameterDescriptor.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_descriptor.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_DESCRIPTOR__STRUCT_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_DESCRIPTOR__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'name' -// Member 'description' -// Member 'additional_constraints' -#include "rosidl_runtime_c/string.h" -// Member 'floating_point_range' -#include "rcl_interfaces/msg/detail/floating_point_range__struct.h" -// Member 'integer_range' -#include "rcl_interfaces/msg/detail/integer_range__struct.h" - -// constants for array fields with an upper bound -// floating_point_range -enum -{ - rcl_interfaces__msg__ParameterDescriptor__floating_point_range__MAX_SIZE = 1 -}; -// integer_range -enum -{ - rcl_interfaces__msg__ParameterDescriptor__integer_range__MAX_SIZE = 1 -}; - -/// Struct defined in msg/ParameterDescriptor in the package rcl_interfaces. -/** - * This is the message to communicate a parameter's descriptor. - */ -typedef struct rcl_interfaces__msg__ParameterDescriptor -{ - /// The name of the parameter. - rosidl_runtime_c__String name; - /// Enum values are defined in the `ParameterType.msg` message. - uint8_t type; - /// Description of the parameter, visible from introspection tools. - rosidl_runtime_c__String description; - /// Parameter constraints - /// Plain English description of additional constraints which cannot be expressed - /// with the available constraints, e.g. "only prime numbers". - /// - /// By convention, this should only be used to clarify constraints which cannot - /// be completely expressed with the parameter constraints below. - rosidl_runtime_c__String additional_constraints; - /// If 'true' then the value cannot change after it has been initialized. - bool read_only; - /// If true, the parameter is allowed to change type. - bool dynamic_typing; - /// If any of the following sequences are not empty, then the constraint inside of - /// them apply to this parameter. - /// - /// FloatingPointRange and IntegerRange are mutually exclusive. - /// FloatingPointRange consists of a from_value, a to_value, and a step. - rcl_interfaces__msg__FloatingPointRange__Sequence floating_point_range; - /// IntegerRange consists of a from_value, a to_value, and a step. - rcl_interfaces__msg__IntegerRange__Sequence integer_range; -} rcl_interfaces__msg__ParameterDescriptor; - -// Struct for a sequence of rcl_interfaces__msg__ParameterDescriptor. -typedef struct rcl_interfaces__msg__ParameterDescriptor__Sequence -{ - rcl_interfaces__msg__ParameterDescriptor * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__msg__ParameterDescriptor__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_DESCRIPTOR__STRUCT_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_descriptor__type_support.h b/src/rcl_interfaces/msg/detail/parameter_descriptor__type_support.h deleted file mode 100755 index 1cce89c7e..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_descriptor__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:msg/ParameterDescriptor.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_descriptor.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_DESCRIPTOR__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_DESCRIPTOR__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - msg, - ParameterDescriptor -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_DESCRIPTOR__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_event__functions.h b/src/rcl_interfaces/msg/detail/parameter_event__functions.h deleted file mode 100755 index 50bf26f41..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_event__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:msg/ParameterEvent.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_event.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT__FUNCTIONS_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/msg/detail/parameter_event__struct.h" - -/// Initialize msg/ParameterEvent message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__msg__ParameterEvent - * )) before or use - * rcl_interfaces__msg__ParameterEvent__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterEvent__init(rcl_interfaces__msg__ParameterEvent * msg); - -/// Finalize msg/ParameterEvent message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterEvent__fini(rcl_interfaces__msg__ParameterEvent * msg); - -/// Create msg/ParameterEvent message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__msg__ParameterEvent__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__ParameterEvent * -rcl_interfaces__msg__ParameterEvent__create(void); - -/// Destroy msg/ParameterEvent message. -/** - * It calls - * rcl_interfaces__msg__ParameterEvent__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterEvent__destroy(rcl_interfaces__msg__ParameterEvent * msg); - -/// Check for msg/ParameterEvent message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterEvent__are_equal(const rcl_interfaces__msg__ParameterEvent * lhs, const rcl_interfaces__msg__ParameterEvent * rhs); - -/// Copy a msg/ParameterEvent message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterEvent__copy( - const rcl_interfaces__msg__ParameterEvent * input, - rcl_interfaces__msg__ParameterEvent * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__msg__ParameterEvent__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__msg__ParameterEvent__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__msg__ParameterEvent__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__msg__ParameterEvent__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/ParameterEvent messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__msg__ParameterEvent__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterEvent__Sequence__init(rcl_interfaces__msg__ParameterEvent__Sequence * array, size_t size); - -/// Finalize array of msg/ParameterEvent messages. -/** - * It calls - * rcl_interfaces__msg__ParameterEvent__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterEvent__Sequence__fini(rcl_interfaces__msg__ParameterEvent__Sequence * array); - -/// Create array of msg/ParameterEvent messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__msg__ParameterEvent__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__ParameterEvent__Sequence * -rcl_interfaces__msg__ParameterEvent__Sequence__create(size_t size); - -/// Destroy array of msg/ParameterEvent messages. -/** - * It calls - * rcl_interfaces__msg__ParameterEvent__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterEvent__Sequence__destroy(rcl_interfaces__msg__ParameterEvent__Sequence * array); - -/// Check for msg/ParameterEvent message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterEvent__Sequence__are_equal(const rcl_interfaces__msg__ParameterEvent__Sequence * lhs, const rcl_interfaces__msg__ParameterEvent__Sequence * rhs); - -/// Copy an array of msg/ParameterEvent messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterEvent__Sequence__copy( - const rcl_interfaces__msg__ParameterEvent__Sequence * input, - rcl_interfaces__msg__ParameterEvent__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_event__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/msg/detail/parameter_event__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 3cb528856..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_event__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:msg/ParameterEvent.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, msg, ParameterEvent)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_event__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/msg/detail/parameter_event__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 3727ee8d7..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_event__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:msg/ParameterEvent.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__MSG__PARAMETER_EVENT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__MSG__PARAMETER_EVENT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__msg__ParameterEvent( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__msg__ParameterEvent( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, msg, ParameterEvent)(); - -#ifdef __cplusplus -} -#endif - - -#endif // RCL_INTERFACES__MSG__PARAMETER_EVENT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_event__struct.h b/src/rcl_interfaces/msg/detail/parameter_event__struct.h deleted file mode 100755 index faec2426a..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_event__struct.h +++ /dev/null @@ -1,66 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:msg/ParameterEvent.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_event.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT__STRUCT_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'stamp' -#include "builtin_interfaces/msg/detail/time__struct.h" -// Member 'node' -#include "rosidl_runtime_c/string.h" -// Member 'new_parameters' -// Member 'changed_parameters' -// Member 'deleted_parameters' -#include "rcl_interfaces/msg/detail/parameter__struct.h" - -/// Struct defined in msg/ParameterEvent in the package rcl_interfaces. -/** - * This message contains a parameter event. - * Because the parameter event was an atomic update, a specific parameter name - * can only be in one of the three sets. - */ -typedef struct rcl_interfaces__msg__ParameterEvent -{ - /// The time stamp when this parameter event occurred. - builtin_interfaces__msg__Time stamp; - /// Fully qualified ROS path to node. - rosidl_runtime_c__String node; - /// New parameters that have been set for this node. - rcl_interfaces__msg__Parameter__Sequence new_parameters; - /// Parameters that have been changed during this event. - rcl_interfaces__msg__Parameter__Sequence changed_parameters; - /// Parameters that have been deleted during this event. - rcl_interfaces__msg__Parameter__Sequence deleted_parameters; -} rcl_interfaces__msg__ParameterEvent; - -// Struct for a sequence of rcl_interfaces__msg__ParameterEvent. -typedef struct rcl_interfaces__msg__ParameterEvent__Sequence -{ - rcl_interfaces__msg__ParameterEvent * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__msg__ParameterEvent__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT__STRUCT_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_event__type_support.h b/src/rcl_interfaces/msg/detail/parameter_event__type_support.h deleted file mode 100755 index ec40f3c5f..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_event__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:msg/ParameterEvent.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_event.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - msg, - ParameterEvent -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_event_descriptors__functions.h b/src/rcl_interfaces/msg/detail/parameter_event_descriptors__functions.h deleted file mode 100755 index 056c7f58f..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_event_descriptors__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:msg/ParameterEventDescriptors.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_event_descriptors.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT_DESCRIPTORS__FUNCTIONS_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT_DESCRIPTORS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/msg/detail/parameter_event_descriptors__struct.h" - -/// Initialize msg/ParameterEventDescriptors message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__msg__ParameterEventDescriptors - * )) before or use - * rcl_interfaces__msg__ParameterEventDescriptors__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterEventDescriptors__init(rcl_interfaces__msg__ParameterEventDescriptors * msg); - -/// Finalize msg/ParameterEventDescriptors message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterEventDescriptors__fini(rcl_interfaces__msg__ParameterEventDescriptors * msg); - -/// Create msg/ParameterEventDescriptors message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__msg__ParameterEventDescriptors__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__ParameterEventDescriptors * -rcl_interfaces__msg__ParameterEventDescriptors__create(void); - -/// Destroy msg/ParameterEventDescriptors message. -/** - * It calls - * rcl_interfaces__msg__ParameterEventDescriptors__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterEventDescriptors__destroy(rcl_interfaces__msg__ParameterEventDescriptors * msg); - -/// Check for msg/ParameterEventDescriptors message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterEventDescriptors__are_equal(const rcl_interfaces__msg__ParameterEventDescriptors * lhs, const rcl_interfaces__msg__ParameterEventDescriptors * rhs); - -/// Copy a msg/ParameterEventDescriptors message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterEventDescriptors__copy( - const rcl_interfaces__msg__ParameterEventDescriptors * input, - rcl_interfaces__msg__ParameterEventDescriptors * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__msg__ParameterEventDescriptors__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__msg__ParameterEventDescriptors__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__msg__ParameterEventDescriptors__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__msg__ParameterEventDescriptors__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/ParameterEventDescriptors messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__msg__ParameterEventDescriptors__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterEventDescriptors__Sequence__init(rcl_interfaces__msg__ParameterEventDescriptors__Sequence * array, size_t size); - -/// Finalize array of msg/ParameterEventDescriptors messages. -/** - * It calls - * rcl_interfaces__msg__ParameterEventDescriptors__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterEventDescriptors__Sequence__fini(rcl_interfaces__msg__ParameterEventDescriptors__Sequence * array); - -/// Create array of msg/ParameterEventDescriptors messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__msg__ParameterEventDescriptors__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__ParameterEventDescriptors__Sequence * -rcl_interfaces__msg__ParameterEventDescriptors__Sequence__create(size_t size); - -/// Destroy array of msg/ParameterEventDescriptors messages. -/** - * It calls - * rcl_interfaces__msg__ParameterEventDescriptors__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterEventDescriptors__Sequence__destroy(rcl_interfaces__msg__ParameterEventDescriptors__Sequence * array); - -/// Check for msg/ParameterEventDescriptors message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterEventDescriptors__Sequence__are_equal(const rcl_interfaces__msg__ParameterEventDescriptors__Sequence * lhs, const rcl_interfaces__msg__ParameterEventDescriptors__Sequence * rhs); - -/// Copy an array of msg/ParameterEventDescriptors messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterEventDescriptors__Sequence__copy( - const rcl_interfaces__msg__ParameterEventDescriptors__Sequence * input, - rcl_interfaces__msg__ParameterEventDescriptors__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT_DESCRIPTORS__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_event_descriptors__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/msg/detail/parameter_event_descriptors__rosidl_typesupport_introspection_c.h deleted file mode 100755 index aa91eabff..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_event_descriptors__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:msg/ParameterEventDescriptors.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT_DESCRIPTORS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT_DESCRIPTORS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, msg, ParameterEventDescriptors)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT_DESCRIPTORS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_event_descriptors__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/msg/detail/parameter_event_descriptors__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 1a4371a7f..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_event_descriptors__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:msg/ParameterEventDescriptors.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__MSG__PARAMETER_EVENT_DESCRIPTORS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__MSG__PARAMETER_EVENT_DESCRIPTORS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__msg__ParameterEventDescriptors( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__msg__ParameterEventDescriptors( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, msg, ParameterEventDescriptors)(); - -#ifdef __cplusplus -} -#endif - - -#endif // RCL_INTERFACES__MSG__PARAMETER_EVENT_DESCRIPTORS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_event_descriptors__struct.h b/src/rcl_interfaces/msg/detail/parameter_event_descriptors__struct.h deleted file mode 100755 index 70cae3ba2..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_event_descriptors__struct.h +++ /dev/null @@ -1,55 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:msg/ParameterEventDescriptors.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_event_descriptors.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT_DESCRIPTORS__STRUCT_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT_DESCRIPTORS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'new_parameters' -// Member 'changed_parameters' -// Member 'deleted_parameters' -#include "rcl_interfaces/msg/detail/parameter_descriptor__struct.h" - -/// Struct defined in msg/ParameterEventDescriptors in the package rcl_interfaces. -/** - * This message contains descriptors of a parameter event. - * It was an atomic update. - * A specific parameter name can only be in one of the three sets. - */ -typedef struct rcl_interfaces__msg__ParameterEventDescriptors -{ - rcl_interfaces__msg__ParameterDescriptor__Sequence new_parameters; - rcl_interfaces__msg__ParameterDescriptor__Sequence changed_parameters; - rcl_interfaces__msg__ParameterDescriptor__Sequence deleted_parameters; -} rcl_interfaces__msg__ParameterEventDescriptors; - -// Struct for a sequence of rcl_interfaces__msg__ParameterEventDescriptors. -typedef struct rcl_interfaces__msg__ParameterEventDescriptors__Sequence -{ - rcl_interfaces__msg__ParameterEventDescriptors * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__msg__ParameterEventDescriptors__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT_DESCRIPTORS__STRUCT_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_event_descriptors__type_support.h b/src/rcl_interfaces/msg/detail/parameter_event_descriptors__type_support.h deleted file mode 100755 index e87bc633d..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_event_descriptors__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:msg/ParameterEventDescriptors.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_event_descriptors.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT_DESCRIPTORS__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT_DESCRIPTORS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - msg, - ParameterEventDescriptors -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_EVENT_DESCRIPTORS__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_type__functions.h b/src/rcl_interfaces/msg/detail/parameter_type__functions.h deleted file mode 100755 index a7199129e..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_type__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:msg/ParameterType.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_type.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_TYPE__FUNCTIONS_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_TYPE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/msg/detail/parameter_type__struct.h" - -/// Initialize msg/ParameterType message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__msg__ParameterType - * )) before or use - * rcl_interfaces__msg__ParameterType__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterType__init(rcl_interfaces__msg__ParameterType * msg); - -/// Finalize msg/ParameterType message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterType__fini(rcl_interfaces__msg__ParameterType * msg); - -/// Create msg/ParameterType message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__msg__ParameterType__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__ParameterType * -rcl_interfaces__msg__ParameterType__create(void); - -/// Destroy msg/ParameterType message. -/** - * It calls - * rcl_interfaces__msg__ParameterType__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterType__destroy(rcl_interfaces__msg__ParameterType * msg); - -/// Check for msg/ParameterType message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterType__are_equal(const rcl_interfaces__msg__ParameterType * lhs, const rcl_interfaces__msg__ParameterType * rhs); - -/// Copy a msg/ParameterType message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterType__copy( - const rcl_interfaces__msg__ParameterType * input, - rcl_interfaces__msg__ParameterType * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__msg__ParameterType__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__msg__ParameterType__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__msg__ParameterType__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__msg__ParameterType__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/ParameterType messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__msg__ParameterType__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterType__Sequence__init(rcl_interfaces__msg__ParameterType__Sequence * array, size_t size); - -/// Finalize array of msg/ParameterType messages. -/** - * It calls - * rcl_interfaces__msg__ParameterType__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterType__Sequence__fini(rcl_interfaces__msg__ParameterType__Sequence * array); - -/// Create array of msg/ParameterType messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__msg__ParameterType__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__ParameterType__Sequence * -rcl_interfaces__msg__ParameterType__Sequence__create(size_t size); - -/// Destroy array of msg/ParameterType messages. -/** - * It calls - * rcl_interfaces__msg__ParameterType__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterType__Sequence__destroy(rcl_interfaces__msg__ParameterType__Sequence * array); - -/// Check for msg/ParameterType message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterType__Sequence__are_equal(const rcl_interfaces__msg__ParameterType__Sequence * lhs, const rcl_interfaces__msg__ParameterType__Sequence * rhs); - -/// Copy an array of msg/ParameterType messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterType__Sequence__copy( - const rcl_interfaces__msg__ParameterType__Sequence * input, - rcl_interfaces__msg__ParameterType__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_TYPE__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_type__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/msg/detail/parameter_type__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 7445d1c39..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_type__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:msg/ParameterType.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_TYPE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_TYPE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, msg, ParameterType)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_TYPE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_type__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/msg/detail/parameter_type__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 0b1d15802..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_type__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:msg/ParameterType.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__MSG__PARAMETER_TYPE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__MSG__PARAMETER_TYPE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__msg__ParameterType( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__msg__ParameterType( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, msg, ParameterType)(); - -#ifdef __cplusplus -} -#endif - - -#endif // RCL_INTERFACES__MSG__PARAMETER_TYPE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_type__struct.h b/src/rcl_interfaces/msg/detail/parameter_type__struct.h deleted file mode 100755 index 87aabf287..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_type__struct.h +++ /dev/null @@ -1,108 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:msg/ParameterType.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_type.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_TYPE__STRUCT_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_TYPE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'PARAMETER_NOT_SET'. -/** - * Default value, which implies this is not a valid parameter. - */ -enum -{ - rcl_interfaces__msg__ParameterType__PARAMETER_NOT_SET = 0 -}; - -/// Constant 'PARAMETER_BOOL'. -enum -{ - rcl_interfaces__msg__ParameterType__PARAMETER_BOOL = 1 -}; - -/// Constant 'PARAMETER_INTEGER'. -enum -{ - rcl_interfaces__msg__ParameterType__PARAMETER_INTEGER = 2 -}; - -/// Constant 'PARAMETER_DOUBLE'. -enum -{ - rcl_interfaces__msg__ParameterType__PARAMETER_DOUBLE = 3 -}; - -/// Constant 'PARAMETER_STRING'. -enum -{ - rcl_interfaces__msg__ParameterType__PARAMETER_STRING = 4 -}; - -/// Constant 'PARAMETER_BYTE_ARRAY'. -enum -{ - rcl_interfaces__msg__ParameterType__PARAMETER_BYTE_ARRAY = 5 -}; - -/// Constant 'PARAMETER_BOOL_ARRAY'. -enum -{ - rcl_interfaces__msg__ParameterType__PARAMETER_BOOL_ARRAY = 6 -}; - -/// Constant 'PARAMETER_INTEGER_ARRAY'. -enum -{ - rcl_interfaces__msg__ParameterType__PARAMETER_INTEGER_ARRAY = 7 -}; - -/// Constant 'PARAMETER_DOUBLE_ARRAY'. -enum -{ - rcl_interfaces__msg__ParameterType__PARAMETER_DOUBLE_ARRAY = 8 -}; - -/// Constant 'PARAMETER_STRING_ARRAY'. -enum -{ - rcl_interfaces__msg__ParameterType__PARAMETER_STRING_ARRAY = 9 -}; - -/// Struct defined in msg/ParameterType in the package rcl_interfaces. -/** - * These types correspond to the value that is set in the ParameterValue message. - */ -typedef struct rcl_interfaces__msg__ParameterType -{ - uint8_t structure_needs_at_least_one_member; -} rcl_interfaces__msg__ParameterType; - -// Struct for a sequence of rcl_interfaces__msg__ParameterType. -typedef struct rcl_interfaces__msg__ParameterType__Sequence -{ - rcl_interfaces__msg__ParameterType * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__msg__ParameterType__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_TYPE__STRUCT_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_type__type_support.h b/src/rcl_interfaces/msg/detail/parameter_type__type_support.h deleted file mode 100755 index 50d6324e5..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_type__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:msg/ParameterType.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_type.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_TYPE__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_TYPE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - msg, - ParameterType -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_TYPE__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_value__functions.h b/src/rcl_interfaces/msg/detail/parameter_value__functions.h deleted file mode 100755 index c3a996bcf..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_value__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:msg/ParameterValue.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_value.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_VALUE__FUNCTIONS_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_VALUE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/msg/detail/parameter_value__struct.h" - -/// Initialize msg/ParameterValue message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__msg__ParameterValue - * )) before or use - * rcl_interfaces__msg__ParameterValue__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterValue__init(rcl_interfaces__msg__ParameterValue * msg); - -/// Finalize msg/ParameterValue message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterValue__fini(rcl_interfaces__msg__ParameterValue * msg); - -/// Create msg/ParameterValue message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__msg__ParameterValue__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__ParameterValue * -rcl_interfaces__msg__ParameterValue__create(void); - -/// Destroy msg/ParameterValue message. -/** - * It calls - * rcl_interfaces__msg__ParameterValue__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterValue__destroy(rcl_interfaces__msg__ParameterValue * msg); - -/// Check for msg/ParameterValue message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterValue__are_equal(const rcl_interfaces__msg__ParameterValue * lhs, const rcl_interfaces__msg__ParameterValue * rhs); - -/// Copy a msg/ParameterValue message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterValue__copy( - const rcl_interfaces__msg__ParameterValue * input, - rcl_interfaces__msg__ParameterValue * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__msg__ParameterValue__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__msg__ParameterValue__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__msg__ParameterValue__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__msg__ParameterValue__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/ParameterValue messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__msg__ParameterValue__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterValue__Sequence__init(rcl_interfaces__msg__ParameterValue__Sequence * array, size_t size); - -/// Finalize array of msg/ParameterValue messages. -/** - * It calls - * rcl_interfaces__msg__ParameterValue__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterValue__Sequence__fini(rcl_interfaces__msg__ParameterValue__Sequence * array); - -/// Create array of msg/ParameterValue messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__msg__ParameterValue__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__ParameterValue__Sequence * -rcl_interfaces__msg__ParameterValue__Sequence__create(size_t size); - -/// Destroy array of msg/ParameterValue messages. -/** - * It calls - * rcl_interfaces__msg__ParameterValue__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__ParameterValue__Sequence__destroy(rcl_interfaces__msg__ParameterValue__Sequence * array); - -/// Check for msg/ParameterValue message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterValue__Sequence__are_equal(const rcl_interfaces__msg__ParameterValue__Sequence * lhs, const rcl_interfaces__msg__ParameterValue__Sequence * rhs); - -/// Copy an array of msg/ParameterValue messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__ParameterValue__Sequence__copy( - const rcl_interfaces__msg__ParameterValue__Sequence * input, - rcl_interfaces__msg__ParameterValue__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_VALUE__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_value__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/msg/detail/parameter_value__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 510e41a96..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_value__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:msg/ParameterValue.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_VALUE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_VALUE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, msg, ParameterValue)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_VALUE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_value__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/msg/detail/parameter_value__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 62e94b6b9..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_value__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:msg/ParameterValue.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__MSG__PARAMETER_VALUE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__MSG__PARAMETER_VALUE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__msg__ParameterValue( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__msg__ParameterValue( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, msg, ParameterValue)(); - -#ifdef __cplusplus -} -#endif - - -#endif // RCL_INTERFACES__MSG__PARAMETER_VALUE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_value__struct.h b/src/rcl_interfaces/msg/detail/parameter_value__struct.h deleted file mode 100755 index f3774b7a7..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_value__struct.h +++ /dev/null @@ -1,80 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:msg/ParameterValue.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_value.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_VALUE__STRUCT_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_VALUE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'string_value' -// Member 'string_array_value' -#include "rosidl_runtime_c/string.h" -// Member 'byte_array_value' -// Member 'bool_array_value' -// Member 'integer_array_value' -// Member 'double_array_value' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/ParameterValue in the package rcl_interfaces. -/** - * Used to determine which of the next *_value fields are set. - * ParameterType.PARAMETER_NOT_SET indicates that the parameter was not set - * (if gotten) or is uninitialized. - * Values are enumerated in `ParameterType.msg`. - */ -typedef struct rcl_interfaces__msg__ParameterValue -{ - /// The type of this parameter, which corresponds to the appropriate field below. - uint8_t type; - /// "Variant" style storage of the parameter value. Only the value corresponding - /// the type field will have valid information. - /// Boolean value, can be either true or false. - bool bool_value; - /// Integer value ranging from -9,223,372,036,854,775,808 to - /// 9,223,372,036,854,775,807. - int64_t integer_value; - /// A double precision floating point value following IEEE 754. - double double_value; - /// A textual value with no practical length limit. - rosidl_runtime_c__String string_value; - /// An array of bytes, used for non-textual information. - rosidl_runtime_c__octet__Sequence byte_array_value; - /// An array of boolean values. - rosidl_runtime_c__boolean__Sequence bool_array_value; - /// An array of 64-bit integer values. - rosidl_runtime_c__int64__Sequence integer_array_value; - /// An array of 64-bit floating point values. - rosidl_runtime_c__double__Sequence double_array_value; - /// An array of string values. - rosidl_runtime_c__String__Sequence string_array_value; -} rcl_interfaces__msg__ParameterValue; - -// Struct for a sequence of rcl_interfaces__msg__ParameterValue. -typedef struct rcl_interfaces__msg__ParameterValue__Sequence -{ - rcl_interfaces__msg__ParameterValue * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__msg__ParameterValue__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_VALUE__STRUCT_H_ diff --git a/src/rcl_interfaces/msg/detail/parameter_value__type_support.h b/src/rcl_interfaces/msg/detail/parameter_value__type_support.h deleted file mode 100755 index 255a7d40a..000000000 --- a/src/rcl_interfaces/msg/detail/parameter_value__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:msg/ParameterValue.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/parameter_value.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__PARAMETER_VALUE__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__MSG__DETAIL__PARAMETER_VALUE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - msg, - ParameterValue -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__PARAMETER_VALUE__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/msg/detail/set_logger_levels_result__functions.h b/src/rcl_interfaces/msg/detail/set_logger_levels_result__functions.h deleted file mode 100755 index 991dfea43..000000000 --- a/src/rcl_interfaces/msg/detail/set_logger_levels_result__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:msg/SetLoggerLevelsResult.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/set_logger_levels_result.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__SET_LOGGER_LEVELS_RESULT__FUNCTIONS_H_ -#define RCL_INTERFACES__MSG__DETAIL__SET_LOGGER_LEVELS_RESULT__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/msg/detail/set_logger_levels_result__struct.h" - -/// Initialize msg/SetLoggerLevelsResult message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__msg__SetLoggerLevelsResult - * )) before or use - * rcl_interfaces__msg__SetLoggerLevelsResult__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__SetLoggerLevelsResult__init(rcl_interfaces__msg__SetLoggerLevelsResult * msg); - -/// Finalize msg/SetLoggerLevelsResult message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__SetLoggerLevelsResult__fini(rcl_interfaces__msg__SetLoggerLevelsResult * msg); - -/// Create msg/SetLoggerLevelsResult message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__msg__SetLoggerLevelsResult__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__SetLoggerLevelsResult * -rcl_interfaces__msg__SetLoggerLevelsResult__create(void); - -/// Destroy msg/SetLoggerLevelsResult message. -/** - * It calls - * rcl_interfaces__msg__SetLoggerLevelsResult__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__SetLoggerLevelsResult__destroy(rcl_interfaces__msg__SetLoggerLevelsResult * msg); - -/// Check for msg/SetLoggerLevelsResult message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__SetLoggerLevelsResult__are_equal(const rcl_interfaces__msg__SetLoggerLevelsResult * lhs, const rcl_interfaces__msg__SetLoggerLevelsResult * rhs); - -/// Copy a msg/SetLoggerLevelsResult message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__SetLoggerLevelsResult__copy( - const rcl_interfaces__msg__SetLoggerLevelsResult * input, - rcl_interfaces__msg__SetLoggerLevelsResult * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__msg__SetLoggerLevelsResult__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__msg__SetLoggerLevelsResult__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__msg__SetLoggerLevelsResult__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__msg__SetLoggerLevelsResult__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/SetLoggerLevelsResult messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__msg__SetLoggerLevelsResult__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__SetLoggerLevelsResult__Sequence__init(rcl_interfaces__msg__SetLoggerLevelsResult__Sequence * array, size_t size); - -/// Finalize array of msg/SetLoggerLevelsResult messages. -/** - * It calls - * rcl_interfaces__msg__SetLoggerLevelsResult__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__SetLoggerLevelsResult__Sequence__fini(rcl_interfaces__msg__SetLoggerLevelsResult__Sequence * array); - -/// Create array of msg/SetLoggerLevelsResult messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__msg__SetLoggerLevelsResult__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__SetLoggerLevelsResult__Sequence * -rcl_interfaces__msg__SetLoggerLevelsResult__Sequence__create(size_t size); - -/// Destroy array of msg/SetLoggerLevelsResult messages. -/** - * It calls - * rcl_interfaces__msg__SetLoggerLevelsResult__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__SetLoggerLevelsResult__Sequence__destroy(rcl_interfaces__msg__SetLoggerLevelsResult__Sequence * array); - -/// Check for msg/SetLoggerLevelsResult message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__SetLoggerLevelsResult__Sequence__are_equal(const rcl_interfaces__msg__SetLoggerLevelsResult__Sequence * lhs, const rcl_interfaces__msg__SetLoggerLevelsResult__Sequence * rhs); - -/// Copy an array of msg/SetLoggerLevelsResult messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__SetLoggerLevelsResult__Sequence__copy( - const rcl_interfaces__msg__SetLoggerLevelsResult__Sequence * input, - rcl_interfaces__msg__SetLoggerLevelsResult__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__SET_LOGGER_LEVELS_RESULT__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/msg/detail/set_logger_levels_result__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/msg/detail/set_logger_levels_result__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 39eecd0b7..000000000 --- a/src/rcl_interfaces/msg/detail/set_logger_levels_result__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:msg/SetLoggerLevelsResult.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__DETAIL__SET_LOGGER_LEVELS_RESULT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__MSG__DETAIL__SET_LOGGER_LEVELS_RESULT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, msg, SetLoggerLevelsResult)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__SET_LOGGER_LEVELS_RESULT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/msg/detail/set_logger_levels_result__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/msg/detail/set_logger_levels_result__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index cdee04cbc..000000000 --- a/src/rcl_interfaces/msg/detail/set_logger_levels_result__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:msg/SetLoggerLevelsResult.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__MSG__SET_LOGGER_LEVELS_RESULT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__MSG__SET_LOGGER_LEVELS_RESULT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__msg__SetLoggerLevelsResult( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__msg__SetLoggerLevelsResult( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, msg, SetLoggerLevelsResult)(); - -#ifdef __cplusplus -} -#endif - - -#endif // RCL_INTERFACES__MSG__SET_LOGGER_LEVELS_RESULT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/msg/detail/set_logger_levels_result__struct.h b/src/rcl_interfaces/msg/detail/set_logger_levels_result__struct.h deleted file mode 100755 index a3e1e566d..000000000 --- a/src/rcl_interfaces/msg/detail/set_logger_levels_result__struct.h +++ /dev/null @@ -1,51 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:msg/SetLoggerLevelsResult.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/set_logger_levels_result.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__SET_LOGGER_LEVELS_RESULT__STRUCT_H_ -#define RCL_INTERFACES__MSG__DETAIL__SET_LOGGER_LEVELS_RESULT__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'reason' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/SetLoggerLevelsResult in the package rcl_interfaces. -/** - * True when succeed, false when failed. - */ -typedef struct rcl_interfaces__msg__SetLoggerLevelsResult -{ - bool successful; - /// Reason why the setting was either successful or a failure. - rosidl_runtime_c__String reason; -} rcl_interfaces__msg__SetLoggerLevelsResult; - -// Struct for a sequence of rcl_interfaces__msg__SetLoggerLevelsResult. -typedef struct rcl_interfaces__msg__SetLoggerLevelsResult__Sequence -{ - rcl_interfaces__msg__SetLoggerLevelsResult * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__msg__SetLoggerLevelsResult__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__SET_LOGGER_LEVELS_RESULT__STRUCT_H_ diff --git a/src/rcl_interfaces/msg/detail/set_logger_levels_result__type_support.h b/src/rcl_interfaces/msg/detail/set_logger_levels_result__type_support.h deleted file mode 100755 index d31577688..000000000 --- a/src/rcl_interfaces/msg/detail/set_logger_levels_result__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:msg/SetLoggerLevelsResult.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/set_logger_levels_result.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__SET_LOGGER_LEVELS_RESULT__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__MSG__DETAIL__SET_LOGGER_LEVELS_RESULT__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - msg, - SetLoggerLevelsResult -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__SET_LOGGER_LEVELS_RESULT__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/msg/detail/set_parameters_result__functions.h b/src/rcl_interfaces/msg/detail/set_parameters_result__functions.h deleted file mode 100755 index 1708d285e..000000000 --- a/src/rcl_interfaces/msg/detail/set_parameters_result__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:msg/SetParametersResult.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/set_parameters_result.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__SET_PARAMETERS_RESULT__FUNCTIONS_H_ -#define RCL_INTERFACES__MSG__DETAIL__SET_PARAMETERS_RESULT__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/msg/detail/set_parameters_result__struct.h" - -/// Initialize msg/SetParametersResult message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__msg__SetParametersResult - * )) before or use - * rcl_interfaces__msg__SetParametersResult__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__SetParametersResult__init(rcl_interfaces__msg__SetParametersResult * msg); - -/// Finalize msg/SetParametersResult message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__SetParametersResult__fini(rcl_interfaces__msg__SetParametersResult * msg); - -/// Create msg/SetParametersResult message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__msg__SetParametersResult__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__SetParametersResult * -rcl_interfaces__msg__SetParametersResult__create(void); - -/// Destroy msg/SetParametersResult message. -/** - * It calls - * rcl_interfaces__msg__SetParametersResult__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__SetParametersResult__destroy(rcl_interfaces__msg__SetParametersResult * msg); - -/// Check for msg/SetParametersResult message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__SetParametersResult__are_equal(const rcl_interfaces__msg__SetParametersResult * lhs, const rcl_interfaces__msg__SetParametersResult * rhs); - -/// Copy a msg/SetParametersResult message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__SetParametersResult__copy( - const rcl_interfaces__msg__SetParametersResult * input, - rcl_interfaces__msg__SetParametersResult * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__msg__SetParametersResult__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__msg__SetParametersResult__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__msg__SetParametersResult__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__msg__SetParametersResult__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/SetParametersResult messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__msg__SetParametersResult__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__SetParametersResult__Sequence__init(rcl_interfaces__msg__SetParametersResult__Sequence * array, size_t size); - -/// Finalize array of msg/SetParametersResult messages. -/** - * It calls - * rcl_interfaces__msg__SetParametersResult__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__SetParametersResult__Sequence__fini(rcl_interfaces__msg__SetParametersResult__Sequence * array); - -/// Create array of msg/SetParametersResult messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__msg__SetParametersResult__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__msg__SetParametersResult__Sequence * -rcl_interfaces__msg__SetParametersResult__Sequence__create(size_t size); - -/// Destroy array of msg/SetParametersResult messages. -/** - * It calls - * rcl_interfaces__msg__SetParametersResult__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__msg__SetParametersResult__Sequence__destroy(rcl_interfaces__msg__SetParametersResult__Sequence * array); - -/// Check for msg/SetParametersResult message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__SetParametersResult__Sequence__are_equal(const rcl_interfaces__msg__SetParametersResult__Sequence * lhs, const rcl_interfaces__msg__SetParametersResult__Sequence * rhs); - -/// Copy an array of msg/SetParametersResult messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__msg__SetParametersResult__Sequence__copy( - const rcl_interfaces__msg__SetParametersResult__Sequence * input, - rcl_interfaces__msg__SetParametersResult__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__SET_PARAMETERS_RESULT__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/msg/detail/set_parameters_result__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/msg/detail/set_parameters_result__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 46679aafc..000000000 --- a/src/rcl_interfaces/msg/detail/set_parameters_result__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:msg/SetParametersResult.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__DETAIL__SET_PARAMETERS_RESULT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__MSG__DETAIL__SET_PARAMETERS_RESULT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, msg, SetParametersResult)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__SET_PARAMETERS_RESULT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/msg/detail/set_parameters_result__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/msg/detail/set_parameters_result__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index c914d202c..000000000 --- a/src/rcl_interfaces/msg/detail/set_parameters_result__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:msg/SetParametersResult.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__MSG__SET_PARAMETERS_RESULT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__MSG__SET_PARAMETERS_RESULT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__msg__SetParametersResult( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__msg__SetParametersResult( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, msg, SetParametersResult)(); - -#ifdef __cplusplus -} -#endif - - -#endif // RCL_INTERFACES__MSG__SET_PARAMETERS_RESULT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/msg/detail/set_parameters_result__struct.h b/src/rcl_interfaces/msg/detail/set_parameters_result__struct.h deleted file mode 100755 index d573e5701..000000000 --- a/src/rcl_interfaces/msg/detail/set_parameters_result__struct.h +++ /dev/null @@ -1,53 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:msg/SetParametersResult.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/set_parameters_result.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__SET_PARAMETERS_RESULT__STRUCT_H_ -#define RCL_INTERFACES__MSG__DETAIL__SET_PARAMETERS_RESULT__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'reason' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/SetParametersResult in the package rcl_interfaces. -/** - * A true value of the same index indicates that the parameter was set - * successfully. A false value indicates the change was rejected. - */ -typedef struct rcl_interfaces__msg__SetParametersResult -{ - bool successful; - /// Reason why the setting was a failure. On success, the contents of this field - /// are undefined. This should only be used for logging and user interfaces. - rosidl_runtime_c__String reason; -} rcl_interfaces__msg__SetParametersResult; - -// Struct for a sequence of rcl_interfaces__msg__SetParametersResult. -typedef struct rcl_interfaces__msg__SetParametersResult__Sequence -{ - rcl_interfaces__msg__SetParametersResult * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__msg__SetParametersResult__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__SET_PARAMETERS_RESULT__STRUCT_H_ diff --git a/src/rcl_interfaces/msg/detail/set_parameters_result__type_support.h b/src/rcl_interfaces/msg/detail/set_parameters_result__type_support.h deleted file mode 100755 index f4fbbf575..000000000 --- a/src/rcl_interfaces/msg/detail/set_parameters_result__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:msg/SetParametersResult.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/msg/set_parameters_result.h" - - -#ifndef RCL_INTERFACES__MSG__DETAIL__SET_PARAMETERS_RESULT__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__MSG__DETAIL__SET_PARAMETERS_RESULT__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - msg, - SetParametersResult -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__DETAIL__SET_PARAMETERS_RESULT__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/msg/floating_point_range.h b/src/rcl_interfaces/msg/floating_point_range.h deleted file mode 100755 index 31027a5ad..000000000 --- a/src/rcl_interfaces/msg/floating_point_range.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:msg/FloatingPointRange.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__FLOATING_POINT_RANGE_H_ -#define RCL_INTERFACES__MSG__FLOATING_POINT_RANGE_H_ - -#include "rcl_interfaces/msg/detail/floating_point_range__struct.h" -#include "rcl_interfaces/msg/detail/floating_point_range__functions.h" -#include "rcl_interfaces/msg/detail/floating_point_range__type_support.h" - -#endif // RCL_INTERFACES__MSG__FLOATING_POINT_RANGE_H_ diff --git a/src/rcl_interfaces/msg/integer_range.h b/src/rcl_interfaces/msg/integer_range.h deleted file mode 100755 index 9a15ebecb..000000000 --- a/src/rcl_interfaces/msg/integer_range.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:msg/IntegerRange.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__INTEGER_RANGE_H_ -#define RCL_INTERFACES__MSG__INTEGER_RANGE_H_ - -#include "rcl_interfaces/msg/detail/integer_range__struct.h" -#include "rcl_interfaces/msg/detail/integer_range__functions.h" -#include "rcl_interfaces/msg/detail/integer_range__type_support.h" - -#endif // RCL_INTERFACES__MSG__INTEGER_RANGE_H_ diff --git a/src/rcl_interfaces/msg/list_parameters_result.h b/src/rcl_interfaces/msg/list_parameters_result.h deleted file mode 100755 index d7d659c4e..000000000 --- a/src/rcl_interfaces/msg/list_parameters_result.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:msg/ListParametersResult.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__LIST_PARAMETERS_RESULT_H_ -#define RCL_INTERFACES__MSG__LIST_PARAMETERS_RESULT_H_ - -#include "rcl_interfaces/msg/detail/list_parameters_result__struct.h" -#include "rcl_interfaces/msg/detail/list_parameters_result__functions.h" -#include "rcl_interfaces/msg/detail/list_parameters_result__type_support.h" - -#endif // RCL_INTERFACES__MSG__LIST_PARAMETERS_RESULT_H_ diff --git a/src/rcl_interfaces/msg/log.h b/src/rcl_interfaces/msg/log.h deleted file mode 100755 index 8277ad1e4..000000000 --- a/src/rcl_interfaces/msg/log.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:msg/Log.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__LOG_H_ -#define RCL_INTERFACES__MSG__LOG_H_ - -#include "rcl_interfaces/msg/detail/log__struct.h" -#include "rcl_interfaces/msg/detail/log__functions.h" -#include "rcl_interfaces/msg/detail/log__type_support.h" - -#endif // RCL_INTERFACES__MSG__LOG_H_ diff --git a/src/rcl_interfaces/msg/logger_level.h b/src/rcl_interfaces/msg/logger_level.h deleted file mode 100755 index 778975789..000000000 --- a/src/rcl_interfaces/msg/logger_level.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:msg/LoggerLevel.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__LOGGER_LEVEL_H_ -#define RCL_INTERFACES__MSG__LOGGER_LEVEL_H_ - -#include "rcl_interfaces/msg/detail/logger_level__struct.h" -#include "rcl_interfaces/msg/detail/logger_level__functions.h" -#include "rcl_interfaces/msg/detail/logger_level__type_support.h" - -#endif // RCL_INTERFACES__MSG__LOGGER_LEVEL_H_ diff --git a/src/rcl_interfaces/msg/parameter.h b/src/rcl_interfaces/msg/parameter.h deleted file mode 100755 index 09c1c57a7..000000000 --- a/src/rcl_interfaces/msg/parameter.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:msg/Parameter.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__PARAMETER_H_ -#define RCL_INTERFACES__MSG__PARAMETER_H_ - -#include "rcl_interfaces/msg/detail/parameter__struct.h" -#include "rcl_interfaces/msg/detail/parameter__functions.h" -#include "rcl_interfaces/msg/detail/parameter__type_support.h" - -#endif // RCL_INTERFACES__MSG__PARAMETER_H_ diff --git a/src/rcl_interfaces/msg/parameter_descriptor.h b/src/rcl_interfaces/msg/parameter_descriptor.h deleted file mode 100755 index 9b15bade2..000000000 --- a/src/rcl_interfaces/msg/parameter_descriptor.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:msg/ParameterDescriptor.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__PARAMETER_DESCRIPTOR_H_ -#define RCL_INTERFACES__MSG__PARAMETER_DESCRIPTOR_H_ - -#include "rcl_interfaces/msg/detail/parameter_descriptor__struct.h" -#include "rcl_interfaces/msg/detail/parameter_descriptor__functions.h" -#include "rcl_interfaces/msg/detail/parameter_descriptor__type_support.h" - -#endif // RCL_INTERFACES__MSG__PARAMETER_DESCRIPTOR_H_ diff --git a/src/rcl_interfaces/msg/parameter_event.h b/src/rcl_interfaces/msg/parameter_event.h deleted file mode 100755 index 65dbd9bf6..000000000 --- a/src/rcl_interfaces/msg/parameter_event.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:msg/ParameterEvent.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__PARAMETER_EVENT_H_ -#define RCL_INTERFACES__MSG__PARAMETER_EVENT_H_ - -#include "rcl_interfaces/msg/detail/parameter_event__struct.h" -#include "rcl_interfaces/msg/detail/parameter_event__functions.h" -#include "rcl_interfaces/msg/detail/parameter_event__type_support.h" - -#endif // RCL_INTERFACES__MSG__PARAMETER_EVENT_H_ diff --git a/src/rcl_interfaces/msg/parameter_event_descriptors.h b/src/rcl_interfaces/msg/parameter_event_descriptors.h deleted file mode 100755 index 597da6430..000000000 --- a/src/rcl_interfaces/msg/parameter_event_descriptors.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:msg/ParameterEventDescriptors.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__PARAMETER_EVENT_DESCRIPTORS_H_ -#define RCL_INTERFACES__MSG__PARAMETER_EVENT_DESCRIPTORS_H_ - -#include "rcl_interfaces/msg/detail/parameter_event_descriptors__struct.h" -#include "rcl_interfaces/msg/detail/parameter_event_descriptors__functions.h" -#include "rcl_interfaces/msg/detail/parameter_event_descriptors__type_support.h" - -#endif // RCL_INTERFACES__MSG__PARAMETER_EVENT_DESCRIPTORS_H_ diff --git a/src/rcl_interfaces/msg/parameter_type.h b/src/rcl_interfaces/msg/parameter_type.h deleted file mode 100755 index 405ac5ce9..000000000 --- a/src/rcl_interfaces/msg/parameter_type.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:msg/ParameterType.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__PARAMETER_TYPE_H_ -#define RCL_INTERFACES__MSG__PARAMETER_TYPE_H_ - -#include "rcl_interfaces/msg/detail/parameter_type__struct.h" -#include "rcl_interfaces/msg/detail/parameter_type__functions.h" -#include "rcl_interfaces/msg/detail/parameter_type__type_support.h" - -#endif // RCL_INTERFACES__MSG__PARAMETER_TYPE_H_ diff --git a/src/rcl_interfaces/msg/parameter_value.h b/src/rcl_interfaces/msg/parameter_value.h deleted file mode 100755 index f17c25334..000000000 --- a/src/rcl_interfaces/msg/parameter_value.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:msg/ParameterValue.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__PARAMETER_VALUE_H_ -#define RCL_INTERFACES__MSG__PARAMETER_VALUE_H_ - -#include "rcl_interfaces/msg/detail/parameter_value__struct.h" -#include "rcl_interfaces/msg/detail/parameter_value__functions.h" -#include "rcl_interfaces/msg/detail/parameter_value__type_support.h" - -#endif // RCL_INTERFACES__MSG__PARAMETER_VALUE_H_ diff --git a/src/rcl_interfaces/msg/rosidl_generator_c__visibility_control.h b/src/rcl_interfaces/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 582189a55..000000000 --- a/src/rcl_interfaces/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define RCL_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_rcl_interfaces __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_rcl_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_rcl_interfaces __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_rcl_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_rcl_interfaces - #define ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces ROSIDL_GENERATOR_C_EXPORT_rcl_interfaces - #else - #define ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces ROSIDL_GENERATOR_C_IMPORT_rcl_interfaces - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_rcl_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_rcl_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index e20b8521e..000000000 --- a/src/rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define RCL_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_rcl_interfaces __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_rcl_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_rcl_interfaces __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_rcl_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_rcl_interfaces - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_rcl_interfaces - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_rcl_interfaces - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_rcl_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_rcl_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 90f561ba4..000000000 --- a/src/rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define RCL_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_rcl_interfaces __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_rcl_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_rcl_interfaces __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_rcl_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_rcl_interfaces - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_rcl_interfaces - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_rcl_interfaces - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_rcl_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_rcl_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/rcl_interfaces/msg/set_logger_levels_result.h b/src/rcl_interfaces/msg/set_logger_levels_result.h deleted file mode 100755 index add0c27b5..000000000 --- a/src/rcl_interfaces/msg/set_logger_levels_result.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:msg/SetLoggerLevelsResult.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__SET_LOGGER_LEVELS_RESULT_H_ -#define RCL_INTERFACES__MSG__SET_LOGGER_LEVELS_RESULT_H_ - -#include "rcl_interfaces/msg/detail/set_logger_levels_result__struct.h" -#include "rcl_interfaces/msg/detail/set_logger_levels_result__functions.h" -#include "rcl_interfaces/msg/detail/set_logger_levels_result__type_support.h" - -#endif // RCL_INTERFACES__MSG__SET_LOGGER_LEVELS_RESULT_H_ diff --git a/src/rcl_interfaces/msg/set_parameters_result.h b/src/rcl_interfaces/msg/set_parameters_result.h deleted file mode 100755 index 4e0b5f466..000000000 --- a/src/rcl_interfaces/msg/set_parameters_result.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:msg/SetParametersResult.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__MSG__SET_PARAMETERS_RESULT_H_ -#define RCL_INTERFACES__MSG__SET_PARAMETERS_RESULT_H_ - -#include "rcl_interfaces/msg/detail/set_parameters_result__struct.h" -#include "rcl_interfaces/msg/detail/set_parameters_result__functions.h" -#include "rcl_interfaces/msg/detail/set_parameters_result__type_support.h" - -#endif // RCL_INTERFACES__MSG__SET_PARAMETERS_RESULT_H_ diff --git a/src/rcl_interfaces/srv/describe_parameters.h b/src/rcl_interfaces/srv/describe_parameters.h deleted file mode 100755 index 27723bc69..000000000 --- a/src/rcl_interfaces/srv/describe_parameters.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:srv/DescribeParameters.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__DESCRIBE_PARAMETERS_H_ -#define RCL_INTERFACES__SRV__DESCRIBE_PARAMETERS_H_ - -#include "rcl_interfaces/srv/detail/describe_parameters__struct.h" -#include "rcl_interfaces/srv/detail/describe_parameters__functions.h" -#include "rcl_interfaces/srv/detail/describe_parameters__type_support.h" - -#endif // RCL_INTERFACES__SRV__DESCRIBE_PARAMETERS_H_ diff --git a/src/rcl_interfaces/srv/detail/describe_parameters__functions.h b/src/rcl_interfaces/srv/detail/describe_parameters__functions.h deleted file mode 100755 index afae180f0..000000000 --- a/src/rcl_interfaces/srv/detail/describe_parameters__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:srv/DescribeParameters.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/describe_parameters.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__DESCRIBE_PARAMETERS__FUNCTIONS_H_ -#define RCL_INTERFACES__SRV__DETAIL__DESCRIBE_PARAMETERS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/srv/detail/describe_parameters__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__DescribeParameters__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__DescribeParameters__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__DescribeParameters__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__DescribeParameters__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/DescribeParameters message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__DescribeParameters_Request - * )) before or use - * rcl_interfaces__srv__DescribeParameters_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Request__init(rcl_interfaces__srv__DescribeParameters_Request * msg); - -/// Finalize srv/DescribeParameters message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__DescribeParameters_Request__fini(rcl_interfaces__srv__DescribeParameters_Request * msg); - -/// Create srv/DescribeParameters message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__DescribeParameters_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__DescribeParameters_Request * -rcl_interfaces__srv__DescribeParameters_Request__create(void); - -/// Destroy srv/DescribeParameters message. -/** - * It calls - * rcl_interfaces__srv__DescribeParameters_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__DescribeParameters_Request__destroy(rcl_interfaces__srv__DescribeParameters_Request * msg); - -/// Check for srv/DescribeParameters message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Request__are_equal(const rcl_interfaces__srv__DescribeParameters_Request * lhs, const rcl_interfaces__srv__DescribeParameters_Request * rhs); - -/// Copy a srv/DescribeParameters message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Request__copy( - const rcl_interfaces__srv__DescribeParameters_Request * input, - rcl_interfaces__srv__DescribeParameters_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__DescribeParameters_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__DescribeParameters_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__DescribeParameters_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__DescribeParameters_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/DescribeParameters messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__DescribeParameters_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Request__Sequence__init(rcl_interfaces__srv__DescribeParameters_Request__Sequence * array, size_t size); - -/// Finalize array of srv/DescribeParameters messages. -/** - * It calls - * rcl_interfaces__srv__DescribeParameters_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__DescribeParameters_Request__Sequence__fini(rcl_interfaces__srv__DescribeParameters_Request__Sequence * array); - -/// Create array of srv/DescribeParameters messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__DescribeParameters_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__DescribeParameters_Request__Sequence * -rcl_interfaces__srv__DescribeParameters_Request__Sequence__create(size_t size); - -/// Destroy array of srv/DescribeParameters messages. -/** - * It calls - * rcl_interfaces__srv__DescribeParameters_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__DescribeParameters_Request__Sequence__destroy(rcl_interfaces__srv__DescribeParameters_Request__Sequence * array); - -/// Check for srv/DescribeParameters message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Request__Sequence__are_equal(const rcl_interfaces__srv__DescribeParameters_Request__Sequence * lhs, const rcl_interfaces__srv__DescribeParameters_Request__Sequence * rhs); - -/// Copy an array of srv/DescribeParameters messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Request__Sequence__copy( - const rcl_interfaces__srv__DescribeParameters_Request__Sequence * input, - rcl_interfaces__srv__DescribeParameters_Request__Sequence * output); - -/// Initialize srv/DescribeParameters message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__DescribeParameters_Response - * )) before or use - * rcl_interfaces__srv__DescribeParameters_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Response__init(rcl_interfaces__srv__DescribeParameters_Response * msg); - -/// Finalize srv/DescribeParameters message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__DescribeParameters_Response__fini(rcl_interfaces__srv__DescribeParameters_Response * msg); - -/// Create srv/DescribeParameters message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__DescribeParameters_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__DescribeParameters_Response * -rcl_interfaces__srv__DescribeParameters_Response__create(void); - -/// Destroy srv/DescribeParameters message. -/** - * It calls - * rcl_interfaces__srv__DescribeParameters_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__DescribeParameters_Response__destroy(rcl_interfaces__srv__DescribeParameters_Response * msg); - -/// Check for srv/DescribeParameters message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Response__are_equal(const rcl_interfaces__srv__DescribeParameters_Response * lhs, const rcl_interfaces__srv__DescribeParameters_Response * rhs); - -/// Copy a srv/DescribeParameters message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Response__copy( - const rcl_interfaces__srv__DescribeParameters_Response * input, - rcl_interfaces__srv__DescribeParameters_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__DescribeParameters_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__DescribeParameters_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__DescribeParameters_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__DescribeParameters_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/DescribeParameters messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__DescribeParameters_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Response__Sequence__init(rcl_interfaces__srv__DescribeParameters_Response__Sequence * array, size_t size); - -/// Finalize array of srv/DescribeParameters messages. -/** - * It calls - * rcl_interfaces__srv__DescribeParameters_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__DescribeParameters_Response__Sequence__fini(rcl_interfaces__srv__DescribeParameters_Response__Sequence * array); - -/// Create array of srv/DescribeParameters messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__DescribeParameters_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__DescribeParameters_Response__Sequence * -rcl_interfaces__srv__DescribeParameters_Response__Sequence__create(size_t size); - -/// Destroy array of srv/DescribeParameters messages. -/** - * It calls - * rcl_interfaces__srv__DescribeParameters_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__DescribeParameters_Response__Sequence__destroy(rcl_interfaces__srv__DescribeParameters_Response__Sequence * array); - -/// Check for srv/DescribeParameters message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Response__Sequence__are_equal(const rcl_interfaces__srv__DescribeParameters_Response__Sequence * lhs, const rcl_interfaces__srv__DescribeParameters_Response__Sequence * rhs); - -/// Copy an array of srv/DescribeParameters messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Response__Sequence__copy( - const rcl_interfaces__srv__DescribeParameters_Response__Sequence * input, - rcl_interfaces__srv__DescribeParameters_Response__Sequence * output); - -/// Initialize srv/DescribeParameters message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__DescribeParameters_Event - * )) before or use - * rcl_interfaces__srv__DescribeParameters_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Event__init(rcl_interfaces__srv__DescribeParameters_Event * msg); - -/// Finalize srv/DescribeParameters message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__DescribeParameters_Event__fini(rcl_interfaces__srv__DescribeParameters_Event * msg); - -/// Create srv/DescribeParameters message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__DescribeParameters_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__DescribeParameters_Event * -rcl_interfaces__srv__DescribeParameters_Event__create(void); - -/// Destroy srv/DescribeParameters message. -/** - * It calls - * rcl_interfaces__srv__DescribeParameters_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__DescribeParameters_Event__destroy(rcl_interfaces__srv__DescribeParameters_Event * msg); - -/// Check for srv/DescribeParameters message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Event__are_equal(const rcl_interfaces__srv__DescribeParameters_Event * lhs, const rcl_interfaces__srv__DescribeParameters_Event * rhs); - -/// Copy a srv/DescribeParameters message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Event__copy( - const rcl_interfaces__srv__DescribeParameters_Event * input, - rcl_interfaces__srv__DescribeParameters_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__DescribeParameters_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__DescribeParameters_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__DescribeParameters_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__DescribeParameters_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/DescribeParameters messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__DescribeParameters_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Event__Sequence__init(rcl_interfaces__srv__DescribeParameters_Event__Sequence * array, size_t size); - -/// Finalize array of srv/DescribeParameters messages. -/** - * It calls - * rcl_interfaces__srv__DescribeParameters_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__DescribeParameters_Event__Sequence__fini(rcl_interfaces__srv__DescribeParameters_Event__Sequence * array); - -/// Create array of srv/DescribeParameters messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__DescribeParameters_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__DescribeParameters_Event__Sequence * -rcl_interfaces__srv__DescribeParameters_Event__Sequence__create(size_t size); - -/// Destroy array of srv/DescribeParameters messages. -/** - * It calls - * rcl_interfaces__srv__DescribeParameters_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__DescribeParameters_Event__Sequence__destroy(rcl_interfaces__srv__DescribeParameters_Event__Sequence * array); - -/// Check for srv/DescribeParameters message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Event__Sequence__are_equal(const rcl_interfaces__srv__DescribeParameters_Event__Sequence * lhs, const rcl_interfaces__srv__DescribeParameters_Event__Sequence * rhs); - -/// Copy an array of srv/DescribeParameters messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__DescribeParameters_Event__Sequence__copy( - const rcl_interfaces__srv__DescribeParameters_Event__Sequence * input, - rcl_interfaces__srv__DescribeParameters_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__DESCRIBE_PARAMETERS__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/srv/detail/describe_parameters__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/srv/detail/describe_parameters__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 044fdb859..000000000 --- a/src/rcl_interfaces/srv/detail/describe_parameters__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:srv/DescribeParameters.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__DETAIL__DESCRIBE_PARAMETERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__SRV__DETAIL__DESCRIBE_PARAMETERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, DescribeParameters_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, DescribeParameters_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, DescribeParameters_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, DescribeParameters)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__DESCRIBE_PARAMETERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/srv/detail/describe_parameters__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/srv/detail/describe_parameters__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index caf18dfa0..000000000 --- a/src/rcl_interfaces/srv/detail/describe_parameters__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:srv/DescribeParameters.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__SRV__DESCRIBE_PARAMETERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__SRV__DESCRIBE_PARAMETERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__DescribeParameters_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__DescribeParameters_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, DescribeParameters_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__DescribeParameters_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__DescribeParameters_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, DescribeParameters_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__DescribeParameters_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__DescribeParameters_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, DescribeParameters_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, DescribeParameters)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DESCRIBE_PARAMETERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/srv/detail/describe_parameters__struct.h b/src/rcl_interfaces/srv/detail/describe_parameters__struct.h deleted file mode 100755 index eecc3f3c2..000000000 --- a/src/rcl_interfaces/srv/detail/describe_parameters__struct.h +++ /dev/null @@ -1,105 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:srv/DescribeParameters.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/describe_parameters.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__DESCRIBE_PARAMETERS__STRUCT_H_ -#define RCL_INTERFACES__SRV__DETAIL__DESCRIBE_PARAMETERS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'names' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/DescribeParameters in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__DescribeParameters_Request -{ - rosidl_runtime_c__String__Sequence names; -} rcl_interfaces__srv__DescribeParameters_Request; - -// Struct for a sequence of rcl_interfaces__srv__DescribeParameters_Request. -typedef struct rcl_interfaces__srv__DescribeParameters_Request__Sequence -{ - rcl_interfaces__srv__DescribeParameters_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__DescribeParameters_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'descriptors' -#include "rcl_interfaces/msg/detail/parameter_descriptor__struct.h" - -/// Struct defined in srv/DescribeParameters in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__DescribeParameters_Response -{ - rcl_interfaces__msg__ParameterDescriptor__Sequence descriptors; -} rcl_interfaces__srv__DescribeParameters_Response; - -// Struct for a sequence of rcl_interfaces__srv__DescribeParameters_Response. -typedef struct rcl_interfaces__srv__DescribeParameters_Response__Sequence -{ - rcl_interfaces__srv__DescribeParameters_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__DescribeParameters_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - rcl_interfaces__srv__DescribeParameters_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - rcl_interfaces__srv__DescribeParameters_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/DescribeParameters in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__DescribeParameters_Event -{ - service_msgs__msg__ServiceEventInfo info; - rcl_interfaces__srv__DescribeParameters_Request__Sequence request; - rcl_interfaces__srv__DescribeParameters_Response__Sequence response; -} rcl_interfaces__srv__DescribeParameters_Event; - -// Struct for a sequence of rcl_interfaces__srv__DescribeParameters_Event. -typedef struct rcl_interfaces__srv__DescribeParameters_Event__Sequence -{ - rcl_interfaces__srv__DescribeParameters_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__DescribeParameters_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__DESCRIBE_PARAMETERS__STRUCT_H_ diff --git a/src/rcl_interfaces/srv/detail/describe_parameters__type_support.h b/src/rcl_interfaces/srv/detail/describe_parameters__type_support.h deleted file mode 100755 index 9b44f2430..000000000 --- a/src/rcl_interfaces/srv/detail/describe_parameters__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:srv/DescribeParameters.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/describe_parameters.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__DESCRIBE_PARAMETERS__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__SRV__DETAIL__DESCRIBE_PARAMETERS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - DescribeParameters_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - DescribeParameters_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - DescribeParameters_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - DescribeParameters -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - DescribeParameters -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - DescribeParameters -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__DESCRIBE_PARAMETERS__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/srv/detail/get_logger_levels__functions.h b/src/rcl_interfaces/srv/detail/get_logger_levels__functions.h deleted file mode 100755 index fe7bda950..000000000 --- a/src/rcl_interfaces/srv/detail/get_logger_levels__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:srv/GetLoggerLevels.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/get_logger_levels.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__GET_LOGGER_LEVELS__FUNCTIONS_H_ -#define RCL_INTERFACES__SRV__DETAIL__GET_LOGGER_LEVELS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/srv/detail/get_logger_levels__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__GetLoggerLevels__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__GetLoggerLevels__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__GetLoggerLevels__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__GetLoggerLevels__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/GetLoggerLevels message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__GetLoggerLevels_Request - * )) before or use - * rcl_interfaces__srv__GetLoggerLevels_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Request__init(rcl_interfaces__srv__GetLoggerLevels_Request * msg); - -/// Finalize srv/GetLoggerLevels message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetLoggerLevels_Request__fini(rcl_interfaces__srv__GetLoggerLevels_Request * msg); - -/// Create srv/GetLoggerLevels message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__GetLoggerLevels_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetLoggerLevels_Request * -rcl_interfaces__srv__GetLoggerLevels_Request__create(void); - -/// Destroy srv/GetLoggerLevels message. -/** - * It calls - * rcl_interfaces__srv__GetLoggerLevels_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetLoggerLevels_Request__destroy(rcl_interfaces__srv__GetLoggerLevels_Request * msg); - -/// Check for srv/GetLoggerLevels message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Request__are_equal(const rcl_interfaces__srv__GetLoggerLevels_Request * lhs, const rcl_interfaces__srv__GetLoggerLevels_Request * rhs); - -/// Copy a srv/GetLoggerLevels message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Request__copy( - const rcl_interfaces__srv__GetLoggerLevels_Request * input, - rcl_interfaces__srv__GetLoggerLevels_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__GetLoggerLevels_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__GetLoggerLevels_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__GetLoggerLevels_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__GetLoggerLevels_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetLoggerLevels messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__GetLoggerLevels_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Request__Sequence__init(rcl_interfaces__srv__GetLoggerLevels_Request__Sequence * array, size_t size); - -/// Finalize array of srv/GetLoggerLevels messages. -/** - * It calls - * rcl_interfaces__srv__GetLoggerLevels_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetLoggerLevels_Request__Sequence__fini(rcl_interfaces__srv__GetLoggerLevels_Request__Sequence * array); - -/// Create array of srv/GetLoggerLevels messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__GetLoggerLevels_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetLoggerLevels_Request__Sequence * -rcl_interfaces__srv__GetLoggerLevels_Request__Sequence__create(size_t size); - -/// Destroy array of srv/GetLoggerLevels messages. -/** - * It calls - * rcl_interfaces__srv__GetLoggerLevels_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetLoggerLevels_Request__Sequence__destroy(rcl_interfaces__srv__GetLoggerLevels_Request__Sequence * array); - -/// Check for srv/GetLoggerLevels message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Request__Sequence__are_equal(const rcl_interfaces__srv__GetLoggerLevels_Request__Sequence * lhs, const rcl_interfaces__srv__GetLoggerLevels_Request__Sequence * rhs); - -/// Copy an array of srv/GetLoggerLevels messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Request__Sequence__copy( - const rcl_interfaces__srv__GetLoggerLevels_Request__Sequence * input, - rcl_interfaces__srv__GetLoggerLevels_Request__Sequence * output); - -/// Initialize srv/GetLoggerLevels message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__GetLoggerLevels_Response - * )) before or use - * rcl_interfaces__srv__GetLoggerLevels_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Response__init(rcl_interfaces__srv__GetLoggerLevels_Response * msg); - -/// Finalize srv/GetLoggerLevels message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetLoggerLevels_Response__fini(rcl_interfaces__srv__GetLoggerLevels_Response * msg); - -/// Create srv/GetLoggerLevels message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__GetLoggerLevels_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetLoggerLevels_Response * -rcl_interfaces__srv__GetLoggerLevels_Response__create(void); - -/// Destroy srv/GetLoggerLevels message. -/** - * It calls - * rcl_interfaces__srv__GetLoggerLevels_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetLoggerLevels_Response__destroy(rcl_interfaces__srv__GetLoggerLevels_Response * msg); - -/// Check for srv/GetLoggerLevels message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Response__are_equal(const rcl_interfaces__srv__GetLoggerLevels_Response * lhs, const rcl_interfaces__srv__GetLoggerLevels_Response * rhs); - -/// Copy a srv/GetLoggerLevels message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Response__copy( - const rcl_interfaces__srv__GetLoggerLevels_Response * input, - rcl_interfaces__srv__GetLoggerLevels_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__GetLoggerLevels_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__GetLoggerLevels_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__GetLoggerLevels_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__GetLoggerLevels_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetLoggerLevels messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__GetLoggerLevels_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Response__Sequence__init(rcl_interfaces__srv__GetLoggerLevels_Response__Sequence * array, size_t size); - -/// Finalize array of srv/GetLoggerLevels messages. -/** - * It calls - * rcl_interfaces__srv__GetLoggerLevels_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetLoggerLevels_Response__Sequence__fini(rcl_interfaces__srv__GetLoggerLevels_Response__Sequence * array); - -/// Create array of srv/GetLoggerLevels messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__GetLoggerLevels_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetLoggerLevels_Response__Sequence * -rcl_interfaces__srv__GetLoggerLevels_Response__Sequence__create(size_t size); - -/// Destroy array of srv/GetLoggerLevels messages. -/** - * It calls - * rcl_interfaces__srv__GetLoggerLevels_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetLoggerLevels_Response__Sequence__destroy(rcl_interfaces__srv__GetLoggerLevels_Response__Sequence * array); - -/// Check for srv/GetLoggerLevels message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Response__Sequence__are_equal(const rcl_interfaces__srv__GetLoggerLevels_Response__Sequence * lhs, const rcl_interfaces__srv__GetLoggerLevels_Response__Sequence * rhs); - -/// Copy an array of srv/GetLoggerLevels messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Response__Sequence__copy( - const rcl_interfaces__srv__GetLoggerLevels_Response__Sequence * input, - rcl_interfaces__srv__GetLoggerLevels_Response__Sequence * output); - -/// Initialize srv/GetLoggerLevels message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__GetLoggerLevels_Event - * )) before or use - * rcl_interfaces__srv__GetLoggerLevels_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Event__init(rcl_interfaces__srv__GetLoggerLevels_Event * msg); - -/// Finalize srv/GetLoggerLevels message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetLoggerLevels_Event__fini(rcl_interfaces__srv__GetLoggerLevels_Event * msg); - -/// Create srv/GetLoggerLevels message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__GetLoggerLevels_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetLoggerLevels_Event * -rcl_interfaces__srv__GetLoggerLevels_Event__create(void); - -/// Destroy srv/GetLoggerLevels message. -/** - * It calls - * rcl_interfaces__srv__GetLoggerLevels_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetLoggerLevels_Event__destroy(rcl_interfaces__srv__GetLoggerLevels_Event * msg); - -/// Check for srv/GetLoggerLevels message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Event__are_equal(const rcl_interfaces__srv__GetLoggerLevels_Event * lhs, const rcl_interfaces__srv__GetLoggerLevels_Event * rhs); - -/// Copy a srv/GetLoggerLevels message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Event__copy( - const rcl_interfaces__srv__GetLoggerLevels_Event * input, - rcl_interfaces__srv__GetLoggerLevels_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__GetLoggerLevels_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__GetLoggerLevels_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__GetLoggerLevels_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__GetLoggerLevels_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetLoggerLevels messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__GetLoggerLevels_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Event__Sequence__init(rcl_interfaces__srv__GetLoggerLevels_Event__Sequence * array, size_t size); - -/// Finalize array of srv/GetLoggerLevels messages. -/** - * It calls - * rcl_interfaces__srv__GetLoggerLevels_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetLoggerLevels_Event__Sequence__fini(rcl_interfaces__srv__GetLoggerLevels_Event__Sequence * array); - -/// Create array of srv/GetLoggerLevels messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__GetLoggerLevels_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetLoggerLevels_Event__Sequence * -rcl_interfaces__srv__GetLoggerLevels_Event__Sequence__create(size_t size); - -/// Destroy array of srv/GetLoggerLevels messages. -/** - * It calls - * rcl_interfaces__srv__GetLoggerLevels_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetLoggerLevels_Event__Sequence__destroy(rcl_interfaces__srv__GetLoggerLevels_Event__Sequence * array); - -/// Check for srv/GetLoggerLevels message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Event__Sequence__are_equal(const rcl_interfaces__srv__GetLoggerLevels_Event__Sequence * lhs, const rcl_interfaces__srv__GetLoggerLevels_Event__Sequence * rhs); - -/// Copy an array of srv/GetLoggerLevels messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetLoggerLevels_Event__Sequence__copy( - const rcl_interfaces__srv__GetLoggerLevels_Event__Sequence * input, - rcl_interfaces__srv__GetLoggerLevels_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__GET_LOGGER_LEVELS__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/srv/detail/get_logger_levels__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/srv/detail/get_logger_levels__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 99a9917f5..000000000 --- a/src/rcl_interfaces/srv/detail/get_logger_levels__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:srv/GetLoggerLevels.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__DETAIL__GET_LOGGER_LEVELS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__SRV__DETAIL__GET_LOGGER_LEVELS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, GetLoggerLevels_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, GetLoggerLevels_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, GetLoggerLevels_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, GetLoggerLevels)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__GET_LOGGER_LEVELS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/srv/detail/get_logger_levels__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/srv/detail/get_logger_levels__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 4926a23d4..000000000 --- a/src/rcl_interfaces/srv/detail/get_logger_levels__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:srv/GetLoggerLevels.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__SRV__GET_LOGGER_LEVELS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__SRV__GET_LOGGER_LEVELS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__GetLoggerLevels_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__GetLoggerLevels_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, GetLoggerLevels_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__GetLoggerLevels_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__GetLoggerLevels_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, GetLoggerLevels_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__GetLoggerLevels_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__GetLoggerLevels_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, GetLoggerLevels_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, GetLoggerLevels)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__GET_LOGGER_LEVELS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/srv/detail/get_logger_levels__struct.h b/src/rcl_interfaces/srv/detail/get_logger_levels__struct.h deleted file mode 100755 index 50d360dfb..000000000 --- a/src/rcl_interfaces/srv/detail/get_logger_levels__struct.h +++ /dev/null @@ -1,105 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:srv/GetLoggerLevels.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/get_logger_levels.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__GET_LOGGER_LEVELS__STRUCT_H_ -#define RCL_INTERFACES__SRV__DETAIL__GET_LOGGER_LEVELS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'names' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/GetLoggerLevels in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__GetLoggerLevels_Request -{ - rosidl_runtime_c__String__Sequence names; -} rcl_interfaces__srv__GetLoggerLevels_Request; - -// Struct for a sequence of rcl_interfaces__srv__GetLoggerLevels_Request. -typedef struct rcl_interfaces__srv__GetLoggerLevels_Request__Sequence -{ - rcl_interfaces__srv__GetLoggerLevels_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__GetLoggerLevels_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'levels' -#include "rcl_interfaces/msg/detail/logger_level__struct.h" - -/// Struct defined in srv/GetLoggerLevels in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__GetLoggerLevels_Response -{ - rcl_interfaces__msg__LoggerLevel__Sequence levels; -} rcl_interfaces__srv__GetLoggerLevels_Response; - -// Struct for a sequence of rcl_interfaces__srv__GetLoggerLevels_Response. -typedef struct rcl_interfaces__srv__GetLoggerLevels_Response__Sequence -{ - rcl_interfaces__srv__GetLoggerLevels_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__GetLoggerLevels_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - rcl_interfaces__srv__GetLoggerLevels_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - rcl_interfaces__srv__GetLoggerLevels_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/GetLoggerLevels in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__GetLoggerLevels_Event -{ - service_msgs__msg__ServiceEventInfo info; - rcl_interfaces__srv__GetLoggerLevels_Request__Sequence request; - rcl_interfaces__srv__GetLoggerLevels_Response__Sequence response; -} rcl_interfaces__srv__GetLoggerLevels_Event; - -// Struct for a sequence of rcl_interfaces__srv__GetLoggerLevels_Event. -typedef struct rcl_interfaces__srv__GetLoggerLevels_Event__Sequence -{ - rcl_interfaces__srv__GetLoggerLevels_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__GetLoggerLevels_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__GET_LOGGER_LEVELS__STRUCT_H_ diff --git a/src/rcl_interfaces/srv/detail/get_logger_levels__type_support.h b/src/rcl_interfaces/srv/detail/get_logger_levels__type_support.h deleted file mode 100755 index 9b7a72c2e..000000000 --- a/src/rcl_interfaces/srv/detail/get_logger_levels__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:srv/GetLoggerLevels.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/get_logger_levels.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__GET_LOGGER_LEVELS__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__SRV__DETAIL__GET_LOGGER_LEVELS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetLoggerLevels_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetLoggerLevels_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetLoggerLevels_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetLoggerLevels -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetLoggerLevels -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetLoggerLevels -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__GET_LOGGER_LEVELS__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/srv/detail/get_parameter_types__functions.h b/src/rcl_interfaces/srv/detail/get_parameter_types__functions.h deleted file mode 100755 index e34af248f..000000000 --- a/src/rcl_interfaces/srv/detail/get_parameter_types__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:srv/GetParameterTypes.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/get_parameter_types.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__GET_PARAMETER_TYPES__FUNCTIONS_H_ -#define RCL_INTERFACES__SRV__DETAIL__GET_PARAMETER_TYPES__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/srv/detail/get_parameter_types__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__GetParameterTypes__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__GetParameterTypes__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__GetParameterTypes__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__GetParameterTypes__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/GetParameterTypes message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__GetParameterTypes_Request - * )) before or use - * rcl_interfaces__srv__GetParameterTypes_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Request__init(rcl_interfaces__srv__GetParameterTypes_Request * msg); - -/// Finalize srv/GetParameterTypes message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameterTypes_Request__fini(rcl_interfaces__srv__GetParameterTypes_Request * msg); - -/// Create srv/GetParameterTypes message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__GetParameterTypes_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetParameterTypes_Request * -rcl_interfaces__srv__GetParameterTypes_Request__create(void); - -/// Destroy srv/GetParameterTypes message. -/** - * It calls - * rcl_interfaces__srv__GetParameterTypes_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameterTypes_Request__destroy(rcl_interfaces__srv__GetParameterTypes_Request * msg); - -/// Check for srv/GetParameterTypes message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Request__are_equal(const rcl_interfaces__srv__GetParameterTypes_Request * lhs, const rcl_interfaces__srv__GetParameterTypes_Request * rhs); - -/// Copy a srv/GetParameterTypes message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Request__copy( - const rcl_interfaces__srv__GetParameterTypes_Request * input, - rcl_interfaces__srv__GetParameterTypes_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__GetParameterTypes_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__GetParameterTypes_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__GetParameterTypes_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__GetParameterTypes_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetParameterTypes messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__GetParameterTypes_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Request__Sequence__init(rcl_interfaces__srv__GetParameterTypes_Request__Sequence * array, size_t size); - -/// Finalize array of srv/GetParameterTypes messages. -/** - * It calls - * rcl_interfaces__srv__GetParameterTypes_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameterTypes_Request__Sequence__fini(rcl_interfaces__srv__GetParameterTypes_Request__Sequence * array); - -/// Create array of srv/GetParameterTypes messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__GetParameterTypes_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetParameterTypes_Request__Sequence * -rcl_interfaces__srv__GetParameterTypes_Request__Sequence__create(size_t size); - -/// Destroy array of srv/GetParameterTypes messages. -/** - * It calls - * rcl_interfaces__srv__GetParameterTypes_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameterTypes_Request__Sequence__destroy(rcl_interfaces__srv__GetParameterTypes_Request__Sequence * array); - -/// Check for srv/GetParameterTypes message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Request__Sequence__are_equal(const rcl_interfaces__srv__GetParameterTypes_Request__Sequence * lhs, const rcl_interfaces__srv__GetParameterTypes_Request__Sequence * rhs); - -/// Copy an array of srv/GetParameterTypes messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Request__Sequence__copy( - const rcl_interfaces__srv__GetParameterTypes_Request__Sequence * input, - rcl_interfaces__srv__GetParameterTypes_Request__Sequence * output); - -/// Initialize srv/GetParameterTypes message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__GetParameterTypes_Response - * )) before or use - * rcl_interfaces__srv__GetParameterTypes_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Response__init(rcl_interfaces__srv__GetParameterTypes_Response * msg); - -/// Finalize srv/GetParameterTypes message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameterTypes_Response__fini(rcl_interfaces__srv__GetParameterTypes_Response * msg); - -/// Create srv/GetParameterTypes message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__GetParameterTypes_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetParameterTypes_Response * -rcl_interfaces__srv__GetParameterTypes_Response__create(void); - -/// Destroy srv/GetParameterTypes message. -/** - * It calls - * rcl_interfaces__srv__GetParameterTypes_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameterTypes_Response__destroy(rcl_interfaces__srv__GetParameterTypes_Response * msg); - -/// Check for srv/GetParameterTypes message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Response__are_equal(const rcl_interfaces__srv__GetParameterTypes_Response * lhs, const rcl_interfaces__srv__GetParameterTypes_Response * rhs); - -/// Copy a srv/GetParameterTypes message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Response__copy( - const rcl_interfaces__srv__GetParameterTypes_Response * input, - rcl_interfaces__srv__GetParameterTypes_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__GetParameterTypes_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__GetParameterTypes_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__GetParameterTypes_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__GetParameterTypes_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetParameterTypes messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__GetParameterTypes_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Response__Sequence__init(rcl_interfaces__srv__GetParameterTypes_Response__Sequence * array, size_t size); - -/// Finalize array of srv/GetParameterTypes messages. -/** - * It calls - * rcl_interfaces__srv__GetParameterTypes_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameterTypes_Response__Sequence__fini(rcl_interfaces__srv__GetParameterTypes_Response__Sequence * array); - -/// Create array of srv/GetParameterTypes messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__GetParameterTypes_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetParameterTypes_Response__Sequence * -rcl_interfaces__srv__GetParameterTypes_Response__Sequence__create(size_t size); - -/// Destroy array of srv/GetParameterTypes messages. -/** - * It calls - * rcl_interfaces__srv__GetParameterTypes_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameterTypes_Response__Sequence__destroy(rcl_interfaces__srv__GetParameterTypes_Response__Sequence * array); - -/// Check for srv/GetParameterTypes message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Response__Sequence__are_equal(const rcl_interfaces__srv__GetParameterTypes_Response__Sequence * lhs, const rcl_interfaces__srv__GetParameterTypes_Response__Sequence * rhs); - -/// Copy an array of srv/GetParameterTypes messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Response__Sequence__copy( - const rcl_interfaces__srv__GetParameterTypes_Response__Sequence * input, - rcl_interfaces__srv__GetParameterTypes_Response__Sequence * output); - -/// Initialize srv/GetParameterTypes message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__GetParameterTypes_Event - * )) before or use - * rcl_interfaces__srv__GetParameterTypes_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Event__init(rcl_interfaces__srv__GetParameterTypes_Event * msg); - -/// Finalize srv/GetParameterTypes message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameterTypes_Event__fini(rcl_interfaces__srv__GetParameterTypes_Event * msg); - -/// Create srv/GetParameterTypes message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__GetParameterTypes_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetParameterTypes_Event * -rcl_interfaces__srv__GetParameterTypes_Event__create(void); - -/// Destroy srv/GetParameterTypes message. -/** - * It calls - * rcl_interfaces__srv__GetParameterTypes_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameterTypes_Event__destroy(rcl_interfaces__srv__GetParameterTypes_Event * msg); - -/// Check for srv/GetParameterTypes message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Event__are_equal(const rcl_interfaces__srv__GetParameterTypes_Event * lhs, const rcl_interfaces__srv__GetParameterTypes_Event * rhs); - -/// Copy a srv/GetParameterTypes message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Event__copy( - const rcl_interfaces__srv__GetParameterTypes_Event * input, - rcl_interfaces__srv__GetParameterTypes_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__GetParameterTypes_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__GetParameterTypes_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__GetParameterTypes_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__GetParameterTypes_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetParameterTypes messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__GetParameterTypes_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Event__Sequence__init(rcl_interfaces__srv__GetParameterTypes_Event__Sequence * array, size_t size); - -/// Finalize array of srv/GetParameterTypes messages. -/** - * It calls - * rcl_interfaces__srv__GetParameterTypes_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameterTypes_Event__Sequence__fini(rcl_interfaces__srv__GetParameterTypes_Event__Sequence * array); - -/// Create array of srv/GetParameterTypes messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__GetParameterTypes_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetParameterTypes_Event__Sequence * -rcl_interfaces__srv__GetParameterTypes_Event__Sequence__create(size_t size); - -/// Destroy array of srv/GetParameterTypes messages. -/** - * It calls - * rcl_interfaces__srv__GetParameterTypes_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameterTypes_Event__Sequence__destroy(rcl_interfaces__srv__GetParameterTypes_Event__Sequence * array); - -/// Check for srv/GetParameterTypes message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Event__Sequence__are_equal(const rcl_interfaces__srv__GetParameterTypes_Event__Sequence * lhs, const rcl_interfaces__srv__GetParameterTypes_Event__Sequence * rhs); - -/// Copy an array of srv/GetParameterTypes messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameterTypes_Event__Sequence__copy( - const rcl_interfaces__srv__GetParameterTypes_Event__Sequence * input, - rcl_interfaces__srv__GetParameterTypes_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__GET_PARAMETER_TYPES__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/srv/detail/get_parameter_types__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/srv/detail/get_parameter_types__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 196ac063b..000000000 --- a/src/rcl_interfaces/srv/detail/get_parameter_types__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:srv/GetParameterTypes.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__DETAIL__GET_PARAMETER_TYPES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__SRV__DETAIL__GET_PARAMETER_TYPES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, GetParameterTypes_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, GetParameterTypes_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, GetParameterTypes_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, GetParameterTypes)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__GET_PARAMETER_TYPES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/srv/detail/get_parameter_types__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/srv/detail/get_parameter_types__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 01dfd8572..000000000 --- a/src/rcl_interfaces/srv/detail/get_parameter_types__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:srv/GetParameterTypes.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__SRV__GET_PARAMETER_TYPES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__SRV__GET_PARAMETER_TYPES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__GetParameterTypes_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__GetParameterTypes_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, GetParameterTypes_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__GetParameterTypes_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__GetParameterTypes_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, GetParameterTypes_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__GetParameterTypes_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__GetParameterTypes_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, GetParameterTypes_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, GetParameterTypes)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__GET_PARAMETER_TYPES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/srv/detail/get_parameter_types__struct.h b/src/rcl_interfaces/srv/detail/get_parameter_types__struct.h deleted file mode 100755 index 073bc89e5..000000000 --- a/src/rcl_interfaces/srv/detail/get_parameter_types__struct.h +++ /dev/null @@ -1,105 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:srv/GetParameterTypes.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/get_parameter_types.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__GET_PARAMETER_TYPES__STRUCT_H_ -#define RCL_INTERFACES__SRV__DETAIL__GET_PARAMETER_TYPES__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'names' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/GetParameterTypes in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__GetParameterTypes_Request -{ - rosidl_runtime_c__String__Sequence names; -} rcl_interfaces__srv__GetParameterTypes_Request; - -// Struct for a sequence of rcl_interfaces__srv__GetParameterTypes_Request. -typedef struct rcl_interfaces__srv__GetParameterTypes_Request__Sequence -{ - rcl_interfaces__srv__GetParameterTypes_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__GetParameterTypes_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'types' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in srv/GetParameterTypes in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__GetParameterTypes_Response -{ - rosidl_runtime_c__uint8__Sequence types; -} rcl_interfaces__srv__GetParameterTypes_Response; - -// Struct for a sequence of rcl_interfaces__srv__GetParameterTypes_Response. -typedef struct rcl_interfaces__srv__GetParameterTypes_Response__Sequence -{ - rcl_interfaces__srv__GetParameterTypes_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__GetParameterTypes_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - rcl_interfaces__srv__GetParameterTypes_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - rcl_interfaces__srv__GetParameterTypes_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/GetParameterTypes in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__GetParameterTypes_Event -{ - service_msgs__msg__ServiceEventInfo info; - rcl_interfaces__srv__GetParameterTypes_Request__Sequence request; - rcl_interfaces__srv__GetParameterTypes_Response__Sequence response; -} rcl_interfaces__srv__GetParameterTypes_Event; - -// Struct for a sequence of rcl_interfaces__srv__GetParameterTypes_Event. -typedef struct rcl_interfaces__srv__GetParameterTypes_Event__Sequence -{ - rcl_interfaces__srv__GetParameterTypes_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__GetParameterTypes_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__GET_PARAMETER_TYPES__STRUCT_H_ diff --git a/src/rcl_interfaces/srv/detail/get_parameter_types__type_support.h b/src/rcl_interfaces/srv/detail/get_parameter_types__type_support.h deleted file mode 100755 index 65f153c2d..000000000 --- a/src/rcl_interfaces/srv/detail/get_parameter_types__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:srv/GetParameterTypes.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/get_parameter_types.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__GET_PARAMETER_TYPES__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__SRV__DETAIL__GET_PARAMETER_TYPES__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetParameterTypes_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetParameterTypes_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetParameterTypes_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetParameterTypes -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetParameterTypes -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetParameterTypes -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__GET_PARAMETER_TYPES__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/srv/detail/get_parameters__functions.h b/src/rcl_interfaces/srv/detail/get_parameters__functions.h deleted file mode 100755 index 8d13c3858..000000000 --- a/src/rcl_interfaces/srv/detail/get_parameters__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:srv/GetParameters.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/get_parameters.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__GET_PARAMETERS__FUNCTIONS_H_ -#define RCL_INTERFACES__SRV__DETAIL__GET_PARAMETERS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/srv/detail/get_parameters__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__GetParameters__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__GetParameters__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__GetParameters__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__GetParameters__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/GetParameters message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__GetParameters_Request - * )) before or use - * rcl_interfaces__srv__GetParameters_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Request__init(rcl_interfaces__srv__GetParameters_Request * msg); - -/// Finalize srv/GetParameters message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameters_Request__fini(rcl_interfaces__srv__GetParameters_Request * msg); - -/// Create srv/GetParameters message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__GetParameters_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetParameters_Request * -rcl_interfaces__srv__GetParameters_Request__create(void); - -/// Destroy srv/GetParameters message. -/** - * It calls - * rcl_interfaces__srv__GetParameters_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameters_Request__destroy(rcl_interfaces__srv__GetParameters_Request * msg); - -/// Check for srv/GetParameters message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Request__are_equal(const rcl_interfaces__srv__GetParameters_Request * lhs, const rcl_interfaces__srv__GetParameters_Request * rhs); - -/// Copy a srv/GetParameters message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Request__copy( - const rcl_interfaces__srv__GetParameters_Request * input, - rcl_interfaces__srv__GetParameters_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__GetParameters_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__GetParameters_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__GetParameters_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__GetParameters_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetParameters messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__GetParameters_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Request__Sequence__init(rcl_interfaces__srv__GetParameters_Request__Sequence * array, size_t size); - -/// Finalize array of srv/GetParameters messages. -/** - * It calls - * rcl_interfaces__srv__GetParameters_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameters_Request__Sequence__fini(rcl_interfaces__srv__GetParameters_Request__Sequence * array); - -/// Create array of srv/GetParameters messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__GetParameters_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetParameters_Request__Sequence * -rcl_interfaces__srv__GetParameters_Request__Sequence__create(size_t size); - -/// Destroy array of srv/GetParameters messages. -/** - * It calls - * rcl_interfaces__srv__GetParameters_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameters_Request__Sequence__destroy(rcl_interfaces__srv__GetParameters_Request__Sequence * array); - -/// Check for srv/GetParameters message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Request__Sequence__are_equal(const rcl_interfaces__srv__GetParameters_Request__Sequence * lhs, const rcl_interfaces__srv__GetParameters_Request__Sequence * rhs); - -/// Copy an array of srv/GetParameters messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Request__Sequence__copy( - const rcl_interfaces__srv__GetParameters_Request__Sequence * input, - rcl_interfaces__srv__GetParameters_Request__Sequence * output); - -/// Initialize srv/GetParameters message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__GetParameters_Response - * )) before or use - * rcl_interfaces__srv__GetParameters_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Response__init(rcl_interfaces__srv__GetParameters_Response * msg); - -/// Finalize srv/GetParameters message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameters_Response__fini(rcl_interfaces__srv__GetParameters_Response * msg); - -/// Create srv/GetParameters message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__GetParameters_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetParameters_Response * -rcl_interfaces__srv__GetParameters_Response__create(void); - -/// Destroy srv/GetParameters message. -/** - * It calls - * rcl_interfaces__srv__GetParameters_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameters_Response__destroy(rcl_interfaces__srv__GetParameters_Response * msg); - -/// Check for srv/GetParameters message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Response__are_equal(const rcl_interfaces__srv__GetParameters_Response * lhs, const rcl_interfaces__srv__GetParameters_Response * rhs); - -/// Copy a srv/GetParameters message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Response__copy( - const rcl_interfaces__srv__GetParameters_Response * input, - rcl_interfaces__srv__GetParameters_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__GetParameters_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__GetParameters_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__GetParameters_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__GetParameters_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetParameters messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__GetParameters_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Response__Sequence__init(rcl_interfaces__srv__GetParameters_Response__Sequence * array, size_t size); - -/// Finalize array of srv/GetParameters messages. -/** - * It calls - * rcl_interfaces__srv__GetParameters_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameters_Response__Sequence__fini(rcl_interfaces__srv__GetParameters_Response__Sequence * array); - -/// Create array of srv/GetParameters messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__GetParameters_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetParameters_Response__Sequence * -rcl_interfaces__srv__GetParameters_Response__Sequence__create(size_t size); - -/// Destroy array of srv/GetParameters messages. -/** - * It calls - * rcl_interfaces__srv__GetParameters_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameters_Response__Sequence__destroy(rcl_interfaces__srv__GetParameters_Response__Sequence * array); - -/// Check for srv/GetParameters message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Response__Sequence__are_equal(const rcl_interfaces__srv__GetParameters_Response__Sequence * lhs, const rcl_interfaces__srv__GetParameters_Response__Sequence * rhs); - -/// Copy an array of srv/GetParameters messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Response__Sequence__copy( - const rcl_interfaces__srv__GetParameters_Response__Sequence * input, - rcl_interfaces__srv__GetParameters_Response__Sequence * output); - -/// Initialize srv/GetParameters message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__GetParameters_Event - * )) before or use - * rcl_interfaces__srv__GetParameters_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Event__init(rcl_interfaces__srv__GetParameters_Event * msg); - -/// Finalize srv/GetParameters message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameters_Event__fini(rcl_interfaces__srv__GetParameters_Event * msg); - -/// Create srv/GetParameters message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__GetParameters_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetParameters_Event * -rcl_interfaces__srv__GetParameters_Event__create(void); - -/// Destroy srv/GetParameters message. -/** - * It calls - * rcl_interfaces__srv__GetParameters_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameters_Event__destroy(rcl_interfaces__srv__GetParameters_Event * msg); - -/// Check for srv/GetParameters message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Event__are_equal(const rcl_interfaces__srv__GetParameters_Event * lhs, const rcl_interfaces__srv__GetParameters_Event * rhs); - -/// Copy a srv/GetParameters message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Event__copy( - const rcl_interfaces__srv__GetParameters_Event * input, - rcl_interfaces__srv__GetParameters_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__GetParameters_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__GetParameters_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__GetParameters_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__GetParameters_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetParameters messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__GetParameters_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Event__Sequence__init(rcl_interfaces__srv__GetParameters_Event__Sequence * array, size_t size); - -/// Finalize array of srv/GetParameters messages. -/** - * It calls - * rcl_interfaces__srv__GetParameters_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameters_Event__Sequence__fini(rcl_interfaces__srv__GetParameters_Event__Sequence * array); - -/// Create array of srv/GetParameters messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__GetParameters_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__GetParameters_Event__Sequence * -rcl_interfaces__srv__GetParameters_Event__Sequence__create(size_t size); - -/// Destroy array of srv/GetParameters messages. -/** - * It calls - * rcl_interfaces__srv__GetParameters_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__GetParameters_Event__Sequence__destroy(rcl_interfaces__srv__GetParameters_Event__Sequence * array); - -/// Check for srv/GetParameters message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Event__Sequence__are_equal(const rcl_interfaces__srv__GetParameters_Event__Sequence * lhs, const rcl_interfaces__srv__GetParameters_Event__Sequence * rhs); - -/// Copy an array of srv/GetParameters messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__GetParameters_Event__Sequence__copy( - const rcl_interfaces__srv__GetParameters_Event__Sequence * input, - rcl_interfaces__srv__GetParameters_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__GET_PARAMETERS__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/srv/detail/get_parameters__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/srv/detail/get_parameters__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 030a549a7..000000000 --- a/src/rcl_interfaces/srv/detail/get_parameters__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:srv/GetParameters.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__DETAIL__GET_PARAMETERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__SRV__DETAIL__GET_PARAMETERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, GetParameters_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, GetParameters_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, GetParameters_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, GetParameters)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__GET_PARAMETERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/srv/detail/get_parameters__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/srv/detail/get_parameters__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index f00585e7d..000000000 --- a/src/rcl_interfaces/srv/detail/get_parameters__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:srv/GetParameters.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__SRV__GET_PARAMETERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__SRV__GET_PARAMETERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__GetParameters_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__GetParameters_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, GetParameters_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__GetParameters_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__GetParameters_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, GetParameters_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__GetParameters_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__GetParameters_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, GetParameters_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, GetParameters)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__GET_PARAMETERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/srv/detail/get_parameters__struct.h b/src/rcl_interfaces/srv/detail/get_parameters__struct.h deleted file mode 100755 index a19698a9a..000000000 --- a/src/rcl_interfaces/srv/detail/get_parameters__struct.h +++ /dev/null @@ -1,106 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:srv/GetParameters.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/get_parameters.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__GET_PARAMETERS__STRUCT_H_ -#define RCL_INTERFACES__SRV__DETAIL__GET_PARAMETERS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'names' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/GetParameters in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__GetParameters_Request -{ - /// A list of parameter names to get. - rosidl_runtime_c__String__Sequence names; -} rcl_interfaces__srv__GetParameters_Request; - -// Struct for a sequence of rcl_interfaces__srv__GetParameters_Request. -typedef struct rcl_interfaces__srv__GetParameters_Request__Sequence -{ - rcl_interfaces__srv__GetParameters_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__GetParameters_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'values' -#include "rcl_interfaces/msg/detail/parameter_value__struct.h" - -/// Struct defined in srv/GetParameters in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__GetParameters_Response -{ - rcl_interfaces__msg__ParameterValue__Sequence values; -} rcl_interfaces__srv__GetParameters_Response; - -// Struct for a sequence of rcl_interfaces__srv__GetParameters_Response. -typedef struct rcl_interfaces__srv__GetParameters_Response__Sequence -{ - rcl_interfaces__srv__GetParameters_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__GetParameters_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - rcl_interfaces__srv__GetParameters_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - rcl_interfaces__srv__GetParameters_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/GetParameters in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__GetParameters_Event -{ - service_msgs__msg__ServiceEventInfo info; - rcl_interfaces__srv__GetParameters_Request__Sequence request; - rcl_interfaces__srv__GetParameters_Response__Sequence response; -} rcl_interfaces__srv__GetParameters_Event; - -// Struct for a sequence of rcl_interfaces__srv__GetParameters_Event. -typedef struct rcl_interfaces__srv__GetParameters_Event__Sequence -{ - rcl_interfaces__srv__GetParameters_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__GetParameters_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__GET_PARAMETERS__STRUCT_H_ diff --git a/src/rcl_interfaces/srv/detail/get_parameters__type_support.h b/src/rcl_interfaces/srv/detail/get_parameters__type_support.h deleted file mode 100755 index 64a09064c..000000000 --- a/src/rcl_interfaces/srv/detail/get_parameters__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:srv/GetParameters.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/get_parameters.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__GET_PARAMETERS__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__SRV__DETAIL__GET_PARAMETERS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetParameters_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetParameters_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetParameters_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetParameters -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetParameters -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - GetParameters -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__GET_PARAMETERS__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/srv/detail/list_parameters__functions.h b/src/rcl_interfaces/srv/detail/list_parameters__functions.h deleted file mode 100755 index 9c961c950..000000000 --- a/src/rcl_interfaces/srv/detail/list_parameters__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:srv/ListParameters.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/list_parameters.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__LIST_PARAMETERS__FUNCTIONS_H_ -#define RCL_INTERFACES__SRV__DETAIL__LIST_PARAMETERS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/srv/detail/list_parameters__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__ListParameters__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__ListParameters__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__ListParameters__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__ListParameters__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/ListParameters message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__ListParameters_Request - * )) before or use - * rcl_interfaces__srv__ListParameters_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Request__init(rcl_interfaces__srv__ListParameters_Request * msg); - -/// Finalize srv/ListParameters message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__ListParameters_Request__fini(rcl_interfaces__srv__ListParameters_Request * msg); - -/// Create srv/ListParameters message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__ListParameters_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__ListParameters_Request * -rcl_interfaces__srv__ListParameters_Request__create(void); - -/// Destroy srv/ListParameters message. -/** - * It calls - * rcl_interfaces__srv__ListParameters_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__ListParameters_Request__destroy(rcl_interfaces__srv__ListParameters_Request * msg); - -/// Check for srv/ListParameters message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Request__are_equal(const rcl_interfaces__srv__ListParameters_Request * lhs, const rcl_interfaces__srv__ListParameters_Request * rhs); - -/// Copy a srv/ListParameters message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Request__copy( - const rcl_interfaces__srv__ListParameters_Request * input, - rcl_interfaces__srv__ListParameters_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__ListParameters_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__ListParameters_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__ListParameters_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__ListParameters_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/ListParameters messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__ListParameters_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Request__Sequence__init(rcl_interfaces__srv__ListParameters_Request__Sequence * array, size_t size); - -/// Finalize array of srv/ListParameters messages. -/** - * It calls - * rcl_interfaces__srv__ListParameters_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__ListParameters_Request__Sequence__fini(rcl_interfaces__srv__ListParameters_Request__Sequence * array); - -/// Create array of srv/ListParameters messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__ListParameters_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__ListParameters_Request__Sequence * -rcl_interfaces__srv__ListParameters_Request__Sequence__create(size_t size); - -/// Destroy array of srv/ListParameters messages. -/** - * It calls - * rcl_interfaces__srv__ListParameters_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__ListParameters_Request__Sequence__destroy(rcl_interfaces__srv__ListParameters_Request__Sequence * array); - -/// Check for srv/ListParameters message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Request__Sequence__are_equal(const rcl_interfaces__srv__ListParameters_Request__Sequence * lhs, const rcl_interfaces__srv__ListParameters_Request__Sequence * rhs); - -/// Copy an array of srv/ListParameters messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Request__Sequence__copy( - const rcl_interfaces__srv__ListParameters_Request__Sequence * input, - rcl_interfaces__srv__ListParameters_Request__Sequence * output); - -/// Initialize srv/ListParameters message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__ListParameters_Response - * )) before or use - * rcl_interfaces__srv__ListParameters_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Response__init(rcl_interfaces__srv__ListParameters_Response * msg); - -/// Finalize srv/ListParameters message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__ListParameters_Response__fini(rcl_interfaces__srv__ListParameters_Response * msg); - -/// Create srv/ListParameters message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__ListParameters_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__ListParameters_Response * -rcl_interfaces__srv__ListParameters_Response__create(void); - -/// Destroy srv/ListParameters message. -/** - * It calls - * rcl_interfaces__srv__ListParameters_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__ListParameters_Response__destroy(rcl_interfaces__srv__ListParameters_Response * msg); - -/// Check for srv/ListParameters message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Response__are_equal(const rcl_interfaces__srv__ListParameters_Response * lhs, const rcl_interfaces__srv__ListParameters_Response * rhs); - -/// Copy a srv/ListParameters message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Response__copy( - const rcl_interfaces__srv__ListParameters_Response * input, - rcl_interfaces__srv__ListParameters_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__ListParameters_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__ListParameters_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__ListParameters_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__ListParameters_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/ListParameters messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__ListParameters_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Response__Sequence__init(rcl_interfaces__srv__ListParameters_Response__Sequence * array, size_t size); - -/// Finalize array of srv/ListParameters messages. -/** - * It calls - * rcl_interfaces__srv__ListParameters_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__ListParameters_Response__Sequence__fini(rcl_interfaces__srv__ListParameters_Response__Sequence * array); - -/// Create array of srv/ListParameters messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__ListParameters_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__ListParameters_Response__Sequence * -rcl_interfaces__srv__ListParameters_Response__Sequence__create(size_t size); - -/// Destroy array of srv/ListParameters messages. -/** - * It calls - * rcl_interfaces__srv__ListParameters_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__ListParameters_Response__Sequence__destroy(rcl_interfaces__srv__ListParameters_Response__Sequence * array); - -/// Check for srv/ListParameters message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Response__Sequence__are_equal(const rcl_interfaces__srv__ListParameters_Response__Sequence * lhs, const rcl_interfaces__srv__ListParameters_Response__Sequence * rhs); - -/// Copy an array of srv/ListParameters messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Response__Sequence__copy( - const rcl_interfaces__srv__ListParameters_Response__Sequence * input, - rcl_interfaces__srv__ListParameters_Response__Sequence * output); - -/// Initialize srv/ListParameters message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__ListParameters_Event - * )) before or use - * rcl_interfaces__srv__ListParameters_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Event__init(rcl_interfaces__srv__ListParameters_Event * msg); - -/// Finalize srv/ListParameters message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__ListParameters_Event__fini(rcl_interfaces__srv__ListParameters_Event * msg); - -/// Create srv/ListParameters message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__ListParameters_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__ListParameters_Event * -rcl_interfaces__srv__ListParameters_Event__create(void); - -/// Destroy srv/ListParameters message. -/** - * It calls - * rcl_interfaces__srv__ListParameters_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__ListParameters_Event__destroy(rcl_interfaces__srv__ListParameters_Event * msg); - -/// Check for srv/ListParameters message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Event__are_equal(const rcl_interfaces__srv__ListParameters_Event * lhs, const rcl_interfaces__srv__ListParameters_Event * rhs); - -/// Copy a srv/ListParameters message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Event__copy( - const rcl_interfaces__srv__ListParameters_Event * input, - rcl_interfaces__srv__ListParameters_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__ListParameters_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__ListParameters_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__ListParameters_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__ListParameters_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/ListParameters messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__ListParameters_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Event__Sequence__init(rcl_interfaces__srv__ListParameters_Event__Sequence * array, size_t size); - -/// Finalize array of srv/ListParameters messages. -/** - * It calls - * rcl_interfaces__srv__ListParameters_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__ListParameters_Event__Sequence__fini(rcl_interfaces__srv__ListParameters_Event__Sequence * array); - -/// Create array of srv/ListParameters messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__ListParameters_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__ListParameters_Event__Sequence * -rcl_interfaces__srv__ListParameters_Event__Sequence__create(size_t size); - -/// Destroy array of srv/ListParameters messages. -/** - * It calls - * rcl_interfaces__srv__ListParameters_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__ListParameters_Event__Sequence__destroy(rcl_interfaces__srv__ListParameters_Event__Sequence * array); - -/// Check for srv/ListParameters message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Event__Sequence__are_equal(const rcl_interfaces__srv__ListParameters_Event__Sequence * lhs, const rcl_interfaces__srv__ListParameters_Event__Sequence * rhs); - -/// Copy an array of srv/ListParameters messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__ListParameters_Event__Sequence__copy( - const rcl_interfaces__srv__ListParameters_Event__Sequence * input, - rcl_interfaces__srv__ListParameters_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__LIST_PARAMETERS__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/srv/detail/list_parameters__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/srv/detail/list_parameters__rosidl_typesupport_introspection_c.h deleted file mode 100755 index eb67bdcc4..000000000 --- a/src/rcl_interfaces/srv/detail/list_parameters__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:srv/ListParameters.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__DETAIL__LIST_PARAMETERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__SRV__DETAIL__LIST_PARAMETERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, ListParameters_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, ListParameters_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, ListParameters_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, ListParameters)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__LIST_PARAMETERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/srv/detail/list_parameters__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/srv/detail/list_parameters__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a2768680e..000000000 --- a/src/rcl_interfaces/srv/detail/list_parameters__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:srv/ListParameters.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__SRV__LIST_PARAMETERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__SRV__LIST_PARAMETERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__ListParameters_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__ListParameters_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, ListParameters_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__ListParameters_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__ListParameters_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, ListParameters_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__ListParameters_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__ListParameters_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, ListParameters_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, ListParameters)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__LIST_PARAMETERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/srv/detail/list_parameters__struct.h b/src/rcl_interfaces/srv/detail/list_parameters__struct.h deleted file mode 100755 index da5e8493f..000000000 --- a/src/rcl_interfaces/srv/detail/list_parameters__struct.h +++ /dev/null @@ -1,116 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:srv/ListParameters.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/list_parameters.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__LIST_PARAMETERS__STRUCT_H_ -#define RCL_INTERFACES__SRV__DETAIL__LIST_PARAMETERS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Constant 'DEPTH_RECURSIVE'. -enum -{ - rcl_interfaces__srv__ListParameters_Request__DEPTH_RECURSIVE = 0ull -}; - -// Include directives for member types -// Member 'prefixes' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/ListParameters in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__ListParameters_Request -{ - /// The list of parameter prefixes to query. - rosidl_runtime_c__String__Sequence prefixes; - /// Relative depth from given prefixes to return. - /// - /// Use DEPTH_RECURSIVE to get the recursive parameters and prefixes for each prefix. - uint64_t depth; -} rcl_interfaces__srv__ListParameters_Request; - -// Struct for a sequence of rcl_interfaces__srv__ListParameters_Request. -typedef struct rcl_interfaces__srv__ListParameters_Request__Sequence -{ - rcl_interfaces__srv__ListParameters_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__ListParameters_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'result' -#include "rcl_interfaces/msg/detail/list_parameters_result__struct.h" - -/// Struct defined in srv/ListParameters in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__ListParameters_Response -{ - rcl_interfaces__msg__ListParametersResult result; -} rcl_interfaces__srv__ListParameters_Response; - -// Struct for a sequence of rcl_interfaces__srv__ListParameters_Response. -typedef struct rcl_interfaces__srv__ListParameters_Response__Sequence -{ - rcl_interfaces__srv__ListParameters_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__ListParameters_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - rcl_interfaces__srv__ListParameters_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - rcl_interfaces__srv__ListParameters_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/ListParameters in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__ListParameters_Event -{ - service_msgs__msg__ServiceEventInfo info; - rcl_interfaces__srv__ListParameters_Request__Sequence request; - rcl_interfaces__srv__ListParameters_Response__Sequence response; -} rcl_interfaces__srv__ListParameters_Event; - -// Struct for a sequence of rcl_interfaces__srv__ListParameters_Event. -typedef struct rcl_interfaces__srv__ListParameters_Event__Sequence -{ - rcl_interfaces__srv__ListParameters_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__ListParameters_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__LIST_PARAMETERS__STRUCT_H_ diff --git a/src/rcl_interfaces/srv/detail/list_parameters__type_support.h b/src/rcl_interfaces/srv/detail/list_parameters__type_support.h deleted file mode 100755 index e59148737..000000000 --- a/src/rcl_interfaces/srv/detail/list_parameters__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:srv/ListParameters.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/list_parameters.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__LIST_PARAMETERS__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__SRV__DETAIL__LIST_PARAMETERS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - ListParameters_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - ListParameters_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - ListParameters_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - ListParameters -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - ListParameters -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - ListParameters -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__LIST_PARAMETERS__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/srv/detail/set_logger_levels__functions.h b/src/rcl_interfaces/srv/detail/set_logger_levels__functions.h deleted file mode 100755 index 9619fa440..000000000 --- a/src/rcl_interfaces/srv/detail/set_logger_levels__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:srv/SetLoggerLevels.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/set_logger_levels.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__SET_LOGGER_LEVELS__FUNCTIONS_H_ -#define RCL_INTERFACES__SRV__DETAIL__SET_LOGGER_LEVELS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/srv/detail/set_logger_levels__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__SetLoggerLevels__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__SetLoggerLevels__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__SetLoggerLevels__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__SetLoggerLevels__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/SetLoggerLevels message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__SetLoggerLevels_Request - * )) before or use - * rcl_interfaces__srv__SetLoggerLevels_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Request__init(rcl_interfaces__srv__SetLoggerLevels_Request * msg); - -/// Finalize srv/SetLoggerLevels message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetLoggerLevels_Request__fini(rcl_interfaces__srv__SetLoggerLevels_Request * msg); - -/// Create srv/SetLoggerLevels message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__SetLoggerLevels_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetLoggerLevels_Request * -rcl_interfaces__srv__SetLoggerLevels_Request__create(void); - -/// Destroy srv/SetLoggerLevels message. -/** - * It calls - * rcl_interfaces__srv__SetLoggerLevels_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetLoggerLevels_Request__destroy(rcl_interfaces__srv__SetLoggerLevels_Request * msg); - -/// Check for srv/SetLoggerLevels message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Request__are_equal(const rcl_interfaces__srv__SetLoggerLevels_Request * lhs, const rcl_interfaces__srv__SetLoggerLevels_Request * rhs); - -/// Copy a srv/SetLoggerLevels message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Request__copy( - const rcl_interfaces__srv__SetLoggerLevels_Request * input, - rcl_interfaces__srv__SetLoggerLevels_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__SetLoggerLevels_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__SetLoggerLevels_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__SetLoggerLevels_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__SetLoggerLevels_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetLoggerLevels messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__SetLoggerLevels_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Request__Sequence__init(rcl_interfaces__srv__SetLoggerLevels_Request__Sequence * array, size_t size); - -/// Finalize array of srv/SetLoggerLevels messages. -/** - * It calls - * rcl_interfaces__srv__SetLoggerLevels_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetLoggerLevels_Request__Sequence__fini(rcl_interfaces__srv__SetLoggerLevels_Request__Sequence * array); - -/// Create array of srv/SetLoggerLevels messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__SetLoggerLevels_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetLoggerLevels_Request__Sequence * -rcl_interfaces__srv__SetLoggerLevels_Request__Sequence__create(size_t size); - -/// Destroy array of srv/SetLoggerLevels messages. -/** - * It calls - * rcl_interfaces__srv__SetLoggerLevels_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetLoggerLevels_Request__Sequence__destroy(rcl_interfaces__srv__SetLoggerLevels_Request__Sequence * array); - -/// Check for srv/SetLoggerLevels message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Request__Sequence__are_equal(const rcl_interfaces__srv__SetLoggerLevels_Request__Sequence * lhs, const rcl_interfaces__srv__SetLoggerLevels_Request__Sequence * rhs); - -/// Copy an array of srv/SetLoggerLevels messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Request__Sequence__copy( - const rcl_interfaces__srv__SetLoggerLevels_Request__Sequence * input, - rcl_interfaces__srv__SetLoggerLevels_Request__Sequence * output); - -/// Initialize srv/SetLoggerLevels message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__SetLoggerLevels_Response - * )) before or use - * rcl_interfaces__srv__SetLoggerLevels_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Response__init(rcl_interfaces__srv__SetLoggerLevels_Response * msg); - -/// Finalize srv/SetLoggerLevels message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetLoggerLevels_Response__fini(rcl_interfaces__srv__SetLoggerLevels_Response * msg); - -/// Create srv/SetLoggerLevels message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__SetLoggerLevels_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetLoggerLevels_Response * -rcl_interfaces__srv__SetLoggerLevels_Response__create(void); - -/// Destroy srv/SetLoggerLevels message. -/** - * It calls - * rcl_interfaces__srv__SetLoggerLevels_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetLoggerLevels_Response__destroy(rcl_interfaces__srv__SetLoggerLevels_Response * msg); - -/// Check for srv/SetLoggerLevels message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Response__are_equal(const rcl_interfaces__srv__SetLoggerLevels_Response * lhs, const rcl_interfaces__srv__SetLoggerLevels_Response * rhs); - -/// Copy a srv/SetLoggerLevels message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Response__copy( - const rcl_interfaces__srv__SetLoggerLevels_Response * input, - rcl_interfaces__srv__SetLoggerLevels_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__SetLoggerLevels_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__SetLoggerLevels_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__SetLoggerLevels_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__SetLoggerLevels_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetLoggerLevels messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__SetLoggerLevels_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Response__Sequence__init(rcl_interfaces__srv__SetLoggerLevels_Response__Sequence * array, size_t size); - -/// Finalize array of srv/SetLoggerLevels messages. -/** - * It calls - * rcl_interfaces__srv__SetLoggerLevels_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetLoggerLevels_Response__Sequence__fini(rcl_interfaces__srv__SetLoggerLevels_Response__Sequence * array); - -/// Create array of srv/SetLoggerLevels messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__SetLoggerLevels_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetLoggerLevels_Response__Sequence * -rcl_interfaces__srv__SetLoggerLevels_Response__Sequence__create(size_t size); - -/// Destroy array of srv/SetLoggerLevels messages. -/** - * It calls - * rcl_interfaces__srv__SetLoggerLevels_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetLoggerLevels_Response__Sequence__destroy(rcl_interfaces__srv__SetLoggerLevels_Response__Sequence * array); - -/// Check for srv/SetLoggerLevels message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Response__Sequence__are_equal(const rcl_interfaces__srv__SetLoggerLevels_Response__Sequence * lhs, const rcl_interfaces__srv__SetLoggerLevels_Response__Sequence * rhs); - -/// Copy an array of srv/SetLoggerLevels messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Response__Sequence__copy( - const rcl_interfaces__srv__SetLoggerLevels_Response__Sequence * input, - rcl_interfaces__srv__SetLoggerLevels_Response__Sequence * output); - -/// Initialize srv/SetLoggerLevels message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__SetLoggerLevels_Event - * )) before or use - * rcl_interfaces__srv__SetLoggerLevels_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Event__init(rcl_interfaces__srv__SetLoggerLevels_Event * msg); - -/// Finalize srv/SetLoggerLevels message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetLoggerLevels_Event__fini(rcl_interfaces__srv__SetLoggerLevels_Event * msg); - -/// Create srv/SetLoggerLevels message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__SetLoggerLevels_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetLoggerLevels_Event * -rcl_interfaces__srv__SetLoggerLevels_Event__create(void); - -/// Destroy srv/SetLoggerLevels message. -/** - * It calls - * rcl_interfaces__srv__SetLoggerLevels_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetLoggerLevels_Event__destroy(rcl_interfaces__srv__SetLoggerLevels_Event * msg); - -/// Check for srv/SetLoggerLevels message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Event__are_equal(const rcl_interfaces__srv__SetLoggerLevels_Event * lhs, const rcl_interfaces__srv__SetLoggerLevels_Event * rhs); - -/// Copy a srv/SetLoggerLevels message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Event__copy( - const rcl_interfaces__srv__SetLoggerLevels_Event * input, - rcl_interfaces__srv__SetLoggerLevels_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__SetLoggerLevels_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__SetLoggerLevels_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__SetLoggerLevels_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__SetLoggerLevels_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetLoggerLevels messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__SetLoggerLevels_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Event__Sequence__init(rcl_interfaces__srv__SetLoggerLevels_Event__Sequence * array, size_t size); - -/// Finalize array of srv/SetLoggerLevels messages. -/** - * It calls - * rcl_interfaces__srv__SetLoggerLevels_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetLoggerLevels_Event__Sequence__fini(rcl_interfaces__srv__SetLoggerLevels_Event__Sequence * array); - -/// Create array of srv/SetLoggerLevels messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__SetLoggerLevels_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetLoggerLevels_Event__Sequence * -rcl_interfaces__srv__SetLoggerLevels_Event__Sequence__create(size_t size); - -/// Destroy array of srv/SetLoggerLevels messages. -/** - * It calls - * rcl_interfaces__srv__SetLoggerLevels_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetLoggerLevels_Event__Sequence__destroy(rcl_interfaces__srv__SetLoggerLevels_Event__Sequence * array); - -/// Check for srv/SetLoggerLevels message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Event__Sequence__are_equal(const rcl_interfaces__srv__SetLoggerLevels_Event__Sequence * lhs, const rcl_interfaces__srv__SetLoggerLevels_Event__Sequence * rhs); - -/// Copy an array of srv/SetLoggerLevels messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetLoggerLevels_Event__Sequence__copy( - const rcl_interfaces__srv__SetLoggerLevels_Event__Sequence * input, - rcl_interfaces__srv__SetLoggerLevels_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__SET_LOGGER_LEVELS__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/srv/detail/set_logger_levels__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/srv/detail/set_logger_levels__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 4c29bae8d..000000000 --- a/src/rcl_interfaces/srv/detail/set_logger_levels__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:srv/SetLoggerLevels.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__DETAIL__SET_LOGGER_LEVELS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__SRV__DETAIL__SET_LOGGER_LEVELS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, SetLoggerLevels_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, SetLoggerLevels_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, SetLoggerLevels_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, SetLoggerLevels)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__SET_LOGGER_LEVELS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/srv/detail/set_logger_levels__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/srv/detail/set_logger_levels__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index f666891f9..000000000 --- a/src/rcl_interfaces/srv/detail/set_logger_levels__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:srv/SetLoggerLevels.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__SRV__SET_LOGGER_LEVELS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__SRV__SET_LOGGER_LEVELS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__SetLoggerLevels_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__SetLoggerLevels_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, SetLoggerLevels_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__SetLoggerLevels_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__SetLoggerLevels_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, SetLoggerLevels_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__SetLoggerLevels_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__SetLoggerLevels_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, SetLoggerLevels_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, SetLoggerLevels)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__SET_LOGGER_LEVELS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/srv/detail/set_logger_levels__struct.h b/src/rcl_interfaces/srv/detail/set_logger_levels__struct.h deleted file mode 100755 index cebcb8701..000000000 --- a/src/rcl_interfaces/srv/detail/set_logger_levels__struct.h +++ /dev/null @@ -1,105 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:srv/SetLoggerLevels.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/set_logger_levels.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__SET_LOGGER_LEVELS__STRUCT_H_ -#define RCL_INTERFACES__SRV__DETAIL__SET_LOGGER_LEVELS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'levels' -#include "rcl_interfaces/msg/detail/logger_level__struct.h" - -/// Struct defined in srv/SetLoggerLevels in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__SetLoggerLevels_Request -{ - rcl_interfaces__msg__LoggerLevel__Sequence levels; -} rcl_interfaces__srv__SetLoggerLevels_Request; - -// Struct for a sequence of rcl_interfaces__srv__SetLoggerLevels_Request. -typedef struct rcl_interfaces__srv__SetLoggerLevels_Request__Sequence -{ - rcl_interfaces__srv__SetLoggerLevels_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__SetLoggerLevels_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'results' -#include "rcl_interfaces/msg/detail/set_logger_levels_result__struct.h" - -/// Struct defined in srv/SetLoggerLevels in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__SetLoggerLevels_Response -{ - rcl_interfaces__msg__SetLoggerLevelsResult__Sequence results; -} rcl_interfaces__srv__SetLoggerLevels_Response; - -// Struct for a sequence of rcl_interfaces__srv__SetLoggerLevels_Response. -typedef struct rcl_interfaces__srv__SetLoggerLevels_Response__Sequence -{ - rcl_interfaces__srv__SetLoggerLevels_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__SetLoggerLevels_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - rcl_interfaces__srv__SetLoggerLevels_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - rcl_interfaces__srv__SetLoggerLevels_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/SetLoggerLevels in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__SetLoggerLevels_Event -{ - service_msgs__msg__ServiceEventInfo info; - rcl_interfaces__srv__SetLoggerLevels_Request__Sequence request; - rcl_interfaces__srv__SetLoggerLevels_Response__Sequence response; -} rcl_interfaces__srv__SetLoggerLevels_Event; - -// Struct for a sequence of rcl_interfaces__srv__SetLoggerLevels_Event. -typedef struct rcl_interfaces__srv__SetLoggerLevels_Event__Sequence -{ - rcl_interfaces__srv__SetLoggerLevels_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__SetLoggerLevels_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__SET_LOGGER_LEVELS__STRUCT_H_ diff --git a/src/rcl_interfaces/srv/detail/set_logger_levels__type_support.h b/src/rcl_interfaces/srv/detail/set_logger_levels__type_support.h deleted file mode 100755 index dbfd838fb..000000000 --- a/src/rcl_interfaces/srv/detail/set_logger_levels__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:srv/SetLoggerLevels.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/set_logger_levels.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__SET_LOGGER_LEVELS__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__SRV__DETAIL__SET_LOGGER_LEVELS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetLoggerLevels_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetLoggerLevels_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetLoggerLevels_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetLoggerLevels -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetLoggerLevels -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetLoggerLevels -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__SET_LOGGER_LEVELS__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/srv/detail/set_parameters__functions.h b/src/rcl_interfaces/srv/detail/set_parameters__functions.h deleted file mode 100755 index 5105bb8ae..000000000 --- a/src/rcl_interfaces/srv/detail/set_parameters__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:srv/SetParameters.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/set_parameters.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS__FUNCTIONS_H_ -#define RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/srv/detail/set_parameters__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__SetParameters__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__SetParameters__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__SetParameters__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__SetParameters__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/SetParameters message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__SetParameters_Request - * )) before or use - * rcl_interfaces__srv__SetParameters_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Request__init(rcl_interfaces__srv__SetParameters_Request * msg); - -/// Finalize srv/SetParameters message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParameters_Request__fini(rcl_interfaces__srv__SetParameters_Request * msg); - -/// Create srv/SetParameters message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__SetParameters_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetParameters_Request * -rcl_interfaces__srv__SetParameters_Request__create(void); - -/// Destroy srv/SetParameters message. -/** - * It calls - * rcl_interfaces__srv__SetParameters_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParameters_Request__destroy(rcl_interfaces__srv__SetParameters_Request * msg); - -/// Check for srv/SetParameters message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Request__are_equal(const rcl_interfaces__srv__SetParameters_Request * lhs, const rcl_interfaces__srv__SetParameters_Request * rhs); - -/// Copy a srv/SetParameters message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Request__copy( - const rcl_interfaces__srv__SetParameters_Request * input, - rcl_interfaces__srv__SetParameters_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__SetParameters_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__SetParameters_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__SetParameters_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__SetParameters_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetParameters messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__SetParameters_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Request__Sequence__init(rcl_interfaces__srv__SetParameters_Request__Sequence * array, size_t size); - -/// Finalize array of srv/SetParameters messages. -/** - * It calls - * rcl_interfaces__srv__SetParameters_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParameters_Request__Sequence__fini(rcl_interfaces__srv__SetParameters_Request__Sequence * array); - -/// Create array of srv/SetParameters messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__SetParameters_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetParameters_Request__Sequence * -rcl_interfaces__srv__SetParameters_Request__Sequence__create(size_t size); - -/// Destroy array of srv/SetParameters messages. -/** - * It calls - * rcl_interfaces__srv__SetParameters_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParameters_Request__Sequence__destroy(rcl_interfaces__srv__SetParameters_Request__Sequence * array); - -/// Check for srv/SetParameters message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Request__Sequence__are_equal(const rcl_interfaces__srv__SetParameters_Request__Sequence * lhs, const rcl_interfaces__srv__SetParameters_Request__Sequence * rhs); - -/// Copy an array of srv/SetParameters messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Request__Sequence__copy( - const rcl_interfaces__srv__SetParameters_Request__Sequence * input, - rcl_interfaces__srv__SetParameters_Request__Sequence * output); - -/// Initialize srv/SetParameters message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__SetParameters_Response - * )) before or use - * rcl_interfaces__srv__SetParameters_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Response__init(rcl_interfaces__srv__SetParameters_Response * msg); - -/// Finalize srv/SetParameters message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParameters_Response__fini(rcl_interfaces__srv__SetParameters_Response * msg); - -/// Create srv/SetParameters message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__SetParameters_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetParameters_Response * -rcl_interfaces__srv__SetParameters_Response__create(void); - -/// Destroy srv/SetParameters message. -/** - * It calls - * rcl_interfaces__srv__SetParameters_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParameters_Response__destroy(rcl_interfaces__srv__SetParameters_Response * msg); - -/// Check for srv/SetParameters message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Response__are_equal(const rcl_interfaces__srv__SetParameters_Response * lhs, const rcl_interfaces__srv__SetParameters_Response * rhs); - -/// Copy a srv/SetParameters message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Response__copy( - const rcl_interfaces__srv__SetParameters_Response * input, - rcl_interfaces__srv__SetParameters_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__SetParameters_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__SetParameters_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__SetParameters_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__SetParameters_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetParameters messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__SetParameters_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Response__Sequence__init(rcl_interfaces__srv__SetParameters_Response__Sequence * array, size_t size); - -/// Finalize array of srv/SetParameters messages. -/** - * It calls - * rcl_interfaces__srv__SetParameters_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParameters_Response__Sequence__fini(rcl_interfaces__srv__SetParameters_Response__Sequence * array); - -/// Create array of srv/SetParameters messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__SetParameters_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetParameters_Response__Sequence * -rcl_interfaces__srv__SetParameters_Response__Sequence__create(size_t size); - -/// Destroy array of srv/SetParameters messages. -/** - * It calls - * rcl_interfaces__srv__SetParameters_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParameters_Response__Sequence__destroy(rcl_interfaces__srv__SetParameters_Response__Sequence * array); - -/// Check for srv/SetParameters message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Response__Sequence__are_equal(const rcl_interfaces__srv__SetParameters_Response__Sequence * lhs, const rcl_interfaces__srv__SetParameters_Response__Sequence * rhs); - -/// Copy an array of srv/SetParameters messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Response__Sequence__copy( - const rcl_interfaces__srv__SetParameters_Response__Sequence * input, - rcl_interfaces__srv__SetParameters_Response__Sequence * output); - -/// Initialize srv/SetParameters message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__SetParameters_Event - * )) before or use - * rcl_interfaces__srv__SetParameters_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Event__init(rcl_interfaces__srv__SetParameters_Event * msg); - -/// Finalize srv/SetParameters message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParameters_Event__fini(rcl_interfaces__srv__SetParameters_Event * msg); - -/// Create srv/SetParameters message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__SetParameters_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetParameters_Event * -rcl_interfaces__srv__SetParameters_Event__create(void); - -/// Destroy srv/SetParameters message. -/** - * It calls - * rcl_interfaces__srv__SetParameters_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParameters_Event__destroy(rcl_interfaces__srv__SetParameters_Event * msg); - -/// Check for srv/SetParameters message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Event__are_equal(const rcl_interfaces__srv__SetParameters_Event * lhs, const rcl_interfaces__srv__SetParameters_Event * rhs); - -/// Copy a srv/SetParameters message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Event__copy( - const rcl_interfaces__srv__SetParameters_Event * input, - rcl_interfaces__srv__SetParameters_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__SetParameters_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__SetParameters_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__SetParameters_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__SetParameters_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetParameters messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__SetParameters_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Event__Sequence__init(rcl_interfaces__srv__SetParameters_Event__Sequence * array, size_t size); - -/// Finalize array of srv/SetParameters messages. -/** - * It calls - * rcl_interfaces__srv__SetParameters_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParameters_Event__Sequence__fini(rcl_interfaces__srv__SetParameters_Event__Sequence * array); - -/// Create array of srv/SetParameters messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__SetParameters_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetParameters_Event__Sequence * -rcl_interfaces__srv__SetParameters_Event__Sequence__create(size_t size); - -/// Destroy array of srv/SetParameters messages. -/** - * It calls - * rcl_interfaces__srv__SetParameters_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParameters_Event__Sequence__destroy(rcl_interfaces__srv__SetParameters_Event__Sequence * array); - -/// Check for srv/SetParameters message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Event__Sequence__are_equal(const rcl_interfaces__srv__SetParameters_Event__Sequence * lhs, const rcl_interfaces__srv__SetParameters_Event__Sequence * rhs); - -/// Copy an array of srv/SetParameters messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParameters_Event__Sequence__copy( - const rcl_interfaces__srv__SetParameters_Event__Sequence * input, - rcl_interfaces__srv__SetParameters_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/srv/detail/set_parameters__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/srv/detail/set_parameters__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 838844530..000000000 --- a/src/rcl_interfaces/srv/detail/set_parameters__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:srv/SetParameters.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, SetParameters_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, SetParameters_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, SetParameters_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, SetParameters)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/srv/detail/set_parameters__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/srv/detail/set_parameters__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ff4427bff..000000000 --- a/src/rcl_interfaces/srv/detail/set_parameters__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:srv/SetParameters.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__SRV__SET_PARAMETERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__SRV__SET_PARAMETERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__SetParameters_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__SetParameters_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, SetParameters_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__SetParameters_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__SetParameters_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, SetParameters_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__SetParameters_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__SetParameters_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, SetParameters_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, SetParameters)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__SET_PARAMETERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/srv/detail/set_parameters__struct.h b/src/rcl_interfaces/srv/detail/set_parameters__struct.h deleted file mode 100755 index c7f94597f..000000000 --- a/src/rcl_interfaces/srv/detail/set_parameters__struct.h +++ /dev/null @@ -1,105 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:srv/SetParameters.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/set_parameters.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS__STRUCT_H_ -#define RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'parameters' -#include "rcl_interfaces/msg/detail/parameter__struct.h" - -/// Struct defined in srv/SetParameters in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__SetParameters_Request -{ - rcl_interfaces__msg__Parameter__Sequence parameters; -} rcl_interfaces__srv__SetParameters_Request; - -// Struct for a sequence of rcl_interfaces__srv__SetParameters_Request. -typedef struct rcl_interfaces__srv__SetParameters_Request__Sequence -{ - rcl_interfaces__srv__SetParameters_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__SetParameters_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'results' -#include "rcl_interfaces/msg/detail/set_parameters_result__struct.h" - -/// Struct defined in srv/SetParameters in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__SetParameters_Response -{ - rcl_interfaces__msg__SetParametersResult__Sequence results; -} rcl_interfaces__srv__SetParameters_Response; - -// Struct for a sequence of rcl_interfaces__srv__SetParameters_Response. -typedef struct rcl_interfaces__srv__SetParameters_Response__Sequence -{ - rcl_interfaces__srv__SetParameters_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__SetParameters_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - rcl_interfaces__srv__SetParameters_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - rcl_interfaces__srv__SetParameters_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/SetParameters in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__SetParameters_Event -{ - service_msgs__msg__ServiceEventInfo info; - rcl_interfaces__srv__SetParameters_Request__Sequence request; - rcl_interfaces__srv__SetParameters_Response__Sequence response; -} rcl_interfaces__srv__SetParameters_Event; - -// Struct for a sequence of rcl_interfaces__srv__SetParameters_Event. -typedef struct rcl_interfaces__srv__SetParameters_Event__Sequence -{ - rcl_interfaces__srv__SetParameters_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__SetParameters_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS__STRUCT_H_ diff --git a/src/rcl_interfaces/srv/detail/set_parameters__type_support.h b/src/rcl_interfaces/srv/detail/set_parameters__type_support.h deleted file mode 100755 index c092a0608..000000000 --- a/src/rcl_interfaces/srv/detail/set_parameters__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:srv/SetParameters.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/set_parameters.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetParameters_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetParameters_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetParameters_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetParameters -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetParameters -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetParameters -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/srv/detail/set_parameters_atomically__functions.h b/src/rcl_interfaces/srv/detail/set_parameters_atomically__functions.h deleted file mode 100755 index 4eae7aa91..000000000 --- a/src/rcl_interfaces/srv/detail/set_parameters_atomically__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rcl_interfaces:srv/SetParametersAtomically.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/set_parameters_atomically.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS_ATOMICALLY__FUNCTIONS_H_ -#define RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS_ATOMICALLY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "rcl_interfaces/srv/detail/set_parameters_atomically__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__SetParametersAtomically__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__SetParametersAtomically__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__SetParametersAtomically__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__SetParametersAtomically__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/SetParametersAtomically message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__SetParametersAtomically_Request - * )) before or use - * rcl_interfaces__srv__SetParametersAtomically_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Request__init(rcl_interfaces__srv__SetParametersAtomically_Request * msg); - -/// Finalize srv/SetParametersAtomically message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParametersAtomically_Request__fini(rcl_interfaces__srv__SetParametersAtomically_Request * msg); - -/// Create srv/SetParametersAtomically message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__SetParametersAtomically_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetParametersAtomically_Request * -rcl_interfaces__srv__SetParametersAtomically_Request__create(void); - -/// Destroy srv/SetParametersAtomically message. -/** - * It calls - * rcl_interfaces__srv__SetParametersAtomically_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParametersAtomically_Request__destroy(rcl_interfaces__srv__SetParametersAtomically_Request * msg); - -/// Check for srv/SetParametersAtomically message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Request__are_equal(const rcl_interfaces__srv__SetParametersAtomically_Request * lhs, const rcl_interfaces__srv__SetParametersAtomically_Request * rhs); - -/// Copy a srv/SetParametersAtomically message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Request__copy( - const rcl_interfaces__srv__SetParametersAtomically_Request * input, - rcl_interfaces__srv__SetParametersAtomically_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__SetParametersAtomically_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__SetParametersAtomically_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__SetParametersAtomically_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__SetParametersAtomically_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetParametersAtomically messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__SetParametersAtomically_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Request__Sequence__init(rcl_interfaces__srv__SetParametersAtomically_Request__Sequence * array, size_t size); - -/// Finalize array of srv/SetParametersAtomically messages. -/** - * It calls - * rcl_interfaces__srv__SetParametersAtomically_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParametersAtomically_Request__Sequence__fini(rcl_interfaces__srv__SetParametersAtomically_Request__Sequence * array); - -/// Create array of srv/SetParametersAtomically messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__SetParametersAtomically_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetParametersAtomically_Request__Sequence * -rcl_interfaces__srv__SetParametersAtomically_Request__Sequence__create(size_t size); - -/// Destroy array of srv/SetParametersAtomically messages. -/** - * It calls - * rcl_interfaces__srv__SetParametersAtomically_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParametersAtomically_Request__Sequence__destroy(rcl_interfaces__srv__SetParametersAtomically_Request__Sequence * array); - -/// Check for srv/SetParametersAtomically message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Request__Sequence__are_equal(const rcl_interfaces__srv__SetParametersAtomically_Request__Sequence * lhs, const rcl_interfaces__srv__SetParametersAtomically_Request__Sequence * rhs); - -/// Copy an array of srv/SetParametersAtomically messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Request__Sequence__copy( - const rcl_interfaces__srv__SetParametersAtomically_Request__Sequence * input, - rcl_interfaces__srv__SetParametersAtomically_Request__Sequence * output); - -/// Initialize srv/SetParametersAtomically message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__SetParametersAtomically_Response - * )) before or use - * rcl_interfaces__srv__SetParametersAtomically_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Response__init(rcl_interfaces__srv__SetParametersAtomically_Response * msg); - -/// Finalize srv/SetParametersAtomically message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParametersAtomically_Response__fini(rcl_interfaces__srv__SetParametersAtomically_Response * msg); - -/// Create srv/SetParametersAtomically message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__SetParametersAtomically_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetParametersAtomically_Response * -rcl_interfaces__srv__SetParametersAtomically_Response__create(void); - -/// Destroy srv/SetParametersAtomically message. -/** - * It calls - * rcl_interfaces__srv__SetParametersAtomically_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParametersAtomically_Response__destroy(rcl_interfaces__srv__SetParametersAtomically_Response * msg); - -/// Check for srv/SetParametersAtomically message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Response__are_equal(const rcl_interfaces__srv__SetParametersAtomically_Response * lhs, const rcl_interfaces__srv__SetParametersAtomically_Response * rhs); - -/// Copy a srv/SetParametersAtomically message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Response__copy( - const rcl_interfaces__srv__SetParametersAtomically_Response * input, - rcl_interfaces__srv__SetParametersAtomically_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__SetParametersAtomically_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__SetParametersAtomically_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__SetParametersAtomically_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__SetParametersAtomically_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetParametersAtomically messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__SetParametersAtomically_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Response__Sequence__init(rcl_interfaces__srv__SetParametersAtomically_Response__Sequence * array, size_t size); - -/// Finalize array of srv/SetParametersAtomically messages. -/** - * It calls - * rcl_interfaces__srv__SetParametersAtomically_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParametersAtomically_Response__Sequence__fini(rcl_interfaces__srv__SetParametersAtomically_Response__Sequence * array); - -/// Create array of srv/SetParametersAtomically messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__SetParametersAtomically_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetParametersAtomically_Response__Sequence * -rcl_interfaces__srv__SetParametersAtomically_Response__Sequence__create(size_t size); - -/// Destroy array of srv/SetParametersAtomically messages. -/** - * It calls - * rcl_interfaces__srv__SetParametersAtomically_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParametersAtomically_Response__Sequence__destroy(rcl_interfaces__srv__SetParametersAtomically_Response__Sequence * array); - -/// Check for srv/SetParametersAtomically message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Response__Sequence__are_equal(const rcl_interfaces__srv__SetParametersAtomically_Response__Sequence * lhs, const rcl_interfaces__srv__SetParametersAtomically_Response__Sequence * rhs); - -/// Copy an array of srv/SetParametersAtomically messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Response__Sequence__copy( - const rcl_interfaces__srv__SetParametersAtomically_Response__Sequence * input, - rcl_interfaces__srv__SetParametersAtomically_Response__Sequence * output); - -/// Initialize srv/SetParametersAtomically message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rcl_interfaces__srv__SetParametersAtomically_Event - * )) before or use - * rcl_interfaces__srv__SetParametersAtomically_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Event__init(rcl_interfaces__srv__SetParametersAtomically_Event * msg); - -/// Finalize srv/SetParametersAtomically message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParametersAtomically_Event__fini(rcl_interfaces__srv__SetParametersAtomically_Event * msg); - -/// Create srv/SetParametersAtomically message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rcl_interfaces__srv__SetParametersAtomically_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetParametersAtomically_Event * -rcl_interfaces__srv__SetParametersAtomically_Event__create(void); - -/// Destroy srv/SetParametersAtomically message. -/** - * It calls - * rcl_interfaces__srv__SetParametersAtomically_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParametersAtomically_Event__destroy(rcl_interfaces__srv__SetParametersAtomically_Event * msg); - -/// Check for srv/SetParametersAtomically message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Event__are_equal(const rcl_interfaces__srv__SetParametersAtomically_Event * lhs, const rcl_interfaces__srv__SetParametersAtomically_Event * rhs); - -/// Copy a srv/SetParametersAtomically message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Event__copy( - const rcl_interfaces__srv__SetParametersAtomically_Event * input, - rcl_interfaces__srv__SetParametersAtomically_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_type_hash_t * -rcl_interfaces__srv__SetParametersAtomically_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -rcl_interfaces__srv__SetParametersAtomically_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource * -rcl_interfaces__srv__SetParametersAtomically_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rcl_interfaces__srv__SetParametersAtomically_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetParametersAtomically messages. -/** - * It allocates the memory for the number of elements and calls - * rcl_interfaces__srv__SetParametersAtomically_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Event__Sequence__init(rcl_interfaces__srv__SetParametersAtomically_Event__Sequence * array, size_t size); - -/// Finalize array of srv/SetParametersAtomically messages. -/** - * It calls - * rcl_interfaces__srv__SetParametersAtomically_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParametersAtomically_Event__Sequence__fini(rcl_interfaces__srv__SetParametersAtomically_Event__Sequence * array); - -/// Create array of srv/SetParametersAtomically messages. -/** - * It allocates the memory for the array and calls - * rcl_interfaces__srv__SetParametersAtomically_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -rcl_interfaces__srv__SetParametersAtomically_Event__Sequence * -rcl_interfaces__srv__SetParametersAtomically_Event__Sequence__create(size_t size); - -/// Destroy array of srv/SetParametersAtomically messages. -/** - * It calls - * rcl_interfaces__srv__SetParametersAtomically_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void -rcl_interfaces__srv__SetParametersAtomically_Event__Sequence__destroy(rcl_interfaces__srv__SetParametersAtomically_Event__Sequence * array); - -/// Check for srv/SetParametersAtomically message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Event__Sequence__are_equal(const rcl_interfaces__srv__SetParametersAtomically_Event__Sequence * lhs, const rcl_interfaces__srv__SetParametersAtomically_Event__Sequence * rhs); - -/// Copy an array of srv/SetParametersAtomically messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -rcl_interfaces__srv__SetParametersAtomically_Event__Sequence__copy( - const rcl_interfaces__srv__SetParametersAtomically_Event__Sequence * input, - rcl_interfaces__srv__SetParametersAtomically_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS_ATOMICALLY__FUNCTIONS_H_ diff --git a/src/rcl_interfaces/srv/detail/set_parameters_atomically__rosidl_typesupport_introspection_c.h b/src/rcl_interfaces/srv/detail/set_parameters_atomically__rosidl_typesupport_introspection_c.h deleted file mode 100755 index ae9bd041a..000000000 --- a/src/rcl_interfaces/srv/detail/set_parameters_atomically__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rcl_interfaces:srv/SetParametersAtomically.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS_ATOMICALLY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS_ATOMICALLY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, SetParametersAtomically_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, SetParametersAtomically_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, SetParametersAtomically_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rcl_interfaces, srv, SetParametersAtomically)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS_ATOMICALLY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rcl_interfaces/srv/detail/set_parameters_atomically__rosidl_typesupport_microxrcedds_c.h b/src/rcl_interfaces/srv/detail/set_parameters_atomically__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 052bb16c5..000000000 --- a/src/rcl_interfaces/srv/detail/set_parameters_atomically__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rcl_interfaces:srv/SetParametersAtomically.idl -// generated code does not contain a copyright notice -#ifndef RCL_INTERFACES__SRV__SET_PARAMETERS_ATOMICALLY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define RCL_INTERFACES__SRV__SET_PARAMETERS_ATOMICALLY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__SetParametersAtomically_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__SetParametersAtomically_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, SetParametersAtomically_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__SetParametersAtomically_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__SetParametersAtomically_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, SetParametersAtomically_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t get_serialized_size_rcl_interfaces__srv__SetParametersAtomically_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -size_t max_serialized_size_rcl_interfaces__srv__SetParametersAtomically_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, SetParametersAtomically_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "rcl_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rcl_interfaces, srv, SetParametersAtomically)(); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__SET_PARAMETERS_ATOMICALLY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rcl_interfaces/srv/detail/set_parameters_atomically__struct.h b/src/rcl_interfaces/srv/detail/set_parameters_atomically__struct.h deleted file mode 100755 index 5c2f942d2..000000000 --- a/src/rcl_interfaces/srv/detail/set_parameters_atomically__struct.h +++ /dev/null @@ -1,105 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rcl_interfaces:srv/SetParametersAtomically.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/set_parameters_atomically.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS_ATOMICALLY__STRUCT_H_ -#define RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS_ATOMICALLY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'parameters' -#include "rcl_interfaces/msg/detail/parameter__struct.h" - -/// Struct defined in srv/SetParametersAtomically in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__SetParametersAtomically_Request -{ - rcl_interfaces__msg__Parameter__Sequence parameters; -} rcl_interfaces__srv__SetParametersAtomically_Request; - -// Struct for a sequence of rcl_interfaces__srv__SetParametersAtomically_Request. -typedef struct rcl_interfaces__srv__SetParametersAtomically_Request__Sequence -{ - rcl_interfaces__srv__SetParametersAtomically_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__SetParametersAtomically_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'result' -#include "rcl_interfaces/msg/detail/set_parameters_result__struct.h" - -/// Struct defined in srv/SetParametersAtomically in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__SetParametersAtomically_Response -{ - rcl_interfaces__msg__SetParametersResult result; -} rcl_interfaces__srv__SetParametersAtomically_Response; - -// Struct for a sequence of rcl_interfaces__srv__SetParametersAtomically_Response. -typedef struct rcl_interfaces__srv__SetParametersAtomically_Response__Sequence -{ - rcl_interfaces__srv__SetParametersAtomically_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__SetParametersAtomically_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - rcl_interfaces__srv__SetParametersAtomically_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - rcl_interfaces__srv__SetParametersAtomically_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/SetParametersAtomically in the package rcl_interfaces. -typedef struct rcl_interfaces__srv__SetParametersAtomically_Event -{ - service_msgs__msg__ServiceEventInfo info; - rcl_interfaces__srv__SetParametersAtomically_Request__Sequence request; - rcl_interfaces__srv__SetParametersAtomically_Response__Sequence response; -} rcl_interfaces__srv__SetParametersAtomically_Event; - -// Struct for a sequence of rcl_interfaces__srv__SetParametersAtomically_Event. -typedef struct rcl_interfaces__srv__SetParametersAtomically_Event__Sequence -{ - rcl_interfaces__srv__SetParametersAtomically_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rcl_interfaces__srv__SetParametersAtomically_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS_ATOMICALLY__STRUCT_H_ diff --git a/src/rcl_interfaces/srv/detail/set_parameters_atomically__type_support.h b/src/rcl_interfaces/srv/detail/set_parameters_atomically__type_support.h deleted file mode 100755 index 8486155cd..000000000 --- a/src/rcl_interfaces/srv/detail/set_parameters_atomically__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rcl_interfaces:srv/SetParametersAtomically.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rcl_interfaces/srv/set_parameters_atomically.h" - - -#ifndef RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS_ATOMICALLY__TYPE_SUPPORT_H_ -#define RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS_ATOMICALLY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rcl_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetParametersAtomically_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetParametersAtomically_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetParametersAtomically_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetParametersAtomically -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetParametersAtomically -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_rcl_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rcl_interfaces, - srv, - SetParametersAtomically -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_INTERFACES__SRV__DETAIL__SET_PARAMETERS_ATOMICALLY__TYPE_SUPPORT_H_ diff --git a/src/rcl_interfaces/srv/get_logger_levels.h b/src/rcl_interfaces/srv/get_logger_levels.h deleted file mode 100755 index d578c457d..000000000 --- a/src/rcl_interfaces/srv/get_logger_levels.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:srv/GetLoggerLevels.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__GET_LOGGER_LEVELS_H_ -#define RCL_INTERFACES__SRV__GET_LOGGER_LEVELS_H_ - -#include "rcl_interfaces/srv/detail/get_logger_levels__struct.h" -#include "rcl_interfaces/srv/detail/get_logger_levels__functions.h" -#include "rcl_interfaces/srv/detail/get_logger_levels__type_support.h" - -#endif // RCL_INTERFACES__SRV__GET_LOGGER_LEVELS_H_ diff --git a/src/rcl_interfaces/srv/get_parameter_types.h b/src/rcl_interfaces/srv/get_parameter_types.h deleted file mode 100755 index a5cd3c728..000000000 --- a/src/rcl_interfaces/srv/get_parameter_types.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:srv/GetParameterTypes.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__GET_PARAMETER_TYPES_H_ -#define RCL_INTERFACES__SRV__GET_PARAMETER_TYPES_H_ - -#include "rcl_interfaces/srv/detail/get_parameter_types__struct.h" -#include "rcl_interfaces/srv/detail/get_parameter_types__functions.h" -#include "rcl_interfaces/srv/detail/get_parameter_types__type_support.h" - -#endif // RCL_INTERFACES__SRV__GET_PARAMETER_TYPES_H_ diff --git a/src/rcl_interfaces/srv/get_parameters.h b/src/rcl_interfaces/srv/get_parameters.h deleted file mode 100755 index 2e6ed240e..000000000 --- a/src/rcl_interfaces/srv/get_parameters.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:srv/GetParameters.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__GET_PARAMETERS_H_ -#define RCL_INTERFACES__SRV__GET_PARAMETERS_H_ - -#include "rcl_interfaces/srv/detail/get_parameters__struct.h" -#include "rcl_interfaces/srv/detail/get_parameters__functions.h" -#include "rcl_interfaces/srv/detail/get_parameters__type_support.h" - -#endif // RCL_INTERFACES__SRV__GET_PARAMETERS_H_ diff --git a/src/rcl_interfaces/srv/list_parameters.h b/src/rcl_interfaces/srv/list_parameters.h deleted file mode 100755 index cd22d834c..000000000 --- a/src/rcl_interfaces/srv/list_parameters.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:srv/ListParameters.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__LIST_PARAMETERS_H_ -#define RCL_INTERFACES__SRV__LIST_PARAMETERS_H_ - -#include "rcl_interfaces/srv/detail/list_parameters__struct.h" -#include "rcl_interfaces/srv/detail/list_parameters__functions.h" -#include "rcl_interfaces/srv/detail/list_parameters__type_support.h" - -#endif // RCL_INTERFACES__SRV__LIST_PARAMETERS_H_ diff --git a/src/rcl_interfaces/srv/set_logger_levels.h b/src/rcl_interfaces/srv/set_logger_levels.h deleted file mode 100755 index d8d07d9a0..000000000 --- a/src/rcl_interfaces/srv/set_logger_levels.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:srv/SetLoggerLevels.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__SET_LOGGER_LEVELS_H_ -#define RCL_INTERFACES__SRV__SET_LOGGER_LEVELS_H_ - -#include "rcl_interfaces/srv/detail/set_logger_levels__struct.h" -#include "rcl_interfaces/srv/detail/set_logger_levels__functions.h" -#include "rcl_interfaces/srv/detail/set_logger_levels__type_support.h" - -#endif // RCL_INTERFACES__SRV__SET_LOGGER_LEVELS_H_ diff --git a/src/rcl_interfaces/srv/set_parameters.h b/src/rcl_interfaces/srv/set_parameters.h deleted file mode 100755 index c123391b0..000000000 --- a/src/rcl_interfaces/srv/set_parameters.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:srv/SetParameters.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__SET_PARAMETERS_H_ -#define RCL_INTERFACES__SRV__SET_PARAMETERS_H_ - -#include "rcl_interfaces/srv/detail/set_parameters__struct.h" -#include "rcl_interfaces/srv/detail/set_parameters__functions.h" -#include "rcl_interfaces/srv/detail/set_parameters__type_support.h" - -#endif // RCL_INTERFACES__SRV__SET_PARAMETERS_H_ diff --git a/src/rcl_interfaces/srv/set_parameters_atomically.h b/src/rcl_interfaces/srv/set_parameters_atomically.h deleted file mode 100755 index 671403cac..000000000 --- a/src/rcl_interfaces/srv/set_parameters_atomically.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rcl_interfaces:srv/SetParametersAtomically.idl -// generated code does not contain a copyright notice - -#ifndef RCL_INTERFACES__SRV__SET_PARAMETERS_ATOMICALLY_H_ -#define RCL_INTERFACES__SRV__SET_PARAMETERS_ATOMICALLY_H_ - -#include "rcl_interfaces/srv/detail/set_parameters_atomically__struct.h" -#include "rcl_interfaces/srv/detail/set_parameters_atomically__functions.h" -#include "rcl_interfaces/srv/detail/set_parameters_atomically__type_support.h" - -#endif // RCL_INTERFACES__SRV__SET_PARAMETERS_ATOMICALLY_H_ diff --git a/src/rcl_lifecycle/data_types.h b/src/rcl_lifecycle/data_types.h deleted file mode 100755 index 6a00233eb..000000000 --- a/src/rcl_lifecycle/data_types.h +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_LIFECYCLE__DATA_TYPES_H_ -#define RCL_LIFECYCLE__DATA_TYPES_H_ - -#include "rcl/rcl.h" - -#include "rcl_lifecycle/visibility_control.h" - -#include "lifecycle_msgs/msg/transition_event.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -typedef struct rcl_lifecycle_transition_s rcl_lifecycle_transition_t; - -/// It contains the state of the lifecycle state machine -typedef struct rcl_lifecycle_state_s -{ - /// String with state name: Unconfigured, Inactive, Active or Finalized - const char * label; - /// Identifier of the state - uint8_t id; - - /// Pointer to a struct with the valid transitions - rcl_lifecycle_transition_t * valid_transitions; - /// Number of valid transitions - unsigned int valid_transition_size; -} rcl_lifecycle_state_t; - -/// It contains the transitions of the lifecycle state machine -typedef struct rcl_lifecycle_transition_s -{ - /// String with transition name: configuring, cleaningup, activating, deactivating, - /// errorprocessing or shuttingdown. - const char * label; - /// Identifier of the transition - unsigned int id; - /// The value where the transition is initialized - rcl_lifecycle_state_t * start; - /// The objetive of the transition - rcl_lifecycle_state_t * goal; -} rcl_lifecycle_transition_t; - -/// It contains the transition map states and transitions -typedef struct rcl_lifecycle_transition_map_s -{ - /// States used to generate the transition map - rcl_lifecycle_state_t * states; - /// Number of states - unsigned int states_size; - /// Transitions used to generate the transition map - rcl_lifecycle_transition_t * transitions; - /// Number of transitions - unsigned int transitions_size; -} rcl_lifecycle_transition_map_t; - -/// It contains the communication interface with the ROS world -typedef struct rcl_lifecycle_com_interface_s -{ - /// Handle to the node used to create the publisher and the services - rcl_node_t * node_handle; - /// Event used to publish the transitions - rcl_publisher_t pub_transition_event; - /// Service that allows to trigger changes on the state - rcl_service_t srv_change_state; - /// Service that allows to get the current state - rcl_service_t srv_get_state; - /// Service that allows to get the available states - rcl_service_t srv_get_available_states; - /// Service that allows to get the available transitions - rcl_service_t srv_get_available_transitions; - /// Service that allows to get transitions from the graph - rcl_service_t srv_get_transition_graph; - /// Cached transition event message. - lifecycle_msgs__msg__TransitionEvent msg; -} rcl_lifecycle_com_interface_t; - -/// It contains various options to configure the rcl_lifecycle_state_machine_t instance -typedef struct rcl_lifecycle_state_machine_options_s -{ - /// Flag indicating whether the state machine shall be initialized with default states - bool initialize_default_states; - /// Flag indicating whether the com interface shall be used or not - bool enable_com_interface; - /// Allocator used for allocating states and transitions - rcl_allocator_t allocator; -} rcl_lifecycle_state_machine_options_t; - -/// It contains the state machine data -typedef struct rcl_lifecycle_state_machine_s -{ - /// Current state of the state machine - const rcl_lifecycle_state_t * current_state; - /// Map/Associated array of registered states and transitions - rcl_lifecycle_transition_map_t transition_map; - /// Communication interface into a ROS world - rcl_lifecycle_com_interface_t com_interface; - /// Options struct with which the state machine was initialized - rcl_lifecycle_state_machine_options_t options; -} rcl_lifecycle_state_machine_t; - -#ifdef __cplusplus -} -#endif - -#endif // RCL_LIFECYCLE__DATA_TYPES_H_ diff --git a/src/rcl_lifecycle/default_state_machine.h b/src/rcl_lifecycle/default_state_machine.h deleted file mode 100755 index 1275ead4f..000000000 --- a/src/rcl_lifecycle/default_state_machine.h +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_LIFECYCLE__DEFAULT_STATE_MACHINE_H_ -#define RCL_LIFECYCLE__DEFAULT_STATE_MACHINE_H_ - -#include "rcl/macros.h" -#include "rcl/types.h" - -#include "rcl_lifecycle/data_types.h" -#include "rcl_lifecycle/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -RCL_LIFECYCLE_PUBLIC extern const char * rcl_lifecycle_configure_label; -RCL_LIFECYCLE_PUBLIC extern const char * rcl_lifecycle_cleanup_label; -RCL_LIFECYCLE_PUBLIC extern const char * rcl_lifecycle_activate_label; -RCL_LIFECYCLE_PUBLIC extern const char * rcl_lifecycle_deactivate_label; -RCL_LIFECYCLE_PUBLIC extern const char * rcl_lifecycle_shutdown_label; - -RCL_LIFECYCLE_PUBLIC extern const char * rcl_lifecycle_transition_success_label; -RCL_LIFECYCLE_PUBLIC extern const char * rcl_lifecycle_transition_failure_label; -RCL_LIFECYCLE_PUBLIC extern const char * rcl_lifecycle_transition_error_label; - -/// Initialize a default state machine -/* - * This function initializes a default state machine. It registers all: primary states, - * transition states, transitions and the initial state. The primary state is unconfigured. - * - * States: unknown, unconfigured, inactive, active and finalized. - * Transition states: configuring, cleaningup, activating, deactivating, errorprocessing - * and shuttingdown. - * Transitions: - * - unconfigured to configuring - * - unconfigured to shuttingdown - * - configuring to inactive - * - configuring to unconfigured - * - configuring to errorprocessing - * - inactive to activating - * - inactive to cleaningup - * - inactive to shuttingdown - * - cleaningup to unconfigured - * - cleaningup to inactive - * - cleaniningup to errorprocessing - * - activating to active - * - activating to inactive - * - activating to errorprocessing - * - active to deactivating - * - active to shuttingdown - * - deactivating to inactive - * - deactivating to active - * - deactivating to errorprocessing - * - shutting down to finalized - * - shutting down to finalized - * - shutting down to errorprocessing - * - errorprocessing to uncofigured - * - errorprocessing to finalized - * - errorprocessing to finalized - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] state_machine struct to be initialized - * \param[in] allocator a valid allocator used to initialized the state machine - * \return `RCL_RET_OK` if the state machine was initialized successfully, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_init_default_state_machine( - rcl_lifecycle_state_machine_t * state_machine, const rcl_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_LIFECYCLE__DEFAULT_STATE_MACHINE_H_ diff --git a/src/rcl_lifecycle/rcl_lifecycle.h b/src/rcl_lifecycle/rcl_lifecycle.h deleted file mode 100755 index 7f171b1ce..000000000 --- a/src/rcl_lifecycle/rcl_lifecycle.h +++ /dev/null @@ -1,444 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** \mainpage rcl: Common functionality ROS lifecycle - * - * `rcl_lifecycle` provides a pure C implementation of the ROS concept of lifecycle. - * It builds on top of the implementation of topics and services in `rcl`. - * - * `rcl_lifecycle` consists of functions and structs for the following ROS lifecycle entities: - * - * - Lifecycle states - * - Lifecycle transitions - * - Lifecycle state machine - * - Lifecycle triggers - * - * Some useful abstractions: - * - * - Return codes and other types - * - rcl_lifecycle/data_types.h - */ - -#ifndef RCL_LIFECYCLE__RCL_LIFECYCLE_H_ -#define RCL_LIFECYCLE__RCL_LIFECYCLE_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcl_lifecycle/data_types.h" -#include "rcl_lifecycle/default_state_machine.h" -#include "rcl_lifecycle/visibility_control.h" - -/// Return a rcl_lifecycle_state_t struct with members set to `NULL` or 0. -/** - * Should be called to get a null rcl_lifecycle_state_t before passing to - * rcl_lifecycle_state_init(). - * - * \return rcl_lifecycle_state_t a initilized struct - */ -RCL_LIFECYCLE_PUBLIC -rcl_lifecycle_state_t -rcl_lifecycle_get_zero_initialized_state(void); - -/// Initialize a rcl_lifecycle_state_init. -/** - * This function initializes a state based on an `id` and a `label`. - * - * The given `rcl_lifecycle_state_t` must be zero initialized with the function - * `rcl_lifecycle_get_zero_initialized_state()` and must not be already initialized - * by this function. - * The allocator will be used to allocate the label string. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] state pointer to the state struct to be initialized - * \param[in] id identifier of the state - * \param[in] label label of the state - * \param[in] allocator a valid allocator used to initialized the lifecycle state - * \return `RCL_RET_OK` if state was initialized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_state_init( - rcl_lifecycle_state_t * state, - uint8_t id, - const char * label, - const rcl_allocator_t * allocator); - -/// Finalize a rcl_lifecycle_state_t. -/** - * - * Calling this will set the rcl_lifecycle_state_t struct into the an unitialized state that is - * functionally the same as before rcl_lifecycle_state_init was called. This function make the - * rcl_lifecycle_state_t invalid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] state struct to be finalized - * \param[in] allocator a valid allocator used to finalize the lifecycle state - * \return `RCL_RET_OK` if the state was finalized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_state_fini( - rcl_lifecycle_state_t * state, - const rcl_allocator_t * allocator); - -/// Return a rcl_lifecycle_transition_t struct with members set to `NULL` or 0. -/** - * Should be called to get a null rcl_lifecycle_transition_t before passing to - * rcl_lifecycle_transition_init(). - */ -RCL_LIFECYCLE_PUBLIC -rcl_lifecycle_transition_t -rcl_lifecycle_get_zero_initialized_transition(void); - -/// Initialize a transition from a start state to the goal state. -/** - * The given `rcl_lifecycle_transition_t` must be zero initialized with the function - * `rcl_lifecycle_get_zero_initialized_transition()` and must not be already initialized - * by this function. - * The allocator will be used to allocate the label string and the rcl_lifecycle_state_t structs. - * - * Note: the transition pointer will take ownership - * of the start and goal state. When calling - * rcl_lifecycle_transition_fini(), the two states - * will be freed. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] transition to a preallocated, zero-initialized transition structure - * to be initialized. - * \param[in] id identifier of the transition - * \param[in] label label of the transition - * \param[in] start the value where the transition is initialized - * \param[in] goal the objetive of the transition - * \param[in] allocator a valid allocator used to finalize the lifecycle state - * \return `RCL_RET_OK` if the transition is initialized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_transition_init( - rcl_lifecycle_transition_t * transition, - unsigned int id, - const char * label, - rcl_lifecycle_state_t * start, - rcl_lifecycle_state_t * goal, - const rcl_allocator_t * allocator); - -/// Finalize a rcl_lifecycle_transition_t. -/** - * Calling this will set the rcl_lifecycle_transition_t struct into the an unitialized state that is - * functionally the same as before rcl_lifecycle_transition_init was called. This function make the - * rcl_lifecycle_transition_t invalid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] transition struct to be finalized - * \param[in] allocator a valid allocator used to finalize the transition - * \return `RCL_RET_OK` if the state was finalized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_transition_fini( - rcl_lifecycle_transition_t * transition, - const rcl_allocator_t * allocator); - -/// Return a default initialized state machine options struct. -RCL_LIFECYCLE_PUBLIC -rcl_lifecycle_state_machine_options_t -rcl_lifecycle_get_default_state_machine_options(void); - -/// Return a rcl_lifecycle_state_machine_t struct with members set to `NULL` or 0. -/** - * Should be called to get a null rcl_lifecycle_state_machine_t before passing to - * rcl_lifecycle_state_machine_init(). - */ -RCL_LIFECYCLE_PUBLIC -rcl_lifecycle_state_machine_t -rcl_lifecycle_get_zero_initialized_state_machine(void); - -/// Initialize state machine -/** - * This function initialize the state machine: one publisher to publish transitions messages - * and a set of services to get information about states and transitions. - * If `default_state` is `true` then a new default state machine is initialized. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] state_machine struct to be initialized - * \param[in] node_handle a valid (not finalized) handle to the node used to create the publisher - * and the services - * \param[in] ts_pub_notify pointer to transition publisher, it used to publish the transitions - * \param[in] ts_srv_change_state pointer to the service that allows to trigger changes on the state - * \param[in] ts_srv_get_state pointer to the service that allows to get the current state - * \param[in] ts_srv_get_available_states pointer to the service that allows to get the available states - * \param[in] ts_srv_get_available_transitions pointer to the service that allows to get the - * available transitions - * \param[in] ts_srv_get_transition_graph pointer to the service that allows to get transitions from - * the graph - * \param[in] state_machine_options collection of config options for initializing the state machine - * \return `RCL_RET_OK` if the state machine was initialized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if input params is NULL, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_state_machine_init( - rcl_lifecycle_state_machine_t * state_machine, - rcl_node_t * node_handle, - const rosidl_message_type_support_t * ts_pub_notify, - const rosidl_service_type_support_t * ts_srv_change_state, - const rosidl_service_type_support_t * ts_srv_get_state, - const rosidl_service_type_support_t * ts_srv_get_available_states, - const rosidl_service_type_support_t * ts_srv_get_available_transitions, - const rosidl_service_type_support_t * ts_srv_get_transition_graph, - const rcl_lifecycle_state_machine_options_t * state_machine_options); - -/// Finalize a rcl_lifecycle_state_machine_t. -/** - * Calling this will set the rcl_lifecycle_state_machine_t struct into the an unitialized state that is - * functionally the same as before rcl_lifecycle_state_machine_init was called. This function make the - * rcl_lifecycle_state_machine_t invalid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] state_machine struct to be finalized - * \param[in] node_handle valid (not finalized) handle to the node - * \return `RCL_RET_OK` if the state was finalized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_state_machine_fini( - rcl_lifecycle_state_machine_t * state_machine, - rcl_node_t * node_handle); - -/// Check if a state machine is active. -/** - * If the state is initialized then returns `RCL_RET_OK`, otherwise returns `RCL_RET_ERROR` - * In the case where `RCL_RET_ERROR` is to be returned, an error message is set. - * This function cannot fail. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] state_machine pointer to the state machine struct - * \return `RCL_RET_OK` if the state is initialized, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_state_machine_is_initialized( - const rcl_lifecycle_state_machine_t * state_machine); - -/// Get a state by id. -/** - * A pointer to the internally transition struct is returned - * based on the `id`. If the `id` is not set in the state then returns NULL. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] state pointer to the state struct - * \param[in] id identifier to be find in the valid transitions - * \return a pointer to the lifecycle transition if the `id` exists or otherwise it return NULL - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -const rcl_lifecycle_transition_t * -rcl_lifecycle_get_transition_by_id( - const rcl_lifecycle_state_t * state, - uint8_t id); - -/// Get a state by id. -/** - * A pointer to the internally transition struct is returned - * based on the `label`. If the `label` is not set in the state then returns NULL. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] state pointer to the state struct - * \param[in] label label to be find in the valid transitions - * \return a pointer to the lifecycle transition if the label exists or otherwise it return NULL - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -const rcl_lifecycle_transition_t * -rcl_lifecycle_get_transition_by_label( - const rcl_lifecycle_state_t * state, - const char * label); - -/// Trigger a state by id. -/** - * This function will trigger a transition based on the `id`. If the argument - * `publish_notification` is `true` then a message will be published in the - * ROS 2 network notifying the transition, if `false` no message will be published. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] state_machine pointer to the state machine struct - * \param[in] id identifier of the transition to be triggered - * \param[in] publish_notification if the value is `true` a message will be published - * notifying the transition, otherwise no message will be published - * \return `RCL_RET_OK` if the transition was triggered successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_trigger_transition_by_id( - rcl_lifecycle_state_machine_t * state_machine, - uint8_t id, - bool publish_notification); - -/// Trigger a state by label. -/** - * This function will trigger a transition base on the `label`. If the argument - * `publish_notification` is `true` then a message will be published in the - * ROS 2 network notifying the transition, if `false` no message will be published. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] state_machine pointer to the state machine struct - * \param[in] label of the transition to be triggered - * \param[in] publish_notification if the value is `true` a message will be published - * notifying the transition, otherwise no message will be published - * \return `RCL_RET_OK` if the transition was triggered successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_trigger_transition_by_label( - rcl_lifecycle_state_machine_t * state_machine, - const char * label, - bool publish_notification); - -/// Log the state machine data -/** - * This function will log the all data in the state machine - * rcl_lifecycle_state_machine_t struct. - * - * the logging level must be INFO or a more verbose level (e.g., DEBUG). - * - * \param[in] state_machine pointer to the state machine struct to log - */ -RCL_LIFECYCLE_PUBLIC -void -rcl_print_state_machine(const rcl_lifecycle_state_machine_t * state_machine); - -/// Log the transition map -/** - * This function will log the all data in the transition map - * rcl_lifecycle_state_machine_t struct. - * - * the logging level must be INFO or a more verbose level (e.g., DEBUG). - * - * \param[in] transition_map pointer to the transition map to log - */ -RCL_LIFECYCLE_PUBLIC -void -rcl_print_transition_map(const rcl_lifecycle_transition_map_t * transition_map); - -#ifdef __cplusplus -} -#endif // extern "C" - -#endif // RCL_LIFECYCLE__RCL_LIFECYCLE_H_ diff --git a/src/rcl_lifecycle/transition_map.h b/src/rcl_lifecycle/transition_map.h deleted file mode 100755 index 1a710a8c9..000000000 --- a/src/rcl_lifecycle/transition_map.h +++ /dev/null @@ -1,198 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - - -#ifndef RCL_LIFECYCLE__TRANSITION_MAP_H_ -#define RCL_LIFECYCLE__TRANSITION_MAP_H_ - -#include "rcl/macros.h" - -#include "rcl_lifecycle/data_types.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Initialize a rcl_lifecycle_state_init. -/* - * Should be called to get a null rcl_lifecycle_transition_map_t before passing to - * rcl_lifecycle_register_state() or rcl_lifecycle_register_transition(). - * - * \return rcl_lifecycle_transition_map_t a initilized struct - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_lifecycle_transition_map_t -rcl_lifecycle_get_zero_initialized_transition_map(void); - -/// Check if a transition map is active using a rcl_lifecycle_state_machine_t. -/* - * The function checks if the transition map is initialized. It returns `RCL_RET_OK` - * if the transition map is initialized successfully or `RCL_RET_ERROR` if the transition - * map is not initialized. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] transition_map pointer to the transition map struct to check - * \return `RCL_RET_OK` if the transition map is initialized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if the transition map is not initialized. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_transition_map_is_initialized( - const rcl_lifecycle_transition_map_t * transition_map); - -/// Finalize a rcl_lifecycle_transition_map_t. -/* - * Calling this will set the rcl_lifecycle_transition_map_t struct into the an unitialized state that is - * functionally the same as before rcl_lifecycle_register_state or - * rcl_lifecycle_register_transition was called. This function make the rcl_lifecycle_transition_map_t invalid. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] transition_map struct to be deinitialized - * \param[in] allocator a valid allocator used to deinitialized the state machine - * \return `RCL_RET_OK` if the state was deinitialized successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_transition_map_fini( - rcl_lifecycle_transition_map_t * transition_map, - const rcl_allocator_t * allocator); - -/// Register a state -/* - * This function registers a new state in the transition map. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] transition_map to be modified - * \param[in] state the state to register - * \param[in] allocator a valid allocator used to register the state machine - * \return `RCL_RET_OK` if the state was registered successfully, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_LIFECYCLE_STATE_REGISTERED` if state is already registered. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_register_state( - rcl_lifecycle_transition_map_t * transition_map, - rcl_lifecycle_state_t state, - const rcl_allocator_t * allocator); - -/// Register a transition -/* - * This function registers a new transition in the transition map. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] transition_map to be modified - * \param[in] transition the transition to register - * \param[in] allocator a valid allocator used to register the state machine - * \return `RCL_RET_OK` if the state was deinitialized successfully, or - * \return `RCL_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RCL_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RCL_RET_LIFECYCLE_STATE_NOT_REGISTERED` if state is not registered, or - * \return `RCL_RET_ERROR` if an unspecified error occurs. - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_ret_t -rcl_lifecycle_register_transition( - rcl_lifecycle_transition_map_t * transition_map, - rcl_lifecycle_transition_t transition, - const rcl_allocator_t * allocator); - -/// Get the state from a transition map based on the state id -/* - * A pointer to the internally lifecycle state struct is returned based on the `id`. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] transition_map - * \param[in] state_id - * \return pointer to a rcl_lifecycle_state_t or NULL if the state id doesn't exist - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_lifecycle_state_t * -rcl_lifecycle_get_state( - rcl_lifecycle_transition_map_t * transition_map, - unsigned int state_id); - -/// Get the state from a transition map based on the state id -/* - * A pointer to the internally lifecycle transition struct is returned based on the `label`. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] transition_map to be modified - * \param[in] state_id used to get the label to search - * \return pointer to a rcl_lifecycle_state_t or NULL if the state id doesn't exist - */ -RCL_LIFECYCLE_PUBLIC -RCL_WARN_UNUSED -rcl_lifecycle_transition_t * -rcl_lifecycle_get_transitions( - rcl_lifecycle_transition_map_t * transition_map, - unsigned int transition_id); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_LIFECYCLE__TRANSITION_MAP_H_ diff --git a/src/rcl_lifecycle/version.h b/src/rcl_lifecycle/version.h deleted file mode 100755 index c0149d9f7..000000000 --- a/src/rcl_lifecycle/version.h +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_LIFECYCLE__VERSION_H_ -#define RCL_LIFECYCLE__VERSION_H_ - -/// \def RCL_LIFECYCLE_VERSION_MAJOR -/// Defines RCL_LIFECYCLE major version number -#define RCL_LIFECYCLE_VERSION_MAJOR (10) - -/// \def RCL_LIFECYCLE_VERSION_MINOR -/// Defines RCL_LIFECYCLE minor version number -#define RCL_LIFECYCLE_VERSION_MINOR (1) - -/// \def RCL_LIFECYCLE_VERSION_PATCH -/// Defines RCL_LIFECYCLE version patch number -#define RCL_LIFECYCLE_VERSION_PATCH (1) - -/// \def RCL_LIFECYCLE_VERSION_STR -/// Defines RCL_LIFECYCLE version string -#define RCL_LIFECYCLE_VERSION_STR "10.1.1" - -/// \def RCL_LIFECYCLE_VERSION_GTE -/// Defines a macro to check whether the version of RCL_LIFECYCLE is greater than or equal to -/// the given version triple. -#define RCL_LIFECYCLE_VERSION_GTE(major, minor, patch) ( \ - (major < RCL_LIFECYCLE_VERSION_MAJOR) ? true \ - : ((major > RCL_LIFECYCLE_VERSION_MAJOR) ? false \ - : ((minor < RCL_LIFECYCLE_VERSION_MINOR) ? true \ - : ((minor > RCL_LIFECYCLE_VERSION_MINOR) ? false \ - : ((patch < RCL_LIFECYCLE_VERSION_PATCH) ? true \ - : ((patch > RCL_LIFECYCLE_VERSION_PATCH) ? false \ - : true)))))) - -#endif // RCL_LIFECYCLE__VERSION_H_ diff --git a/src/rcl_lifecycle/visibility_control.h b/src/rcl_lifecycle/visibility_control.h deleted file mode 100755 index be4b9221f..000000000 --- a/src/rcl_lifecycle/visibility_control.h +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/* This header must be included by all rclcpp headers which declare symbols - * which are defined in the rclcpp library. When not building the rclcpp - * library, i.e. when using the headers in other package's code, the contents - * of this header change the visibility of certain symbols which the rclcpp - * library cannot have, but the consuming code must have inorder to link. - */ - -#ifndef RCL_LIFECYCLE__VISIBILITY_CONTROL_H_ -#define RCL_LIFECYCLE__VISIBILITY_CONTROL_H_ - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define RCL_LIFECYCLE_EXPORT __attribute__ ((dllexport)) - #define RCL_LIFECYCLE_IMPORT __attribute__ ((dllimport)) - #else - #define RCL_LIFECYCLE_EXPORT __declspec(dllexport) - #define RCL_LIFECYCLE_IMPORT __declspec(dllimport) - #endif - #ifdef RCL_LIFECYCLE_BUILDING_DLL - #define RCL_LIFECYCLE_PUBLIC RCL_LIFECYCLE_EXPORT - #else - #define RCL_LIFECYCLE_PUBLIC RCL_LIFECYCLE_IMPORT - #endif - #define RCL_LIFECYCLE_PUBLIC_TYPE RCL_LIFECYCLE_PUBLIC - #define RCL_LIFECYCLE_LOCAL -#else - #define RCL_LIFECYCLE_EXPORT __attribute__ ((visibility("default"))) - #define RCL_LIFECYCLE_IMPORT - #if __GNUC__ >= 4 - #define RCL_LIFECYCLE_PUBLIC __attribute__ ((visibility("default"))) - #define RCL_LIFECYCLE_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define RCL_LIFECYCLE_PUBLIC - #define RCL_LIFECYCLE_LOCAL - #endif - #define RCL_LIFECYCLE_PUBLIC_TYPE -#endif - -#endif // RCL_LIFECYCLE__VISIBILITY_CONTROL_H_ diff --git a/src/rcl_logging_interface/rcl_logging_interface.h b/src/rcl_logging_interface/rcl_logging_interface.h deleted file mode 100755 index b44d32696..000000000 --- a/src/rcl_logging_interface/rcl_logging_interface.h +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_LOGGING_INTERFACE__RCL_LOGGING_INTERFACE_H_ -#define RCL_LOGGING_INTERFACE__RCL_LOGGING_INTERFACE_H_ - -#include "rcl_logging_interface/visibility_control.h" -#include "rcutils/allocator.h" - -#ifdef __cplusplus -extern "C" { -#endif - -typedef enum -{ - RCL_LOGGING_RET_OK = 0, - RCL_LOGGING_RET_ERROR = 2, - RCL_LOGGING_RET_INVALID_ARGUMENT = 11, - RCL_LOGGING_RET_CONFIG_FILE_DOESNT_EXIST = 21, - RCL_LOGGING_RET_CONFIG_FILE_INVALID = 22, -} rcl_logging_ret_t; - -/// Initialize the external logging library. -/** - * \param[in] file_name_prefix The prefix for log file name that external - * logging library should use to configure itself. - * If provided, it must be a null terminated C string. - * If set to NULL or the empty string, the logging library will use defaults. - * \param[in] config_file The location of a config file that the external - * logging library should use to configure itself. - * If provided, it must be a null terminated C string. - * If set to NULL or the empty string, the logging library will use defaults. - * \param[in] allocator The allocator to use for memory allocation. This is - * an rcutils_allocator_t rather than an rcl_allocator_t to ensure that the - * rcl_logging_* packages don't have a circular dependency back to rcl. - * \return RCL_LOGGING_RET_OK if initialized successfully. - * \return RCL_LOGGING_RET_ERROR if an unspecified error occurs. - * \return RCL_LOGGING_RET_CONFIG_FILE_DOESNT_EXIST if a config_file is provided - * but the file doesn't exist. - * \return RCL_LOGGING_RET_CONFIG_FILE_INVALID if a config_file is provided but - * the logging backend doesn't understand it. - */ -RCL_LOGGING_INTERFACE_PUBLIC -RCUTILS_WARN_UNUSED -rcl_logging_ret_t -rcl_logging_external_initialize( - const char * file_name_prefix, - const char * config_file, - rcutils_allocator_t allocator); - -/// Free the resources allocated for the external logging system. -/** - * This puts the system into a state equivalent to being uninitialized. - * - * \return RCL_LOGGING_RET_OK if successfully shutdown, or - * \return RCL_LOGGING_RET_ERROR if an unspecified error occurs. - */ -RCL_LOGGING_INTERFACE_PUBLIC -RCUTILS_WARN_UNUSED -rcl_logging_ret_t -rcl_logging_external_shutdown(void); - -/// Log a message. -/** - * \param[in] severity The severity level of the message being logged. - * \param[in] name The name of the logger, must either be a null terminated - * C string or NULL. - * If NULL or empty the root logger will be used. - * \param[in] msg The message to be logged. Must be a null terminated C string. - */ -RCL_LOGGING_INTERFACE_PUBLIC -void -rcl_logging_external_log(int severity, const char * name, const char * msg); - -/// Set the severity level for a logger. -/** - * This function sets the severity level for the specified logger. - * If the name provided is an empty string or NULL it will change the level of - * the root logger. - * - * \param[in] name The name of the logger. - * Must be a null terminated C string or NULL. - * \param[in] level The severity level to be used for the specified logger. - * \return RCL_LOGGING_RET_OK if set successfully, or - * \return RCL_LOGGING_RET_ERROR if an unspecified error occurs. - */ -RCL_LOGGING_INTERFACE_PUBLIC -RCUTILS_WARN_UNUSED -rcl_logging_ret_t rcl_logging_external_set_logger_level(const char * name, int level); - -/// Get the logging directory. -/** - * Uses various environment variables to construct a logging directory path. - * - * Use $ROS_LOG_DIR if ROS_LOG_DIR is set and not empty. - * Otherwise, use $ROS_HOME/log, using ~/.ros for ROS_HOME if not set or if empty. - * - * It also expands an initial '~' to the current user's home directory, - * and converts the path separator if necessary. - * - * If successful, the directory C string should be deallocated using the given allocator when it is - * no longer needed. - * - * \param[in] allocator The allocator to use for memory allocation. - * \param[out] directory The C string pointer at which to write the directory path. - * Only meaningful if the call is successful. Must not be nullptr and must point to nullptr. - * \return RCL_LOGGING_RET_OK if successful, or - * \return RCL_LOGGING_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return RCL_LOGGING_RET_ERROR if an unspecified error occurs. - */ -RCL_LOGGING_INTERFACE_PUBLIC -rcl_logging_ret_t -rcl_logging_get_logging_directory(rcutils_allocator_t allocator, char ** directory); - -#ifdef __cplusplus -} -#endif - -#endif // RCL_LOGGING_INTERFACE__RCL_LOGGING_INTERFACE_H_ diff --git a/src/rcl_logging_interface/visibility_control.h b/src/rcl_logging_interface/visibility_control.h deleted file mode 100755 index ddb436c56..000000000 --- a/src/rcl_logging_interface/visibility_control.h +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCL_LOGGING_INTERFACE__VISIBILITY_CONTROL_H_ -#define RCL_LOGGING_INTERFACE__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define RCL_LOGGING_INTERFACE_EXPORT __attribute__ ((dllexport)) - #define RCL_LOGGING_INTERFACE_IMPORT __attribute__ ((dllimport)) - #else - #define RCL_LOGGING_INTERFACE_EXPORT __declspec(dllexport) - #define RCL_LOGGING_INTERFACE_IMPORT __declspec(dllimport) - #endif - #ifdef RCL_LOGGING_INTERFACE_BUILDING_DLL - #define RCL_LOGGING_INTERFACE_PUBLIC RCL_LOGGING_INTERFACE_EXPORT - #else - #define RCL_LOGGING_INTERFACE_PUBLIC RCL_LOGGING_INTERFACE_IMPORT - #endif - #define RCL_LOGGING_INTERFACE_PUBLIC_TYPE RCL_LOGGING_INTERFACE_PUBLIC - #define RCL_LOGGING_INTERFACE_LOCAL -#else - #define RCL_LOGGING_INTERFACE_EXPORT __attribute__ ((visibility("default"))) - #define RCL_LOGGING_INTERFACE_IMPORT - #if __GNUC__ >= 4 - #define RCL_LOGGING_INTERFACE_PUBLIC __attribute__ ((visibility("default"))) - #define RCL_LOGGING_INTERFACE_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define RCL_LOGGING_INTERFACE_PUBLIC - #define RCL_LOGGING_INTERFACE_LOCAL - #endif - #define RCL_LOGGING_INTERFACE_PUBLIC_TYPE -#endif - -#ifdef __cplusplus -} -#endif - -#endif // RCL_LOGGING_INTERFACE__VISIBILITY_CONTROL_H_ diff --git a/src/rclc/action_client.h b/src/rclc/action_client.h deleted file mode 100755 index 990e0144a..000000000 --- a/src/rclc/action_client.h +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) 2021 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -#ifndef RCLC__ACTION_CLIENT_H_ -#define RCLC__ACTION_CLIENT_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include -#include -#include -#include -#include "rclc/visibility_control.h" - -typedef void (* rclc_action_client_goal_callback_t)( - rclc_action_goal_handle_t * goal_handle, - bool accepted, - void * args); -typedef void (* rclc_action_client_feedback_callback_t)( - rclc_action_goal_handle_t * goal_handle, - void * ros_feedback, - void * args); -typedef void (* rclc_action_client_result_callback_t)( - rclc_action_goal_handle_t * goal_handle, - void * ros_result_response, - void * args); -typedef void (* rclc_action_client_cancel_callback_t)( - rclc_action_goal_handle_t * goal_handle, - bool cancelled, - void * args); - -typedef struct rclc_action_client_t -{ - DECLARE_GOAL_HANDLE_POOL - - rcl_action_client_t rcl_handle; - const rcl_allocator_t * allocator; - - // Callbacks - rclc_action_client_goal_callback_t goal_callback; - rclc_action_client_feedback_callback_t feedback_callback; - rclc_action_client_result_callback_t result_callback; - rclc_action_client_cancel_callback_t cancel_callback; - - // Action messages - struct Generic_FeedbackMessage * ros_feedback; - struct Generic_GetResult_Response * ros_result_response; - action_msgs__srv__CancelGoal_Response ros_cancel_response; - - // Available flags - bool feedback_available; - bool status_available; - bool goal_response_available; - bool result_response_available; - bool cancel_response_available; -} rclc_action_client_t; - -/** - * Creates an rcl action client. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[inout] action_client the action client of type rclc_action_client_t to be initialized - * \param[in] node the rcl node - * \param[in] type_support the message data type - * \param[in] action_name the name of the action - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_action_client_init_default( - rclc_action_client_t * action_client, - rcl_node_t * node, - const rosidl_action_type_support_t * type_support, - const char * action_name); - -/** - * Send a goal to an action server. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] action_client the action client for this action request - * \param[in] ros_request untyped ros action request - * \param[inout] goal_handle (optional) returns the goal handle used to track the goal - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_action_send_goal_request( - rclc_action_client_t * action_client, - void * ros_request, - rclc_action_goal_handle_t ** goal_handle); - -/** - * Send a cancel request for a goal to an action server. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] goal_handle goal handle to be cancelled - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_action_send_cancel_request( - rclc_action_goal_handle_t * goal_handle); - -/** - * Fini a action client and free all resources. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] action_client the action client to be finialized - * \param[in] node owner node - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_action_client_fini( - rclc_action_client_t * action_client, - rcl_node_t * node); - -#if __cplusplus -} -#endif - -#endif // RCLC__ACTION_CLIENT_H_ diff --git a/src/rclc/action_goal_handle.h b/src/rclc/action_goal_handle.h deleted file mode 100755 index 35a3576fe..000000000 --- a/src/rclc/action_goal_handle.h +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) 2021 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -#ifndef RCLC__ACTION_GOAL_HANDLE_H_ -#define RCLC__ACTION_GOAL_HANDLE_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include - -struct rclc_generic_entity_t; -struct rclc_action_client_t; - -typedef struct rclc_action_goal_handle_t -{ - struct rclc_action_goal_handle_t * next; - - union { - struct rclc_action_server_t * action_server; - struct rclc_action_client_t * action_client; - }; - - rcl_action_goal_state_t status; - - unique_identifier_msgs__msg__UUID goal_id; - struct Generic_SendGoal_Request * ros_goal_request; - - bool available_goal_response; - bool goal_accepted; - bool available_feedback; - bool available_result_response; - bool available_cancel_response; - bool goal_cancelled; - - // Goal requests header - union { - rmw_request_id_t goal_request_header; - int64_t goal_request_sequence_number; - }; - - union { - rmw_request_id_t result_request_header; - int64_t result_request_sequence_number; - }; - - union { - rmw_request_id_t cancel_request_header; - int64_t cancel_request_sequence_number; - }; -} rclc_action_goal_handle_t; - -#define DECLARE_GOAL_HANDLE_POOL \ - rclc_action_goal_handle_t * goal_handles_memory; \ - size_t goal_handles_memory_size; \ - rclc_action_goal_handle_t * free_goal_handles; \ - rclc_action_goal_handle_t * used_goal_handles; - -#if __cplusplus -} -#endif - -#endif // RCLC__ACTION_GOAL_HANDLE_H_ diff --git a/src/rclc/action_server.h b/src/rclc/action_server.h deleted file mode 100755 index becd56ca9..000000000 --- a/src/rclc/action_server.h +++ /dev/null @@ -1,163 +0,0 @@ -// Copyright (c) 2021 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -#ifndef RCLC__ACTION_SERVER_H_ -#define RCLC__ACTION_SERVER_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include - -#include -#include - -#include -#include - -#define RCLC_RET_ACTION_WAIT_RESULT_REQUEST 2104 - -typedef rcl_ret_t (* rclc_action_server_handle_goal_callback_t)( - rclc_action_goal_handle_t * goal_handle, - void * args); - -typedef bool (* rclc_action_server_handle_cancel_callback_t)( - rclc_action_goal_handle_t * ros_cancel_request, - void * args); - -typedef struct rclc_action_server_t -{ - DECLARE_GOAL_HANDLE_POOL - - rcl_action_server_t rcl_handle; - const rcl_allocator_t * allocator; - - // Callbacks - rclc_action_server_handle_goal_callback_t goal_callback; - rclc_action_server_handle_cancel_callback_t cancel_callback; - - // Available flags - bool goal_request_available; - bool cancel_request_available; - bool result_request_available; - bool goal_expired_available; // TODO(acuadros95): implement expired goals - bool goal_ended; -} rclc_action_server_t; - -/** - * Creates an rcl action server. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[inout] action_server a rcl_action_server_t to be initialized - * \param[in] node the rcl node - * \param[in] support the rclc_support_t object - * \param[in] type_support the message data type - * \param[in] action_name the name of the action - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_action_server_init_default( - rclc_action_server_t * action_server, - rcl_node_t * node, - rclc_support_t * support, - const rosidl_action_type_support_t * type_support, - const char * action_name); - -/** - * Finish a goal with a given status and result. - * If successful, the goal_handle will be released on the next executor spin. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | No - * - * \param[inout] goal_handle goal handle to be finished - * \param[in] status goal terminal state - * \param[in] ros_response action result message - * \return `RCL_RET_OK` if successful - * \return `RCLC_RET_ACTION_WAIT_RESULT_REQUEST` if the result has not been requested yet. - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_action_send_result( - rclc_action_goal_handle_t * goal_handle, - rcl_action_goal_state_t status, - void * ros_response); - -/** - * Publish feedback for a goal. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[inout] goal_handle goal handle to be cancelled - * \param[in] ros_feedback feedback to be published - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_action_publish_feedback( - rclc_action_goal_handle_t * goal_handle, - void * ros_feedback); - -/** - * Fini a action server and free all resources. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] action_server the action server to be finialized - * \param[in] node owner node - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_action_server_fini( - rclc_action_server_t * action_server, - rcl_node_t * node); - -#if __cplusplus -} -#endif - -#endif // RCLC__ACTION_SERVER_H_ diff --git a/src/rclc/client.h b/src/rclc/client.h deleted file mode 100755 index c33b0d9b3..000000000 --- a/src/rclc/client.h +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) 2020 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -#ifndef RCLC__CLIENT_H_ -#define RCLC__CLIENT_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include -#include -#include -#include - -/** - * Creates an rcl client. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] client pointer to zero_initialized rcl_client_t - * \param[in] node pointer to an initialized rcl node - * \param[in] type_support the message data type - * \param[in] service_name the name of service topic - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_client_init_default( - rcl_client_t * client, - const rcl_node_t * node, - const rosidl_service_type_support_t * type_support, - const char * service_name); - -/** - * Creates an rcl client with quality-of-service option best effort - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] client pointer to zero_initialized rcl_client_t - * \param[in] node pointer to an initialized rcl node - * \param[in] type_support the message data type - * \param[in] service_name the name of service topic - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_client_init_best_effort( - rcl_client_t * client, - const rcl_node_t * node, - const rosidl_service_type_support_t * type_support, - const char * service_name); - -/** - * Creates an rcl client with defined QoS - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] client pointer to zero_initialized rcl_client_t - * \param[in] node pointer to an initialized rcl node - * \param[in] type_support the message data type - * \param[in] service_name the name of service topic - * \param[in] qos_profile the qos of the topic - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_client_init( - rcl_client_t * client, - const rcl_node_t * node, - const rosidl_service_type_support_t * type_support, - const char * service_name, - const rmw_qos_profile_t * qos_profile); - -#if __cplusplus -} -#endif - -#endif // RCLC__CLIENT_H_ diff --git a/src/rclc/executor.h b/src/rclc/executor.h deleted file mode 100755 index 104830fbe..000000000 --- a/src/rclc/executor.h +++ /dev/null @@ -1,1016 +0,0 @@ -// Copyright (c) 2020 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -#ifndef RCLC__EXECUTOR_H_ -#define RCLC__EXECUTOR_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include -#include - -#include "rclc/executor_handle.h" -#include "rclc/types.h" -#include "rclc/sleep.h" -#include "rclc/visibility_control.h" - -#include "rclc/action_client.h" -#include "rclc/action_server.h" - -/*! \file executor.h - \brief The RCLC-Executor provides an Executor based on RCL in which all callbacks are - processed in a user-defined order. -*/ - -/** Defines the semantics when data is taken from DDS - * SEMANTICS_RCLCPP_EXECUTOR - same semantics as in rclcpp Executor. Data of a subscription - * is taken from DDS just before the corresponding callback - * is called by the Executor. - * SEMANTICS_LOGICAL_EXECUTION_TIME - logical execution time semantics. At one sampling point t - * new data of all ready subscriptions are taken from DDS. - * During (sequential) processing of these callbacks the - * data is used as per sampling point t. If new data arrived - * between the sampling point t and the time point at which - * the callback is called, it would not be considered in this - * `rclc_executor_spin_some` iteration. -*/ -typedef enum -{ - RCLC_SEMANTICS_RCLCPP_EXECUTOR, - RCLC_SEMANTICS_LOGICAL_EXECUTION_TIME -} rclc_executor_semantics_t; - -/** - * Different types of Executors. -*/ -typedef enum -{ - RCLC_EXECUTOR_NOT_INITIALIZED, - RCLC_EXECUTOR_SINGLE_THREADED, - RCLC_EXECUTOR_MULTI_THREADED, - RCLC_EXECUTOR_NON_POSIX, -} rclc_executor_type_t; - -/// Type definition for trigger function. With the parameters: -/// - array of executor_handles -/// - size of array -/// - application specific struct used in the trigger function -typedef bool (* rclc_executor_trigger_t)(rclc_executor_handle_t *, unsigned int, void *); - -/// function pointer specification -typedef struct rclc_executor_t_s rclc_executor_t; -typedef rcl_ret_t (* rclc_executor_func_t)(rclc_executor_t *); - -/// Container for RCLC-Executor -struct rclc_executor_t_s -{ - /// Type of Executor - rclc_executor_type_t type; - /// Context (to get information if ROS is up-and-running) - rcl_context_t * context; - /// Container for dynamic array for DDS-handles - rclc_executor_handle_t * handles; - /// Maximum size of array 'handles' - size_t max_handles; - /// Index to the next free element in array handles - size_t index; - /// Container to memory allocator for array handles - const rcl_allocator_t * allocator; - /// Wait set (is initialized only in the first call of the rclc_executor_spin_some function) - rcl_wait_set_t wait_set; - /// Statistics objects about total number of subscriptions, timers, clients, services, etc. - rclc_executor_handle_counters_t info; - /// timeout in nanoseconds for rcl_wait() used in rclc_executor_spin_once(). Default 100ms - uint64_t timeout_ns; - /// timepoint used for spin_period() - rcutils_time_point_value_t invocation_time; - /// trigger function, when to process new data - rclc_executor_trigger_t trigger_function; - /// application specific data structure for trigger function - void * trigger_object; - /// data communication semantics - rclc_executor_semantics_t data_comm_semantics; - /// pointer to custom executor data structure - void * custom; -}; - -/** - * Return a rclc_executor_t struct with pointer members initialized to `NULL` - * and member variables to 0. - */ -RCLC_PUBLIC -rclc_executor_t -rclc_executor_get_zero_initialized_executor(void); - -/** - * Initializes an executor. - * It creates a dynamic array with size \p number_of_handles using the - * \p allocator. - * As the Executor is intended for embedded controllers, dynamic memory management is crucial. - * Therefore at initialization of the RCLC-Executor, the user defines the total \p number_of_handles. - * A handle is a term for subscriptions, timers, services, clients and guard conditions. The - * heap will be allocated only in this phase and no more memory will be allocated in the - * running phase in the executor. - * - * Also in the XRCE-DDS middleware the maximum number are configured. See [Memory Management Tutorial](https://docs.vulcanexus.org/en/humble/rst/tutorials/micro/memory_management/memory_management.html#entity-creation) - * for the default values. If you need larger values, you need to update your colcon.meta - * configuration file and rebuild. To make sure that the changes were applied, you can check - * the defined values in the following library include file: - * build/rmw_microxrcedds/include/rmw_microxrcedds_c/config.h - * - * The heap memory of corresponding wait-set is - * allocated in the first iteration of a spin-method, which calls internally rclc_executor_prepare. - * Optionally, you can also call rclc_executor_prepare before calling any of the spin-methods. - * Then all wait-set related memory allocation will be done in rclc_executor_prepare and not - * in the first iteration of the spin-method. - * - * This makes this Executor static in - * terms of memory allocation, in the sense, that during runtime no heap allocations occur. - * You can add, however, at runtime as many handles, e.g. subscriptions, to the executor - * until the maximum number of handles is reached. In this case, the wait-set needs to be - * updated and rclc_executor_prepare is called again (with dynamic memory allocation in RCL). - * - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] executor preallocated rclc_executor_t - * \param[in] context RCL context - * \param[in] number_of_handles is the total number of subscriptions, timers, services, - * clients and guard conditions. Do not include the number of nodes and publishers. - * \param[in] allocator allocator for allocating memory - * \return `RCL_RET_OK` if the executor was initialized successfully - * \return `RCL_RET_INVALID_ARGUMENT` if any null pointer as argument - * \return `RCL_RET_ERROR` in case of failure - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_init( - rclc_executor_t * executor, - rcl_context_t * context, - const size_t number_of_handles, - const rcl_allocator_t * allocator); - -/** - * Set timeout in nanoseconds for rcl_wait (called during {@link rclc_executor_spin_once()}). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to an initialized executor - * \param [in] timeout_ns timeout in nanoseconds for the rcl_wait (DDS middleware) - * \return `RCL_RET_OK` if timeout was set successfully - * \return `RCL_RET_INVALID_ARGUMENT` if \p executor is a null pointer - * \return `RCL_RET_ERROR` in an error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_set_timeout( - rclc_executor_t * executor, - const uint64_t timeout_ns); - -/** - * Set data communication semantics - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to an initialized executor - * \param [in] valid semantics value as defined in enum type {@link rclc_executor_semantics_t} - * \return `RCL_RET_OK` if semantics was set successfully - * \return `RCL_RET_INVALID_ARGUMENT` if \p executor is a null pointer - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_set_semantics( - rclc_executor_t * executor, - rclc_executor_semantics_t semantics); - -/** - * Cleans up executor. - * Deallocates dynamic memory of {@link rclc_executor_t.handles} and - * resets all other values of {@link rclc_executor_t}. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \return `RCL_RET_OK` if reset operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if \p executor is a null pointer - * \return `RCL_RET_INVALID_ARGUMENT` if \p executor.handles is a null pointer - * \return `RCL_RET_ERROR` in an error occured (aka executor was not initialized) - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_fini(rclc_executor_t * executor); - -/** - * Adds a subscription to an executor. - * * An error is returned, if {@link rclc_executor_t.handles} array is full. - * * The total number_of_subscriptions field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] subscription pointer to an allocated subscription - * \param [in] msg pointer to an allocated message - * \param [in] callback function pointer to a callback - * \param [in] invocation invocation type for the callback (ALWAYS or only ON_NEW_DATA) - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_add_subscription( - rclc_executor_t * executor, - rcl_subscription_t * subscription, - void * msg, - rclc_subscription_callback_t callback, - rclc_executor_handle_invocation_t invocation); - -/** - * Adds a subscription to an executor. - * * An error is returned, if {@link rclc_executor_t.handles} array is full. - * * The total number_of_subscriptions field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] subscription pointer to an allocated subscription - * \param [in] msg pointer to an allocated message - * \param [in] callback function pointer to a callback - * \param [in] context type-erased ptr to additional callback context - * \param [in] invocation invocation type for the callback (ALWAYS or only ON_NEW_DATA) - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer (NULL context is ignored) - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_add_subscription_with_context( - rclc_executor_t * executor, - rcl_subscription_t * subscription, - void * msg, - rclc_subscription_callback_with_context_t callback, - void * context, - rclc_executor_handle_invocation_t invocation); - -/** - * Adds a timer to an executor. - * * An error is returned, if {@link rclc_executor_t.handles} array is full. - * * The total number_of_timers field of {@link rclc_executor_t.info} is - * incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] timer pointer to an allocated timer - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_add_timer( - rclc_executor_t * executor, - rcl_timer_t * timer); - - -/** - * Adds a client to an executor. - * * An error is returned if {@link rclc_executor_t.handles} array is full. - * * The total number_of_clients field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] client pointer to a allocated and initialized client - * \param [in] request_msg type-erased ptr to an allocated request message - * \param [in] callback function pointer to a callback function - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_add_client( - rclc_executor_t * executor, - rcl_client_t * client, - void * response_msg, - rclc_client_callback_t callback); - -/** - * Adds a client to an executor. - * * An error is returned if {@link rclc_executor_t.handles} array is full. - * * The total number_of_clients field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] client pointer to a allocated and initialized client - * \param [in] request_msg type-erased ptr to an allocated request message - * \param [in] callback function pointer to a callback function with request_id - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_add_client_with_request_id( - rclc_executor_t * executor, - rcl_client_t * client, - void * response_msg, - rclc_client_callback_with_request_id_t callback); - -/** - * Adds a service to an executor. - * * An error is returned if {@link rclc_executor_t.handles} array is full. - * * The total number_of_services field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] service pointer to an allocated and initialized service - * \param [in] request_msg type-erased ptr to an allocated request message - * \param [in] response_msg type-erased ptr to an allocated response message - * \param [in] callback function pointer to a callback function - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_add_service( - rclc_executor_t * executor, - rcl_service_t * service, - void * request_msg, - void * response_msg, - rclc_service_callback_t callback); - -/** - * Adds an action client to an executor. - * An error is returned if {@link rclc_executor_t.handles} array is full. - * The total number_of_action_clients field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] action_client pointer to a allocated and initialized action client - * \param [in] handles_number max number of goals to handle with the client - * \param [in] ros_result_response type-erased ptr to an allocated ROS result message - * \param [in] ros_feedback type-erased ptr to an allocated ROS feedback message - * \param [in] goal_callback function pointer to a goal callback - * \param [in] feedback_callback function pointer to a feedback callback - * \param [in] result_callback function pointer to a result callback - * \param [in] cancel_callback function pointer to a result cancel callback - * \param [in] context context to pass to the callback functions - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_add_action_client( - rclc_executor_t * executor, - rclc_action_client_t * action_client, - size_t handles_number, - void * ros_result_response, - void * ros_feedback, - rclc_action_client_goal_callback_t goal_callback, - rclc_action_client_feedback_callback_t feedback_callback, - rclc_action_client_result_callback_t result_callback, - rclc_action_client_cancel_callback_t cancel_callback, - void * context); - -/** - * Adds an action server to an executor. - * * An error is returned if {@link rclc_executor_t.handles} array is full. - * * The total number_of_action_servers field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] action_server pointer to a allocated and initialized action server - * \param [in] handles_number max number of goals to handle with the server - * \param [in] ros_goal_request type-erased ptr to an allocated ROS goal request message - * \param [in] ros_goal_request_size size of the ROS goal request message type - * \param [in] goal_callback function pointer to a goal request callback - * \param [in] cancel_callback function pointer to a cancel request callback - * \param [in] context context to pass to the callback functions - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_add_action_server( - rclc_executor_t * executor, - rclc_action_server_t * action_server, - size_t handles_number, - void * ros_goal_request, - size_t ros_goal_request_size, - rclc_action_server_handle_goal_callback_t goal_callback, - rclc_action_server_handle_cancel_callback_t cancel_callback, - void * context); - -/** - * Adds a service to an executor. - * * An error is returned if {@link rclc_executor_t.handles} array is full. - * * The total number_of_services field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] service pointer to an allocated and initialized service - * \param [in] request_msg type-erased ptr to an allocated request message - * \param [in] response_msg type-erased ptr to an allocated response message - * \param [in] callback function pointer to a callback function with request_id - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_add_service_with_request_id( - rclc_executor_t * executor, - rcl_service_t * service, - void * request_msg, - void * response_msg, - rclc_service_callback_with_request_id_t callback); - -/** - * Adds a service to an executor. - * * An error is returned if {@link rclc_executor_t.handles} array is full. - * * The total number_of_services field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] service pointer to an allocated and initialized service - * \param [in] request_msg type-erased ptr to an allocated request message - * \param [in] response_msg type-erased ptr to an allocated response message - * \param [in] callback function pointer to a callback function with request_id - * \param [in] context type-erased ptr to additional service context - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_add_service_with_context( - rclc_executor_t * executor, - rcl_service_t * service, - void * request_msg, - void * response_msg, - rclc_service_callback_with_context_t callback, - void * context); - -/** - * Adds a guard_condition to an executor. - * * An error is returned if {@link rclc_executor_t.handles} array is full. - * * The total number_of_guard_conditions field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] gc pointer to an allocated and initialized guard_condition - * \param [in] callback function pointer to a callback function - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_add_guard_condition( - rclc_executor_t * executor, - rcl_guard_condition_t * gc, - rclc_gc_callback_t callback); - - -/** - * Removes a subscription from an executor. - * * An error is returned if {@link rclc_executor_t.handles} array is empty. - * * An error is returned if subscription is not found in {@link rclc_executor_t.handles}. - * * The total number_of_subscriptions field of {@link rclc_executor_t.info} - * is decremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] subscription pointer to an allocated and initialized subscription previously added to executor - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_remove_subscription( - rclc_executor_t * executor, - const rcl_subscription_t * subscription); - - -/** - * Removes a timer from an executor. - * * An error is returned if {@link rclc_executor_t.handles} array is empty. - * * An error is returned if timer is not found in {@link rclc_executor_t.handles}. - * * The total number_of_timers field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] timer pointer to an allocated and initialized timer previously added to executor - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_remove_timer( - rclc_executor_t * executor, - const rcl_timer_t * timer); - - -/** - * Removes a client from an executor. - * * An error is returned if {@link rclc_executor_t.handles} array is empty. - * * An error is returned if client is not found in {@link rclc_executor_t.handles}. - * * The total number_of_clients field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] client pointer to an allocated and initialized client previously added to executor - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_remove_client( - rclc_executor_t * executor, - const rcl_client_t * client); - - -/** - * Removes a service from an executor. - * * An error is returned if {@link rclc_executor_t.handles} array is empty. - * * An error is returned if service is not found in {@link rclc_executor_t.handles}. - * * The total number_of_services field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] service pointer to an allocated and initialized service previously added to executor - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_remove_service( - rclc_executor_t * executor, - const rcl_service_t * service); - -/** - * Removes a guard_condition from an executor. - * * An error is returned if {@link rclc_executor_t.handles} array is empty. - * * An error is returned if guard_condition is not found in {@link rclc_executor_t.handles}. - * * The total number_of_guard_conditions field of {@link rclc_executor_t.info} - * is incremented by one. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [inout] executor pointer to initialized executor - * \param [in] guard_condition pointer to an allocated and initialized guard_condition previously added to executor - * \return `RCL_RET_OK` if add-operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_remove_guard_condition( - rclc_executor_t * executor, - const rcl_guard_condition_t * guard_condition); - -/** - * The executor prepare function prepare the waitset of the executor if - * it is invalid. Does nothing if a valid waitset is already prepared. - * - * Memory is dynamically allocated within rcl-layer, when DDS queue is accessed with rcl_wait_set_init() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * - * \param [inout] executor pointer to initialized executor - * \return `RCL_RET_OK` if executor prepare operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_prepare( - rclc_executor_t * executor); - -/** - * The spin_some function checks one-time for new data from the DDS-queue. - * * the timeout is defined in {@link rclc_executor_t.timeout_ns} and can - * be set by calling {@link rclc_executor_set_timeout()} function (default value is 100ms) - * - * The static-LET executor performs the following actions: - * * initializes the wait_set with all handle of the array executor->handles - * * waits for new data from DDS queue with rcl_wait() with timeout executor->timeout_ns - * * takes all ready handles from the wait_set with rcl_take() - * * processes all handles in the order, how they were added to the executor with the respective add-functions - * by calling respective callback (thus implementing first-read, process, semantic of LET) - * - * Memory is dynamically allocated within rcl-layer, when DDS queue is accessed with rcl_wait_set_init() - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * - * \param [inout] executor pointer to initialized executor - * \param[in] timeout_ns timeout in nanoseconds - * \return `RCL_RET_OK` if spin_once operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any parameter is a null pointer - * \return `RCL_RET_TIMEOUT` if rcl_wait() returned timeout (aka no data is avaiable during until the timeout) - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_spin_some( - rclc_executor_t * executor, - const uint64_t timeout_ns); - -/** - * The spin function checks for new data at DDS queue as long as ros context is available. - * It calls {@link rclc_executor_spin_some()} as long as rcl_context_is_valid() returns true. - * - * Memory is dynamically allocated within rcl-layer, when DDS queue is accessed with rcl_wait_set_init() - * (in spin_some function) - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * - * \param [inout] executor pointer to initialized executor - * \return `RCL_RET_OK` if spin operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if executor is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_spin(rclc_executor_t * executor); - -/** - * The spin_period function checks for new data at DDS queue as long as ros context is available. - * It is called every period nanoseconds. - * It calls {@link rclc_executor_spin_some()} as long as rcl_context_is_valid() returns true. - * - * Memory is dynamically allocated within rcl-layer, when DDS queue is accessed with rcl_wait_set_init() - * (in spin_some function) - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * - * \param [inout] executor pointer to initialized executor - * \param [in] period in nanoseconds - * \return `RCL_RET_OK` if spin operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if executor is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_spin_period( - rclc_executor_t * executor, - const uint64_t period); - -/** - * The reason for splitting up the rclc_executor_spin_period function, is only to write a - * unit test for testing the accuracy of the period duration. - * - * The rclc_executor_spin_period is an endless loop, therefore it is not possible to stop - * after x iterations. The function rclc_executor_spin_one_period implements one iteration. - * The unit test for rclc_executor_spin_period covers only rclc_executor_spin_one_period. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * - * \param [inout] executor pointer to initialized executor - * \param [in] period in nanoseconds - * \return `RCL_RET_OK` if spin operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if executor is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_spin_one_period( - rclc_executor_t * executor, - const uint64_t period); - -/** - * Set the trigger condition. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * - * \param [inout] executor pointer to initialized executor - * \param [in] trigger_function function of the trigger condition - * \param [in] trigger_object pointer to a rcl-handle used in the trigger - * \return `RCL_RET_OK` if spin operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if executor is a null pointer - * \return `RCL_RET_ERROR` if any other error occured - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_set_trigger( - rclc_executor_t * executor, - rclc_executor_trigger_t trigger_function, - void * trigger_object); - -/** - * Trigger condition: all, returns true if all handles are ready. - * - * Parameter obj is not used. - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [in] handles pointer to array of handles - * \param [in] size size of array - * \param [in] obj trigger_object set by rclc_executor_set_trigger (not used) - * \return true - if all handles are ready (subscriptions have new data, timers are ready) - * \return false - otherwise - */ -RCLC_PUBLIC -bool -rclc_executor_trigger_all( - rclc_executor_handle_t * handles, - unsigned int size, - void * obj); - -/** - * Trigger condition: any, returns true if at least one handles is ready. - * - * Parameter obj is not used. - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [in] handles pointer to array of handles - * \param [in] size size of array - * \param [in] obj trigger_object set by rclc_executor_set_trigger (not used) - * \return true - if at least one handles is ready (subscriptions have new data, timers are ready) - * \return false - otherwise - */ -RCLC_PUBLIC -bool -rclc_executor_trigger_any( - rclc_executor_handle_t * handles, - unsigned int size, - void * obj); - -/** - * Trigger condition: always, returns always true. - * - * Parameter handles, size and obj are not used. - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [in] handles pointer to array of handles (not used) - * \param [in] size size of array (not used) - * \param [in] obj trigger_object set by rclc_executor_set_trigger (not used) - * \return true always - */ -RCLC_PUBLIC -bool -rclc_executor_trigger_always( - rclc_executor_handle_t * handles, - unsigned int size, - void * obj); - -/** - * Trigger condition: one, returns true, if rcl handle obj is ready - * (when obj is a subscription, if new data available, - * when obj is a timer, if the timer is ready) - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param [in] handles pointer to array of handles (not used) - * \param [in] size size of array (not used) - * \param [in] obj trigger_object set by rclc_executor_set_trigger - * \return true if rcl-handle obj is ready - * \return false otherwise - */ -RCLC_PUBLIC -bool -rclc_executor_trigger_one( - rclc_executor_handle_t * handles, - unsigned int size, - void * obj); - -#if __cplusplus -} -#endif - -#endif // RCLC__EXECUTOR_H_ diff --git a/src/rclc/executor_handle.h b/src/rclc/executor_handle.h deleted file mode 100755 index 844b04677..000000000 --- a/src/rclc/executor_handle.h +++ /dev/null @@ -1,306 +0,0 @@ -// Copyright (c) 2020 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -#ifndef RCLC__EXECUTOR_HANDLE_H_ -#define RCLC__EXECUTOR_HANDLE_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include -#include - -/// TODO (jst3si) Where is this defined? - in my build environment this variable is not set. -// #define ROS_PACKAGE_NAME "rclc" - -/// Enumeration for timer, subscription, guard conditions etc to be waited on. -typedef enum -{ - RCLC_SUBSCRIPTION, - RCLC_SUBSCRIPTION_WITH_CONTEXT, - RCLC_TIMER, - // RCLC_TIMER_WITH_CONTEXT, // TODO - RCLC_CLIENT, - RCLC_CLIENT_WITH_REQUEST_ID, - // RCLC_CLIENT_WITH_CONTEXT, // TODO - RCLC_SERVICE, - RCLC_SERVICE_WITH_REQUEST_ID, - RCLC_SERVICE_WITH_CONTEXT, - RCLC_ACTION_CLIENT, - RCLC_ACTION_SERVER, - RCLC_GUARD_CONDITION, - // RCLC_GUARD_CONDITION_WITH_CONTEXT, //TODO - RCLC_NONE -} rclc_executor_handle_type_t; - -/// Enumeration for invocation type. ON_NEW_DATA calls a callback only when new data is available -/// ALWAYS calls the callback always, even if no data is available (e.g. for type FUNCTION_CALL) -typedef enum -{ - ON_NEW_DATA, - ALWAYS -} rclc_executor_handle_invocation_t; - -/// Type definition for subscription callback function -/// - incoming message -typedef void (* rclc_subscription_callback_t)(const void *); - -/// Type definition (duplicate) for subscription callback function (alias for foxy and galactic). -/// - incoming message -typedef rclc_subscription_callback_t rclc_callback_t; - -/// Type definition for subscription callback function -/// - incoming message -/// - additional callback context -typedef void (* rclc_subscription_callback_with_context_t)(const void *, void *); - -/// Type definition for client callback function -/// - request message -/// - response message -typedef void (* rclc_service_callback_t)(const void *, void *); - -/// Type definition for client callback function -/// - request message -/// - request id -/// - response message -typedef void (* rclc_service_callback_with_request_id_t)(const void *, rmw_request_id_t *, void *); - -/// Type definition for client callback function -/// - request message -/// - response message -/// - additional service context -typedef void (* rclc_service_callback_with_context_t)(const void *, void *, void *); - -/// Type definition for client callback function -/// - response message -typedef void (* rclc_client_callback_t)(const void *); - -/// Type definition for client callback function -/// - response message -/// - request id -typedef void (* rclc_client_callback_with_request_id_t)(const void *, rmw_request_id_t *); - -/// Type definition for guard condition callback function. -typedef void (* rclc_gc_callback_t)(); - - -/// Container for a handle. -typedef struct -{ - /// Type of handle - rclc_executor_handle_type_t type; - /// Invocation type determines when to execute the callback - rclc_executor_handle_invocation_t invocation; - /// Pointer to the handle - union { - rcl_subscription_t * subscription; - rcl_timer_t * timer; - rcl_client_t * client; - rcl_service_t * service; - rcl_guard_condition_t * gc; - rclc_action_client_t * action_client; - rclc_action_server_t * action_server; - }; - /// Storage of data, which holds the message of a subscription, service, etc. - /// subscription: ptr to message - /// service: ptr to request message - void * data; - - /// request-id only for type service/client request/response - rmw_request_id_t req_id; - - /// only for service - ptr to response message - void * data_response_msg; - - /// ptr to additional callback context - void * callback_context; - - // TODO(jst3si) new type to be stored as data for - // service/client objects - // look at memory allocation for this struct! - // struct { - // void * request_msg - // void * response_msg - // rmw_request_id_t req_id; - //} rclc_service_data_type_t - - /// Storage for callbacks - union { - rclc_subscription_callback_t subscription_callback; - rclc_subscription_callback_with_context_t subscription_callback_with_context; - rclc_service_callback_t service_callback; - rclc_service_callback_with_request_id_t service_callback_with_reqid; - rclc_service_callback_with_context_t service_callback_with_context; - rclc_client_callback_t client_callback; - rclc_client_callback_with_request_id_t client_callback_with_reqid; - rclc_gc_callback_t gc_callback; - }; - - /// Internal variable. - /** Denotes the index of this handle in the correspoding wait_set entry. - * (wait_set_subscriptions[index], wait_set_timers[index], ... - * is in the range [0,executor.max_handles), initialization: executor_max_handles - * because this value will never be assigned as an index in the wait_set. - */ - size_t index; - /// Internal variable. Flag, which is true, if the handle is initialized and therefore initialized - bool initialized; - /// Interval variable. Flag, which is true, if new data is available from DDS queue - /// (is set after calling rcl_take) - bool data_available; - /// pointer to custom handle - void * custom; -} rclc_executor_handle_t; - -/// Information about total number of subscriptions, guard_conditions, timers, subscription etc. -typedef struct -{ - /// Total number of subscriptions - size_t number_of_subscriptions; - /// Total number of timers - size_t number_of_timers; - /// Total number of clients - size_t number_of_clients; - /// Total number of services - size_t number_of_services; - /// Total number of action clients - size_t number_of_action_clients; - /// Total number of action servers - size_t number_of_action_servers; - /// Total number of guard conditions - size_t number_of_guard_conditions; - /// Total number of events - size_t number_of_events; -} rclc_executor_handle_counters_t; - -/** - * Initializes the counters of each handle type to zero. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] handle_counters preallocated rclc_executor_handle_counters_t - * \return `RCL_RET_INVALID_ARGUMENT` if `handle_counters` is a null pointer - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_handle_counters_zero_init(rclc_executor_handle_counters_t * handle_counters); - -/** - * Initializes a handle with default values. The {@link rclc_executor_handle_t.index} - * is initialized with `max_handles`, which is a non-valid index. Note that, valid indicies - * are [0,max-handles-1]. The {@link rclc_executor_handle_t.invocation} is set to `ON_NEW_DATA`, - * so that a potential callback is invoced only whenever new data is received. All other member - * fields are set appropriate default values, like `none`, `NULL` or `false`. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] handle preallocated rclc_executor_handle_t - * \param[in] max_handles maximum number of handles - * \return `RCL_RET_OK` if the \p handle was initialized successfully - * \return `RCL_RET_INVALID_ARGUMENT` if \p h is a null pointer - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_handle_init( - rclc_executor_handle_t * handle, - size_t max_handles); - -/** - * Resets a rclc_executor_handle_t. Compared to the function {@link rclc_executor_handle_init()} - * only the {@link rclc_executor_handle_t.index} and {@link rclc_executor_handle_t.initialized} - * variables are reset to default values. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] handle a preallocated rclc_executor_handle_t - * \param[in] max_handles maximum number of handles - * \return `RCL_RET_OK` if \p h was cleared successfully - * \return `RCL_RET_INVALID_ARGUMENT` if \p h is a null pointer - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_handle_clear( - rclc_executor_handle_t * handle, - size_t max_handles); - -/** - * Print out type name of a rclc_executor_handle_t. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] handle preallocated rclc_executor_handle_t - * \return `RCL_RET_OK` if the handle was printed successfully - * \return `RCL_RET_INVALID_ARGUMENT` if \p h is a null pointer - */ -RCLC_PUBLIC -rcl_ret_t -rclc_executor_handle_print(rclc_executor_handle_t * handle); - -/** - * Returns a pointer to the rcl-handle stored in the rclc_executor_handle_t. - * That can be rcl_subscription_t or rcl_timer_t - * - * If handle is NULL, then NULL is returned. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] handle preallocated rclc_executor_handle_t - * \return pointer to the rcl-handle (rcl_subscription_t or rcl_timer_t) - * \return NULL, if handle is a NULL pointer. - */ -RCLC_PUBLIC -void * -rclc_executor_handle_get_ptr(rclc_executor_handle_t * handle); - -#if __cplusplus -} -#endif - -#endif // RCLC__EXECUTOR_HANDLE_H_ diff --git a/src/rclc/init.h b/src/rclc/init.h deleted file mode 100755 index 832c9aabc..000000000 --- a/src/rclc/init.h +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) 2019 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCLC__INIT_H_ -#define RCLC__INIT_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include -#include "rclc/types.h" -#include "rclc/visibility_control.h" - -/** - * Initializes rcl and creates some support data structures. - * Initializes clock as RCL_STEADY_TIME. - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] support a zero-initialized rclc_support_t - * \param[in] argc number of args of main - * \param[in] argv array of arguments of main - * \param[in] allocator allocator for allocating memory - * \return `RCL_RET_OK` if RCL was initialized successfully - * \return `RCL_RET_INVALID_ARGUMENT` if any null pointer as argument - * \return `RCL_RET_ERROR` in case of failure - */ -RCLC_PUBLIC -rcl_ret_t -rclc_support_init( - rclc_support_t * support, - int argc, - char const * const * argv, - rcl_allocator_t * allocator); - -/** - * Initializes rcl and creates some support data structures. - * Initializes clock as RCL_STEADY_TIME. - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] support a zero-initialized rclc_support_t - * \param[in] argc number of args of main - * \param[in] argv array of arguments of main - * \param[in] init_options custom initial options - * \param[in] allocator allocator for allocating memory - * \return `RCL_RET_OK` if RCL was initialized successfully - * \return `RCL_RET_INVALID_ARGUMENT` if any null pointer as argument - * \return `RCL_RET_ERROR` in case of failure - */ -RCLC_PUBLIC -rcl_ret_t -rclc_support_init_with_options( - rclc_support_t * support, - int argc, - char const * const * argv, - rcl_init_options_t * init_options, - rcl_allocator_t * allocator); - - -/** - * De-allocates the rclc_support_t object. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] init_obj a preallocated rclc_support_t - * \return `RCL_RET_OK` if operation was successful - * \return `RCL_RET_INVALID_ARGUMENT` if any null pointer as argument - * \return `RCL_RET_ERROR` in case of failure - */ -RCLC_PUBLIC -rcl_ret_t -rclc_support_fini( - rclc_support_t * support); - -#if __cplusplus -} -#endif - -#endif // RCLC__INIT_H_ diff --git a/src/rclc/node.h b/src/rclc/node.h deleted file mode 100755 index 9149a9324..000000000 --- a/src/rclc/node.h +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) 2019 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCLC__NODE_H_ -#define RCLC__NODE_H_ - -#if __cplusplus -extern "C" -{ -#endif -#include -#include - -#include -#include "rclc/visibility_control.h" -/** - * Creates a default RCL node. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in this function and in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] name the name of the node - * \param[in] namespace the namespace of the node - * \param[in] support the rclc_support_t object - * \return rcl_node_t if successful - * \return NULL if an error occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_node_init_default( - rcl_node_t * node, - const char * name, - const char * namespace_, - rclc_support_t * support); - -/** - * Creates a RCL node with options. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in this function and in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] name the name of the node - * \param[in] namespace the namespace of the node - * \param[in] support the rclc_support_t object - * \param[in] node_ops node options - * \return rcl_node_t if successful - * \return NULL if an error occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_node_init_with_options( - rcl_node_t * node, - const char * name, - const char * namespace_, - rclc_support_t * support, - rcl_node_options_t * node_ops); - - -#if __cplusplus -} -#endif - -#endif // RCLC__NODE_H_ diff --git a/src/rclc/publisher.h b/src/rclc/publisher.h deleted file mode 100755 index 35815a21c..000000000 --- a/src/rclc/publisher.h +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) 2019 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -#ifndef RCLC__PUBLISHER_H_ -#define RCLC__PUBLISHER_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include -// #include -// #include -#include -#include -#include "rclc/visibility_control.h" - -/** - * Creates an rcl publisher. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] publisher a zero_initialized rcl_publisher_t - * \param[in] node the rcl node - * \param[in] type_support the message data type - * \param[in] topic_name the name of published topic - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_publisher_init_default( - rcl_publisher_t * publisher, - const rcl_node_t * node, - const rosidl_message_type_support_t * type_support, - const char * topic_name); - -/** - * Creates an rcl publisher with quality-of-service option best effort - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] publisher a zero_initialized rcl_publisher_t - * \param[in] node the rcl node - * \param[in] type_support the message data type - * \param[in] topic_name the name of published topic - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_publisher_init_best_effort( - rcl_publisher_t * publisher, - const rcl_node_t * node, - const rosidl_message_type_support_t * type_support, - const char * topic_name); - -/** - * Creates an rcl publisher with defined QoS - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] publisher a zero_initialized rcl_publisher_t - * \param[in] node the rcl node - * \param[in] type_support the message data type - * \param[in] topic_name the name of published topic - * \param[in] qos_profile the qos of the topic - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_publisher_init( - rcl_publisher_t * publisher, - const rcl_node_t * node, - const rosidl_message_type_support_t * type_support, - const char * topic_name, - const rmw_qos_profile_t * qos_profile); - -#if __cplusplus -} -#endif - -#endif // RCLC__PUBLISHER_H_ diff --git a/src/rclc/rclc.h b/src/rclc/rclc.h deleted file mode 100755 index 97896c998..000000000 --- a/src/rclc/rclc.h +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2020 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCLC__RCLC_H_ -#define RCLC__RCLC_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include // For bool -#include // For size_t - -#include "rclc/init.h" -#include "rclc/node.h" -#include "rclc/publisher.h" -#include "rclc/subscription.h" -#include "rclc/timer.h" -#include "rclc/client.h" -#include "rclc/service.h" -#include "rclc/action_client.h" -#include "rclc/action_server.h" -#include "rclc/types.h" -#include "rclc/visibility_control.h" -#if __cplusplus -} -#endif - -#endif // RCLC__RCLC_H_ diff --git a/src/rclc/service.h b/src/rclc/service.h deleted file mode 100755 index c8376244c..000000000 --- a/src/rclc/service.h +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) 2020 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -#ifndef RCLC__SERVICE_H_ -#define RCLC__SERVICE_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include -#include -#include -#include "rclc/visibility_control.h" - -/** - * Creates an rcl service. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] service a zero_initialized rcl_service_t - * \param[in] node pointer to an initialized rcl node - * \param[in] type_support type of the request message - * \param[in] service_name the name of service topic - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_service_init_default( - rcl_service_t * service, - const rcl_node_t * node, - const rosidl_service_type_support_t * type_support, - const char * service_name); - -/** - * Creates an rcl service with quality-of-service option best effort - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] service a zero_initialized rcl_service_t - * \param[in] node pointer to an initialized rcl node - * \param[in] type_support type of the request message - * \param[in] service_name the name of service topic - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_service_init_best_effort( - rcl_service_t * service, - const rcl_node_t * node, - const rosidl_service_type_support_t * type_support, - const char * service_name); - -/** - * Creates an rcl service with defined QoS - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] service a zero_initialized rcl_service_t - * \param[in] node pointer to an initialized rcl node - * \param[in] type_support type of the request message - * \param[in] service_name the name of service topic - * \param[in] qos_profile the qos of the topic - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error has occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_service_init( - rcl_service_t * service, - const rcl_node_t * node, - const rosidl_service_type_support_t * type_support, - const char * service_name, - const rmw_qos_profile_t * qos_profile); - -#if __cplusplus -} -#endif - -#endif // RCLC__SERVICE_H_ diff --git a/src/rclc/sleep.h b/src/rclc/sleep.h deleted file mode 100755 index 59ed7be85..000000000 --- a/src/rclc/sleep.h +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2019 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -#ifndef RCLC__SLEEP_H_ -#define RCLC__SLEEP_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include "rclc/visibility_control.h" - -/** - * Waits for milliseconds. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] ms milliseconds to wait - */ -RCLC_PUBLIC -void -rclc_sleep_ms( - unsigned int ms); - -#if __cplusplus -} -#endif - -#endif // RCLC__SLEEP_H_ diff --git a/src/rclc/subscription.h b/src/rclc/subscription.h deleted file mode 100755 index cfa5ab485..000000000 --- a/src/rclc/subscription.h +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) 2019 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -#ifndef RCLC__SUBSCRIPTION_H_ -#define RCLC__SUBSCRIPTION_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include -#include -#include -#include "rclc/visibility_control.h" - -/** - * Creates an rcl subscription. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] subscription - a zero-initialized rcl_subscription_t - * \param[in] node the rcl node - * \param[in] type_support the message data type - * \param[in] topic_name the name of subscribed topic - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_subscription_init_default( - rcl_subscription_t * subscription, - rcl_node_t * node, - const rosidl_message_type_support_t * type_support, - const char * topic_name); - -/** - * Creates an rcl subscription with quality of service option best effort - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] subscription - a zero-initialized rcl_subscription_t - * \param[in] node the rcl node - * \param[in] type_support the message data type - * \param[in] topic_name the name of subscribed topic - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_subscription_init_best_effort( - rcl_subscription_t * subscription, - rcl_node_t * node, - const rosidl_message_type_support_t * type_support, - const char * topic_name); - - -/** - * Creates an rcl subscription with defined QoS - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] subscription - a zero-initialized rcl_subscription_t - * \param[in] node the rcl node - * \param[in] type_support the message data type - * \param[in] topic_name the name of subscribed topic - * \param[in] qos_profile the qos of the topic - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_subscription_init( - rcl_subscription_t * subscription, - rcl_node_t * node, - const rosidl_message_type_support_t * type_support, - const char * topic_name, - const rmw_qos_profile_t * qos_profile); - -#if __cplusplus -} -#endif - -#endif // RCLC__SUBSCRIPTION_H_ diff --git a/src/rclc/timer.h b/src/rclc/timer.h deleted file mode 100755 index 6e8f5aeec..000000000 --- a/src/rclc/timer.h +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) 2019 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -#ifndef RCLC__TIMER_H_ -#define RCLC__TIMER_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include -#include -#include "rclc/visibility_control.h" - -/** - * Creates an rcl timer. - * - * *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes (in RCL) - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] timer a zero-initialized rcl_timer_t - * \param[in] support the rclc_support_t object - * \param[in] timeout_ns the time out in nanoseconds of the timer - * \param[in] callback the callback of the timer - * \param[in] autostart the state of the timer at initialization - * \return `RCL_RET_OK` if successful - * \return `RCL_ERROR` (or other error code) if an error occurred - */ -RCLC_PUBLIC -rcl_ret_t -rclc_timer_init_default2( - rcl_timer_t * timer, - rclc_support_t * support, - const uint64_t timeout_ns, - const rcl_timer_callback_t callback, - bool autostart); - -/** - * \deprecated `rclc_timer_init_default` implementation was removed. - * Refer to `rclc_timer_init_default2`. - */ -RCL_PUBLIC -RCUTILS_DEPRECATED_WITH_MSG("Call rclc_timer_init_default2 instead") -rcl_ret_t -rclc_timer_init_default( - rcl_timer_t * timer, - rclc_support_t * support, - const uint64_t timeout_ns, - const rcl_timer_callback_t callback); - -#if __cplusplus -} -#endif - -#endif // RCLC__TIMER_H_ diff --git a/src/rclc/types.h b/src/rclc/types.h deleted file mode 100755 index dc2cb7f78..000000000 --- a/src/rclc/types.h +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) 2019 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCLC__TYPES_H_ -#define RCLC__TYPES_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -typedef struct -{ - rcl_context_t context; - rcl_allocator_t * allocator; - rcl_clock_t clock; -} rclc_support_t; - - -/** - * macro to print errors - */ -#ifndef PRINT_RCLC_ERROR -#define PRINT_RCLC_ERROR(rclc, rcl) \ - do { \ - RCUTILS_LOG_ERROR_NAMED( \ - ROS_PACKAGE_NAME, \ - "[" #rclc "] Error in " #rcl ": %s\n", rcutils_get_error_string().str); \ - rcl_reset_error(); \ - } while (0) -#endif - -/** - * macro to print warnings - */ -#ifndef PRINT_RCLC_WARN -#define PRINT_RCLC_WARN(rclc, rcl) \ - do { \ - RCUTILS_LOG_WARN_NAMED( \ - ROS_PACKAGE_NAME, \ - "[" #rclc "] Warning in " #rcl ": %s\n", rcutils_get_error_string().str); \ - rcl_reset_error(); \ - } while (0) -#endif - -#define RCLC_UNUSED(x) (void)x - -#if __cplusplus -} -#endif - -#endif // RCLC__TYPES_H_ diff --git a/src/rclc/visibility_control.h b/src/rclc/visibility_control.h deleted file mode 100755 index 36b327af4..000000000 --- a/src/rclc/visibility_control.h +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCLC__VISIBILITY_CONTROL_H_ -#define RCLC__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define RCLC_EXPORT __attribute__ ((dllexport)) - #define RCLC_IMPORT __attribute__ ((dllimport)) - #else - #define RCLC_EXPORT __declspec(dllexport) - #define RCLC_IMPORT __declspec(dllimport) - #endif - #ifdef RCLC_BUILDING_LIBRARY - #define RCLC_PUBLIC RCLC_EXPORT - #else - #define RCLC_PUBLIC RCLC_IMPORT - #endif - #define RCLC_PUBLIC_TYPE RCLC_PUBLIC - #define RCLC_LOCAL -#else - #define RCLC_EXPORT __attribute__ ((visibility("default"))) - #define RCLC_IMPORT - #if __GNUC__ >= 4 - #define RCLC_PUBLIC __attribute__ ((visibility("default"))) - #define RCLC_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define RCLC_PUBLIC - #define RCLC_LOCAL - #endif - #define RCLC_PUBLIC_TYPE -#endif - -#ifdef __cplusplus -} -#endif - -#endif // RCLC__VISIBILITY_CONTROL_H_ diff --git a/src/rclc_lifecycle/rclc_lifecycle.h b/src/rclc_lifecycle/rclc_lifecycle.h deleted file mode 100755 index 546e2c0a4..000000000 --- a/src/rclc_lifecycle/rclc_lifecycle.h +++ /dev/null @@ -1,169 +0,0 @@ -// Copyright (c) 2020 - for information on the respective copyright owner -// see the NOTICE file and/or the repository https://github.com/ros2/rclc. -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCLC_LIFECYCLE__RCLC_LIFECYCLE_H_ -#define RCLC_LIFECYCLE__RCLC_LIFECYCLE_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#define RCLC_LIFECYCLE_MAX_NUMBER_OF_STATES 100 // highest transition id: 99 - -#include -#include -#include - -#include -#include -#include - -#include -#include -#include "rclc_lifecycle/visibility_control.h" - -typedef struct rclc_lifecycle_callback_map_t -{ - bool goal_states[RCLC_LIFECYCLE_MAX_NUMBER_OF_STATES]; - int (* fun_ptrs[RCLC_LIFECYCLE_MAX_NUMBER_OF_STATES])(void); -} rclc_lifecycle_callback_map_t; - -/// Structure which encapsulates a ROS Lifecycle Node. -typedef struct rclc_lifecycle_node_t -{ - rcl_node_t * node; - rcl_lifecycle_state_machine_t * state_machine; - rclc_lifecycle_callback_map_t callbacks; - bool publish_transitions; - - lifecycle_msgs__srv__ChangeState_Request cs_req; - lifecycle_msgs__srv__ChangeState_Response cs_res; - lifecycle_msgs__srv__GetState_Request gs_req; - lifecycle_msgs__srv__GetState_Response gs_res; - lifecycle_msgs__srv__GetAvailableStates_Request gas_req; - lifecycle_msgs__srv__GetAvailableStates_Response gas_res; -} rclc_lifecycle_node_t; - -/// Structure which encapsulates a ROS Lifecycle Node. -typedef struct rclc_lifecycle_service_context_t -{ - rclc_lifecycle_node_t * lifecycle_node; -} rclc_lifecycle_service_context_t; - -RCLC_LIFECYCLE_PUBLIC -rcl_ret_t -rclc_lifecycle_init_get_state_server( - rclc_lifecycle_service_context_t * context, - rclc_executor_t * executor); - -RCLC_LIFECYCLE_PUBLIC -rcl_ret_t -rclc_lifecycle_init_get_available_states_server( - rclc_lifecycle_service_context_t * context, - rclc_executor_t * executor); - -RCLC_LIFECYCLE_PUBLIC -rcl_ret_t -rclc_lifecycle_init_change_state_server( - rclc_lifecycle_service_context_t * context, - rclc_executor_t * executor); - -RCLC_LIFECYCLE_PUBLIC -void -rclc_lifecycle_get_state_callback( - const void * req, - void * res, - void * context); - -RCLC_LIFECYCLE_PUBLIC -void -rclc_lifecycle_get_available_states_callback( - const void * req, - void * res, - void * context); - -RCLC_LIFECYCLE_PUBLIC -void -rclc_lifecycle_change_state_callback( - const void * req, - void * res, - void * context); - -RCLC_LIFECYCLE_PUBLIC -rcl_ret_t -rclc_make_node_a_lifecycle_node( - rclc_lifecycle_node_t * lifecycle_node, - rcl_node_t * node, - rcl_lifecycle_state_machine_t * state_machine, - rcl_allocator_t * allocator, - bool enable_communication_interface); - -RCLC_LIFECYCLE_PUBLIC -rcl_ret_t -rclc_lifecycle_change_state( - rclc_lifecycle_node_t * lifecycle_node, - unsigned int transition_id, - bool publish_update); - -RCLC_LIFECYCLE_PUBLIC -rcl_ret_t -rclc_lifecycle_register_callback( - rclc_lifecycle_node_t * lifecycle_node, - unsigned int goal_state, - int (* cb)(void)); - -RCLC_LIFECYCLE_PUBLIC -rcl_ret_t -rclc_lifecycle_register_on_configure( - rclc_lifecycle_node_t * node, - int (* cb)(void)); - -RCLC_LIFECYCLE_PUBLIC -rcl_ret_t -rclc_lifecycle_register_on_activate( - rclc_lifecycle_node_t * node, - int (* cb)(void)); - -RCLC_LIFECYCLE_PUBLIC -rcl_ret_t -rclc_lifecycle_register_on_deactivate( - rclc_lifecycle_node_t * node, - int (* cb)(void)); - -RCLC_LIFECYCLE_PUBLIC -rcl_ret_t -rclc_lifecycle_register_on_cleanup( - rclc_lifecycle_node_t * node, - int (* cb)(void)); - -RCLC_LIFECYCLE_PUBLIC -rcl_ret_t -rclc_lifecycle_execute_callback( - rclc_lifecycle_node_t * lifecycle_node, - unsigned int transition_id); - -RCLC_LIFECYCLE_PUBLIC -rcl_ret_t -rclc_lifecycle_node_fini( - rclc_lifecycle_node_t * node, - rcl_allocator_t * allocator); - -#if __cplusplus -} -#endif - -#endif // RCLC_LIFECYCLE__RCLC_LIFECYCLE_H_ diff --git a/src/rclc_lifecycle/visibility_control.h b/src/rclc_lifecycle/visibility_control.h deleted file mode 100755 index cbc6a810f..000000000 --- a/src/rclc_lifecycle/visibility_control.h +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCLC_LIFECYCLE__VISIBILITY_CONTROL_H_ -#define RCLC_LIFECYCLE__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define RCLC_LIFECYCLE_EXPORT __attribute__ ((dllexport)) - #define RCLC_LIFECYCLE_IMPORT __attribute__ ((dllimport)) - #else - #define RCLC_LIFECYCLE_EXPORT __declspec(dllexport) - #define RCLC_LIFECYCLE_IMPORT __declspec(dllimport) - #endif - #ifdef RCLC_LIFECYCLE_BUILDING_LIBRARY - #define RCLC_LIFECYCLE_PUBLIC RCLC_LIFECYCLE_EXPORT - #else - #define RCLC_LIFECYCLE_PUBLIC RCLC_LIFECYCLE_IMPORT - #endif - #define RCLC_LIFECYCLE_PUBLIC_TYPE RCLC_LIFECYCLE_PUBLIC - #define RCLC_LIFECYCLE_LOCAL -#else - #define RCLC_LIFECYCLE_EXPORT __attribute__ ((visibility("default"))) - #define RCLC_LIFECYCLE_IMPORT - #if __GNUC__ >= 4 - #define RCLC_LIFECYCLE_PUBLIC __attribute__ ((visibility("default"))) - #define RCLC_LIFECYCLE_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define RCLC_LIFECYCLE_PUBLIC - #define RCLC_LIFECYCLE_LOCAL - #endif - #define RCLC_LIFECYCLE_PUBLIC_TYPE -#endif - -#ifdef __cplusplus -} -#endif - -#endif // RCLC_LIFECYCLE__VISIBILITY_CONTROL_H_ diff --git a/src/rclc_parameter/rclc_parameter.h b/src/rclc_parameter/rclc_parameter.h deleted file mode 100755 index fb89746bb..000000000 --- a/src/rclc_parameter/rclc_parameter.h +++ /dev/null @@ -1,579 +0,0 @@ -// Copyright (c) 2021 - for information on the respective copyright owner -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCLC_PARAMETER__RCLC_PARAMETER_H_ -#define RCLC_PARAMETER__RCLC_PARAMETER_H_ - -#if __cplusplus -extern "C" -{ -#endif // if __cplusplus - -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -// Alias for rcl_interfaces types - -typedef struct rcl_interfaces__srv__GetParameters_Request GetParameters_Request; -typedef struct rcl_interfaces__srv__GetParameters_Response GetParameters_Response; - -typedef struct rcl_interfaces__srv__GetParameterTypes_Request GetParameterTypes_Request; -typedef struct rcl_interfaces__srv__GetParameterTypes_Response GetParameterTypes_Response; - -typedef struct rcl_interfaces__srv__SetParameters_Request SetParameters_Request; -typedef struct rcl_interfaces__srv__SetParameters_Response SetParameters_Response; -typedef struct rcl_interfaces__msg__SetParametersResult SetParameters_Result; - -typedef struct rcl_interfaces__srv__SetParametersAtomically_Request SetParametersAtomically_Request; -typedef struct rcl_interfaces__srv__SetParametersAtomically_Response - SetParametersAtomically_Response; - -typedef struct rcl_interfaces__srv__DescribeParameters_Request DescribeParameters_Request; -typedef struct rcl_interfaces__srv__DescribeParameters_Response DescribeParameters_Response; - -typedef struct rcl_interfaces__srv__ListParameters_Request ListParameters_Request; -typedef struct rcl_interfaces__srv__ListParameters_Response ListParameters_Response; - -typedef struct rcl_interfaces__msg__Parameter Parameter; -typedef struct rcl_interfaces__msg__ParameterValue ParameterValue; -typedef struct rcl_interfaces__msg__Parameter__Sequence Parameter__Sequence; -typedef struct rcl_interfaces__msg__ParameterDescriptor ParameterDescriptor; -typedef struct rcl_interfaces__msg__ParameterDescriptor__Sequence ParameterDescriptor__Sequence; -typedef struct rcl_interfaces__msg__ParameterEvent ParameterEvent; - -// Number of RCLC executor handles required for a parameter server -#define RCLC_EXECUTOR_PARAMETER_SERVER_HANDLES 6 -#define RCLC_PARAMETER_MODIFICATION_REJECTED 4001 -#define RCLC_PARAMETER_TYPE_MISMATCH 4002 -#define RCLC_PARAMETER_UNSUPORTED_ON_LOW_MEM 4003 -#define RCLC_PARAMETER_DISABLED_ON_CALLBACK 40004 - -/** - * Parameter event callback. - * This callback will allow the user to allow or reject the following events: - * - Parameter value change: Internal and external parameter set on existing parameters. - * - Parameter creation: External parameter set on unexisting parameter if `allow_undeclared_parameters` is set. - * - Parameter delete: External parameter delete on existing parameter. - * - * Parameters modifications are disabled while this callback is executed. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] old_param Parameter actual value, `NULL` for new parameter request. - * \param[in] new_param Parameter new value, `NULL` for parameter removal request. - * \param[in] context Context of the callback. - * \return `true` to accept the parameter event. If the operation was rejected, `false` is returned. - */ -typedef bool (* rclc_parameter_callback_t)( - const Parameter * old_param, - const Parameter * new_param, - void * context); - -// Allowed RCLC parameter types -typedef enum rclc_parameter_type_t -{ - RCLC_PARAMETER_NOT_SET = 0, - RCLC_PARAMETER_BOOL, - RCLC_PARAMETER_INT, - RCLC_PARAMETER_DOUBLE -} rclc_parameter_type_t; - -// RCLC parameter server options -typedef struct rclc_parameter_options_t -{ - bool notify_changed_over_dds; - size_t max_params; - bool allow_undeclared_parameters; - bool low_mem_mode; -} rclc_parameter_options_t; - -// Container for RCLC parameter server -typedef struct rclc_parameter_server_t -{ - rcl_service_t get_service; - rcl_service_t get_types_service; - rcl_service_t set_service; - rcl_service_t set_atomically_service; - rcl_service_t list_service; - rcl_service_t describe_service; - rcl_publisher_t event_publisher; - - GetParameters_Request get_request; - GetParameters_Response get_response; - - GetParameterTypes_Request get_types_request; - GetParameterTypes_Response get_types_response; - - SetParameters_Request set_request; - SetParameters_Response set_response; - - SetParametersAtomically_Request set_atomically_request; - SetParametersAtomically_Response set_atomically_response; - - ListParameters_Request list_request; - ListParameters_Response list_response; - - DescribeParameters_Request describe_request; - DescribeParameters_Response describe_response; - - Parameter__Sequence parameter_list; - ParameterDescriptor__Sequence parameter_descriptors; - - ParameterEvent event_list; - - rclc_parameter_callback_t on_modification; - void * context; - bool on_callback; - - bool notify_changed_over_dds; - bool allow_undeclared_parameters; - bool low_mem_mode; -} rclc_parameter_server_t; - -/** - * Initializes a RCLC parameter server in a node with default configuration - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[inout] parameter_server preallocated rclc_parameter_server_t - * \param[in] node related node - * \return `RCL_RET_OK` if the \p parameter_server was initialized successfully - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t rclc_parameter_server_init_default( - rclc_parameter_server_t * parameter_server, - rcl_node_t * node); - -/** - * Initializes a RCLC parameter server in a node with given configuration - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[inout] parameter_server preallocated rclc_parameter_server_t - * \param[in] node related node - * \param[in] options rclc_parameter_options_t struct with parameter options - * \return `RCL_RET_OK` if the \p parameter_server was initialized successfully - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t rclc_parameter_server_init_with_option( - rclc_parameter_server_t * parameter_server, - rcl_node_t * node, - const rclc_parameter_options_t * options); - -/** - * Destroy a RCLC parameter server - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] node related node - * \return `RCL_RET_OK` if the \p parameter_server was destroyed successfully - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t rclc_parameter_server_fini( - rclc_parameter_server_t * parameter_server, - rcl_node_t * node); - -/** - * Adds a RCLC parameter server to an RCLC executor - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] executor RCLC executor - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] on_modification on parameter modification callback - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t rclc_executor_add_parameter_server( - rclc_executor_t * executor, - rclc_parameter_server_t * parameter_server, - rclc_parameter_callback_t on_modification); - -/** - * Adds a RCLC parameter server to an RCLC executor - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] executor RCLC executor - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] on_modification on parameter modification callback - * \param[in] context context of the parameter modification callback - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t rclc_executor_add_parameter_server_with_context( - rclc_executor_t * executor, - rclc_parameter_server_t * parameter_server, - rclc_parameter_callback_t on_modification, - void * context); - -/** - * Adds a RCLC parameter to a server - * This method is disabled on user callback execution. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] parameter_name name of the parameter - * \param[in] type type of the parameter - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t -rclc_add_parameter( - rclc_parameter_server_t * parameter_server, - const char * parameter_name, - rclc_parameter_type_t type); - -/** - * Deletes a RCLC parameter from the server. - * This method is disabled on user callback execution. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] parameter_name name of the parameter - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t -rclc_delete_parameter( - rclc_parameter_server_t * parameter_server, - const char * parameter_name); - -/** - * Sets the value of an existing a RCLC bool parameter. - * This method is disabled on user callback execution. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] parameter_name name of the parameter - * \param[in] value value of the parameter - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t -rclc_parameter_set_bool( - rclc_parameter_server_t * parameter_server, - const char * parameter_name, - bool value); - -/** - * Sets the value of an existing a RCLC integer parameter. - * This method is disabled on user callback execution. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] parameter_name name of the parameter - * \param[in] value value of the parameter - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t -rclc_parameter_set_int( - rclc_parameter_server_t * parameter_server, - const char * parameter_name, - int64_t value); - -/** - * Sets the value of an existing a RCLC double parameter. - * This method is disabled on user callback execution. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] parameter_name name of the parameter - * \param[in] value value of the parameter - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t -rclc_parameter_set_double( - rclc_parameter_server_t * parameter_server, - const char * parameter_name, - double value); - -/** - * Get the value of an existing a RCLC bool parameter - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] parameter_name name of the parameter - * \param[inout] value returns value of the parameter - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t -rclc_parameter_get_bool( - rclc_parameter_server_t * parameter_server, - const char * parameter_name, - bool * output); - -/** - * Get the value of an existing a RCLC integer parameter - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] parameter_name name of the parameter - * \param[inout] value returns value of the parameter - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t -rclc_parameter_get_int( - rclc_parameter_server_t * parameter_server, - const char * parameter_name, - int64_t * output); - -/** - * Get the value of an existing a RCLC double parameter - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] parameter_name name of the parameter - * \param[inout] value returns value of the parameter - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t -rclc_parameter_get_double( - rclc_parameter_server_t * parameter_server, - const char * parameter_name, - double * output); - - -/** - * Add a description to a parameter. (This feature is disabled in low memory mode.) - * This description will be returned on describe parameters requests. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] parameter_name name of the parameter - * \param[in] parameter_description description of the parameter - * \param[in] additional_constraints constraints description - * \param[in] read_only read only flag - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t -rclc_add_parameter_description( - rclc_parameter_server_t * parameter_server, - const char * parameter_name, - const char * parameter_description, - const char * additional_constraints); - -/** - * Sets a parameter read only flag. - * Read only parameters can only be modified from the `rclc_parameter_set` API. - * This method is disabled on user callback execution. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] parameter_name name of the parameter - * \param[in] read_only read only flag - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t -rclc_set_parameter_read_only( - rclc_parameter_server_t * parameter_server, - const char * parameter_name, - bool read_only); - -/** - * Sets a constraint on an integer parameter. - * This constraint specification will be returned on describe parameters requests. - * This method is disabled on user callback execution. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] parameter_name name of the parameter - * \param[in] from_value start value for valid values, inclusive. - * \param[in] to_value end value for valid values, inclusive. - * \param[in] step size of valid steps between the from and to bound. - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t -rclc_add_parameter_constraint_integer( - rclc_parameter_server_t * parameter_server, - const char * parameter_name, - int64_t from_value, - int64_t to_value, - uint64_t step); - -/** - * Sets a constraint on an double parameter. - * This constraint specification will be returned on describe parameters requests. - * This method is disabled on user callback execution. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | No - * - * \param[in] parameter_server preallocated rclc_parameter_server_t - * \param[in] parameter_name name of the parameter - * \param[in] from_value start value for valid values, inclusive. - * \param[in] to_value end value for valid values, inclusive. - * \param[in] step size of valid steps between the from and to bound. - * \return `RCL_RET_OK` if success - */ -RCLC_PARAMETER_PUBLIC -rcl_ret_t -rclc_add_parameter_constraint_double( - rclc_parameter_server_t * parameter_server, - const char * parameter_name, - double from_value, - double to_value, - double step); - -#if __cplusplus -} -#endif // if __cplusplus - -#endif // RCLC_PARAMETER__RCLC_PARAMETER_H_ diff --git a/src/rclc_parameter/visibility_control.h b/src/rclc_parameter/visibility_control.h deleted file mode 100755 index 9fea08808..000000000 --- a/src/rclc_parameter/visibility_control.h +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2021 - for information on the respective copyright owner -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCLC_PARAMETER__VISIBILITY_CONTROL_H_ -#define RCLC_PARAMETER__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define RCLC_PARAMETER_EXPORT __attribute__ ((dllexport)) - #define RCLC_PARAMETER_IMPORT __attribute__ ((dllimport)) - #else - #define RCLC_PARAMETER_EXPORT __declspec(dllexport) - #define RCLC_PARAMETER_IMPORT __declspec(dllimport) - #endif - #ifdef RCLC_PARAMETER_BUILDING_LIBRARY - #define RCLC_PARAMETER_PUBLIC RCLC_PARAMETER_EXPORT - #else - #define RCLC_PARAMETER_PUBLIC RCLC_PARAMETER_IMPORT - #endif - #define RCLC_PARAMETER_PUBLIC_TYPE RCLC_PARAMETER_PUBLIC - #define RCLC_PARAMETER_LOCAL -#else - #define RCLC_PARAMETER_EXPORT __attribute__ ((visibility("default"))) - #define RCLC_PARAMETER_IMPORT - #if __GNUC__ >= 4 - #define RCLC_PARAMETER_PUBLIC __attribute__ ((visibility("default"))) - #define RCLC_PARAMETER_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define RCLC_PARAMETER_PUBLIC - #define RCLC_PARAMETER_LOCAL - #endif - #define RCLC_PARAMETER_PUBLIC_TYPE -#endif - -#ifdef __cplusplus -} -#endif - -#endif // RCLC_PARAMETER__VISIBILITY_CONTROL_H_ diff --git a/src/rcutils/allocator.h b/src/rcutils/allocator.h deleted file mode 100755 index 5547db284..000000000 --- a/src/rcutils/allocator.h +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__ALLOCATOR_H_ -#define RCUTILS__ALLOCATOR_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rcutils/macros.h" -#include "rcutils/types/rcutils_ret.h" -#include "rcutils/visibility_control.h" - -/// Encapsulation of an allocator. -/** - * The default allocator uses malloc(), free(), calloc(), and realloc(). - * It can be obtained using rcutils_get_default_allocator(). - * - * The allocator should be trivially copyable. - * Meaning that the struct should continue to work after being assignment - * copied into a new struct. - * Specifically the object pointed to by the state pointer should remain valid - * until all uses of the allocator have been made. - * Particular care should be taken when giving an allocator to functions like - * rcutils_*_init() where it is stored within another object and used later. - * Developers should note that, while the fields of a const-qualified allocator - * struct cannot be modified, the state of the allocator can be modified. - */ -typedef struct rcutils_allocator_s -{ - /// Allocate memory, given a size and the `state` pointer. - /** An error should be indicated by returning `NULL`. */ - void * (*allocate)(size_t size, void * state); - /// Deallocate previously allocated memory, mimicking free(). - /** Also takes the `state` pointer. */ - void (* deallocate)(void * pointer, void * state); - /// Reallocate if possible, otherwise it deallocates and allocates. - /** - * Also takes the `state` pointer. - * - * If unsupported then do deallocate and then allocate. - * This should behave as realloc() does, as opposed to posix's - * [reallocf](https://linux.die.net/man/3/reallocf), i.e. the memory given - * by pointer will not be free'd automatically if realloc() fails. - * For reallocf-like behavior use rcutils_reallocf(). - * This function must be able to take an input pointer of `NULL` and succeed. - */ - void * (*reallocate)(void * pointer, size_t size, void * state); - /// Allocate memory with all elements set to zero, given a number of elements and their size. - /** An error should be indicated by returning `NULL`. */ - void * (*zero_allocate)(size_t number_of_elements, size_t size_of_element, void * state); - /// Implementation defined state storage. - /** - * This is passed as the final parameter to other allocator functions. - * Note that the contents of the state can be modified even in const-qualified - * allocator objects. - */ - void * state; -} rcutils_allocator_t; - -/// Return a zero initialized allocator. -/** - * Note that this is an invalid allocator and should only be used as a placeholder. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_allocator_t -rcutils_get_zero_initialized_allocator(void); - -/// Set rcutils default allocators. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -bool -rcutils_set_default_allocator(rcutils_allocator_t * allocator); - -/// Return a properly initialized rcutils_allocator_t with default values. -/** - * This defaults to: - * - * - allocate = wraps malloc() - * - deallocate = wraps free() - * - reallocate = wraps realloc() - * - zero_allocate = wraps calloc() - * - state = `NULL` - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_allocator_t -rcutils_get_default_allocator(void); - -/// Return true if the given allocator has non-null function pointers. -/** - * \param[in] allocator to be checked by the function - * \return `true` if the allocator is valid, `false` otherwise. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -bool -rcutils_allocator_is_valid(const rcutils_allocator_t * allocator); - -/// Check the given allocator and run fail_statement if it is not valid. -#define RCUTILS_CHECK_ALLOCATOR(allocator, fail_statement) \ - if (!rcutils_allocator_is_valid(allocator)) { \ - fail_statement; \ - } - -/// Check the given allocator, and set the message in msg and run fail_statement if it is not valid. -#define RCUTILS_CHECK_ALLOCATOR_WITH_MSG(allocator, msg, fail_statement) \ - if (!rcutils_allocator_is_valid(allocator)) { \ - RCUTILS_SET_ERROR_MSG(msg); \ - fail_statement; \ - } - -/// Emulate the behavior of [reallocf](https://linux.die.net/man/3/reallocf). -/** - * This function will return `NULL` if the allocator is `NULL` or has `NULL` for - * function pointer fields. - * \param[inout] pointer to the memory which will be reallocated - * \param[in] size in bytes - * \param[in] allocator to be used to allocate and deallocate memory - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -void * -rcutils_reallocf(void * pointer, size_t size, rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__ALLOCATOR_H_ diff --git a/src/rcutils/cmdline_parser.h b/src/rcutils/cmdline_parser.h deleted file mode 100755 index 1cf9a2624..000000000 --- a/src/rcutils/cmdline_parser.h +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__CMDLINE_PARSER_H_ -#define RCUTILS__CMDLINE_PARSER_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/visibility_control.h" - -/// Return `true` if the option is defined in the command line arguments or `false` otherwise. -/** - * \param[in] begin first element to check in the array - * \param[in] end last element to check in the array - * \param[in] option string to find in the array of arguments - * \return `true` if the option exists, or - * \return `false` otherwise. - */ -RCUTILS_PUBLIC -bool -rcutils_cli_option_exist(char ** begin, char ** end, const char * option); - -/// Return the value for a specific option of the command line arguments. -/** - * \param[in] begin first element to check in the array - * \param[in] end last element to check in the array - * \param[in] option string to find in the array of arguments - * \return the value for a specific option of the command line arguments, or - * \return `NULL` if the option doesn't exist. - */ -RCUTILS_PUBLIC -char * -rcutils_cli_get_option(char ** begin, char ** end, const char * option); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__CMDLINE_PARSER_H_ diff --git a/src/rcutils/configuration_flags.h b/src/rcutils/configuration_flags.h deleted file mode 100755 index f02dec1db..000000000 --- a/src/rcutils/configuration_flags.h +++ /dev/null @@ -1,19 +0,0 @@ - -#ifndef RCUTILS__CONFIGURATION_FLAGS_H_ -#define RCUTILS__CONFIGURATION_FLAGS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#define RCUTILS_NO_FILESYSTEM -#define RCUTILS_AVOID_DYNAMIC_ALLOCATION -#define RCUTILS_NO_THREAD_SUPPORT -#define RCUTILS_MICROROS - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__CONFIGURATION_FLAGS_H_ diff --git a/src/rcutils/env.h b/src/rcutils/env.h deleted file mode 100755 index 154aa6661..000000000 --- a/src/rcutils/env.h +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__ENV_H_ -#define RCUTILS__ENV_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/macros.h" -#include "rcutils/visibility_control.h" - -/// Set or un-set a process-scoped environment variable. -/** - * This function modifies the environment variables for the current process by - * copying given string values into the process' global environment variable - * store. - * - * \par Thread Safety: - * This function is not thread-safe. Take care not to modify the environment variables while - * another thread might be reading or writing environment variables. - * - * \par Platform Consistency: - * The behavior when setting a variable to an empty string (`""`) differs - * between platforms. On Windows, the variable is un-set (as if \p env_value was - * `NULL`), while on other platforms the variable is set to an empty string as - * expected. - * - * \param[in] env_name Name of the environment variable to modify. - * \param[in] env_value Value to set the environment variable to, or `NULL` to - * un-set. - * \return `true` if success, or - * \return `false` if env_name is invalid or NULL, or - * \return `false` on failure. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -bool -rcutils_set_env(const char * env_name, const char * env_value); - -/// Set or un-set a process-scoped environment variable while specifying overwrite behavior. -/** - * This function modifies the environment variables for the current process by - * copying given string values into the process' global environment variable - * store. - * - * \par Thread Safety: - * This function is not thread-safe. Take care not to modify the environment variables while - * another thread might be reading or writing environment variables. - * - * \par Platform Consistency: - * The behavior when setting a variable to an empty string (`""`) differs - * between platforms. On Windows, the variable is un-set (as if \p env_value was - * `NULL`), while on other platforms the variable is set to an empty string as - * expected. - * - * \param[in] env_name Name of the environment variable to modify. - * \param[in] env_value Value to set the environment variable to, or `NULL` to - * un-set. - * \param[in] overwrite If true, the environemnt variable value will not be overwritten - * if previously set. - * \return `true` if success, or - * \return `false` if env_name is invalid or NULL, or - * \return `false` on failure. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -bool -rcutils_set_env_overwrite(const char * env_name, const char * env_value, bool overwrite); - -/// Retrieve the value of the given environment variable if it exists, or "". -/** The c-string which is returned in the env_value output parameter is only - * valid until the next time this function is called, because it is a direct - * pointer to the static storage. - * The variable env_value populated by this function should never have free() - * called on it. - * If the environment variable is not set, an empty string will be returned. - * - * In both cases, environment variable set or unset, NULL is returned unless - * an exception has occurred, in which case the error string is returned. - * For example: - * - * ```c - * #include - * #include - * const char * env_value; - * const char * error_str; - * error_str = rcutils_get_env("SOME_ENV_VAR", &env_value); - * if (error_str != NULL) { - * fprintf(stderr, "Error getting env var: %s\n", error_str); - * } - * printf("Valued of 'SOME_ENV_VAR': %s\n", env_value); - * ``` - * - * This function cannot be concurrently called together with rcutils_set_env (or any platform specific equivalent) - * on different threads, but multiple concurrent calls to this function are thread safe. - * - * \param[in] env_name the name of the environment variable - * \param[out] env_value pointer to the value cstring, or "" if unset - * \return NULL on success (success can be returning an empty string), or - * \return an error string on failure. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -const char * -rcutils_get_env(const char * env_name, const char ** env_value); - -/// Retrieve the full path to the home directory. -/** - * The c-string which is returned is only valid until the next time this - * function is called, because it is a direct pointer to the static storage. - * Also note that the string returned here should *not* be freed. - * - * The function first tries to get the HOME environment variable. - * If that variable exists and is non-empty, that will be returned. - * Otherwise, on Windows, the function tries to get the USERPROFILE environment variable. - * If that variable exists and is non-empty, that will be returned. - * Otherwise, NULL will be returned. - * - * This function cannot be thread-safely called together with rcutils_set_env - * (or any platform specific equivalent), but multiple calls to this function are thread safe. - * - * \return The home directory on success, or - * \return `NULL` on failure. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -const char * -rcutils_get_home_dir(void); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__ENV_H_ diff --git a/src/rcutils/error_handling.h b/src/rcutils/error_handling.h deleted file mode 100755 index 2c7075e38..000000000 --- a/src/rcutils/error_handling.h +++ /dev/null @@ -1,414 +0,0 @@ -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__ERROR_HANDLING_H_ -#define RCUTILS__ERROR_HANDLING_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#ifndef __STDC_WANT_LIB_EXT1__ -#define __STDC_WANT_LIB_EXT1__ 1 // indicate we would like strnlen_s if available -#endif -#include -#include -#include -#include -#include -#include -#include - -#include "rcutils/allocator.h" -#include "rcutils/macros.h" -#include "rcutils/snprintf.h" -#include "rcutils/testing/fault_injection.h" -#include "rcutils/types/rcutils_ret.h" -#include "rcutils/visibility_control.h" -#include "rcutils/configuration_flags.h" - -#if defined(__STDC_LIB_EXT1__) && !defined(RCUTILS_NO_FILESYSTEM) -/// Write the given msg out to stderr, limiting the buffer size in the `fwrite`. -/** - * This ensures that there is an upper bound to a buffer overrun if `msg` is - * non-null terminated. - */ -#define RCUTILS_SAFE_FWRITE_TO_STDERR(msg) \ - do {fwrite(msg, sizeof(char), strnlen_s(msg, 4096), stderr);} while (0) -#elif !defined(RCUTILS_NO_FILESYSTEM) -#define RCUTILS_SAFE_FWRITE_TO_STDERR(msg) \ - do {fwrite(msg, sizeof(char), strlen(msg), stderr);} while (0) -#else - #define RCUTILS_SAFE_FWRITE_TO_STDERR(msg) -#endif - -/// Set the error message to stderr using a format string and format arguments. -/** - * This function sets the error message to stderr using the given format string. - * The resulting formatted string is silently truncated at - * RCUTILS_ERROR_MESSAGE_MAX_LENGTH. - * - * \param[in] format_string The string to be used as the format of the error message. - * \param[in] ... Arguments for the format string. - */ - -#if !defined(RCUTILS_AVOID_DYNAMIC_ALLOCATION) -#define RCUTILS_SAFE_FWRITE_TO_STDERR_WITH_FORMAT_STRING(format_string, ...) \ - do { \ - char output_msg[RCUTILS_ERROR_MESSAGE_MAX_LENGTH]; \ - int ret = rcutils_snprintf(output_msg, sizeof(output_msg), format_string, __VA_ARGS__); \ - if (ret < 0) { \ - RCUTILS_SAFE_FWRITE_TO_STDERR("Failed to call snprintf for error message formatting\n"); \ - } else { \ - RCUTILS_SAFE_FWRITE_TO_STDERR(output_msg); \ - } \ - } while (0) -#else -#define RCUTILS_SAFE_FWRITE_TO_STDERR_WITH_FORMAT_STRING(format_string, ...) -#endif - -#if !defined(RCUTILS_AVOID_DYNAMIC_ALLOCATION) -/// The maximum length a formatted number is allowed to have. -#define RCUTILS_ERROR_STATE_LINE_NUMBER_STR_MAX_LENGTH 20 // "18446744073709551615" - -/// The maximum number of formatting characters allowed. -#define RCUTILS_ERROR_FORMATTING_CHARACTERS 6 // ', at ' + ':' - -/// The maximum formatted string length. -#define RCUTILS_ERROR_MESSAGE_MAX_LENGTH 1024 - -/// The maximum length for user defined error message -/** - * Remember that "chained" errors will include previously specified file paths - * e.g. "some error, at /path/to/a.c:42, at /path/to/b.c:42" - */ -#define RCUTILS_ERROR_STATE_MESSAGE_MAX_LENGTH 768 - -/// The calculated maximum length for the filename. -/** - * With RCUTILS_ERROR_STATE_MESSAGE_MAX_LENGTH = 768, RCUTILS_ERROR_STATE_FILE_MAX_LENGTH == 229 - */ -#define RCUTILS_ERROR_STATE_FILE_MAX_LENGTH ( \ - RCUTILS_ERROR_MESSAGE_MAX_LENGTH - \ - RCUTILS_ERROR_STATE_MESSAGE_MAX_LENGTH - \ - RCUTILS_ERROR_STATE_LINE_NUMBER_STR_MAX_LENGTH - \ - RCUTILS_ERROR_FORMATTING_CHARACTERS - \ - 1) -#else -#define RCUTILS_ERROR_STATE_LINE_NUMBER_STR_MAX_LENGTH 1 -#define RCUTILS_ERROR_FORMATTING_CHARACTERS 1 -#define RCUTILS_ERROR_MESSAGE_MAX_LENGTH 1 -#define RCUTILS_ERROR_STATE_MESSAGE_MAX_LENGTH 1 -#define RCUTILS_ERROR_STATE_FILE_MAX_LENGTH 1 -#endif // RCUTILS_AVOID_DYNAMIC_ALLOCATION - -/// Struct wrapping a fixed-size c string used for returning the formatted error string. -typedef struct rcutils_error_string_s -{ - /// The fixed-size C string used for returning the formatted error string. - char str[RCUTILS_ERROR_MESSAGE_MAX_LENGTH]; -} rcutils_error_string_t; - -/// Struct which encapsulates the error state set by RCUTILS_SET_ERROR_MSG(). -typedef struct rcutils_error_state_s -{ - /// User message storage, limited to RCUTILS_ERROR_STATE_MESSAGE_MAX_LENGTH characters. - char message[RCUTILS_ERROR_STATE_MESSAGE_MAX_LENGTH]; - /// File name, limited to what's left from RCUTILS_ERROR_STATE_MAX_SIZE characters - /// after subtracting storage for others. - char file[RCUTILS_ERROR_STATE_FILE_MAX_LENGTH]; - /// Line number of error. - uint64_t line_number; -} rcutils_error_state_t; - -// make sure our math is right... -#if __STDC_VERSION__ >= 201112L && !defined(RCUTILS_AVOID_DYNAMIC_ALLOCATION) -static_assert( - sizeof(rcutils_error_string_t) == ( - RCUTILS_ERROR_STATE_MESSAGE_MAX_LENGTH + - RCUTILS_ERROR_STATE_FILE_MAX_LENGTH + - RCUTILS_ERROR_STATE_LINE_NUMBER_STR_MAX_LENGTH + - RCUTILS_ERROR_FORMATTING_CHARACTERS + - 1 /* null terminating character */), - "Maximum length calculations incorrect"); -#endif - -/// Forces initialization of thread-local storage if called in a newly created thread. -/** - * If this function is not called beforehand, then the first time the error - * state is set or the first time the error message is retrieved, the default - * allocator will be used to allocate thread-local storage. - * - * This function may or may not allocate memory. - * The system's thread-local storage implementation may need to allocate - * memory, since it usually has no way of knowing how much storage is needed - * without knowing how many threads will be created. - * Most implementations (e.g. C11, C++11, and pthread) do not have ways to - * specify how this memory is allocated, but if the implementation allows, the - * given allocator to this function will be used, but is otherwise unused. - * This only occurs when creating and destroying threads, which can be avoided - * in the "steady" state by reusing pools of threads. - * - * It is worth considering that repeated thread creation and destruction will - * result in repeated memory allocations and could result in memory - * fragmentation. - * This is typically avoided anyways by using pools of threads. - * - * In case an error is indicated by the return code, no error message will have - * been set. - * - * If called more than once in a thread, or after implicitly initialized by - * setting the error state, it will still return `RCUTILS_RET_OK`, even - * if the given allocator is invalid. - * Essentially this function does nothing if thread-local storage has already - * been called. - * If already initialized, the given allocator is ignored, even if it does not - * match the allocator used originally to initialize the thread-local storage. - * - * \param[in] allocator to be used to allocate and deallocate memory - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if the allocator is invalid, or - * \return #RCUTILS_RET_BAD_ALLOC if allocating memory fails, or - * \return #RCUTILS_RET_ERROR if an unspecified error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_initialize_error_handling_thread_local_storage(rcutils_allocator_t allocator); - -/// Set the error message, as well as the file and line on which it occurred. -/** - * This is not meant to be used directly, but instead via the - * RCUTILS_SET_ERROR_MSG(msg) macro. - * - * The error_msg parameter is copied into the internal error storage and must - * be null terminated. - * The file parameter is copied into the internal error storage and must - * be null terminated. - * - * \param[in] error_string The error message to set. - * \param[in] file The path to the file in which the error occurred. - * \param[in] line_number The line number on which the error occurred. - */ -RCUTILS_PUBLIC -void -rcutils_set_error_state(const char * error_string, const char * file, size_t line_number); - -/// Check an argument for a null value. -/** - * If the argument's value is `NULL`, set the error message saying so and - * return the `error_return_type`. - * - * \param[in] argument The argument to test. - * \param[in] error_return_type The type to return if the argument is `NULL`. - */ -#define RCUTILS_CHECK_ARGUMENT_FOR_NULL(argument, error_return_type) \ - RCUTILS_CHECK_FOR_NULL_WITH_MSG( \ - argument, #argument " argument is null", \ - return error_return_type) - -/// Check a value for null, with an error message and error statement. -/** - * If `value` is `NULL`, the error statement will be evaluated after - * setting the error message. - * - * \param[in] value The value to test. - * \param[in] msg The error message if `value` is `NULL`. - * \param[in] error_statement The statement to evaluate if `value` is `NULL`. - */ -#define RCUTILS_CHECK_FOR_NULL_WITH_MSG(value, msg, error_statement) \ - do { \ - if (NULL == value) { \ - RCUTILS_SET_ERROR_MSG(msg); \ - error_statement; \ - } \ - } while (0) - -/// Set the error message, as well as append the current file and line number. -/** - * If an error message was previously set, and rcutils_reset_error() was not called - * afterwards, and this library was built with RCUTILS_REPORT_ERROR_HANDLING_ERRORS - * turned on, then the previously set error message will be printed to stderr. - * Error state storage is thread local and so all error related functions are - * also thread local. - * - * \param[in] msg The error message to be set. - */ -#ifdef RCUTILS_AVOID_DYNAMIC_ALLOCATION - #define RCUTILS_SET_ERROR_MSG(msg) -#else -#define RCUTILS_SET_ERROR_MSG(msg) \ - do {rcutils_set_error_state(msg, __FILE__, __LINE__);} while (0) -#endif // RCUTILS_AVOID_DYNAMIC_ALLOCATION - -/// Set the error message using a format string and format arguments. -/** - * This function sets the error message using the given format string. - * The resulting formatted string is silently truncated at - * RCUTILS_ERROR_MESSAGE_MAX_LENGTH. - * - * \param[in] format_string The string to be used as the format of the error message. - * \param[in] ... Arguments for the format string. - */ -#ifdef RCUTILS_AVOID_DYNAMIC_ALLOCATION - #define RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING(format_string, ...) -#else -#define RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING(format_string, ...) \ - do { \ - char output_msg[RCUTILS_ERROR_MESSAGE_MAX_LENGTH]; \ - int ret = rcutils_snprintf(output_msg, sizeof(output_msg), format_string, __VA_ARGS__); \ - if (ret < 0) { \ - RCUTILS_SAFE_FWRITE_TO_STDERR("Failed to call snprintf for error message formatting\n"); \ - } else { \ - RCUTILS_SET_ERROR_MSG(output_msg); \ - } \ - } while (0) -#endif // RCUTILS_AVOID_DYNAMIC_ALLOCATION - - -/// Indicate that the function intends to set an error message and return an error value. -/** - * \def RCUTILS_CAN_SET_MSG_AND_RETURN_WITH_ERROR_OF - * Indicating macro similar to RCUTILS_CAN_RETURN_WITH_ERROR_OF, that also sets an error - * message. - * - * For now, this macro simply relies on `RCUTILS_CAN_FAIL_WITH` to set a generic error - * message and return the given `error_return_value` if fault injection is enabled. - * - * \param error_return_value the value returned as a result of a given error. - */ -#define RCUTILS_CAN_SET_MSG_AND_RETURN_WITH_ERROR_OF(error_return_value) \ - RCUTILS_CAN_FAIL_WITH( \ - { \ - RCUTILS_SET_ERROR_MSG("Injecting " RCUTILS_STRINGIFY(error_return_value)); \ - return error_return_value; \ - }) - -/// Return `true` if the error is set, otherwise `false`. -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -bool -rcutils_error_is_set(void); - -/// Return an rcutils_error_state_t which was set with rcutils_set_error_state(). -/** - * The returned pointer will be NULL if no error has been set in this thread. - * - * The returned pointer is valid until RCUTILS_SET_ERROR_MSG, rcutils_set_error_state, - * or rcutils_reset_error are called in the same thread. - * - * \return A pointer to the current error state struct. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -const rcutils_error_state_t * -rcutils_get_error_state(void); - -/// Return the error message followed by `, at :` if set, else "error not set". -/** - * This function is "safe" because it returns a copy of the current error - * string or one containing the string "error not set" if no error was set. - * This ensures that the copy is owned by the calling thread and is therefore - * never invalidated by other error handling calls, and that the C string - * inside is always valid and null terminated. - * - * \return The current error string, with file and line number, or "error not set" if not set. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_error_string_t -rcutils_get_error_string(void); - -/// Reset the error state by clearing any previously set error state. -RCUTILS_PUBLIC -void -rcutils_reset_error(void); - -/// Set the error message using RCUTILS_SET_ERROR_MSG and append the previous error. -/** - * If there is no previous error, has same behavior as RCUTILS_SET_ERROR_MSG. - * \param[in] msg The error message to be set. - */ -#define RCUTILS_SET_ERROR_MSG_AND_APPEND_PREV_ERROR(msg) \ - do { \ - rcutils_error_string_t error_string = rcutils_get_error_string(); \ - rcutils_reset_error(); \ - RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING( \ - RCUTILS_EXPAND(msg ": %s"), error_string.str); \ - } while (0) - -/// Set the error message with RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING and append the previous -/// error. -/** - * This function sets the error message using the given format string, and appends and resets the - * latest error string. - * The resulting formatted string is silently truncated at RCUTILS_ERROR_MESSAGE_MAX_LENGTH. - * - * If there is no previous error, has same behavior as RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING. - * - * \param[in] format_string The string to be used as the format of the error message. - * \param[in] ... Arguments for the format string. - */ -#define RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING_AND_APPEND_PREV_ERROR(format_string, ...) \ - do { \ - rcutils_error_string_t error_string = rcutils_get_error_string(); \ - rcutils_reset_error(); \ - RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING( \ - RCUTILS_EXPAND(format_string ": %s"), __VA_ARGS__, error_string.str); \ - } while (0) - -/// Write the given msg out to stderr, limiting the buffer size in the `fwrite`, appending the -/// previous error. -/** - * This will reset the previous error, if it exists. - * If there is no previous error, has same behavior as RCUTILS_SAFE_FWRITE_TO_STDERR. - */ -#define RCUTILS_SAFE_FWRITE_TO_STDERR_AND_APPEND_PREV_ERROR(msg) \ - do { \ - rcutils_error_string_t error_string = rcutils_get_error_string(); \ - rcutils_reset_error(); \ - RCUTILS_SAFE_FWRITE_TO_STDERR(msg); \ - RCUTILS_SAFE_FWRITE_TO_STDERR_WITH_FORMAT_STRING(": %s", error_string.str); \ - } while (0) - -/// Set the error message to stderr using a format string and format arguments, appending the -/// previous error. -/** - * This function sets the error message to stderr using the given format string, appending and - * resetting the previous error. - * The resulting formatted string is silently truncated at RCUTILS_ERROR_MESSAGE_MAX_LENGTH. - * - * This will reset the previous error, if it exists. - * If there is no previous error, has same behavior as - * RCUTILS_SAFE_FWRITE_TO_STDERR_WITH_FORMAT_STRING. - * - * \param[in] format_string The string to be used as the format of the error message. - * \param[in] ... Arguments for the format string. - */ -#define RCUTILS_SAFE_FWRITE_TO_STDERR_WITH_FORMAT_STRING_AND_APPEND_PREV_ERROR(format_string, ...) \ - do { \ - rcutils_error_string_t error_string = rcutils_get_error_string(); \ - rcutils_reset_error(); \ - RCUTILS_SAFE_FWRITE_TO_STDERR_WITH_FORMAT_STRING(format_string, __VA_ARGS__); \ - RCUTILS_SAFE_FWRITE_TO_STDERR_WITH_FORMAT_STRING(": %s", error_string.str); \ - } while (0) - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__ERROR_HANDLING_H_ diff --git a/src/rcutils/filesystem.h b/src/rcutils/filesystem.h deleted file mode 100755 index 91ef51def..000000000 --- a/src/rcutils/filesystem.h +++ /dev/null @@ -1,302 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__FILESYSTEM_H_ -#define RCUTILS__FILESYSTEM_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -#include "rcutils/allocator.h" -#include "rcutils/macros.h" -#include "rcutils/visibility_control.h" - -/// Return current working directory. -/** - * \param[in] buffer Allocated string to store current directory path to - * \param[in] max_length maximum length to be stored in buffer - * \return `true` if success, or - * \return `false` if buffer is NULL, or - * \return `false` on failure. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -bool -rcutils_get_cwd(char * buffer, size_t max_length); - -/// Check if the provided path points to a directory. -/** - * \param[in] abs_path Absolute path to check. - * \return `true` if provided path is a directory, or - * \return `false` if abs_path is NULL, or - * \return `false` on failure. - */ -RCUTILS_PUBLIC -bool -rcutils_is_directory(const char * abs_path); - -/// Check if the provided path points to a file. -/** - * \param[in] abs_path Absolute path to check. - * \return `true` if provided path is a file, or - * \return `false` if abs_path is NULL, or - * \return `false` on failure. - */ -RCUTILS_PUBLIC -bool -rcutils_is_file(const char * abs_path); - -/// Check if the provided path points to an existing file/folder. -/** - * \param[in] abs_path Absolute path to check. - * \return `true` if the path exists, or - * \return `false` if abs_path is NULL, or - * \return `false` on failure. - */ -RCUTILS_PUBLIC -bool -rcutils_exists(const char * abs_path); - -/// Check if the provided path points to a file/folder readable by current user. -/** - * \param[in] abs_path Absolute path to check. - * \return `true` if the file is readable, or - * \return `false` if abs_path is NULL, or - * \return `false` on failure. - */ -RCUTILS_PUBLIC -bool -rcutils_is_readable(const char * abs_path); - -/// Check if the provided path points to a file/folder writable by current user. -/** - * \param[in] abs_path Absolute path to check. - * \return `true` if the file is writable, or - * \return `false` if abs_path is NULL, or - * \return `false` on failure. - */ -RCUTILS_PUBLIC -bool -rcutils_is_writable(const char * abs_path); - -/// Check if the provided path points to a file/folder both readable and writable by current user. -/** - * \param[in] abs_path Absolute path to check. - * \return `true` if the file is readable and writable, or - * \return `false` if abs_path is NULL - * \return `false` on failure. - */ -RCUTILS_PUBLIC -bool -rcutils_is_readable_and_writable(const char * abs_path); - -/// Return newly allocated string with arguments separated by correct delimiter for the platform. -/** - * This function allocates memory and returns it to the caller. - * It is up to the caller to release the memory once it is done with it by - * calling `deallocate` on the same allocator passed here. - * - * \param[in] left_hand_path - * \param[in] right_hand_path - * \param[in] allocator - * \return concatenated path on success - * \return `NULL` on invalid arguments - * \return `NULL` on failure - */ -RCUTILS_PUBLIC -char * -rcutils_join_path( - const char * left_hand_path, - const char * right_hand_path, - rcutils_allocator_t allocator); - -/// Return newly allocated string with all argument's "/" replaced by platform specific separator. -/** - * This function allocates memory and returns it to the caller. - * It is up to the caller to release the memory once it is done with it by - * calling `deallocate` on the same allocator passed here. - * - * \param[in] path - * \param[in] allocator - * \return path using platform specific delimiters on success - * \return `NULL` on invalid arguments - * \return `NULL` on failure - */ -RCUTILS_PUBLIC -char * -rcutils_to_native_path( - const char * path, - rcutils_allocator_t allocator); - -/// Expand user directory in path. -/** - * This function expands an initial '~' to the current user's home directory. - * The home directory is fetched using `rcutils_get_home_dir()`. - * This function returns a newly allocated string on success. - * It is up to the caller to release the memory once it is done with it by - * calling `deallocate` on the same allocator passed here. - * - * \param[in] path A null-terminated C string representing a path. - * \param[in] allocator - * \return path with expanded home directory on success, or - * \return `NULL` on invalid arguments, or - * \return `NULL` on failure. - */ -RCUTILS_PUBLIC -char * -rcutils_expand_user(const char * path, rcutils_allocator_t allocator); - -/// Create the specified directory. -/** - * This function creates an absolutely-specified directory. - * If any of the intermediate directories do not exist, this function will - * return False. - * If the abs_path already exists, and is a directory, this function will - * return true. - * - * This function is not thread-safe due to mkdir races as described in the - * openat(2) documentation. - * - * \param[in] abs_path - * \return `true` if making the directory was successful, or - * \return `false` if path is NULL, or - * \return `false` if path is empty, or - * \return `false` if path is not absolute, or - * \return `false` if any intermediate directories don't exist. - */ -RCUTILS_PUBLIC -bool -rcutils_mkdir(const char * abs_path); - -/// Calculate the size of the specified directory. -/** - * Calculates the size of a directory by summarizing the file size of all files. - * \note This operation is not recursive. - * \param[in] directory_path The directory path to calculate the size of. - * \param[out] size The size of the directory in bytes on success. - * \param[in] allocator Allocator being used for internal file path composition. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails - * \return #RCUTILS_RET_ERROR if other error occurs - */ -RCUTILS_PUBLIC -rcutils_ret_t -rcutils_calculate_directory_size( - const char * directory_path, - uint64_t * size, - rcutils_allocator_t allocator); - -/// Calculate the size of the specified directory with recursion. -/** - * Calculates the size of a directory and subdirectory by summarizing the file size of all files. - * If necessary, you can specify the maximum directory depth to recurse into. - * Depth definition as below. - * \code - * directory_path <= depth 1 - * |- subdirectory <= depth 2 - * |- subdirectory <= depth 3 - * ... - * \endcode - * - * \note This API does not follow symlinks to files or directories. - * \param[in] directory_path The directory path to calculate the size of. - * \param[in] max_depth The maximum depth of subdirectory. 0 means no limitation. - * \param[out] size The size of the directory in bytes on success. - * \param[in] allocator Allocator being used for internal file path composition. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails - * \return #RCUTILS_RET_ERROR if other error occurs - */ -RCUTILS_PUBLIC -rcutils_ret_t -rcutils_calculate_directory_size_with_recursion( - const char * directory_path, - const size_t max_depth, - uint64_t * size, - rcutils_allocator_t allocator); - -/// Calculate the size of the specifed file. -/** - * \param[in] file_path The path of the file to obtain its size of. - * \return The size of the file in bytes. - */ -RCUTILS_PUBLIC -size_t -rcutils_get_file_size(const char * file_path); - -struct rcutils_dir_iter_state_s; - -/// An iterator used for enumerating directory contents -typedef struct rcutils_dir_iter_s -{ - /// The name of the enumerated file or directory - const char * entry_name; - /// The allocator used internally by iteration functions - rcutils_allocator_t allocator; - /// The platform-specific iteration state - struct rcutils_dir_iter_state_s * state; -} rcutils_dir_iter_t; - -/// Begin iterating over the contents of the specified directory. -/** - * This function is used to list the files and directories that are contained in - * a specified directory. The structure returned by it must be deallocated using - * ::rcutils_dir_iter_end when the iteration is completed. The name of the - * enumerated entry is stored in the `entry_name` member of the returned object, - * and the first entry is already populated upon completion of this function. To - * populate the entry with the name of the next entry, use the - * ::rcutils_dir_iter_next function. Note that the "." and ".." entries are - * typically among the entries enumerated. - * \param[in] directory_path The directory path to iterate over the contents of. - * \param[in] allocator Allocator used to create the returned structure. - * \return An iterator object used to continue iterating directory contents - * \return NULL if an error occurred - */ -RCUTILS_PUBLIC -rcutils_dir_iter_t * -rcutils_dir_iter_start(const char * directory_path, const rcutils_allocator_t allocator); - -/// Continue iterating over the contents of a directory. -/** - * \param[in] iter An iterator created by ::rcutils_dir_iter_start. - * \return `true` if another entry was found, or - * \return `false` if there are no more entries in the directory. - */ -RCUTILS_PUBLIC -bool -rcutils_dir_iter_next(rcutils_dir_iter_t * iter); - -/// Finish iterating over the contents of a directory. -/** - * \param[in] iter An iterator created by ::rcutils_dir_iter_start. - */ -RCUTILS_PUBLIC -void -rcutils_dir_iter_end(rcutils_dir_iter_t * iter); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__FILESYSTEM_H_ diff --git a/src/rcutils/find.h b/src/rcutils/find.h deleted file mode 100755 index 4569a935a..000000000 --- a/src/rcutils/find.h +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__FIND_H_ -#define RCUTILS__FIND_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/types.h" -#include "rcutils/visibility_control.h" - -/// Return the first index of a character in a string. -/** - * Search in a string for the first occurence of a delimiter. - * - * \param[in] str null terminated c string to search - * \param[in] delimiter the character to search for - * \return the index of the first occurence of the delimiter if found, or - * \return `SIZE_MAX` for invalid arguments, or - * \return `SIZE_MAX` if the delimiter is not found. - */ -RCUTILS_PUBLIC -size_t -rcutils_find(const char * str, char delimiter); - -/// Return the first index of a character in a string of specified length. -/** - * Identical to rcutils_find_first() but without relying on the string to be a - * null terminated c string. - * - * \param[in] str string to search - * \param[in] delimiter the character to search for - * \param[in] string_length length of the string to search - * \return the index of the first occurence of the delimiter if found, or - * \return `SIZE_MAX` for invalid arguments, or - * \return `SIZE_MAX` if the delimiter is not found. - */ -RCUTILS_PUBLIC -size_t -rcutils_findn(const char * str, char delimiter, size_t string_length); - -/// Return the last index of a character in a string. -/** - * Search in a string for the last occurence of a delimiter. - * - * \param[in] str null terminated c string to search - * \param[in] delimiter the character to search for - * \return the index of the last occurence of the delimiter if found, or - * \return `SIZE_MAX` for invalid arguments, or - * \return `SIZE_MAX` if the delimiter is not found. - */ -RCUTILS_PUBLIC -size_t -rcutils_find_last(const char * str, char delimiter); - -/// Return the last index of a character in a string of specifed length. -/** - * Identical to rcutils_find_last() but without relying on the string to be a - * null terminated c string. - * - * \param[in] str string to search - * \param[in] delimiter the character to search for - * \param[in] string_length length of the string to search - * \return the index of the last occurence of the delimiter if found, or - * \return `SIZE_MAX` for invalid arguments, or - * \return `SIZE_MAX` if the delimiter is not found. - */ -RCUTILS_PUBLIC -size_t -rcutils_find_lastn(const char * str, char delimiter, size_t string_length); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__FIND_H_ diff --git a/src/rcutils/format_string.h b/src/rcutils/format_string.h deleted file mode 100755 index 37e5262dc..000000000 --- a/src/rcutils/format_string.h +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCUTILS__FORMAT_STRING_H_ -#define RCUTILS__FORMAT_STRING_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" -#include "rcutils/macros.h" -#include "rcutils/visibility_control.h" - -/// Return a newly allocated string, created with a format string. -/** - * This function is identical to rcutils_format_string_limit() except it has an - * implicit limit of 2048. - * For longer format strings, see rcutils_format_string_limit(). - */ -#define rcutils_format_string(allocator, format_string, ...) \ - rcutils_format_string_limit(allocator, 2048, format_string, __VA_ARGS__) - -/// Return a newly allocated string, created with a format string up to a limit. -/** - * This function uses snprintf_s to determine the length of the resulting - * string and allocates storage for the resulting string, formats it, and - * then returns the result. - * - * This function can fail and therefore return null if the format_string is - * null or if memory allocation fails or if snprintf_s fails. - * An error message is not set in any case. - * - * Output strings that would be longer than the given limit are truncated. - * - * All returned strings are null terminated. - * - * The format string is passed to snprintf_s(), see its documentation for - * how to use the format string. - * - * The returned string must be deallocated using the same allocator given once - * it is no longer needed. - * - * \see rcutils_snprintf() - * - * \param[in] allocator the allocator to use for allocation - * \param[in] limit maximum length of the output string - * \param[in] format_string format of the output, must be null terminated - * \return The newly allocated and format output string, or - * \return `NULL` if there was an error. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -char * -rcutils_format_string_limit( - rcutils_allocator_t allocator, - size_t limit, - const char * format_string, - ...) -/// @cond Doxygen_Suppress -RCUTILS_ATTRIBUTE_PRINTF_FORMAT(3, 4) -/// @endcond -; - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__FORMAT_STRING_H_ diff --git a/src/rcutils/isalnum_no_locale.h b/src/rcutils/isalnum_no_locale.h deleted file mode 100755 index 052ad53e3..000000000 --- a/src/rcutils/isalnum_no_locale.h +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__ISALNUM_NO_LOCALE_H_ -#define RCUTILS__ISALNUM_NO_LOCALE_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Custom isalnum() which is not affected by locale. -static inline -bool -rcutils_isalnum_no_locale(char c) -{ - // if in '0', ..., '9', then ok - if (c >= 0x30 /*0*/ && c <= 0x39 /*9*/) { - return true; - } - // if in 'A', ..., 'Z', then ok - if (c >= 0x41 /*A*/ && c <= 0x5a /*Z*/) { - return true; - } - // if in 'a', ..., 'z', then ok - if (c >= 0x61 /*a*/ && c <= 0x7a /*z*/) { - return true; - } - return false; -} - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__ISALNUM_NO_LOCALE_H_ diff --git a/src/rcutils/join.h b/src/rcutils/join.h deleted file mode 100755 index 6c2b973d1..000000000 --- a/src/rcutils/join.h +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2025 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__JOIN_H_ -#define RCUTILS__JOIN_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/allocator.h" -#include "rcutils/types.h" -#include "rcutils/visibility_control.h" - -/// Concatenate members of an array into a single string -/** - * \param[in] string_array with the tokens to concatenate - * \param[in] separator string to be inserted between tokens - * \param[in] allocator for allocating new memory for the output string - * \return concatenated string, or - * \return `NULL` if there is an error. - */ -RCUTILS_PUBLIC -char * -rcutils_join( - const rcutils_string_array_t * string_array, - const char * separator, - rcutils_allocator_t allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__JOIN_H_ diff --git a/src/rcutils/logging.h b/src/rcutils/logging.h deleted file mode 100755 index 7cf4d9d5e..000000000 --- a/src/rcutils/logging.h +++ /dev/null @@ -1,587 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__LOGGING_H_ -#define RCUTILS__LOGGING_H_ - -#include -#include -#include - -#include "rcutils/allocator.h" -#include "rcutils/error_handling.h" -#include "rcutils/macros.h" -#include "rcutils/time.h" -#include "rcutils/types/rcutils_ret.h" -#include "rcutils/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// The separator used when logging node names. -#define RCUTILS_LOGGING_SEPARATOR_STRING "." - -/** - * \def RCUTILS_DEFAULT_LOGGER_DEFAULT_LEVEL - * \brief The default severity level of the default logger. - */ -#define RCUTILS_DEFAULT_LOGGER_DEFAULT_LEVEL RCUTILS_LOG_SEVERITY_UNSET - -/// The flag if the logging system has been initialized. -RCUTILS_PUBLIC -extern bool g_rcutils_logging_initialized; - -/// Initialize the logging system using the specified allocator. -/** - * Initialize the logging system only if it was not in an initialized state. - * - * If an invalid allocator is passed, the initialization will fail. - * Otherwise, this function will still set the internal state to initialized - * even if an error occurs, to avoid repeated failing initialization attempts - * since this function is called automatically from logging macros. - * To re-attempt initialization, call rcutils_logging_shutdown() before - * re-calling this function. - * - * If multiple errors occur, the error code of the last error will be returned. - * - * The `RCUTILS_CONSOLE_OUTPUT_FORMAT` environment variable can be used to set - * the output format of messages logged to the console. - * Available tokens are: - * - `file_name`, the full file name of the caller including the path - * - `function_name`, the function name of the caller - * - `line_number`, the line number of the caller - * - `message`, the message string after it has been formatted - * - `name`, the full logger name - * - `severity`, the name of the severity level, e.g. `INFO` - * - `time`, the timestamp of log message in floating point seconds - * - `time_as_nanoseconds`, the timestamp of log message in integer nanoseconds - * - * The `RCUTILS_COLORIZED_OUTPUT` environment variable allows configuring if colours - * are used or not. Available values are: - * - `1`: Force using colours. - * - `0`: Don't use colours. - * If it is unset, colours are used depending if the target stream is a terminal or not. - * See `isatty` documentation. - * - * The format string can use these tokens by referencing them in curly brackets, - * e.g. `"[{severity}] [{name}]: {message} ({function_name}() at {file_name}:{line_number})"`. - * Any number of tokens can be used. - * The limit of the format string is 2048 characters. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] allocator rcutils_allocator_t to be used. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if the allocator is invalid, in which - * case initialization will fail, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if an error occurs reading the output - * format from the `RCUTILS_CONSOLE_OUTPUT_FORMAT` environment variable, in - * which case the default format will be used, or - * \return #RCUTILS_RET_LOGGING_SEVERITY_MAP_INVALID if the internal logger - * severity level map cannot be initialized, in which case logger severity - * levels will not be configurable. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t rcutils_logging_initialize_with_allocator(rcutils_allocator_t allocator); - -/// Initialize the logging system. -/** - * Call rcutils_logging_initialize_with_allocator() using the default allocator. - * This function is called automatically when using the logging macros. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if an error occurs reading the output - * format from the `RCUTILS_CONSOLE_OUTPUT_FORMAT` environment variable, in - * which case the default format will be used, or - * \return #RCUTILS_RET_LOGGING_SEVERITY_MAP_INVALID if the internal logger - * severity level map cannot be initialized, in which case logger levels - * will not be configurable. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t rcutils_logging_initialize(void); - -/// Shutdown the logging system. -/** - * Free the resources allocated for the logging system. - * This puts the system into a state equivalent to being uninitialized. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_LOGGING_SEVERITY_MAP_INVALID if the internal logger - * severity level map cannot be finalized. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t rcutils_logging_shutdown(void); - -/// The structure identifying the caller location in the source code. -typedef struct rcutils_log_location_s -{ - /// The name of the function containing the log call. - const char * function_name; - /// The name of the source file containing the log call. - const char * file_name; - /// The line number containing the log call. - size_t line_number; -} rcutils_log_location_t; - -/// The severity levels of log messages / loggers. -/** - * Note: all logging levels have their Least Significant Bit as 0, which is used as an - * optimization. If adding new logging levels, ensure that the new levels keep this property. - */ -enum RCUTILS_LOG_SEVERITY -{ - RCUTILS_LOG_SEVERITY_UNSET = 0, ///< The unset log level - RCUTILS_LOG_SEVERITY_DEBUG = 10, ///< The debug log level - RCUTILS_LOG_SEVERITY_INFO = 20, ///< The info log level - RCUTILS_LOG_SEVERITY_WARN = 30, ///< The warn log level - RCUTILS_LOG_SEVERITY_ERROR = 40, ///< The error log level - RCUTILS_LOG_SEVERITY_FATAL = 50, ///< The fatal log level -}; - -/// The names of severity levels. -RCUTILS_PUBLIC -extern const char * const g_rcutils_log_severity_names[RCUTILS_LOG_SEVERITY_FATAL + 1]; - -/// Get a severity value from its string representation (e.g. DEBUG). -/** - * String representation must match one of the values in - * `g_rcutils_log_severity_names`, but is not case-sensitive. - * Examples: UNSET, DEBUG, INFO, WARN, Error, fatal. - * - * \param[in] severity_string String representation of the severity, must be a - * null terminated c string - * \param[in] allocator rcutils_allocator_t to be used - * \param[in,out] severity The severity level as a represented by the - * `RCUTILS_LOG_SEVERITY` enum - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT on invalid arguments, or - * \return #RCUTILS_RET_LOGGING_SEVERITY_STRING_INVALID if unable to match - * string, or - * \return #RCUTILS_RET_ERROR if an unspecified error occured. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_logging_severity_level_from_string( - const char * severity_string, rcutils_allocator_t allocator, int * severity); - -/// The function signature to log messages. -/** - * \param[in] location The location information about where the log came from - * \param[in] severity The severity of the log message expressed as an integer - * \param[in] name The name of the logger that this message came from - * \param[in] timestamp The time at which the log message was generated - * \param[in] format The list of arguments to insert into the formatted log message - * \param[in] args The variable argument list - */ -typedef void (* rcutils_logging_output_handler_t)( - const rcutils_log_location_t * location, - int severity, - const char * name, - rcutils_time_point_value_t timestamp, - const char * format, - va_list * args -); - -/// Get the current output handler. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No, provided logging system is already initialized - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \return The function pointer of the current output handler. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_logging_output_handler_t rcutils_logging_get_output_handler(void); - -/// Set the current output handler. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No, provided logging system is already initialized - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] function The function pointer of the output handler to be used. - */ -RCUTILS_PUBLIC -void rcutils_logging_set_output_handler(rcutils_logging_output_handler_t function); - -/// Formats a log message according to RCUTILS_CONSOLE_OUTPUT_FORMAT -/** - * A formatter that is meant to be used by an output handler to format a log message to the match - * the format specified in RCUTILS_CONSOLE_OUTPUT_FORMAT by performing token replacement. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] location The location information about where the log came from - * \param[in] severity The severity of the log message expressed as an integer - * \param[in] name The name of the logger that this message came from - * \param[in] timestamp The time at which the log message was generated - * \param[in] msg The message being logged - * \param[out] logging_output An output buffer for the formatted message - * \return #RCUTILS_RET_OK if successful. - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation error occured - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t rcutils_logging_format_message( - const rcutils_log_location_t * location, - int severity, const char * name, rcutils_time_point_value_t timestamp, - const char * msg, rcutils_char_array_t * logging_output); - -/// Get the default level for loggers. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No, provided logging system is already initialized - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \return The level. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -int rcutils_logging_get_default_logger_level(void); - -/// Set the default severity level for loggers. -/** - * If the severity level requested is `RCUTILS_LOG_SEVERITY_UNSET`, the default - * value for the default logger (`RCUTILS_DEFAULT_LOGGER_DEFAULT_LEVEL`) - * will be restored instead. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No, provided logging system is already initialized - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] level The level to be used. - */ -RCUTILS_PUBLIC -void rcutils_logging_set_default_logger_level(int level); - -/// Get the severity level for a logger. -/** - * This considers the severity level of the specifed logger only. - * To get the effective level of a logger given the severity level of its - * ancestors, see rcutils_logging_get_logger_effective_level(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No, provided logging system is already initialized - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] name The name of the logger, must be null terminated c string - * \return The level of the logger if it has been set, or - * \return `RCUTILS_LOG_SEVERITY_UNSET` if unset, or - * \return the default logger level for an empty name, or - * \return -1 on invalid arguments, or - * \return -1 if an error occurred - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -int rcutils_logging_get_logger_level(const char * name); - -/// Get the level for a logger and its name length. -/** - * Identical to rcutils_logging_get_logger_level() but without - * relying on the logger name to be a null terminated c string. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No, provided logging system is already initialized - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] name The name of the logger - * \param[in] name_length Logger name length - * \return The level of the logger if it has been set, or - * \return `RCUTILS_LOG_SEVERITY_UNSET` if unset, or - * \return the default logger level for an empty name, or - * \return -1 on invalid arguments, or - * \return -1 if an error occurred - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -int rcutils_logging_get_logger_leveln(const char * name, size_t name_length); - -/// Set the severity level for a logger. -/** - * If an empty string is specified as the name, the default logger level will be set. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] name The name of the logger, must be null terminated c string. - * \param[in] level The level to be used. - * \return `RCUTILS_RET_OK` if successful, or - * \return `RCUTILS_RET_INVALID_ARGUMENT` on invalid arguments, or - * \return `RCUTILS_RET_LOGGING_SEVERITY_MAP_INVALID` if severity map invalid, or - * \return `RCUTILS_RET_ERROR` if an unspecified error occured - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t rcutils_logging_set_logger_level(const char * name, int level); - -/// Determine if a logger is enabled for a severity level. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No, provided logging system is already initialized - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] name The name of the logger, must be null terminated c string or NULL. - * \param[in] severity The severity level. - * - * \return `true` if the logger is enabled for the level, or - * \return `false` otherwise. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -bool rcutils_logging_logger_is_enabled_for(const char * name, int severity); - -/// Determine the effective level for a logger. -/** - * The effective level is determined as the severity level of - * the logger if it is set, otherwise it is the first specified severity - * level of the logger's ancestors, starting with its closest ancestor. - * The ancestor hierarchy is signified by logger names being separated by dots: - * a logger named `x` is an ancestor of `x.y`, and both `x` and `x.y` are - * ancestors of `x.y.z`, etc. - * If the level has not been set for the logger nor any of its - * ancestors, the default level is used. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No, provided logging system is already initialized - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] name The name of the logger, must be null terminated c string. - * - * \return The level, or - * \return -1 on invalid arguments, or - * \return -1 if an error occurred. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -int rcutils_logging_get_logger_effective_level(const char * name); - -/// Internal call to log a message. -/** - * Unconditionally log a message. - * This is an internal function, and assumes that the caller has already called - * rcutils_logging_logger_is_enabled_for(). - * End-user software should never call this, and instead should call rcutils_log() - * or one of the RCUTILS_LOG_ macros. - * - * The attributes of this function are influenced by the currently set output handler. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No, for formatted outputs <= 1023 characters - * | Yes, for formatted outputs >= 1024 characters - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] location The pointer to the location struct or NULL - * \param[in] severity The severity level - * \param[in] name The name of the logger, must be null terminated c string or NULL - * \param[in] format The format string - * \param[in] ... The variable arguments - */ -RCUTILS_PUBLIC -void rcutils_log_internal( - const rcutils_log_location_t * location, - int severity, - const char * name, - const char * format, - ...) -/// @cond Doxygen_Suppress -RCUTILS_ATTRIBUTE_PRINTF_FORMAT(4, 5) -/// @endcond -; - -/// Log a message. -/** - * The attributes of this function are influenced by the currently set output handler. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No, for formatted outputs <= 1023 characters - * | Yes, for formatted outputs >= 1024 characters - * Thread-Safe | Yes, with itself [1] - * Uses Atomics | No - * Lock-Free | Yes - * [1] should be thread-safe with itself but not with other logging functions - * - * This should be thread-safe with itself, but is not thread-safe with other - * logging functions that do things like set logger levels. - * - * \todo There are no thread-safety gurantees between this function and other - * logging functions in rcutils, even though it is likely users are calling - * them concurrently today. - * We need to revisit these functions with respect to this issue and make - * guarantees where we can, and change functions higher in the stack to - * provide the thread-safety where we cannot. - * - * \param[in] location The pointer to the location struct or NULL - * \param[in] severity The severity level - * \param[in] name The name of the logger, must be null terminated c string or NULL - * \param[in] format The format string - * \param[in] ... The variable arguments - */ -RCUTILS_PUBLIC -void rcutils_log( - const rcutils_log_location_t * location, - int severity, - const char * name, - const char * format, - ...) -/// @cond Doxygen_Suppress -RCUTILS_ATTRIBUTE_PRINTF_FORMAT(4, 5) -/// @endcond -; - -/// The default output handler outputs log messages to the standard streams. -/** - * The messages with a severity level `DEBUG` and `INFO` are written to `stdout`. - * The messages with a severity level `WARN`, `ERROR`, and `FATAL` are written - * to `stderr`. - * The console output format of the logged message can be configured through - * the `RCUTILS_CONSOLE_OUTPUT_FORMAT` environment variable: see - * rcutils_logging_initialize_with_allocator() for details. - * For configuring if using colours or not, `RCUTILS_COLORIZED_OUTPUT` can be used: - * see rcutils_logging_initialize_with_allocator() for details. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes, if the underlying *printf functions are - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] location The pointer to the location struct or NULL - * \param[in] severity The severity level - * \param[in] name The name of the logger, must be null terminated c string - * \param[in] timestamp The timestamp for when the log message was made - * \param[in] format The format string - * \param[in] args The `va_list` used by the logger - */ -RCUTILS_PUBLIC -void rcutils_logging_console_output_handler( - const rcutils_log_location_t * location, - int severity, const char * name, rcutils_time_point_value_t timestamp, - const char * format, va_list * args); - -/** - * \def RCUTILS_LOGGING_AUTOINIT - * \brief Initialize the rcl logging library. - * Usually it is unnecessary to call the macro directly. - * All logging macros ensure that this has been called once. - */ -#define RCUTILS_LOGGING_AUTOINIT \ - RCUTILS_LOGGING_AUTOINIT_WITH_ALLOCATOR(rcutils_get_default_allocator()) - -/** - * \def RCUTILS_LOGGING_AUTOINIT_WITH_ALLOCATOR - * \brief Initialize the rcl logging library with allocator. - * Usually it is unnecessary to call the macro directly. - * All logging macros ensure that this has been called once. - */ -#define RCUTILS_LOGGING_AUTOINIT_WITH_ALLOCATOR(alloc) \ - do { \ - if (RCUTILS_UNLIKELY(!g_rcutils_logging_initialized)) { \ - if (rcutils_logging_initialize_with_allocator(alloc) != RCUTILS_RET_OK) { \ - RCUTILS_SAFE_FWRITE_TO_STDERR( \ - "[rcutils|" __FILE__ ":" RCUTILS_STRINGIFY(__LINE__) \ - "] error initializing logging: "); \ - RCUTILS_SAFE_FWRITE_TO_STDERR(rcutils_get_error_string().str); \ - RCUTILS_SAFE_FWRITE_TO_STDERR("\n"); \ - rcutils_reset_error(); \ - } \ - } \ - } while (0) - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__LOGGING_H_ diff --git a/src/rcutils/logging_macros.h b/src/rcutils/logging_macros.h deleted file mode 100755 index 763cbb9aa..000000000 --- a/src/rcutils/logging_macros.h +++ /dev/null @@ -1,1459 +0,0 @@ -// generated from rcutils/resource/logging_macros.h.em - -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/*! \file */ - -#ifndef RCUTILS__LOGGING_MACROS_H_ -#define RCUTILS__LOGGING_MACROS_H_ - -// *INDENT-OFF* - -#include "rcutils/logging.h" - -#include -#include - -// This is to avoid compilation warnings in C++ with '-Wold-style-cast'. -#ifdef __cplusplus - #define RCUTILS_CAST_DURATION(x) (static_cast < rcutils_duration_value_t > (x)) -#else - #define RCUTILS_CAST_DURATION(x) ((rcutils_duration_value_t)x) -#endif - -#ifdef __cplusplus -extern "C" -{ -#endif - -// These are used for compiling out logging macros lower than a minimum severity. -#define RCUTILS_LOG_MIN_SEVERITY_DEBUG 0 -#define RCUTILS_LOG_MIN_SEVERITY_INFO 1 -#define RCUTILS_LOG_MIN_SEVERITY_WARN 2 -#define RCUTILS_LOG_MIN_SEVERITY_ERROR 3 -#define RCUTILS_LOG_MIN_SEVERITY_FATAL 4 -#define RCUTILS_LOG_MIN_SEVERITY_NONE 5 - -/** - * \def RCUTILS_LOG_MIN_SEVERITY - * Define RCUTILS_LOG_MIN_SEVERITY=RCUTILS_LOG_MIN_SEVERITY_[DEBUG|INFO|WARN|ERROR|FATAL] - * in your build options to compile out anything below that severity. - * Use RCUTILS_LOG_MIN_SEVERITY_NONE to compile out all macros. - */ -#ifndef RCUTILS_LOG_MIN_SEVERITY -#define RCUTILS_LOG_MIN_SEVERITY RCUTILS_LOG_MIN_SEVERITY_NONE -#endif - -// TODO(dhood): optimise severity check via notifyLoggerLevelsChanged concept or similar. -// The RCUTILS_LOG_COND_NAMED macro is surrounded by do { .. } while (0) to implement -// the standard C macro idiom to make the macro safe in all contexts; see -// http://c-faq.com/cpp/multistmt.html for more information. -/** - * \def RCUTILS_LOG_COND_NAMED - * The logging macro all other logging macros call directly or indirectly. - * - * \note The condition will only be evaluated if this logging statement is enabled. - * - * \param[in] severity The severity level - * \param[in] condition_before The condition macro(s) inserted before the log call - * \param[in] condition_after The condition macro(s) inserted after the log call - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -#define RCUTILS_LOG_COND_NAMED(severity, condition_before, condition_after, name, ...) \ - do { \ - RCUTILS_LOGGING_AUTOINIT; \ - static rcutils_log_location_t __rcutils_logging_location = {__func__, __FILE__, __LINE__}; \ - if (rcutils_logging_logger_is_enabled_for(name, severity)) { \ - condition_before \ - rcutils_log_internal(&__rcutils_logging_location, severity, name, __VA_ARGS__); \ - condition_after \ - } \ - } while (0) - -///@{ -/** - * \def RCUTILS_LOG_CONDITION_EMPTY - * An empty macro which can be used as a placeholder for `condition_before` - * and `condition_after` which doesn't affect the logging call. - */ -#define RCUTILS_LOG_CONDITION_EMPTY -///@} - -/** @name Macros for the `once` condition which ignores all subsequent log - * calls except the first one. - */ -///@{ -/** - * \def RCUTILS_LOG_CONDITION_ONCE_BEFORE - * A macro initializing and checking the `once` condition. - */ -#define RCUTILS_LOG_CONDITION_ONCE_BEFORE \ - { \ - static int __rcutils_logging_once = 0; \ - if (RCUTILS_UNLIKELY(0 == __rcutils_logging_once)) { \ - __rcutils_logging_once = 1; -/** - * \def RCUTILS_LOG_CONDITION_ONCE_AFTER - * A macro finalizing the `once` condition. - */ -#define RCUTILS_LOG_CONDITION_ONCE_AFTER } \ - } -///@} - -/** @name Macros for the `expression` condition which ignores the log calls - * when the expression evaluates to false. - */ -///@{ -/** - * \def RCUTILS_LOG_CONDITION_EXPRESSION_BEFORE - * A macro checking the `expression` condition. - */ -#define RCUTILS_LOG_CONDITION_EXPRESSION_BEFORE(expression) \ - if (expression) { -/** - * \def RCUTILS_LOG_CONDITION_EXPRESSION_AFTER - * A macro finalizing the `expression` condition. - */ -#define RCUTILS_LOG_CONDITION_EXPRESSION_AFTER } -///@} - -/** @name Macros for the `function` condition which ignores the log calls - * when the function returns false. - */ -///@{ -/// The filter function signature. -/** - * \return true to log the message, false to ignore the message - */ -typedef bool (* RclLogFilter)(void); -/** - * \def RCUTILS_LOG_CONDITION_FUNCTION_BEFORE - * A macro checking the `function` condition. - */ -#define RCUTILS_LOG_CONDITION_FUNCTION_BEFORE(function) \ - if ((*function)()) { -/** - * \def RCUTILS_LOG_CONDITION_FUNCTION_AFTER - * A macro finalizing the `function` condition. - */ -#define RCUTILS_LOG_CONDITION_FUNCTION_AFTER } -///@} - -/** @name Macros for the `skipfirst` condition which ignores the first log - * call but processes all subsequent calls. - */ -///@{ -/** - * \def RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE - * A macro initializing and checking the `skipfirst` condition. - */ -#define RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE \ - { \ - static bool __rcutils_logging_first = true; \ - if (RCUTILS_UNLIKELY(true == __rcutils_logging_first)) { \ - __rcutils_logging_first = false; \ - } else { -/** - * \def RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER - * A macro finalizing the `skipfirst` condition. - */ -#define RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER } \ - } -///@} - -/** @name Macros for the `throttle` condition which ignores log calls if the - * last logged message is not longer ago than the specified duration. - */ -///@{ -/** - * \def RCUTILS_LOG_CONDITION_THROTTLE_BEFORE - * A macro initializing and checking the `throttle` condition. - */ -#define RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration) { \ - static rcutils_duration_value_t __rcutils_logging_duration = RCUTILS_MS_TO_NS(RCUTILS_CAST_DURATION(duration)); \ - static rcutils_time_point_value_t __rcutils_logging_last_logged = 0; \ - rcutils_time_point_value_t __rcutils_logging_now = 0; \ - bool __rcutils_logging_condition = true; \ - if (get_time_point_value(&__rcutils_logging_now) != RCUTILS_RET_OK) { \ - rcutils_log( \ - &__rcutils_logging_location, RCUTILS_LOG_SEVERITY_ERROR, "", \ - "%s() at %s:%d getting current steady time failed\n", \ - __func__, __FILE__, __LINE__); \ - } else { \ - __rcutils_logging_condition = __rcutils_logging_now >= __rcutils_logging_last_logged + __rcutils_logging_duration; \ - } \ - \ - if (RCUTILS_LIKELY(__rcutils_logging_condition)) { \ - __rcutils_logging_last_logged = __rcutils_logging_now; - -/** - * \def RCUTILS_LOG_CONDITION_THROTTLE_AFTER - * A macro finalizing the `throttle` condition. - */ -#define RCUTILS_LOG_CONDITION_THROTTLE_AFTER } \ - } -///@} - -/** @name Logging macros for severity DEBUG. - */ -///@{ -#if (RCUTILS_LOG_MIN_SEVERITY > RCUTILS_LOG_MIN_SEVERITY_DEBUG) -// empty logging macros for severity DEBUG when being disabled at compile time -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG_ONCE(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG_ONCE_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG_EXPRESSION(expression, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG_EXPRESSION_NAMED(expression, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG_FUNCTION(function, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG_FUNCTION_NAMED(function, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG_SKIPFIRST(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG_SKIPFIRST_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG_THROTTLE(get_time_point_value, duration, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG_SKIPFIRST_THROTTLE(get_time_point_value, duration, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG_THROTTLE_NAMED(get_time_point_value, duration, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_DEBUG_SKIPFIRST_THROTTLE_NAMED(get_time_point_value, duration, name, format, ...) - -#else -/** - * \def RCUTILS_LOG_DEBUG - * Log a message with severity DEBUG. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_EMPTY, RCUTILS_LOG_CONDITION_EMPTY, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_DEBUG_NAMED - * Log a message with severity DEBUG. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_EMPTY, RCUTILS_LOG_CONDITION_EMPTY, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_DEBUG_ONCE - * Log a message with severity DEBUG with the following conditions: - * - All subsequent log calls except the first one are being ignored. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG_ONCE(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_ONCE_BEFORE, RCUTILS_LOG_CONDITION_ONCE_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_DEBUG_ONCE_NAMED - * Log a message with severity DEBUG with the following conditions: - * - All subsequent log calls except the first one are being ignored. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG_ONCE_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_ONCE_BEFORE, RCUTILS_LOG_CONDITION_ONCE_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_DEBUG_EXPRESSION - * Log a message with severity DEBUG with the following conditions: - * - Log calls are being ignored when the expression evaluates to false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] expression The expression determining if the message should be logged - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG_EXPRESSION(expression, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_EXPRESSION_BEFORE(expression), RCUTILS_LOG_CONDITION_EXPRESSION_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_DEBUG_EXPRESSION_NAMED - * Log a message with severity DEBUG with the following conditions: - * - Log calls are being ignored when the expression evaluates to false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] expression The expression determining if the message should be logged - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG_EXPRESSION_NAMED(expression, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_EXPRESSION_BEFORE(expression), RCUTILS_LOG_CONDITION_EXPRESSION_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_DEBUG_FUNCTION - * Log a message with severity DEBUG with the following conditions: - * - Log calls are being ignored when the function returns false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] function The functions return value determines if the message should be logged - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG_FUNCTION(function, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_FUNCTION_BEFORE(function), RCUTILS_LOG_CONDITION_FUNCTION_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_DEBUG_FUNCTION_NAMED - * Log a message with severity DEBUG with the following conditions: - * - Log calls are being ignored when the function returns false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] function The functions return value determines if the message should be logged - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG_FUNCTION_NAMED(function, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_FUNCTION_BEFORE(function), RCUTILS_LOG_CONDITION_FUNCTION_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_DEBUG_SKIPFIRST - * Log a message with severity DEBUG with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG_SKIPFIRST(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_DEBUG_SKIPFIRST_NAMED - * Log a message with severity DEBUG with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG_SKIPFIRST_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_DEBUG_THROTTLE - * Log a message with severity DEBUG with the following conditions: - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG_THROTTLE(get_time_point_value, duration, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration), RCUTILS_LOG_CONDITION_THROTTLE_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_DEBUG_SKIPFIRST_THROTTLE - * Log a message with severity DEBUG with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG_SKIPFIRST_THROTTLE(get_time_point_value, duration, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration) RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_THROTTLE_AFTER RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_DEBUG_THROTTLE_NAMED - * Log a message with severity DEBUG with the following conditions: - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG_THROTTLE_NAMED(get_time_point_value, duration, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration), RCUTILS_LOG_CONDITION_THROTTLE_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_DEBUG_SKIPFIRST_THROTTLE_NAMED - * Log a message with severity DEBUG with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_DEBUG_SKIPFIRST_THROTTLE_NAMED(get_time_point_value, duration, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_DEBUG, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration) RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_THROTTLE_AFTER RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, name, \ - __VA_ARGS__) -#endif -///@} - -// *INDENT-ON* - -/** @name Logging macros for severity INFO. - */ -///@{ -#if (RCUTILS_LOG_MIN_SEVERITY > RCUTILS_LOG_MIN_SEVERITY_INFO) -// empty logging macros for severity INFO when being disabled at compile time -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO_ONCE(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO_ONCE_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO_EXPRESSION(expression, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO_EXPRESSION_NAMED(expression, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO_FUNCTION(function, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO_FUNCTION_NAMED(function, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO_SKIPFIRST(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO_SKIPFIRST_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO_THROTTLE(get_time_point_value, duration, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO_SKIPFIRST_THROTTLE(get_time_point_value, duration, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO_THROTTLE_NAMED(get_time_point_value, duration, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_INFO_SKIPFIRST_THROTTLE_NAMED(get_time_point_value, duration, name, format, ...) - -#else -/** - * \def RCUTILS_LOG_INFO - * Log a message with severity INFO. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_EMPTY, RCUTILS_LOG_CONDITION_EMPTY, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_INFO_NAMED - * Log a message with severity INFO. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_EMPTY, RCUTILS_LOG_CONDITION_EMPTY, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_INFO_ONCE - * Log a message with severity INFO with the following conditions: - * - All subsequent log calls except the first one are being ignored. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO_ONCE(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_ONCE_BEFORE, RCUTILS_LOG_CONDITION_ONCE_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_INFO_ONCE_NAMED - * Log a message with severity INFO with the following conditions: - * - All subsequent log calls except the first one are being ignored. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO_ONCE_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_ONCE_BEFORE, RCUTILS_LOG_CONDITION_ONCE_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_INFO_EXPRESSION - * Log a message with severity INFO with the following conditions: - * - Log calls are being ignored when the expression evaluates to false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] expression The expression determining if the message should be logged - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO_EXPRESSION(expression, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_EXPRESSION_BEFORE(expression), RCUTILS_LOG_CONDITION_EXPRESSION_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_INFO_EXPRESSION_NAMED - * Log a message with severity INFO with the following conditions: - * - Log calls are being ignored when the expression evaluates to false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] expression The expression determining if the message should be logged - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO_EXPRESSION_NAMED(expression, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_EXPRESSION_BEFORE(expression), RCUTILS_LOG_CONDITION_EXPRESSION_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_INFO_FUNCTION - * Log a message with severity INFO with the following conditions: - * - Log calls are being ignored when the function returns false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] function The functions return value determines if the message should be logged - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO_FUNCTION(function, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_FUNCTION_BEFORE(function), RCUTILS_LOG_CONDITION_FUNCTION_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_INFO_FUNCTION_NAMED - * Log a message with severity INFO with the following conditions: - * - Log calls are being ignored when the function returns false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] function The functions return value determines if the message should be logged - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO_FUNCTION_NAMED(function, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_FUNCTION_BEFORE(function), RCUTILS_LOG_CONDITION_FUNCTION_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_INFO_SKIPFIRST - * Log a message with severity INFO with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO_SKIPFIRST(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_INFO_SKIPFIRST_NAMED - * Log a message with severity INFO with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO_SKIPFIRST_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_INFO_THROTTLE - * Log a message with severity INFO with the following conditions: - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO_THROTTLE(get_time_point_value, duration, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration), RCUTILS_LOG_CONDITION_THROTTLE_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_INFO_SKIPFIRST_THROTTLE - * Log a message with severity INFO with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO_SKIPFIRST_THROTTLE(get_time_point_value, duration, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration) RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_THROTTLE_AFTER RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_INFO_THROTTLE_NAMED - * Log a message with severity INFO with the following conditions: - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO_THROTTLE_NAMED(get_time_point_value, duration, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration), RCUTILS_LOG_CONDITION_THROTTLE_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_INFO_SKIPFIRST_THROTTLE_NAMED - * Log a message with severity INFO with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_INFO_SKIPFIRST_THROTTLE_NAMED(get_time_point_value, duration, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_INFO, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration) RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_THROTTLE_AFTER RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, name, \ - __VA_ARGS__) -#endif -///@} - -// *INDENT-ON* - -/** @name Logging macros for severity WARN. - */ -///@{ -#if (RCUTILS_LOG_MIN_SEVERITY > RCUTILS_LOG_MIN_SEVERITY_WARN) -// empty logging macros for severity WARN when being disabled at compile time -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN_ONCE(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN_ONCE_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN_EXPRESSION(expression, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN_EXPRESSION_NAMED(expression, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN_FUNCTION(function, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN_FUNCTION_NAMED(function, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN_SKIPFIRST(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN_SKIPFIRST_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN_THROTTLE(get_time_point_value, duration, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN_SKIPFIRST_THROTTLE(get_time_point_value, duration, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN_THROTTLE_NAMED(get_time_point_value, duration, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_WARN_SKIPFIRST_THROTTLE_NAMED(get_time_point_value, duration, name, format, ...) - -#else -/** - * \def RCUTILS_LOG_WARN - * Log a message with severity WARN. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_EMPTY, RCUTILS_LOG_CONDITION_EMPTY, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_WARN_NAMED - * Log a message with severity WARN. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_EMPTY, RCUTILS_LOG_CONDITION_EMPTY, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_WARN_ONCE - * Log a message with severity WARN with the following conditions: - * - All subsequent log calls except the first one are being ignored. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN_ONCE(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_ONCE_BEFORE, RCUTILS_LOG_CONDITION_ONCE_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_WARN_ONCE_NAMED - * Log a message with severity WARN with the following conditions: - * - All subsequent log calls except the first one are being ignored. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN_ONCE_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_ONCE_BEFORE, RCUTILS_LOG_CONDITION_ONCE_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_WARN_EXPRESSION - * Log a message with severity WARN with the following conditions: - * - Log calls are being ignored when the expression evaluates to false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] expression The expression determining if the message should be logged - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN_EXPRESSION(expression, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_EXPRESSION_BEFORE(expression), RCUTILS_LOG_CONDITION_EXPRESSION_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_WARN_EXPRESSION_NAMED - * Log a message with severity WARN with the following conditions: - * - Log calls are being ignored when the expression evaluates to false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] expression The expression determining if the message should be logged - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN_EXPRESSION_NAMED(expression, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_EXPRESSION_BEFORE(expression), RCUTILS_LOG_CONDITION_EXPRESSION_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_WARN_FUNCTION - * Log a message with severity WARN with the following conditions: - * - Log calls are being ignored when the function returns false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] function The functions return value determines if the message should be logged - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN_FUNCTION(function, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_FUNCTION_BEFORE(function), RCUTILS_LOG_CONDITION_FUNCTION_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_WARN_FUNCTION_NAMED - * Log a message with severity WARN with the following conditions: - * - Log calls are being ignored when the function returns false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] function The functions return value determines if the message should be logged - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN_FUNCTION_NAMED(function, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_FUNCTION_BEFORE(function), RCUTILS_LOG_CONDITION_FUNCTION_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_WARN_SKIPFIRST - * Log a message with severity WARN with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN_SKIPFIRST(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_WARN_SKIPFIRST_NAMED - * Log a message with severity WARN with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN_SKIPFIRST_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_WARN_THROTTLE - * Log a message with severity WARN with the following conditions: - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN_THROTTLE(get_time_point_value, duration, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration), RCUTILS_LOG_CONDITION_THROTTLE_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_WARN_SKIPFIRST_THROTTLE - * Log a message with severity WARN with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN_SKIPFIRST_THROTTLE(get_time_point_value, duration, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration) RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_THROTTLE_AFTER RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_WARN_THROTTLE_NAMED - * Log a message with severity WARN with the following conditions: - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN_THROTTLE_NAMED(get_time_point_value, duration, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration), RCUTILS_LOG_CONDITION_THROTTLE_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_WARN_SKIPFIRST_THROTTLE_NAMED - * Log a message with severity WARN with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_WARN_SKIPFIRST_THROTTLE_NAMED(get_time_point_value, duration, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_WARN, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration) RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_THROTTLE_AFTER RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, name, \ - __VA_ARGS__) -#endif -///@} - -// *INDENT-ON* - -/** @name Logging macros for severity ERROR. - */ -///@{ -#if (RCUTILS_LOG_MIN_SEVERITY > RCUTILS_LOG_MIN_SEVERITY_ERROR) -// empty logging macros for severity ERROR when being disabled at compile time -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR_ONCE(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR_ONCE_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR_EXPRESSION(expression, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR_EXPRESSION_NAMED(expression, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR_FUNCTION(function, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR_FUNCTION_NAMED(function, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR_SKIPFIRST(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR_SKIPFIRST_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR_THROTTLE(get_time_point_value, duration, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR_SKIPFIRST_THROTTLE(get_time_point_value, duration, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR_THROTTLE_NAMED(get_time_point_value, duration, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_ERROR_SKIPFIRST_THROTTLE_NAMED(get_time_point_value, duration, name, format, ...) - -#else -/** - * \def RCUTILS_LOG_ERROR - * Log a message with severity ERROR. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_EMPTY, RCUTILS_LOG_CONDITION_EMPTY, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_ERROR_NAMED - * Log a message with severity ERROR. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_EMPTY, RCUTILS_LOG_CONDITION_EMPTY, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_ERROR_ONCE - * Log a message with severity ERROR with the following conditions: - * - All subsequent log calls except the first one are being ignored. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR_ONCE(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_ONCE_BEFORE, RCUTILS_LOG_CONDITION_ONCE_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_ERROR_ONCE_NAMED - * Log a message with severity ERROR with the following conditions: - * - All subsequent log calls except the first one are being ignored. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR_ONCE_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_ONCE_BEFORE, RCUTILS_LOG_CONDITION_ONCE_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_ERROR_EXPRESSION - * Log a message with severity ERROR with the following conditions: - * - Log calls are being ignored when the expression evaluates to false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] expression The expression determining if the message should be logged - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR_EXPRESSION(expression, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_EXPRESSION_BEFORE(expression), RCUTILS_LOG_CONDITION_EXPRESSION_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_ERROR_EXPRESSION_NAMED - * Log a message with severity ERROR with the following conditions: - * - Log calls are being ignored when the expression evaluates to false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] expression The expression determining if the message should be logged - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR_EXPRESSION_NAMED(expression, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_EXPRESSION_BEFORE(expression), RCUTILS_LOG_CONDITION_EXPRESSION_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_ERROR_FUNCTION - * Log a message with severity ERROR with the following conditions: - * - Log calls are being ignored when the function returns false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] function The functions return value determines if the message should be logged - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR_FUNCTION(function, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_FUNCTION_BEFORE(function), RCUTILS_LOG_CONDITION_FUNCTION_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_ERROR_FUNCTION_NAMED - * Log a message with severity ERROR with the following conditions: - * - Log calls are being ignored when the function returns false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] function The functions return value determines if the message should be logged - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR_FUNCTION_NAMED(function, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_FUNCTION_BEFORE(function), RCUTILS_LOG_CONDITION_FUNCTION_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_ERROR_SKIPFIRST - * Log a message with severity ERROR with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR_SKIPFIRST(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_ERROR_SKIPFIRST_NAMED - * Log a message with severity ERROR with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR_SKIPFIRST_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_ERROR_THROTTLE - * Log a message with severity ERROR with the following conditions: - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR_THROTTLE(get_time_point_value, duration, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration), RCUTILS_LOG_CONDITION_THROTTLE_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_ERROR_SKIPFIRST_THROTTLE - * Log a message with severity ERROR with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR_SKIPFIRST_THROTTLE(get_time_point_value, duration, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration) RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_THROTTLE_AFTER RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_ERROR_THROTTLE_NAMED - * Log a message with severity ERROR with the following conditions: - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR_THROTTLE_NAMED(get_time_point_value, duration, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration), RCUTILS_LOG_CONDITION_THROTTLE_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_ERROR_SKIPFIRST_THROTTLE_NAMED - * Log a message with severity ERROR with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_ERROR_SKIPFIRST_THROTTLE_NAMED(get_time_point_value, duration, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_ERROR, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration) RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_THROTTLE_AFTER RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, name, \ - __VA_ARGS__) -#endif -///@} - -// *INDENT-ON* - -/** @name Logging macros for severity FATAL. - */ -///@{ -#if (RCUTILS_LOG_MIN_SEVERITY > RCUTILS_LOG_MIN_SEVERITY_FATAL) -// empty logging macros for severity FATAL when being disabled at compile time -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL_ONCE(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL_ONCE_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL_EXPRESSION(expression, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL_EXPRESSION_NAMED(expression, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL_FUNCTION(function, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL_FUNCTION_NAMED(function, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL_SKIPFIRST(format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL_SKIPFIRST_NAMED(name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL_THROTTLE(get_time_point_value, duration, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL_SKIPFIRST_THROTTLE(get_time_point_value, duration, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL_THROTTLE_NAMED(get_time_point_value, duration, name, format, ...) -/// Empty logging macro due to the preprocessor definition of RCUTILS_LOG_MIN_SEVERITY. -# define RCUTILS_LOG_FATAL_SKIPFIRST_THROTTLE_NAMED(get_time_point_value, duration, name, format, ...) - -#else -/** - * \def RCUTILS_LOG_FATAL - * Log a message with severity FATAL. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_EMPTY, RCUTILS_LOG_CONDITION_EMPTY, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_FATAL_NAMED - * Log a message with severity FATAL. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_EMPTY, RCUTILS_LOG_CONDITION_EMPTY, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_FATAL_ONCE - * Log a message with severity FATAL with the following conditions: - * - All subsequent log calls except the first one are being ignored. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL_ONCE(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_ONCE_BEFORE, RCUTILS_LOG_CONDITION_ONCE_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_FATAL_ONCE_NAMED - * Log a message with severity FATAL with the following conditions: - * - All subsequent log calls except the first one are being ignored. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL_ONCE_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_ONCE_BEFORE, RCUTILS_LOG_CONDITION_ONCE_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_FATAL_EXPRESSION - * Log a message with severity FATAL with the following conditions: - * - Log calls are being ignored when the expression evaluates to false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] expression The expression determining if the message should be logged - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL_EXPRESSION(expression, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_EXPRESSION_BEFORE(expression), RCUTILS_LOG_CONDITION_EXPRESSION_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_FATAL_EXPRESSION_NAMED - * Log a message with severity FATAL with the following conditions: - * - Log calls are being ignored when the expression evaluates to false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] expression The expression determining if the message should be logged - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL_EXPRESSION_NAMED(expression, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_EXPRESSION_BEFORE(expression), RCUTILS_LOG_CONDITION_EXPRESSION_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_FATAL_FUNCTION - * Log a message with severity FATAL with the following conditions: - * - Log calls are being ignored when the function returns false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] function The functions return value determines if the message should be logged - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL_FUNCTION(function, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_FUNCTION_BEFORE(function), RCUTILS_LOG_CONDITION_FUNCTION_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_FATAL_FUNCTION_NAMED - * Log a message with severity FATAL with the following conditions: - * - Log calls are being ignored when the function returns false. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] function The functions return value determines if the message should be logged - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL_FUNCTION_NAMED(function, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_FUNCTION_BEFORE(function), RCUTILS_LOG_CONDITION_FUNCTION_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_FATAL_SKIPFIRST - * Log a message with severity FATAL with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL_SKIPFIRST(...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_FATAL_SKIPFIRST_NAMED - * Log a message with severity FATAL with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL_SKIPFIRST_NAMED(name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_FATAL_THROTTLE - * Log a message with severity FATAL with the following conditions: - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL_THROTTLE(get_time_point_value, duration, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration), RCUTILS_LOG_CONDITION_THROTTLE_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_FATAL_SKIPFIRST_THROTTLE - * Log a message with severity FATAL with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL_SKIPFIRST_THROTTLE(get_time_point_value, duration, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration) RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_THROTTLE_AFTER RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, NULL, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_FATAL_THROTTLE_NAMED - * Log a message with severity FATAL with the following conditions: - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL_THROTTLE_NAMED(get_time_point_value, duration, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration), RCUTILS_LOG_CONDITION_THROTTLE_AFTER, name, \ - __VA_ARGS__) -/** - * \def RCUTILS_LOG_FATAL_SKIPFIRST_THROTTLE_NAMED - * Log a message with severity FATAL with the following conditions: - * - The first log call is being ignored but all subsequent calls are being processed. - * - Log calls are being ignored if the last logged message is not longer ago than the specified duration. - * - * \note The conditions will only be evaluated if this logging statement is enabled. - * - * \param[in] get_time_point_value Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer. - * \param[in] duration The duration of the throttle interval as an integral value in milliseconds. - * \param[in] name The name of the logger - * \param[in] ... The format string, followed by the variable arguments for the format string - */ -# define RCUTILS_LOG_FATAL_SKIPFIRST_THROTTLE_NAMED(get_time_point_value, duration, name, ...) \ - RCUTILS_LOG_COND_NAMED( \ - RCUTILS_LOG_SEVERITY_FATAL, \ - RCUTILS_LOG_CONDITION_THROTTLE_BEFORE(get_time_point_value, duration) RCUTILS_LOG_CONDITION_SKIPFIRST_BEFORE, RCUTILS_LOG_CONDITION_THROTTLE_AFTER RCUTILS_LOG_CONDITION_SKIPFIRST_AFTER, name, \ - __VA_ARGS__) -#endif -///@} - -// *INDENT-ON* - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__LOGGING_MACROS_H_ diff --git a/src/rcutils/macros.h b/src/rcutils/macros.h deleted file mode 100755 index 2e42163ae..000000000 --- a/src/rcutils/macros.h +++ /dev/null @@ -1,237 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// @file - -#ifndef RCUTILS__MACROS_H_ -#define RCUTILS__MACROS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/configuration_flags.h" - -#ifndef _MSC_VER -/// A macro to make the compiler warn when the return value of a function is not used. -#define RCUTILS_WARN_UNUSED __attribute__((warn_unused_result)) -#else -/// A macro to make the compiler (MSVC) warn when the return value of a function is not used. -#define RCUTILS_WARN_UNUSED _Check_return_ -#endif - -/// \cond Doxygen_Suppress -// This block either sets RCUTILS_THREAD_LOCAL or RCUTILS_THREAD_LOCAL_PTHREAD. -#if defined(RCUTILS_NO_THREAD_SUPPORT) - #define RCUTILS_THREAD_LOCAL -#elif defined _WIN32 || defined __CYGWIN__ -// Windows or Cygwin - #define RCUTILS_THREAD_LOCAL __declspec(thread) -#elif defined __APPLE__ -// Apple OS's - #include - #if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE -// iOS Simulator or iOS device - #include - #if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) - #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 100000 -// iOS >= 10, thread local storage was added in iOS 10 - #define RCUTILS_THREAD_LOCAL _Thread_local - #else -// iOS < 10, no thread local storage, so use pthread instead - #define RCUTILS_THREAD_LOCAL_PTHREAD 1 - #undef RCUTILS_THREAD_LOCAL - #endif - #else - #error "Unknown iOS version" - #endif - #elif TARGET_OS_MAC -// macOS - #define RCUTILS_THREAD_LOCAL _Thread_local - #else - #error "Unknown Apple platform" - #endif -#else -// Some other non-Windows, non-cygwin, non-apple OS - #define RCUTILS_THREAD_LOCAL _Thread_local -#endif - -// Helper macros for nested macro expansion -#define RCUTILS_EXPAND(x) x -#define RCUTILS_STRINGIFY_IMPL(x) #x -#define RCUTILS_STRINGIFY(x) RCUTILS_STRINGIFY_IMPL(x) - -/// A macro to mark an argument or variable as unused. -#define RCUTILS_UNUSED(x) (void)(x) - -#define RCUTILS_JOIN_IMPL(arg1, arg2) arg1 ## arg2 -#define RCUTILS_JOIN(arg1, arg2) RCUTILS_JOIN_IMPL(arg1, arg2) -/// @endcond - -#if defined _WIN32 || defined __CYGWIN__ -/// Macro to annotate printf-like functions on Linux. Disabled on Windows. -#define RCUTILS_ATTRIBUTE_PRINTF_FORMAT(format_string_index, first_to_check_index) -#else -/// Macro to annotate printf-like functions which are relying on a format string and a variable -/// number of arguments. -/** - * This enables GCC to emit warnings if dangerous patterns are detected. - * See GCC documentation for details: - * https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html - * - * For the following function: - * ``` - * int snprintf(char *str, size_t size, const char *format, ...); - * ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^ - * ARG 1 ARG 2 ARG 3 ARG 4 - * format string first optional argument - * ``` - * format_string_index value would be 3, first_to_check_index value would be 4. - * - * IMPORTANT: the first argument has an index of ONE (not zero!). - * - * \param[in] format_string_index index of the format string passed to the function - * \param[in] first_to_check_index index of the first "optional argument" - */ -#define RCUTILS_ATTRIBUTE_PRINTF_FORMAT(format_string_index, first_to_check_index) \ - __attribute__ ((format(printf, format_string_index, first_to_check_index))) -#endif // !defined _WIN32 || defined __CYGWIN__ - -/// Macro to declare deprecation in the platform appropriate manner. -#ifndef _WIN32 -# define RCUTILS_DEPRECATED __attribute__((deprecated)) -#else -# define RCUTILS_DEPRECATED __declspec(deprecated) -#endif - -/// Macro to declare deprecation in the platform appropriate manner with a message. -#ifndef _WIN32 -# define RCUTILS_DEPRECATED_WITH_MSG(msg) __attribute__((deprecated(msg))) -#else -# define RCUTILS_DEPRECATED_WITH_MSG(msg) __declspec(deprecated(msg)) -#endif - -// Provide the compiler with branch prediction information -#ifndef _WIN32 -/** - * \def RCUTILS_LIKELY - * Instruct the compiler to optimize for the case where the argument equals 1. - */ -# define RCUTILS_LIKELY(x) __builtin_expect((x), 1) -/** - * \def RCUTILS_UNLIKELY - * Instruct the compiler to optimize for the case where the argument equals 0. - */ -# define RCUTILS_UNLIKELY(x) __builtin_expect((x), 0) -#else -/** - * \def RCUTILS_LIKELY - * No op since Windows doesn't support providing branch prediction information. - */ -# define RCUTILS_LIKELY(x) (x) -/** - * \def RCUTILS_UNLIKELY - * No op since Windows doesn't support providing branch prediction information. - */ -# define RCUTILS_UNLIKELY(x) (x) -#endif // _WIN32 - -// Provide the compiler a hint about an argument being nonnull when possible. -#ifndef _WIN32 -# define RCUTILS_NONNULL __attribute__((__nonnull__)) -# define RCUTILS_NONNULL_ARGS(...) __attribute__((__nonnull__(__VA_ARGS__))) -# define RCUTILS_RETURNS_NONNULL __attribute__((__returns_nonnull__)) -# define RCUTILS_HAS_NONNULL 1 -#else -# define RCUTILS_NONNULL -# define RCUTILS_NONNULL_ARGS(...) -# define RCUTILS_RETURNS_NONNULL -# define RCUTILS_HAS_NONNULL 0 -#endif // _WIN32 - -#if defined RCUTILS_ENABLE_FAULT_INJECTION -#include "rcutils/testing/fault_injection.h" - -/** - * \def RCUTILS_CAN_RETURN_WITH_ERROR_OF - * Indicating macro that the function intends to return possible error value. - * - * Put this macro as the first line in the function. For example: - * - * int rcutils_function_that_can_fail() { - * RCUTILS_CAN_RETURN_WITH_ERROR_OF(RCUTILS_RET_INVALID_ARGUMENT); - * ... // rest of function - * } - * - * For now, this macro just simply calls `RCUTILS_FAULT_INJECTION_MAYBE_RETURN_ERROR` if fault - * injection is enabled. However, for source code, the macro annotation - * `RCUTILS_CAN_RETURN_WITH_ERROR_OF` helps clarify that a function may return a value signifying - * an error and what those are. - * - * In general, you should only include a return value that originates in the function you're - * annotating instead of one that is merely passed on from a called function already annotated with - *`RCUTILS_CAN_RETURN_WITH_ERROR_OF`. If you are passing on return values from a called function, - * but that function is not annotated with `RCUTILS_CAN_RETURN_WITH_ERROR_OF`, then you might - * consider annotating that function first. If for some reason that is not desired or possible, - * then annotate your function as if the return values you are passing on originated from your - * function. - * - * If the function can return multiple return values indicating separate failure types, each one - * should go on a separate line. - * - * If in your function, there are expected effects on output parameters that occur during - * the failure case, then it will introduce a discrepancy between fault injection testing and - * production operation. This is because the fault injection will cause the function to return - * where this macro is used, not at the location the error values are typically returned. To help - * protect against this scenario you may consider adding unit tests that check your function does - * not modify output parameters when it actually returns a failing error code if it's possible for - * your code. - * - * If your function is void, this macro can be used without parameters. However, for the above - * reasoning, there should be no side effects on output parameters for all possible early returns. - * - * \param error_return_value the value returned as a result of an error. It does not need to be - * a rcutils_ret_t type. It could also be NULL, -1, a string error message, etc - */ -# define RCUTILS_CAN_RETURN_WITH_ERROR_OF(error_return_value) \ - RCUTILS_FAULT_INJECTION_MAYBE_RETURN_ERROR(error_return_value); - -/** - * \def RCUTILS_CAN_FAIL_WITH - * Indicating macro similar to RCUTILS_CAN_RETURN_WITH_ERROR_OF but for use with more complicated - * statements. - * - * The `failure_code` will be executed inside a scoped if block, so any variables declared within - * will not be available outside of the macro. - * - * One example where you might need this version, is if a side-effect may occur within a function. - * For example, in snprintf, rcutils_snprintf needs to set both errno and return -1 on failure. - * This macro is used to capture both effects. - * - * \param failure_code Code that is representative of the failure case in this function. - */ -# define RCUTILS_CAN_FAIL_WITH(failure_code) \ - RCUTILS_FAULT_INJECTION_MAYBE_FAIL(failure_code); - -#else -# define RCUTILS_CAN_RETURN_WITH_ERROR_OF(error_return_value) -# define RCUTILS_CAN_FAIL_WITH(failure_code) -#endif // defined RCUTILS_ENABLE_FAULT_INJECTION - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__MACROS_H_ diff --git a/src/rcutils/process.h b/src/rcutils/process.h deleted file mode 100755 index 5b258b3ac..000000000 --- a/src/rcutils/process.h +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright 2019 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__PROCESS_H_ -#define RCUTILS__PROCESS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#if defined _WIN32 || defined __CYGWIN__ -#ifndef WIN32_LEAN_AND_MEAN -#define WIN32_LEAN_AND_MEAN -#endif - -#ifndef NOMINMAX -#define NOMINMAX -#endif -// When building with MSVC 19.28.29333.0 on Windows 10 (as of 2020-11-11), -// there appears to be a problem with winbase.h (which is included by -// Windows.h). In particular, warnings of the form: -// -// warning C5105: macro expansion producing 'defined' has undefined behavior -// -// See https://developercommunity.visualstudio.com/content/problem/695656/wdk-and-sdk-are-not-compatible-with-experimentalpr.html -// for more information. For now disable that warning when including windows.h -#pragma warning(push) -#pragma warning(disable : 5105) -#include -#pragma warning(pop) -#endif - -#include "rcutils/allocator.h" -#include "rcutils/macros.h" -#include "rcutils/types/string_array.h" -#include "rcutils/visibility_control.h" - -/// Retrieve the current process ID. -/** - * This function returns the current process ID, and is always successful. - * - * This function is thread-safe. - * - * \return The current process ID. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -int rcutils_get_pid(void); - -/// Retrieve the current executable name. -/** - * This function portably retrieves the current program name and returns - * a copy of it. - * It is up to the caller to free the memory. - * - * This function is thread-safe. - * - * \param[in] allocator the allocator to use - * \return The program name on success, or - * \return NULL on failure. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -char * rcutils_get_executable_name(rcutils_allocator_t allocator); - -/// Information about a subprocess created by this process -typedef struct rcutils_process_s -{ -#if defined _WIN32 || defined __CYGWIN__ - /// The open handle to the process. - HANDLE handle; -#endif - - /// The process ID of the process. - int pid; - - /// The allocator used to allocate and free memory for the process. - rcutils_allocator_t allocator; -} rcutils_process_t; - -/// Execute a command as a new subprocess. -/** - * This function runs a command by creating a new subprocess of the currently - * running process. - * - * \param[in] args the command line arguments to be run - * \param[in] allocator the allocator to use - * \return The successfully created subprocess, or - * \return NULL on failure. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_process_t * -rcutils_start_process( - const rcutils_string_array_t * args, - rcutils_allocator_t * allocator); - -/// Release resources allocated when a subprocess was created. -/** - * Closes, cleans up, and deallocates resources which were allocated by - * rcutils_start_process(), including the rcutils_process_t itself. - * \param[in] process the process to be closed and deallocated - */ -RCUTILS_PUBLIC -void rcutils_process_close(rcutils_process_t * process); - -/// Blocks until the given subprocess has been has exited. -/** - * Wait for a subprocess to terminate, and optionally retrieve the exit code - * from that process. - * Upon successful invocation of this function, subsequent calls will produce - * undefined behavior. It should typically be followed by a call to - * rcutils_process_close(). - * \param[in] process The process to wait for - * \param[out] status The exit code from that process - * \return #RCUTILS_RET_OK if the process exited, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if the process argument is invalid - * \return #RCUTILS_RET_ERROR if an unexpected error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_process_wait(const rcutils_process_t * process, int * status); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__PROCESS_H_ diff --git a/src/rcutils/qsort.h b/src/rcutils/qsort.h deleted file mode 100755 index 9af8904a1..000000000 --- a/src/rcutils/qsort.h +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__QSORT_H_ -#define RCUTILS__QSORT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/macros.h" -#include "rcutils/types/rcutils_ret.h" -#include "rcutils/visibility_control.h" - -/// Interface to qsort with rcutils-style argument validation. -/** - * This function changes the order of the elements in the array so that they - * are in ascending order according to the given comparison function. - * - * This function is thread-safe. - * - * \param[inout] ptr object whose elements should be sorted. - * \param[in] count number of elements present in the object. - * \param[in] size size of each element, in bytes. - * \param[in] comp function used to compare two elements. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_qsort(void * ptr, size_t count, size_t size, int (* comp)(const void *, const void *)); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__QSORT_H_ diff --git a/src/rcutils/repl_str.h b/src/rcutils/repl_str.h deleted file mode 100755 index a080b7d16..000000000 --- a/src/rcutils/repl_str.h +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright 2015-2016 Laird Shaw -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This function is based on the repl_str() from (on 2017-04-25): -// -// http://creativeandcritical.net/str-replace-c -// -// It is released under the Public Domain, and has been placed additionally -// under the Apache 2.0 license by me (William Woodall). -// -// It has been modified to take a custom allocator and to fit some of our -// style standards. - -/// \file - -#ifndef RCUTILS__REPL_STR_H_ -#define RCUTILS__REPL_STR_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/allocator.h" -#include "rcutils/macros.h" -#include "rcutils/visibility_control.h" - -/// Replace all the occurrences of one string for another in the given string. -/** - * Documentation copied from the source with minor tweaks: - * - * ---- - * - * **Description:** - * - * Replaces in the string `str` all the occurrences of the source string `from` - * with the destination string `to`. - * The lengths of the strings `from` and `to` may differ. - * The string `to` may be of any length, but the string `from` must be of - * non-zero length - the penalty for providing an empty string for the `from` - * parameter is an infinite loop. - * In addition, none of the three parameters may be NULL. - * - * **Returns:** - * - * The post-replacement string, or NULL if memory for the new string could not - * be allocated. - * Does not modify the original string. - * The memory for the returned post-replacement string may be deallocated with - * given allocator's deallocate function when it is no longer required. - * - * **Performance:** - * - * In case you are curious enough to want to compare this implementation with - * alternative implementations, you are welcome to compile and run the code in - * the benchmarking file, - * [replacebench.c](http://creativeandcritical.net/downloads/replacebench.c). - * In that file, the above function is included as `replace_cache`, and the - * functions originally published on this page as `replace_str2` and - * `replace_str` are included as `replace_opt2` and `replace_opt`. - * Code/functions are included from the comp.lang.c thread, - * [how to replace a substring in a string using C?] - * (https://groups.google.com/forum/#!msg/comp.lang.c/sgydS2lDgxc/v2MRxRrAQncJ), - * from answers to the stackoverflow question, - * [What is the function to replace string in C?] - * (http://stackoverflow.com/questions/779875/what-is-the-function-to-replace-string-in-c), - * and also from private correspondence. - * See the comments top of file for instructions on compiling and running it. - * - * In most scenarios, the fastest replacement function, by around 10-20%, - * is Albert Chan's `replace_smart`, followed by the above function: - * `repl_str` aka `replace_cache`. - * There are some scenarios, though, where `repl_str` is faster than - * `replace_smart`, sometimes by up to 200%. - * These scenarios involve long strings with few matches. - * Why, if Albert's function is generally slightly faster than the above - * `repl_str` function, is it not the focus of this page? - * Because it generally uses much more memory than `repl_str`. - * - * The third fastest implementation is typically `replace_str2` aka - * `replace_opt2`. - * For longer strings in the case in which the lengths of the "from" and "to" - * strings differ, `repl_str` aka `replace_cache` beats it by margins of up to - * about 80%. - * For smaller strings, and in the case where the lengths of the "from" and - * "to" strings are identical, `replace_str2` aka `replace_opt2` is faster, - * by a maximum margin of about 35%, sometimes in those scenarios beating - * `replace_smart` too. - * Some of the other functions are also faster for smaller strings. - * The even-match point between `replace_str2` and `repl_str` - * (assuming "from" and "to" string lengths differ) depends on how far into - * the string the final match occurs, how many matches there are, and the - * comparative lengths of the old and "to" strings, but roughly it occurs for - * strings of 700-800 bytes in length. - * - * This analysis is based on compiling with [GCC](https://gcc.gnu.org/) and - * testing on a 64-bit Intel platform running Linux, however brief testing with - * [Microsoft Visual C++ 2010 Express] - * (https://www.visualstudio.com/en-US/products/visual-studio-express-vs) - * (scroll down to "Additional information" at that link) on Windows 7 seemed - * to produce similar results. - * - * ---- - * - * Here continues additional documentation added by OSRF. - * - * The allocator must not be NULL. - * - * \param[in] str string to have substrings found and replaced within - * \param[in] from string to match for replacement - * \param[in] to string to replace matched strings with - * \param[in] allocator structure defining functions to be used for allocation - * \return duplicated `str` with all matches of `from` replaced with `to`. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -char * -rcutils_repl_str( - const char * str, - const char * from, - const char * to, - const rcutils_allocator_t * allocator); - -// Implementation copied from above mentioned source continues in repl_str.c. - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__REPL_STR_H_ diff --git a/src/rcutils/security_directory.h b/src/rcutils/security_directory.h deleted file mode 100755 index 9d2c68067..000000000 --- a/src/rcutils/security_directory.h +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCUTILS__SECURITY_DIRECTORY_H_ -#define RCUTILS__SECURITY_DIRECTORY_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/allocator.h" -#include "rcutils/visibility_control.h" - -#ifndef ROS_SECURITY_NODE_DIRECTORY_VAR_NAME - #define ROS_SECURITY_NODE_DIRECTORY_VAR_NAME "ROS_SECURITY_NODE_DIRECTORY" -#endif - -#ifndef ROS_SECURITY_ROOT_DIRECTORY_VAR_NAME - #define ROS_SECURITY_ROOT_DIRECTORY_VAR_NAME "ROS_SECURITY_ROOT_DIRECTORY" -#endif - -#ifndef ROS_SECURITY_LOOKUP_TYPE_VAR_NAME - #define ROS_SECURITY_LOOKUP_TYPE_VAR_NAME "ROS_SECURITY_LOOKUP_TYPE" -#endif - -/// Return the secure root directory associated with a node given its validated name and namespace. -/** - * E.g. for a node named "c" in namespace "/a/b", the secure root path will be - * "a/b/c", where the delimiter "/" is native for target file system (e.g. "\\" for _WIN32). - * If no exact match is found for the node name, a best match would be used instead - * (by performing longest-prefix matching). - * - * However, this expansion can be overridden by setting the secure node directory environment - * variable, allowing users to explicitly specify the exact secure root directory to be utilized. - * Such an override is useful for where the FQN of a node is non-deterministic before runtime, - * or when testing and using additional tools that may not otherwise be easily provisioned. - * - * \param[in] node_name validated node name (a single token) - * \param[in] node_namespace validated, absolute namespace (starting with "/") - * \param[in] allocator the allocator to use for allocation - * \returns machine specific (absolute) node secure root path or NULL on failure - * returned pointer must be deallocated by the caller of this function - */ -RCUTILS_PUBLIC -char * rcutils_get_secure_root( - const char * node_name, - const char * node_namespace, - const rcutils_allocator_t * allocator -); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__SECURITY_DIRECTORY_H_ diff --git a/src/rcutils/sha256.h b/src/rcutils/sha256.h deleted file mode 100755 index 546622a2d..000000000 --- a/src/rcutils/sha256.h +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright 2023 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** \file sha256.h - * \brief SHA256 implementation - * - * This contains an implementation of the SHA256 algorithm - * It was originally copied from Brad Conte - * https://github.com/B-Con/crypto-algorithms/blob/master/sha256.c - * and modified to meet ros2 code formatting and compiler warning requirements. - * Algorithm specification can be found here: - * http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf - * This implementation uses little endian byte order. - * This implementation makes no security guarantees, its use case if for - * non-sensitive comparison of message digests. - */ - -#ifndef RCUTILS__SHA256_H_ -#define RCUTILS__SHA256_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rcutils/visibility_control.h" - -#define RCUTILS_SHA256_BLOCK_SIZE 32 - -typedef struct RCUTILS_PUBLIC_TYPE rcutils_sha256_ctx_s -{ - uint8_t data[64]; - size_t datalen; - uint64_t bitlen; - uint32_t state[8]; -} rcutils_sha256_ctx_t; - -/// Initialize the sha256 algorithm context with starting state. -/** - * Call this on any new context before starting to input data. - * - * \param[inout] ctx - * \return void - */ -RCUTILS_PUBLIC -void rcutils_sha256_init(rcutils_sha256_ctx_t * ctx); - -/// Add data to the sha256 algorithm -/** - * This may be called repeatedly on an initialized context. - * - * \param[inout] ctx Initialized sha256 context struct - * \param[in] data Data to add to the total message being hashed - * \param[in] data_len Size of the input data. - * \return void - */ -RCUTILS_PUBLIC -void rcutils_sha256_update(rcutils_sha256_ctx_t * ctx, const uint8_t * data, size_t data_len); - -/// Finalize and output sha256 hash for all data added. -/** - * Call only once on a context that has been initialized, and optionally updated with data. - * - * \param[inout] ctx Initialized sha256 context struct - * \param[out] output_hash Calculated sha256 message digest to be filled - * \return void - */ -#ifdef DOXYGEN_ONLY -// One of the tools used by rosdoc2 misunderstands uint8_t[] as a uint8_t, -// so make it a pointer for documentation purposes. -RCUTILS_PUBLIC -void rcutils_sha256_final( - rcutils_sha256_ctx_t * ctx, - uint8_t * output_hash); -#else -RCUTILS_PUBLIC -void rcutils_sha256_final( - rcutils_sha256_ctx_t * ctx, - uint8_t output_hash[RCUTILS_SHA256_BLOCK_SIZE]); -#endif - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__SHA256_H_ diff --git a/src/rcutils/shared_library.h b/src/rcutils/shared_library.h deleted file mode 100755 index 996e0855d..000000000 --- a/src/rcutils/shared_library.h +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__SHARED_LIBRARY_H_ -#define RCUTILS__SHARED_LIBRARY_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" -#include "rcutils/types/rcutils_ret.h" -#include "rcutils/macros.h" -#include "rcutils/visibility_control.h" - -/// Handle to a loaded shared library. -typedef struct RCUTILS_PUBLIC_TYPE rcutils_shared_library_s -{ - /// The platform-specific pointer to the shared library - void * lib_pointer; - /// The path of the shared_library - char * library_path; - /// allocator - rcutils_allocator_t allocator; -} rcutils_shared_library_t; - -/// Return an empty shared library struct. -/** - * This function returns an empty and zero initialized shared library struct. - * - * Example: - * - * ```c - * // Do not do this: - * // rcutils_shared_library_t foo; - * // rcutils_ret_t ret = rcutils_load_shared_library( - * // &foo, - * // "library_name", - * // rcutils_get_default_allocator()); // undefined behavior! - * // or - * // rcutils_ret_t ret = rcutils_unload_shared_library(&foo); // undefined behavior! - * - * // Do this instead: - * rcutils_shared_library_t bar = rcutils_get_zero_initialized_shared_library(); - * rcutils_load_shared_library(&bar, "library_name", rcutils_get_default_allocator()); // ok - * void * symbol = rcutils_get_symbol(&bar, "bazinga"); // ok - * bool is_bazinga_symbol = rcutils_has_symbol(&bar, "bazinga"); // ok - * rcutils_ret_t ret = rcutils_unload_shared_library(&bar); // ok - * if (ret != RCUTILS_RET_ERROR) { - * // error handling - * } - * ``` - * */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_shared_library_t -rcutils_get_zero_initialized_shared_library(void); - -/// Return shared library pointer. -/** - * \param[inout] lib struct with the shared library pointer and shared library path name - * \param[in] library_path string with the path of the library - * \param[in] allocator to be used to allocate and deallocate memory - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_load_shared_library( - rcutils_shared_library_t * lib, - const char * library_path, - rcutils_allocator_t allocator); - -/// Return shared library symbol pointer. -/** - * \param[in] lib struct with the shared library pointer and shared library path name - * \param[in] symbol_name name of the symbol inside the shared library - * \return shared library symbol pointer, or - * \return `NULL` if the symbol doesn't exist. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -void * -rcutils_get_symbol(const rcutils_shared_library_t * lib, const char * symbol_name); - -/// Return true if the shared library contains a specific symbol name otherwise returns false. -/** - * \param[in] lib struct with the shared library pointer and shared library path name - * \param[in] symbol_name name of the symbol inside the shared library - * \return `true` if the symbol exists, or - * \return `false` otherwise. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -bool -rcutils_has_symbol(const rcutils_shared_library_t * lib, const char * symbol_name); - -/// Unload the shared library. -/** - * \param[in] lib rcutils_shared_library_t to be finalized - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_unload_shared_library(rcutils_shared_library_t * lib); - -/// Check if the library is loaded. -/** - * This function only determines if "unload" has been called on the current shared library handle. - * It could very well be that a second shared library handle is still open and therefore the library - * being loaded. - * \param[in] lib rcutils_shared_library_t to check - * \return `true` if library is loaded, or - * \return `false` otherwise. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -bool -rcutils_is_shared_library_loaded(rcutils_shared_library_t * lib); - -/// Get the library name for the compiled platform -/** - * \param[in] library_name library base name (without prefix and extension) - * \param[out] library_name_platform library name for the compiled platform - * \param[in] buffer_size size of library_name_platform buffer - * \param[in] debug if true the library will return a debug library name, otherwise - * it returns a normal library path - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_get_platform_library_name( - const char * library_name, - char * library_name_platform, - unsigned int buffer_size, - bool debug); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__SHARED_LIBRARY_H_ diff --git a/src/rcutils/snprintf.h b/src/rcutils/snprintf.h deleted file mode 100755 index 53a102017..000000000 --- a/src/rcutils/snprintf.h +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__SNPRINTF_H_ -#define RCUTILS__SNPRINTF_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rcutils/macros.h" -#include "rcutils/visibility_control.h" - -/// Format a string. -/** - * This function just wraps snprintf() as defined in C11 in a portable way. - * - * On Windows this defaults to the _TRUNCATE behavior of _snprintf_s(), but - * only returns -1 if errno is not 0. - * Unlike _snprintf_s() which returns -1 when truncation occurs, this function - * behaves like snprintf() (http://en.cppreference.com/w/cpp/io/c/fprintf): - * - * > Number of characters written if successful or negative value if an error - * > occurred. - * > If the resulting string gets truncated due to buf_size limit, function - * > returns the total number of characters (not including the terminating - * > null-byte) which would have been written, if the limit was not imposed. - * - * If `NULL` and `0` are given for buffer and buffer_size respectively, the - * size of the string that would be generated is returned. - * Either snprintf() or _vscprintf() is used to calculate this value. - * - * \see snprintf() - * \see _snprintf_s() - * \return the number of bytes that would have been written given enough space, or - * \return a negative number if there is an error, but unlike _snprintf_s(), - * -1 is not returned if there is truncation. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -int -rcutils_snprintf(char * buffer, size_t buffer_size, const char * format, ...) -/// @cond Doxygen_Suppress -RCUTILS_ATTRIBUTE_PRINTF_FORMAT(3, 4) -/// @endcond -; - -/// Format a string with va_list for arguments, see rcutils_snprintf(). -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -int -rcutils_vsnprintf(char * buffer, size_t buffer_size, const char * format, va_list args); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__SNPRINTF_H_ diff --git a/src/rcutils/split.h b/src/rcutils/split.h deleted file mode 100755 index b682901d3..000000000 --- a/src/rcutils/split.h +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__SPLIT_H_ -#define RCUTILS__SPLIT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/allocator.h" -#include "rcutils/types.h" -#include "rcutils/visibility_control.h" - -/// Split a given string with the specified delimiter -/** - * \param[in] str string to split - * \param[in] delimiter on where to split - * \param[in] allocator for allocating new memory for the output array - * \param[out] string_array with the split tokens - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs - */ -RCUTILS_PUBLIC -rcutils_ret_t -rcutils_split( - const char * str, - char delimiter, - rcutils_allocator_t allocator, - rcutils_string_array_t * string_array); - -/// Split a given string on the last occurrence of the specified delimiter -/** - * \param[in] str string to split - * \param[in] delimiter on where to split - * \param[in] allocator for allocating new memory for the output array - * \param[out] string_array with the split tokens - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs - */ -RCUTILS_PUBLIC -rcutils_ret_t -rcutils_split_last( - const char * str, - char delimiter, - rcutils_allocator_t allocator, - rcutils_string_array_t * string_array); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__SPLIT_H_ diff --git a/src/rcutils/stdatomic_helper.h b/src/rcutils/stdatomic_helper.h deleted file mode 100755 index 58811f145..000000000 --- a/src/rcutils/stdatomic_helper.h +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCUTILS__STDATOMIC_HELPER_H_ -#define RCUTILS__STDATOMIC_HELPER_H_ - -#include -#include -#include - -// disable unused function warnings within this file, due to inline in a header -#if !defined(_WIN32) -# pragma GCC diagnostic push -# if defined(__clang__) -# pragma clang diagnostic ignored "-Wunused-function" -# endif -#endif - -#if !defined(_WIN32) || defined(__MINGW64__) - -// The my__has_feature avoids a preprocessor error when you check for it and -// use it on the same line below. -#if defined(__has_feature) -#define my__has_feature __has_feature -#else -#define my__has_feature(x) 0 -#endif - -#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ <= 4 && __GNUC_MINOR__ <= 9 -// If GCC and below GCC-4.9, use the compatability header. -# include "stdatomic_helper/gcc/stdatomic.h" -#else // !defined(__clang__) && defined(__GNUC__) && __GNUC__ <= 4 && __GNUC_MINOR__ <= 9 -# if __cplusplus -// NOLINTNEXTLINE -# error "cannot be used with C++ due to a conflict with the C++ header, see: p0943r1" -// See: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0943r1.html" -# else -# if defined(__has_feature) && !my__has_feature(c_atomic) -// If Clang and no c_atomics (true for some older versions), use the compatability header. -# include "stdatomic_helper/gcc/stdatomic.h" -# else -# include -# endif -# endif -#endif // !defined(__clang__) && defined(__GNUC__) && __GNUC__ <= 4 && __GNUC_MINOR__ <= 9 - -#define rcutils_atomic_load(object, out) (out) = atomic_load(object) - -#define rcutils_atomic_compare_exchange_strong(object, out, expected, desired) \ - (out) = atomic_compare_exchange_strong(object, expected, desired) - -#define rcutils_atomic_exchange(object, out, desired) (out) = atomic_exchange(object, desired) - -#define rcutils_atomic_store(object, desired) atomic_store(object, desired) - -#define rcutils_atomic_fetch_add(object, out, arg) (out) = atomic_fetch_add(object, arg) - -#else // !defined(_WIN32) - -#include "./stdatomic_helper/win32/stdatomic.h" - -#define rcutils_atomic_load(object, out) rcutils_win32_atomic_load(object, out) - -#define rcutils_atomic_compare_exchange_strong(object, out, expected, desired) \ - rcutils_win32_atomic_compare_exchange_strong(object, out, expected, desired) - -#define rcutils_atomic_exchange(object, out, desired) \ - rcutils_win32_atomic_exchange(object, out, desired) - -#define rcutils_atomic_store(object, desired) rcutils_win32_atomic_store(object, desired) - -#define rcutils_atomic_fetch_add(object, out, arg) rcutils_win32_atomic_fetch_add(object, out, arg) - -#endif // !defined(_WIN32) - -static inline bool -rcutils_atomic_load_bool(atomic_bool * a_bool) -{ - bool result = false; - rcutils_atomic_load(a_bool, result); - return result; -} - -static inline int64_t -rcutils_atomic_load_int64_t(atomic_int_least64_t * a_int64_t) -{ - int64_t result = 0; - rcutils_atomic_load(a_int64_t, result); - return result; -} - -static inline uint64_t -rcutils_atomic_load_uint64_t(atomic_uint_least64_t * a_uint64_t) -{ - uint64_t result = 0; - rcutils_atomic_load(a_uint64_t, result); - return result; -} - -static inline uintptr_t -rcutils_atomic_load_uintptr_t(atomic_uintptr_t * a_uintptr_t) -{ - uintptr_t result = 0; - rcutils_atomic_load(a_uintptr_t, result); - return result; -} - -static inline bool -rcutils_atomic_compare_exchange_strong_uint_least64_t( - atomic_uint_least64_t * a_uint_least64_t, uint64_t * expected, uint64_t desired) -{ - bool result; -#if defined(__clang__) -# pragma clang diagnostic push - // we know it's a gnu feature, but clang supports it, so suppress pedantic warning -# pragma clang diagnostic ignored "-Wgnu-statement-expression" -#endif - rcutils_atomic_compare_exchange_strong(a_uint_least64_t, result, expected, desired); -#if defined(__clang__) -# pragma clang diagnostic pop -#endif - return result; -} - -static inline bool -rcutils_atomic_exchange_bool(atomic_bool * a_bool, bool desired) -{ - bool result; - rcutils_atomic_exchange(a_bool, result, desired); - return result; -} - -static inline int64_t -rcutils_atomic_exchange_int64_t(atomic_int_least64_t * a_int64_t, int64_t desired) -{ - int64_t result; - rcutils_atomic_exchange(a_int64_t, result, desired); - return result; -} - -static inline uint64_t -rcutils_atomic_exchange_uint64_t(atomic_uint_least64_t * a_uint64_t, uint64_t desired) -{ - uint64_t result; - rcutils_atomic_exchange(a_uint64_t, result, desired); - return result; -} - -static inline uintptr_t -rcutils_atomic_exchange_uintptr_t(atomic_uintptr_t * a_uintptr_t, uintptr_t desired) -{ - uintptr_t result; - rcutils_atomic_exchange(a_uintptr_t, result, desired); - return result; -} - -static inline uint64_t -rcutils_atomic_fetch_add_uint64_t(atomic_uint_least64_t * a_uint64_t, uint64_t arg) -{ - uint64_t result; - rcutils_atomic_fetch_add(a_uint64_t, result, arg); - return result; -} - -#if !defined(_WIN32) -# pragma GCC diagnostic pop -#endif - -#endif // RCUTILS__STDATOMIC_HELPER_H_ diff --git a/src/rcutils/stdatomic_helper/gcc/stdatomic.h b/src/rcutils/stdatomic_helper/gcc/stdatomic.h deleted file mode 100755 index e853dec49..000000000 --- a/src/rcutils/stdatomic_helper/gcc/stdatomic.h +++ /dev/null @@ -1,400 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/* This file was taken from: - * https://gist.github.com/nhatminhle/5181506 - * It is a modification of the FreeBSD stdatomic header with some modifications - * so that it will work with gcc 4.7+ and Clang 3.1+. - * The original FreeBSD header can be found here: - * https://github.com/freebsd/freebsd/blob/release/10.2.0/sys/sys/stdatomic.h - */ - -// *INDENT-OFF* (disable uncrustify) - -/**** Start included file. ****/ - -/* - * An implementation of C11 stdatomic.h directly borrowed from FreeBSD - * (original copyright follows), with minor modifications for - * portability to other systems. Works for recent Clang (that - * implement the feature c_atomic) and GCC 4.7+; includes - * compatibility for GCC below 4.7 but I wouldn't recommend it. - * - * Caveats and limitations: - * - Only the ``_Atomic parentheses'' notation is implemented, while - * the ``_Atomic space'' one is not. - * - _Atomic types must be typedef'ed, or programs using them will - * not type check correctly (incompatible anonymous structure - * types). - * - Non-scalar _Atomic types would require runtime support for - * runtime locking, which, as far as I know, is not currently - * available on any system. - */ - -/*- - * Copyright (c) 2011 Ed Schouten - * David Chisnall - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD: src/include/stdatomic.h,v 1.10.2.2 2012/05/30 19:21:54 theraven Exp $ - */ - -#ifndef _STDATOMIC_H_ // NOLINT -#define _STDATOMIC_H_ - -#ifdef __cplusplus -// This will suppress warnings about _Bool not being defined. -typedef bool _Bool; -#endif - -#include -#include - -#if !defined(__has_feature) -#define __has_feature(x) 0 -#endif -#if !defined(__has_builtin) -#define __has_builtin(x) 0 -#endif -#if !defined(__GNUC_PREREQ__) -#if defined(__GNUC__) && defined(__GNUC_MINOR__) -#define __GNUC_PREREQ__(maj, min) \ - ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) -#else -#define __GNUC_PREREQ__(maj, min) 0 -#endif -#endif - -#if !defined(__CLANG_ATOMICS) && !defined(__GNUC_ATOMICS) -#if __has_feature(c_atomic) -#define __CLANG_ATOMICS -#elif __GNUC_PREREQ__(4, 7) -#define __GNUC_ATOMICS -#elif !defined(__GNUC__) -#error "stdatomic.h does not support your compiler" -#endif -#endif - -#if !defined(__CLANG_ATOMICS) -#define _Atomic(T) struct { volatile __typeof__(T) __val; } -#endif - -/* - * 7.17.2 Initialization. - */ - -#if defined(__CLANG_ATOMICS) -#define ATOMIC_VAR_INIT(value) (value) -#define atomic_init(obj, value) __c11_atomic_init(obj, value) -#else -#define ATOMIC_VAR_INIT(value) { .__val = (value) } -#define atomic_init(obj, value) do { \ - (obj)->__val = (value); \ -} while (0) -#endif - -/* - * Clang and recent GCC both provide predefined macros for the memory - * orderings. If we are using a compiler that doesn't define them, use the - * clang values - these will be ignored in the fallback path. - */ - -#ifndef __ATOMIC_RELAXED -#define __ATOMIC_RELAXED 0 -#endif -#ifndef __ATOMIC_CONSUME -#define __ATOMIC_CONSUME 1 -#endif -#ifndef __ATOMIC_ACQUIRE -#define __ATOMIC_ACQUIRE 2 -#endif -#ifndef __ATOMIC_RELEASE -#define __ATOMIC_RELEASE 3 -#endif -#ifndef __ATOMIC_ACQ_REL -#define __ATOMIC_ACQ_REL 4 -#endif -#ifndef __ATOMIC_SEQ_CST -#define __ATOMIC_SEQ_CST 5 -#endif - -/* - * 7.17.3 Order and consistency. - * - * The memory_order_* constants that denote the barrier behaviour of the - * atomic operations. - */ - -enum memory_order { - memory_order_relaxed = __ATOMIC_RELAXED, - memory_order_consume = __ATOMIC_CONSUME, - memory_order_acquire = __ATOMIC_ACQUIRE, - memory_order_release = __ATOMIC_RELEASE, - memory_order_acq_rel = __ATOMIC_ACQ_REL, - memory_order_seq_cst = __ATOMIC_SEQ_CST -}; - -typedef enum memory_order memory_order; - -/* - * 7.17.4 Fences. - */ - -#ifdef __CLANG_ATOMICS -#define atomic_thread_fence(order) __c11_atomic_thread_fence(order) -#define atomic_signal_fence(order) __c11_atomic_signal_fence(order) -#elif defined(__GNUC_ATOMICS) -#define atomic_thread_fence(order) __atomic_thread_fence(order) -#define atomic_signal_fence(order) __atomic_signal_fence(order) -#else -#define atomic_thread_fence(order) __sync_synchronize() -#define atomic_signal_fence(order) __asm volatile ("" : : : "memory") -#endif - -/* - * 7.17.5 Lock-free property. - */ - -#if defined(__CLANG_ATOMICS) -#define atomic_is_lock_free(obj) \ - __c11_atomic_is_lock_free(sizeof(obj)) -#elif defined(__GNUC_ATOMICS) -#define atomic_is_lock_free(obj) \ - __atomic_is_lock_free(sizeof((obj)->__val)) -#else -#define atomic_is_lock_free(obj) \ - (sizeof((obj)->__val) <= sizeof(void *)) -#endif - -/* - * 7.17.6 Atomic integer types. - */ - -typedef _Atomic(_Bool) atomic_bool; -typedef _Atomic(char) atomic_char; -typedef _Atomic(signed char) atomic_schar; -typedef _Atomic(unsigned char) atomic_uchar; -typedef _Atomic(short) atomic_short; // NOLINT -typedef _Atomic(unsigned short) atomic_ushort; // NOLINT -typedef _Atomic(int) atomic_int; -typedef _Atomic(unsigned int) atomic_uint; -typedef _Atomic(long) atomic_long; // NOLINT -typedef _Atomic(unsigned long) atomic_ulong; // NOLINT -typedef _Atomic(long long) atomic_llong; // NOLINT -typedef _Atomic(unsigned long long) atomic_ullong; // NOLINT -#if 0 -typedef _Atomic(char16_t) atomic_char16_t; -typedef _Atomic(char32_t) atomic_char32_t; -#endif -typedef _Atomic(wchar_t) atomic_wchar_t; -typedef _Atomic(int_least8_t) atomic_int_least8_t; -typedef _Atomic(uint_least8_t) atomic_uint_least8_t; -typedef _Atomic(int_least16_t) atomic_int_least16_t; -typedef _Atomic(uint_least16_t) atomic_uint_least16_t; -typedef _Atomic(int_least32_t) atomic_int_least32_t; -typedef _Atomic(uint_least32_t) atomic_uint_least32_t; -typedef _Atomic(int_least64_t) atomic_int_least64_t; -typedef _Atomic(uint_least64_t) atomic_uint_least64_t; -typedef _Atomic(int_fast8_t) atomic_int_fast8_t; -typedef _Atomic(uint_fast8_t) atomic_uint_fast8_t; -typedef _Atomic(int_fast16_t) atomic_int_fast16_t; -typedef _Atomic(uint_fast16_t) atomic_uint_fast16_t; -typedef _Atomic(int_fast32_t) atomic_int_fast32_t; -typedef _Atomic(uint_fast32_t) atomic_uint_fast32_t; -typedef _Atomic(int_fast64_t) atomic_int_fast64_t; -typedef _Atomic(uint_fast64_t) atomic_uint_fast64_t; -typedef _Atomic(intptr_t) atomic_intptr_t; -typedef _Atomic(uintptr_t) atomic_uintptr_t; -typedef _Atomic(size_t) atomic_size_t; -typedef _Atomic(ptrdiff_t) atomic_ptrdiff_t; -typedef _Atomic(intmax_t) atomic_intmax_t; -typedef _Atomic(uintmax_t) atomic_uintmax_t; - -/* - * 7.17.7 Operations on atomic types. - */ - -/* - * Compiler-specific operations. - */ - -#if defined(__CLANG_ATOMICS) -#define atomic_compare_exchange_strong_explicit(object, expected, \ - desired, success, failure) \ - __c11_atomic_compare_exchange_strong(object, expected, desired, \ - success, failure) -#define atomic_compare_exchange_weak_explicit(object, expected, \ - desired, success, failure) \ - __c11_atomic_compare_exchange_weak(object, expected, desired, \ - success, failure) -#define atomic_exchange_explicit(object, desired, order) \ - __c11_atomic_exchange(object, desired, order) -#define atomic_fetch_add_explicit(object, operand, order) \ - __c11_atomic_fetch_add(object, operand, order) -#define atomic_fetch_and_explicit(object, operand, order) \ - __c11_atomic_fetch_and(object, operand, order) -#define atomic_fetch_or_explicit(object, operand, order) \ - __c11_atomic_fetch_or(object, operand, order) -#define atomic_fetch_sub_explicit(object, operand, order) \ - __c11_atomic_fetch_sub(object, operand, order) -#define atomic_fetch_xor_explicit(object, operand, order) \ - __c11_atomic_fetch_xor(object, operand, order) -#define atomic_load_explicit(object, order) \ - __c11_atomic_load(object, order) -#define atomic_store_explicit(object, desired, order) \ - __c11_atomic_store(object, desired, order) -#elif defined(__GNUC_ATOMICS) -#define atomic_compare_exchange_strong_explicit(object, expected, \ - desired, success, failure) \ - __atomic_compare_exchange_n(&(object)->__val, expected, \ - desired, 0, success, failure) -#define atomic_compare_exchange_weak_explicit(object, expected, \ - desired, success, failure) \ - __atomic_compare_exchange_n(&(object)->__val, expected, \ - desired, 1, success, failure) -#define atomic_exchange_explicit(object, desired, order) \ - __atomic_exchange_n(&(object)->__val, desired, order) -#define atomic_fetch_add_explicit(object, operand, order) \ - __atomic_fetch_add(&(object)->__val, operand, order) -#define atomic_fetch_and_explicit(object, operand, order) \ - __atomic_fetch_and(&(object)->__val, operand, order) -#define atomic_fetch_or_explicit(object, operand, order) \ - __atomic_fetch_or(&(object)->__val, operand, order) -#define atomic_fetch_sub_explicit(object, operand, order) \ - __atomic_fetch_sub(&(object)->__val, operand, order) -#define atomic_fetch_xor_explicit(object, operand, order) \ - __atomic_fetch_xor(&(object)->__val, operand, order) -#define atomic_load_explicit(object, order) \ - __atomic_load_n(&(object)->__val, order) -#define atomic_store_explicit(object, desired, order) \ - __atomic_store_n(&(object)->__val, desired, order) -#else -#define atomic_compare_exchange_strong_explicit(object, expected, \ - desired, success, failure) ({ \ - __typeof__((object)->__val) __v; \ - _Bool __r; \ - __v = __sync_val_compare_and_swap(&(object)->__val, \ - *(expected), desired); \ - __r = *(expected) == __v; \ - *(expected) = __v; \ - __r; \ -}) - -#define atomic_compare_exchange_weak_explicit(object, expected, \ - desired, success, failure) \ - atomic_compare_exchange_strong_explicit(object, expected, \ - desired, success, failure) -#if __has_builtin(__sync_swap) -/* Clang provides a full-barrier atomic exchange - use it if available. */ -#define atomic_exchange_explicit(object, desired, order) \ - __sync_swap(&(object)->__val, desired) -#else -/* - * __sync_lock_test_and_set() is only an acquire barrier in theory (although in - * practice it is usually a full barrier) so we need an explicit barrier after - * it. - */ -#define atomic_exchange_explicit(object, desired, order) ({ \ - __typeof__((object)->__val) __v; \ - __v = __sync_lock_test_and_set(&(object)->__val, desired); \ - __sync_synchronize(); \ - __v; \ -}) -#endif -#define atomic_fetch_add_explicit(object, operand, order) \ - __sync_fetch_and_add(&(object)->__val, operand) -#define atomic_fetch_and_explicit(object, operand, order) \ - __sync_fetch_and_and(&(object)->__val, operand) -#define atomic_fetch_or_explicit(object, operand, order) \ - __sync_fetch_and_or(&(object)->__val, operand) -#define atomic_fetch_sub_explicit(object, operand, order) \ - __sync_fetch_and_sub(&(object)->__val, operand) -#define atomic_fetch_xor_explicit(object, operand, order) \ - __sync_fetch_and_xor(&(object)->__val, operand) -#define atomic_load_explicit(object, order) \ - __sync_fetch_and_add(&(object)->__val, 0) -#define atomic_store_explicit(object, desired, order) do { \ - __sync_synchronize(); \ - (object)->__val = (desired); \ - __sync_synchronize(); \ -} while (0) -#endif - -/* - * Convenience functions. - */ - -#define atomic_compare_exchange_strong(object, expected, desired) \ - atomic_compare_exchange_strong_explicit(object, expected, \ - desired, memory_order_seq_cst, memory_order_seq_cst) -#define atomic_compare_exchange_weak(object, expected, desired) \ - atomic_compare_exchange_weak_explicit(object, expected, \ - desired, memory_order_seq_cst, memory_order_seq_cst) -#define atomic_exchange(object, desired) \ - atomic_exchange_explicit(object, desired, memory_order_seq_cst) -#define atomic_fetch_add(object, operand) \ - atomic_fetch_add_explicit(object, operand, memory_order_seq_cst) -#define atomic_fetch_and(object, operand) \ - atomic_fetch_and_explicit(object, operand, memory_order_seq_cst) -#define atomic_fetch_or(object, operand) \ - atomic_fetch_or_explicit(object, operand, memory_order_seq_cst) -#define atomic_fetch_sub(object, operand) \ - atomic_fetch_sub_explicit(object, operand, memory_order_seq_cst) -#define atomic_fetch_xor(object, operand) \ - atomic_fetch_xor_explicit(object, operand, memory_order_seq_cst) -#define atomic_load(object) \ - atomic_load_explicit(object, memory_order_seq_cst) -#define atomic_store(object, desired) \ - atomic_store_explicit(object, desired, memory_order_seq_cst) - -/* - * 7.17.8 Atomic flag type and operations. - */ - -typedef atomic_bool atomic_flag; - -#define ATOMIC_FLAG_INIT ATOMIC_VAR_INIT(0) - -#define atomic_flag_clear_explicit(object, order) \ - atomic_store_explicit(object, 0, order) -#define atomic_flag_test_and_set_explicit(object, order) \ - atomic_compare_exchange_strong_explicit(object, 0, 1, order, order) - -#define atomic_flag_clear(object) \ - atomic_flag_clear_explicit(object, memory_order_seq_cst) -#define atomic_flag_test_and_set(object) \ - atomic_flag_test_and_set_explicit(object, memory_order_seq_cst) - -#endif /* !_STDATOMIC_H_ */ // NOLINT diff --git a/src/rcutils/stdatomic_helper/win32/stdatomic.h b/src/rcutils/stdatomic_helper/win32/stdatomic.h deleted file mode 100755 index 7c9318da8..000000000 --- a/src/rcutils/stdatomic_helper/win32/stdatomic.h +++ /dev/null @@ -1,442 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/* - * An implementation of C11 stdatomic.h for Win32, part borrowed from FreeBSD - * (original copyright follows), with major modifications for - * portability to Win32 systems. - * - * Caveats and limitations: - * - Only the ``_Atomic parentheses'' notation is implemented, while - * the ``_Atomic space'' one is not. - * - _Atomic types must be typedef'ed, or programs using them will - * not type check correctly (incompatible anonymous structure - * types). - * - Support is limited to 16, 32, and 64 bit types only. - * - Stripped down to only the functions used in rcutils and dependents like rcl. - */ - -/*- - * Copyright (c) 2011 Ed Schouten - * David Chisnall - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD: src/include/stdatomic.h,v 1.10.2.2 2012/05/30 19:21:54 theraven Exp $ - */ - -#if !defined(_WIN32) -#error "this stdatomic.h does not support your compiler" -#endif // !defined(_WIN32) - -#ifndef RCUTILS__STDATOMIC_HELPER__WIN32__STDATOMIC_H_ -#define RCUTILS__STDATOMIC_HELPER__WIN32__STDATOMIC_H_ - -// When building with MSVC 19.28.29333.0 on Windows 10 (as of 2020-11-11), -// there appears to be a problem with winbase.h (which is included by -// Windows.h). In particular, warnings of the form: -// -// warning C5105: macro expansion producing 'defined' has undefined behavior -// -// See https://developercommunity.visualstudio.com/content/problem/695656/wdk-and-sdk-are-not-compatible-with-experimentalpr.html -// for more information. For now disable that warning when including windows.h - -#pragma warning(push) -#pragma warning(disable : 5105) -#include -#pragma warning(pop) - -#include -#include -#include - -#include - -// In MSVC, correct alignment of each type is already ensured. -#define _Atomic(T) struct { T __val; } - -/* - * 7.17.2 Initialization. - */ - -#define ATOMIC_VAR_INIT(value) {.__val = (value)} -#define atomic_init(obj, value) do {(obj)->__val = (value);} while (0) - -/* - * Clang and recent GCC both provide predefined macros for the memory - * orderings. If we are using a compiler that doesn't define them, use the - * clang values - these will be ignored in the fallback path. - */ - -#ifndef __ATOMIC_RELAXED -#define __ATOMIC_RELAXED 0 -#endif -#ifndef __ATOMIC_CONSUME -#define __ATOMIC_CONSUME 1 -#endif -#ifndef __ATOMIC_ACQUIRE -#define __ATOMIC_ACQUIRE 2 -#endif -#ifndef __ATOMIC_RELEASE -#define __ATOMIC_RELEASE 3 -#endif -#ifndef __ATOMIC_ACQ_REL -#define __ATOMIC_ACQ_REL 4 -#endif -#ifndef __ATOMIC_SEQ_CST -#define __ATOMIC_SEQ_CST 5 -#endif - -/* - * 7.17.3 Order and consistency. - * - * The memory_order_* constants that denote the barrier behaviour of the - * atomic operations. - */ - -enum memory_order -{ - memory_order_relaxed = __ATOMIC_RELAXED, - memory_order_consume = __ATOMIC_CONSUME, - memory_order_acquire = __ATOMIC_ACQUIRE, - memory_order_release = __ATOMIC_RELEASE, - memory_order_acq_rel = __ATOMIC_ACQ_REL, - memory_order_seq_cst = __ATOMIC_SEQ_CST -}; - -typedef enum memory_order memory_order; - -/* - * 7.17.4 Fences. - */ - -#define atomic_thread_fence(order) MemoryBarrier() -#define atomic_signal_fence(order) _ReadWriteBarrier() - -/* - * 7.17.5 Lock-free property. - */ - -#define atomic_is_lock_free(obj) (sizeof((obj)->__val) <= sizeof(void *)) - -/* - * 7.17.6 Atomic integer types. - */ - -typedef _Atomic (_Bool) atomic_bool; -typedef _Atomic (char) atomic_char; -typedef _Atomic (signed char) atomic_schar; -typedef _Atomic (unsigned char) atomic_uchar; -typedef _Atomic (short) atomic_short; // NOLINT -typedef _Atomic (unsigned short) atomic_ushort; // NOLINT -typedef _Atomic (int) atomic_int; -typedef _Atomic (unsigned int) atomic_uint; -typedef _Atomic (long) atomic_long; // NOLINT -typedef _Atomic (unsigned long) atomic_ulong; // NOLINT -typedef _Atomic (long long) atomic_llong; // NOLINT -typedef _Atomic (unsigned long long) atomic_ullong; // NOLINT -#if 0 -typedef _Atomic (char16_t) atomic_char16_t; -typedef _Atomic (char32_t) atomic_char32_t; -typedef _Atomic (wchar_t) atomic_wchar_t; -typedef _Atomic (int_least8_t) atomic_int_least8_t; -typedef _Atomic (uint_least8_t) atomic_uint_least8_t; -#endif -typedef _Atomic (int_least16_t) atomic_int_least16_t; -typedef _Atomic (uint_least16_t) atomic_uint_least16_t; -typedef _Atomic (int_least32_t) atomic_int_least32_t; -typedef _Atomic (uint_least32_t) atomic_uint_least32_t; -typedef _Atomic (int_least64_t) atomic_int_least64_t; -typedef _Atomic (uint_least64_t) atomic_uint_least64_t; -#if 0 -typedef _Atomic (int_fast8_t) atomic_int_fast8_t; -typedef _Atomic (uint_fast8_t) atomic_uint_fast8_t; -#endif -typedef _Atomic (int_fast16_t) atomic_int_fast16_t; -typedef _Atomic (uint_fast16_t) atomic_uint_fast16_t; -typedef _Atomic (int_fast32_t) atomic_int_fast32_t; -typedef _Atomic (uint_fast32_t) atomic_uint_fast32_t; -typedef _Atomic (int_fast64_t) atomic_int_fast64_t; -typedef _Atomic (uint_fast64_t) atomic_uint_fast64_t; -typedef _Atomic (intptr_t) atomic_intptr_t; -typedef _Atomic (uintptr_t) atomic_uintptr_t; -typedef _Atomic (size_t) atomic_size_t; -typedef _Atomic (ptrdiff_t) atomic_ptrdiff_t; -typedef _Atomic (intmax_t) atomic_intmax_t; -typedef _Atomic (uintmax_t) atomic_uintmax_t; - -#ifdef ROS_PACKAGE_NAME - #define _RCUTILS_PACKAGE_NAME ROS_PACKAGE_NAME -#else - #define _RCUTILS_PACKAGE_NAME "" -#endif - -/* - * 7.17.7 Operations on atomic types. (pruned modified for Windows' crappy C compiler) - */ - -// TODO(emersonknapp) Regression in uncrustify breaks formatting for macros with __pragma -// remove indent-off when we have fix for https://github.com/uncrustify/uncrustify/issues/2314 -// *INDENT-OFF* - -#define rcutils_win32_atomic_compare_exchange_strong(object, out, expected, desired) \ - __pragma(warning(push)) \ - __pragma(warning(disable: 4244)) \ - __pragma(warning(disable: 4047)) \ - __pragma(warning(disable: 4024)) \ - do { \ - switch (sizeof(out)) { \ - case sizeof(uint64_t): \ - out = InterlockedCompareExchange64((LONGLONG *) object, desired, *expected); \ - break; \ - case sizeof(uint32_t): \ - out = _InterlockedCompareExchange((LONG *) object, desired, *expected); \ - break; \ - case sizeof(uint16_t): \ - out = _InterlockedCompareExchange16((SHORT *) object, desired, *expected); \ - break; \ - case sizeof(uint8_t): \ - out = _InterlockedCompareExchange8((char *) object, desired, *expected); \ - break; \ - default: \ - RCUTILS_LOG_ERROR_NAMED( \ - _RCUTILS_PACKAGE_NAME, "Unsupported integer type in atomic_compare_exchange_strong"); \ - exit(-1); \ - break; \ - } \ - } while (0); \ - __pragma(warning(pop)) - -#define rcutils_win32_atomic_compare_exchange_weak(object, out, expected, desired) \ - rcutils_win32_atomic_compare_exchange_strong(object, out, expected, desired) - -#define rcutils_win32_atomic_exchange(object, out, desired) \ - __pragma(warning(push)) \ - __pragma(warning(disable: 4244)) \ - __pragma(warning(disable: 4047)) \ - __pragma(warning(disable: 4024)) \ - do { \ - switch (sizeof(out)) { \ - case sizeof(uint64_t): \ - out = InterlockedExchange64((LONGLONG *) object, desired); \ - break; \ - case sizeof(uint32_t): \ - out = _InterlockedExchange((LONG *) object, desired); \ - break; \ - case sizeof(uint16_t): \ - out = _InterlockedExchange16((SHORT *) object, desired); \ - break; \ - case sizeof(uint8_t): \ - out = _InterlockedExchange8((char *) object, desired); \ - break; \ - default: \ - RCUTILS_LOG_ERROR_NAMED( \ - _RCUTILS_PACKAGE_NAME, "Unsupported integer type in atomic_exchange_strong"); \ - exit(-1); \ - break; \ - } \ - } while (0); \ - __pragma(warning(pop)) - -#define rcutils_win32_atomic_fetch_add(object, out, operand) \ - __pragma(warning(push)) \ - __pragma(warning(disable: 4244)) \ - __pragma(warning(disable: 4047)) \ - __pragma(warning(disable: 4024)) \ - do { \ - switch (sizeof(out)) { \ - case sizeof(uint64_t): \ - out = InterlockedExchangeAdd64((LONGLONG *) object, operand); \ - break; \ - case sizeof(uint32_t): \ - out = _InterlockedExchangeAdd((LONG *) object, operand); \ - break; \ - case sizeof(uint16_t): \ - out = _InterlockedExchangeAdd16((SHORT *) object, operand); \ - break; \ - case sizeof(uint8_t): \ - out = _InterlockedExchangeAdd8((char *) object, operand); \ - break; \ - default: \ - RCUTILS_LOG_ERROR_NAMED( \ - _RCUTILS_PACKAGE_NAME, "Unsupported integer type in atomic_fetch_add"); \ - exit(-1); \ - break; \ - } \ - } while (0); \ - __pragma(warning(pop)) - -#define rcutils_win32_atomic_fetch_and(object, out, operand) \ - __pragma(warning(push)) \ - __pragma(warning(disable: 4244)) \ - __pragma(warning(disable: 4047)) \ - __pragma(warning(disable: 4024)) \ - do { \ - switch (sizeof(out)) { \ - case sizeof(uint64_t): \ - out = InterlockedAnd64((LONGLONG *) object, operand); \ - break; \ - case sizeof(uint32_t): \ - out = _InterlockedAnd((LONG *) object, operand); \ - break; \ - case sizeof(uint16_t): \ - out = _InterlockedAnd16((SHORT *) object, operand); \ - break; \ - case sizeof(uint8_t): \ - out = _InterlockedAnd8((char *) object, operand); \ - break; \ - default: \ - RCUTILS_LOG_ERROR_NAMED( \ - _RCUTILS_PACKAGE_NAME, "Unsupported integer type in atomic_fetch_and"); \ - exit(-1); \ - break; \ - } \ - } while (0); \ - __pragma(warning(pop)) - -#define rcutils_win32_atomic_fetch_or(object, out, operand) \ - __pragma(warning(push)) \ - __pragma(warning(disable: 4244)) \ - __pragma(warning(disable: 4047)) \ - __pragma(warning(disable: 4024)) \ - do { \ - switch (sizeof(out)) { \ - case sizeof(uint64_t): \ - out = InterlockedOr64((LONGLONG *) object, operand); \ - break; \ - case sizeof(uint32_t): \ - out = _InterlockedOr((LONG *) object, operand); \ - break; \ - case sizeof(uint16_t): \ - out = _InterlockedOr16((SHORT *) object, operand); \ - break; \ - case sizeof(uint8_t): \ - out = _InterlockedOr8((char *) object, operand); \ - break; \ - default: \ - RCUTILS_LOG_ERROR_NAMED( \ - _RCUTILS_PACKAGE_NAME, "Unsupported integer type in atomic_fetch_or"); \ - exit(-1); \ - break; \ - } \ - } while (0); \ - __pragma(warning(pop)) - -#define rcutils_win32_atomic_fetch_sub(object, out, operand) \ - rcutils_win32_atomic_fetch_add(object, out, -(operand)) - -#define rcutils_win32_atomic_fetch_xor(object, out, operand) \ - __pragma(warning(push)) \ - __pragma(warning(disable: 4244)) \ - __pragma(warning(disable: 4047)) \ - __pragma(warning(disable: 4024)) \ - do { \ - switch (sizeof(out)) { \ - case sizeof(uint64_t): \ - out = InterlockedXor64((LONGLONG *) object, operand); \ - break; \ - case sizeof(uint32_t): \ - out = _InterlockedXor((LONG *) object, operand); \ - break; \ - case sizeof(uint16_t): \ - out = _InterlockedXor16((SHORT *) object, operand); \ - break; \ - case sizeof(uint8_t): \ - out = _InterlockedXor8((char *) object, operand); \ - break; \ - default: \ - RCUTILS_LOG_ERROR_NAMED( \ - _RCUTILS_PACKAGE_NAME, "Unsupported integer type in atomic_fetch_xor"); \ - exit(-1); \ - break; \ - } \ - } while (0); \ - __pragma(warning(pop)) - -#define rcutils_win32_atomic_load(object, out) \ - __pragma(warning(push)) \ - __pragma(warning(disable: 4244)) \ - __pragma(warning(disable: 4047)) \ - __pragma(warning(disable: 4024)) \ - do { \ - switch (sizeof(out)) { \ - case sizeof(uint64_t): \ - out = InterlockedExchangeAdd64((LONGLONG *) object, 0); \ - break; \ - case sizeof(uint32_t): \ - out = _InterlockedExchangeAdd((LONG *) object, 0); \ - break; \ - case sizeof(uint16_t): \ - out = _InterlockedExchangeAdd16((SHORT *) object, 0); \ - break; \ - case sizeof(uint8_t): \ - out = _InterlockedExchangeAdd8((char *) object, 0); \ - break; \ - default: \ - RCUTILS_LOG_ERROR_NAMED( \ - _RCUTILS_PACKAGE_NAME, "Unsupported integer type in atomic_load"); \ - exit(-1); \ - break; \ - } \ - } while (0); \ - __pragma(warning(pop)) - -// *INDENT-ON* - -#define rcutils_win32_atomic_store(object, desired) \ - do { \ - MemoryBarrier(); \ - (object)->__val = (desired); \ - MemoryBarrier(); \ - } while (0) - -/* - * 7.17.8 Atomic flag type and operations. (disabled for now) - */ - -// typedef atomic_bool atomic_flag; - -// #define ATOMIC_FLAG_INIT ATOMIC_VAR_INIT(0) - -// #define atomic_flag_clear_explicit(object, order) \ -// atomic_store_explicit(object, 0, order) -// #define atomic_flag_test_and_set_explicit(object, order) \ -// atomic_compare_exchange_strong_explicit(object, 0, 1, order, order) - -// #define atomic_flag_clear(object) \ -// atomic_flag_clear_explicit(object, memory_order_seq_cst) -// #define atomic_flag_test_and_set(object) \ -// atomic_flag_test_and_set_explicit(object, memory_order_seq_cst) - -#endif // RCUTILS__STDATOMIC_HELPER__WIN32__STDATOMIC_H_ diff --git a/src/rcutils/strcasecmp.h b/src/rcutils/strcasecmp.h deleted file mode 100755 index 8b03ed348..000000000 --- a/src/rcutils/strcasecmp.h +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__STRCASECMP_H_ -#define RCUTILS__STRCASECMP_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/macros.h" -#include "rcutils/visibility_control.h" - -/// Case insensitive string compare. -/** - * This function compares two strings ignoring case in a portable way. - * This performs a byte-by-byte comparison of the strings s1 and s2, - * ignoring the case of the characters. - * - * \param[in] s1 Null terminated string to compare. - * \param[in] s2 Null terminated string to compare. - * \param[out] value Pointer to comparison result. - * An integer less than, equal to, or greater than zero if s1 is, after - * ignoring case, found to be less than, to match, or be greater than s2, - * respectively. - * \return 0 if method succeeded, or - * \return -1 if failed. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -int -rcutils_strcasecmp( - const char * s1, - const char * s2, - int * value); - -/// Case insensitive string compare up to count characters. -/** - * This function compares two strings ignoring case in a portable way. - * This performs a byte-by-byte comparison of the strings s1 and s2 up to count - * characters of s1 and s2, ignoring the case of the characters. - * - * \param[in] s1 First string to compare. - * \param[in] s2 Second string to compare. - * \param[in] n Count of characters to compare. - * \param[out] value Pointer to comparison result. - * An integer less than, equal to, or greater than zero if s1 is, after - * ignoring case, found to be less than, to match, or be greater than s2, - * respectively. - * \return 0 if method succeeded, or - * \return -1 if failed. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -int -rcutils_strncasecmp( - const char * s1, - const char * s2, - size_t n, - int * value); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__STRCASECMP_H_ diff --git a/src/rcutils/strdup.h b/src/rcutils/strdup.h deleted file mode 100755 index cc3c304f0..000000000 --- a/src/rcutils/strdup.h +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__STRDUP_H_ -#define RCUTILS__STRDUP_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" -#include "rcutils/macros.h" -#include "rcutils/visibility_control.h" - -/// Return a duplicated string with an allocator, or null if an error occurs. -/** - * This function is identical to rcutils_strndup() except the length of the - * c string does not have to be given and therefore the c string must be - * null terminated. - * - * \see rcutils_strndup() - * - * \param[in] str null terminated c string to be duplicated - * \param[in] allocator the allocator to use for allocation - * \return duplicated string, or - * \return `NULL` if there is an error. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -char * -rcutils_strdup(const char * str, rcutils_allocator_t allocator); - -/// Return a duplicated string with an allocator, or null if an error occurs. -/** - * This function can fail and return null if memory cannot be allocated or - * if the input c string pointer is null. - * In both cases no error message is set. - * The returned string should be deallocated using the given allocator when - * it is no longer needed. - * - * The max_length given does not include the null terminating character. - * Therefore a max_length of 0 will still result in a duplicated string, but - * the string will be an empty string of strlen 0, but it still must be - * deallocated. - * All returned strings are null terminated. - * - * \param[in] str null terminated c string to be duplicated - * \param[in] max_length maximum length of the string to duplicate - * \param[in] allocator the allocator to use for allocation - * \return duplicated string, or - * \return `NULL` if there is an error. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -char * -rcutils_strndup(const char * str, size_t max_length, rcutils_allocator_t allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__STRDUP_H_ diff --git a/src/rcutils/strerror.h b/src/rcutils/strerror.h deleted file mode 100755 index a3a900a9d..000000000 --- a/src/rcutils/strerror.h +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__STRERROR_H_ -#define RCUTILS__STRERROR_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/visibility_control.h" - -/// Retrieve the string corresponding to the last system error. -/** - * This function retrieves the value of errno, and calls the system-specific - * equivalent of `strerror` on it, storing the output in the provided buffer. - * If the error message is longer than the buffer, it will be truncated. - * The memory for the c-string buffer that is passed in must be managed by the - * caller. - * - * This function is thread-safe. - * - * \param[inout] buffer The buffer in which to store the data - * \param[in] buffer_length the maximum length of the buffer - */ -RCUTILS_PUBLIC -void -rcutils_strerror(char * buffer, size_t buffer_length); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__STRERROR_H_ diff --git a/src/rcutils/testing/fault_injection.h b/src/rcutils/testing/fault_injection.h deleted file mode 100755 index d74a49bf3..000000000 --- a/src/rcutils/testing/fault_injection.h +++ /dev/null @@ -1,219 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCUTILS__TESTING__FAULT_INJECTION_H_ -#define RCUTILS__TESTING__FAULT_INJECTION_H_ -#include -#include -#include - -#include "rcutils/macros.h" -#include "rcutils/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#define RCUTILS_FAULT_INJECTION_NEVER_FAIL -1 - -#define RCUTILS_FAULT_INJECTION_FAIL_NOW 0 - -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -bool -rcutils_fault_injection_is_test_complete(void); - -/** - * \brief Atomically set the fault injection counter. - * - * This is typically not the preferred method of interacting directly with the fault injection - * logic, instead use `RCUTILS_FAULT_INJECTION_TEST` instead. - * - * This function may also be used for pausing code inside of a `RCUTILS_FAULT_INJECTION_TEST` with - * something like the following: - * - * RCUTILS_FAULT_INJECTION_TEST({ - * ... // code to run with fault injection - * int64_t count = rcutils_fault_injection_get_count(); - * rcutils_fault_injection_set_count(RCUTILS_FAULT_INJECTION_NEVER_FAIL); - * ... // code to run without fault injection - * rcutils_fault_injection_set_count(count); - * ... // code to run with fault injection - * }); - * - * \param count The count to set the fault injection counter to. If count is negative, then fault - * injection errors will be disabled. The counter is globally initialized to - * RCUTILS_FAULT_INJECTION_NEVER_FAIL. - */ -RCUTILS_PUBLIC -void -rcutils_fault_injection_set_count(int_least64_t count); - -/** - * \brief Atomically get the fault injection counter value - * - * This function is typically not used directly but instead indirectly inside an - * `RCUTILS_FAULT_INJECTION_TEST` - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -int_least64_t -rcutils_fault_injection_get_count(void); - -/** - * \brief Implementation of fault injection decrementer - * - * This is included inside of macros, so it needs to be exported as a public function, but it - * should not be used directly. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -int_least64_t -_rcutils_fault_injection_maybe_fail(void); - -#ifdef RCUTILS_ENABLE_FAULT_INJECTION - -/** - * \def RCUTILS_FAULT_INJECTION_MAYBE_RETURN_ERROR - * \brief This macro checks and decrements a static global variable atomic counter and returns - * `return_value_on_error` if 0. - * - * This macro is not a function itself, so when this macro returns it will cause the calling - * function to return with the return value. - * - * Set the counter with `RCUTILS_FAULT_INJECTION_SET_COUNT`. If the count is less than 0, then - * `RCUTILS_FAULT_INJECTION_MAYBE_RETURN_ERROR` will not cause an early return. - * - * This macro is thread-safe, and ensures that at most one invocation results in a failure for each - * time the fault injection counter is set with `RCUTILS_FAULT_INJECTION_SET_COUNT` - * - * \param return_value_on_error the value to return in the case of fault injected failure. - */ -#define RCUTILS_FAULT_INJECTION_MAYBE_RETURN_ERROR(return_value_on_error) \ - if (RCUTILS_FAULT_INJECTION_FAIL_NOW == _rcutils_fault_injection_maybe_fail()) { \ - printf( \ - "%s:%d Injecting fault and returning " #return_value_on_error "\n", __FILE__, __LINE__); \ - return return_value_on_error; \ - } - -/** - * \def RCUTILS_FAULT_INJECTION_MAYBE_FAIL - * \brief This macro checks and decrements a static global variable atomic counter and executes - * `failure_code` if the counter is 0 inside a scoped block (any variables declared in - * failure_code) will not be avaliable outside of this scoped block. - * - * This macro is not a function itself, so it will cause the calling function to execute the code - * from within an if loop. - * - * Set the counter with `RCUTILS_FAULT_INJECTION_SET_COUNT`. If the count is less than 0, then - * `RCUTILS_FAULT_INJECTION_MAYBE_FAIL` will not execute the failure code. - * - * This macro is thread-safe, and ensures that at most one invocation results in a failure for each - * time the fault injection counter is set with `RCUTILS_FAULT_INJECTION_SET_COUNT` - * - * \param failure_code the code to execute in the case of fault injected failure. - */ -#define RCUTILS_FAULT_INJECTION_MAYBE_FAIL(failure_code) \ - if (RCUTILS_FAULT_INJECTION_FAIL_NOW == _rcutils_fault_injection_maybe_fail()) { \ - printf( \ - "%s:%d Injecting fault and executing " #failure_code "\n", __FILE__, __LINE__); \ - failure_code; \ - } - -/** - * \def RCUTILS_FAULT_INJECTION_TEST - * - * The fault injection macro for use with unit tests to check that `code` can tolerate injected - * failures at all points along the execution path where the indicating macros - * `RCUTILS_CAN_RETURN_WITH_ERROR_OF` and `RCUTILS_CAN_FAIL_WITH` are located. - * - * This macro is intended to be used within a gtest function macro like 'TEST', 'TEST_F', etc. - * - * `code` is executed within a do-while loop and therefore any variables declared within are in - * their own scope block. - * - * Here's a simple example: - * RCUTILS_FAULT_INJECTION_TEST( - * rcl_ret_t ret = rcl_init(argc, argv, options, context); - * if (RCL_RET_OK == ret) - * { - * ret = rcl_shutdown(context); - * } - * }); - * - * In this example, you will need have conditional execution based on the return value of - * `rcl_init`. If it failed, then it wouldn't make sense to call rcl_shutdown. In your own test, - * there might be similar logic that requires conditional checks. The goal of writing this test - * is less about checking the behavior is consistent, but instead that failures do not cause - * program crashes, memory errors, or unnecessary memory leaks. - */ -#define RCUTILS_FAULT_INJECTION_TEST(code) \ - do { \ - int fault_injection_count = 0; \ - do { \ - rcutils_fault_injection_set_count(fault_injection_count++); \ - code; \ - } while (!rcutils_fault_injection_is_test_complete()); \ - rcutils_fault_injection_set_count(RCUTILS_FAULT_INJECTION_NEVER_FAIL); \ - } while (0) - -/** - * \def RCUTILS_NO_FAULT_INJECTION - * - * A convenience macro built around rcutils_fault_injection_set_count() to pause fault - * injection during `code` execution. - * This macro is intended to be used within RCUTILS_FAULT_INJECTION_TEST() blocks. - * - * `code` is executed within a do-while loop and therefore any variables declared within are in - * their own scope block. - * - * Here's a simple example: - * RCUTILS_FAULT_INJECTION_TEST({ - * rcl_ret_t ret = rcl_init(argc, argv, options, context); - * if (RCL_RET_OK == ret) - * { - * RCUTILS_NO_FAULT_INJECTION({ - * ret = rcl_shutdown(context); - * }); - * } - * }); - * - * In this example, on successful rcl_init(), rcl_shutdown() is called while ensuring that - * it will not fail due to fault injection. - */ -#define RCUTILS_NO_FAULT_INJECTION(code) \ - do { \ - int64_t no_fault_injection_count = rcutils_fault_injection_get_count(); \ - rcutils_fault_injection_set_count(RCUTILS_FAULT_INJECTION_NEVER_FAIL); \ - code; \ - rcutils_fault_injection_set_count(no_fault_injection_count); \ - } while (0) - -#else - -// Mocks for micro-ROS when fault injection not enabled - -#define RCUTILS_FAULT_INJECTION_MAYBE_RETURN_ERROR(return_value_on_error) -#define RCUTILS_FAULT_INJECTION_MAYBE_FAIL(failure_code) -#define RCUTILS_FAULT_INJECTION_TEST(code) -#define RCUTILS_NO_FAULT_INJECTION(code) - -#endif - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__TESTING__FAULT_INJECTION_H_ diff --git a/src/rcutils/time.h b/src/rcutils/time.h deleted file mode 100755 index 72ea13656..000000000 --- a/src/rcutils/time.h +++ /dev/null @@ -1,247 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__TIME_H_ -#define RCUTILS__TIME_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/macros.h" -#include "rcutils/types.h" -#include "rcutils/visibility_control.h" - -/// Convenience macro to convert seconds to nanoseconds. -#define RCUTILS_S_TO_NS(seconds) ((seconds) * (1000LL * 1000LL * 1000LL)) -/// Convenience macro to convert milliseconds to nanoseconds. -#define RCUTILS_MS_TO_NS(milliseconds) ((milliseconds) * (1000LL * 1000LL)) -/// Convenience macro to convert microseconds to nanoseconds. -#define RCUTILS_US_TO_NS(microseconds) ((microseconds) * 1000LL) - -/// Convenience macro to convert nanoseconds to seconds. -#define RCUTILS_NS_TO_S(nanoseconds) ((nanoseconds) / (1000LL * 1000LL * 1000LL)) -/// Convenience macro to convert nanoseconds to milliseconds. -#define RCUTILS_NS_TO_MS(nanoseconds) ((nanoseconds) / (1000LL * 1000LL)) -/// Convenience macro to convert nanoseconds to microseconds. -#define RCUTILS_NS_TO_US(nanoseconds) ((nanoseconds) / 1000LL) -/// Convenience macro for rcutils_steady_time_now(rcutils_time_point_value_t *). -#define RCUTILS_STEADY_TIME rcutils_steady_time_now - -/// A single point in time, measured in nanoseconds since the Unix epoch. -typedef int64_t rcutils_time_point_value_t; -/// A duration of time, measured in nanoseconds. -typedef int64_t rcutils_duration_value_t; - -/** - * This function returns the time from a system clock. - * The closest equivalent would be to std::chrono::system_clock::now(); - * - * The resolution (e.g. nanoseconds vs microseconds) is not guaranteed. - * - * The now argument must point to an allocated rcutils_time_point_value_t object, - * as the result is copied into this variable. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[out] now a datafield in which the current time is stored - * \return #RCUTILS_RET_OK if the current time was successfully obtained, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCUTILS_RET_ERROR if an unspecified error occur. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_system_time_now(rcutils_time_point_value_t * now); - -/// Retrieve the current time as a rcutils_time_point_value_t object. -/** - * This function returns the time from a monotonically increasing clock. - * The closest equivalent would be to std::chrono::steady_clock::now(); - * - * The resolution (e.g. nanoseconds vs microseconds) is not guaranteed. - * - * The now argument must point to an allocated rcutils_time_point_value_t object, - * as the result is copied into this variable. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[out] now a struct in which the current time is stored - * \return #RCUTILS_RET_OK if the current time was successfully obtained, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCUTILS_RET_ERROR if an unspecified error occur. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_steady_time_now(rcutils_time_point_value_t * now); - -/// Retrieve the current time as a rcutils_time_point_value_t object. -/** - * This function returns the time from a monotonically increasing slew-free clock. - * - * The resolution (e.g. nanoseconds vs microseconds) is not guaranteed. - * - * The now argument must point to an allocated rcutils_time_point_value_t object, - * as the result is copied into this variable. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[out] now a struct in which the current time is stored - * \return #RCUTILS_RET_OK if the current time was successfully obtained, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCUTILS_RET_ERROR if an unspecified error occur. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_raw_steady_time_now(rcutils_time_point_value_t * now); - -/// Return a time point as nanoseconds in a string. -/** - * The number is always fixed width, with left padding zeros up to the maximum - * number of digits the time point can represent. - * Right now that is 19 digits (so 19 characters) for a signed 64-bit integer. - * Negative values will have a leading `-`, so they will be one character - * longer than the positive values. - * - * The recommended minimum size of the input string is 32 characters, but - * 21 (` ` or `-` for sign, 19 digits, null terminator) should be sufficiently - * large for both positive and negative values. - * If the given string is not large enough, the result will be truncated. - * If you need a string with variable width, using `snprintf()` directly is - * recommended. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No [1] - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * [1] if `snprintf()` does not allocate additional memory internally - * - * \param[in] time_point the time to be made into a string - * \param[out] str the output string in which it is stored - * \param[in] str_size the size of the output string - * \return #RCUTILS_RET_OK if successful (even if truncated), or - * \return #RCUTILS_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCUTILS_RET_ERROR if an unspecified error occur. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_time_point_value_as_nanoseconds_string( - const rcutils_time_point_value_t * time_point, - char * str, - size_t str_size); - -/// Return a time point as an datetime in local time with milliseconds in a string. -/** - * - * If the given string is not large enough, the result will be truncated. - * If you need a string with variable width, using `snprintf()` directly is - * recommended. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No [1] - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * [1] if `snprintf()` does not allocate additional memory internally - * - * \param[in] time_point the time to be made into a string - * \param[out] str the output string in which it is stored - * \param[in] str_size the size of the output string - * \return #RCUTILS_RET_OK if successful (even if truncated), or - * \return #RCUTILS_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCUTILS_RET_ERROR if an unspecified error occur. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_time_point_value_as_date_string( - const rcutils_time_point_value_t * time_point, - char * str, - size_t str_size); - -/// Return a time point as floating point seconds in a string. -/** - * The number is always fixed width, with left padding zeros up to the maximum - * number of digits for the mantissa that the time point can represent and a - * characteristic (fractional-part) with a fixed width of 9 digits. - * Right now that means the mantissa is always 10 digits to add up to 19 total - * for the signed 64-bit time point type. - * Negative values will have a leading `-`, so they will be one character - * longer then positive values. - * - * The recommended minimum size of the input string is 32 characters, but - * 22 (` ` or `-` for sign, 19 digits, decimal point, null terminator) should - * be sufficient for now. - * If the given string is not large enough, the result will be truncated. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No [1] - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * [1] if `snprintf()` does not allocate additional memory internally - * - * \param[in] time_point the time to be made into a string - * \param[out] str the output string in which it is stored - * \param[in] str_size the size of the output string - * \return #RCUTILS_RET_OK if successful (even if truncated), or - * \return #RCUTILS_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCUTILS_RET_ERROR if an unspecified error occur. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_time_point_value_as_seconds_string( - const rcutils_time_point_value_t * time_point, - char * str, - size_t str_size); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__TIME_H_ diff --git a/src/rcutils/types.h b/src/rcutils/types.h deleted file mode 100755 index aa3b24af9..000000000 --- a/src/rcutils/types.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCUTILS__TYPES_H_ -#define RCUTILS__TYPES_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/types/array_list.h" -#include "rcutils/types/char_array.h" -#include "rcutils/types/hash_map.h" -#include "rcutils/types/string_array.h" -#include "rcutils/types/string_map.h" -#include "rcutils/types/rcutils_ret.h" -#include "rcutils/types/uint8_array.h" - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__TYPES_H_ diff --git a/src/rcutils/types/array_list.h b/src/rcutils/types/array_list.h deleted file mode 100755 index ffde41a2d..000000000 --- a/src/rcutils/types/array_list.h +++ /dev/null @@ -1,288 +0,0 @@ -// Copyright 2018-2019 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__TYPES__ARRAY_LIST_H_ -#define RCUTILS__TYPES__ARRAY_LIST_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" -#include "rcutils/macros.h" -#include "rcutils/types/rcutils_ret.h" -#include "rcutils/visibility_control.h" - -struct rcutils_array_list_impl_s; - -/// The structure holding the metadata for an array list. -typedef struct RCUTILS_PUBLIC_TYPE rcutils_array_list_s -{ - /// A pointer to the PIMPL implementation type. - struct rcutils_array_list_impl_s * impl; -} rcutils_array_list_t; - -/** - * Validates that an rcutils_array_list_t* points to a valid array list. - * \param[in] array_list A pointer to an rcutils_array_list_t - * \return RCUTILS_RET_INVALID_ARGUMENT if array_list is null - * \return RCUTILS_RET_NOT_INITIALIZED if array_list is not initialized - */ -#define ARRAY_LIST_VALIDATE_ARRAY_LIST(array_list) \ - RCUTILS_CHECK_ARGUMENT_FOR_NULL(array_list, RCUTILS_RET_INVALID_ARGUMENT); \ - if (NULL == array_list->impl) { \ - RCUTILS_SET_ERROR_MSG("array_list is not initialized"); \ - return RCUTILS_RET_NOT_INITIALIZED; \ - } - -/// Return an empty array_list struct. -/** - * This function returns an empty and zero initialized array_list struct. - * Calling rcutils_array_list_fini() on any non-initialized instance leads - * to undefined behavior. - * Every instance of array_list_t has to either be zero_initialized with this - * function or manually allocated. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * Example: - * - * ```c - * rcutils_array_list_t foo; - * rcutils_array_list_fini(&foo); // undefined behavior! - * - * rcutils_array_list_t bar = rcutils_get_zero_initialized_array_list(); - * rcutils_array_list_fini(&bar); // ok - * ``` - */ -RCUTILS_PUBLIC -rcutils_array_list_t -rcutils_get_zero_initialized_array_list(void); - -/// Initialize an array list with a given initial capacity. -/** - * This function will initialize a given, zero initialized, array_list to - * a given size. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * Example: - * - * ```c - * rcutils_allocator_t allocator = rcutils_get_default_allocator(); - * rcutils_array_list_t array_list = rcutils_get_zero_initialized_array_list(); - * rcutils_ret_t ret = rcutils_array_list_init(&array_list, 2, sizeof(int), &allocator); - * if (ret != RCUTILS_RET_OK) { - * // ... error handling - * } - * int data = 42; - * int out_data = 0; - * ret = rcutils_array_list_add(&array_list, &data); - * data++; - * ret = rcutils_array_list_get(&array_list, 0, &out_data); - * assert(42 == out_data); - * ret = rcutils_array_list_fini(&array_list); - * ``` - * - * \param[inout] array_list object to be initialized - * \param[in] initial_capacity the initial capacity to allocate in the list - * \param[in] data_size the size (in bytes) of the data object being stored in the list - * \param[in] allocator to be used to allocate and deallocate memory - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -rcutils_ret_t -rcutils_array_list_init( - rcutils_array_list_t * array_list, - size_t initial_capacity, - size_t data_size, - const rcutils_allocator_t * allocator); - -/// Finalize an array list, reclaiming all resources. -/** - * This function reclaims any memory owned by the array list. - * - * The allocator used to initialize the array list is used to deallocate each - * entry in the list and the list itself. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] array_list object to be finalized - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_array_list_fini(rcutils_array_list_t * array_list); - -/// Adds an entry to the list -/** - * This function adds the provided data to the end of the list. A shallow copy of - * the provided data is made to store in the list instead of just storing - * the pointer to the provided data. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] array_list to add the data to - * \param[in] data a pointer to the data to add to the list - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_array_list_add(rcutils_array_list_t * array_list, const void * data); - -/// Sets an entry in the list to the provided data -/** - * This function sets the provided data at the specified index in the list. - * A shallow copy of the provided data is made to store in the list instead - * of just storing the pointer to the provided data. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] array_list to add the data to - * \param[in] index the position in the list to set the data - * \param[in] data a pointer to the data that will be set in the list - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if index out of bounds, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_array_list_set(rcutils_array_list_t * array_list, size_t index, const void * data); - -/// Removes an entry in the list at the provided index -/** - * This function removes data from the list at the specified index. The capacity - * of the list will never decrease when entries are removed. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] array_list to add the data to - * \param[in] index the index of the item to remove from the list - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if index out of bounds, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_array_list_remove(rcutils_array_list_t * array_list, size_t index); - -/// Retrieves an entry in the list at the provided index -/** - * This function retrieves a copy of the data stored in the list at the provided index. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * - * \param[in] array_list to add the data to - * \param[in] index the index at which to get the data - * \param[out] data a copy of the data stored in the list - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_array_list_get(const rcutils_array_list_t * array_list, size_t index, void * data); - -/// Retrieves the size of the provided array_list -/** - * This function retrieves the number of items in the provided array list - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * - * \param[in] array_list list to get the size of - * \param[out] size The number of items currently stored in the list - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_array_list_get_size(const rcutils_array_list_t * array_list, size_t * size); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__TYPES__ARRAY_LIST_H_ diff --git a/src/rcutils/types/char_array.h b/src/rcutils/types/char_array.h deleted file mode 100755 index a0d64f042..000000000 --- a/src/rcutils/types/char_array.h +++ /dev/null @@ -1,246 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__TYPES__CHAR_ARRAY_H_ -#define RCUTILS__TYPES__CHAR_ARRAY_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" -#include "rcutils/types/rcutils_ret.h" -#include "rcutils/visibility_control.h" - -/// The structure holding the metadata for a char array. -typedef struct RCUTILS_PUBLIC_TYPE rcutils_char_array_s -{ - /// A pointer to the allocated memory for this char array. - char * buffer; - - /** - * if this is true, we may safely free/realloc the buffer as needed; - * otherwise we will leave the buffer alone and alloc new memory if - * more space is needed - */ - bool owns_buffer; - - /// The length of the data stored in the buffer pointer. - size_t buffer_length; - - /// The maximum capacity of the buffer pointer. - size_t buffer_capacity; - - /// The allocator used to allocate and free the data in the pointer. - rcutils_allocator_t allocator; -} rcutils_char_array_t; - -/// Return a zero initialized char array struct. -/** - * \return rcutils_char_array_t a zero initialized char array struct - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_char_array_t -rcutils_get_zero_initialized_char_array(void); - -/// Initialize a zero initialized char array struct. -/** - * This function may leak if the char array struct is already - * pre-initialized. - * If the capacity is set to 0, no memory is allocated and the internal buffer - * is still NULL. - * - * \param[in] char_array a pointer to the to be initialized char array struct - * \param[in] buffer_capacity the size of the memory to allocate for the byte stream - * \param[in] allocator the allocator to use for the memory allocation - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return #RCUTILS_RET_BAD_ALLOC if no memory could be allocated correctly - * \return #RCUTILS_RET_ERROR if an unexpected error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_char_array_init( - rcutils_char_array_t * char_array, - size_t buffer_capacity, - const rcutils_allocator_t * allocator); - -/// Finalize a char array struct. -/** - * Cleans up and deallocates any resources owned by rcutils_char_array_t. - * The array passed to this function needs to have been initialized by - * rcutils_char_array_init(). - * If .owns_buffer is false, this function has no effect because that - * implies that the char_array does not own the internal buffer. - * Passing an uninitialized instance to this function leads to undefined - * behavior. - * - * \param[in] char_array pointer to the rcutils_char_array_t to be cleaned up - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if the char_array argument is invalid - * \return #RCUTILS_RET_ERROR if an unexpected error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_char_array_fini(rcutils_char_array_t * char_array); - -/// Resize the internal buffer of the char array. -/** - * The internal buffer of the char array can be resized dynamically if needed. - * If the new size is smaller than the current capacity, then the memory is - * truncated. - * Be aware, that this will deallocate the memory and therefore invalidates any - * pointers to this storage. - * If the new size is larger, new memory is getting allocated and the existing - * content is copied over. - * Note that if the array doesn't own the current buffer the function just - * allocates a new block of memory and copies the contents of the old buffer - * instead of resizing the existing buffer. - * - * \param[in] char_array pointer to the instance of rcutils_char_array_t which is being resized - * \param[in] new_size the new size of the internal buffer - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if new_size is set to zero - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation failed, or - * \return #RCUTILS_RET_ERROR if an unexpected error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_char_array_resize(rcutils_char_array_t * char_array, size_t new_size); - -/// Expand the internal buffer of the char array. -/** - * This function is equivalent to `rcutils_char_array_resize` except that it resizes - * the internal buffer only when it is not big enough. - * If the buffer is already big enough for `new_size`, it returns `RCUTILS_RET_OK` without - * doing anything. - * - * \param[inout] char_array pointer to the instance of rcutils_char_array_t which is being resized - * \param[in] new_size the new size of the internal buffer - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation failed, or - * \return #RCUTILS_RET_ERROR if an unexpected error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_char_array_expand_as_needed(rcutils_char_array_t * char_array, size_t new_size); - -/// Produce output according to format and args. -/** - * This function is equivalent to `vsprintf(char_array->buffer, format, args)` - * except that the buffer grows as needed so a user doesn't have to deal with - * memory management. - * The `va_list args` will be cloned before being used, so a user can safely - * use it again after calling this function. - * - * \param[inout] char_array pointer to the instance of rcutils_char_array_t which is being - * written to - * \param[in] format the format string used by the underlying `vsnprintf` - * \param[in] args the `va_list` used by the underlying `vsnprintf` - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation failed, or - * \return #RCUTILS_RET_ERROR if an unexpected error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_char_array_vsprintf(rcutils_char_array_t * char_array, const char * format, va_list args); - -/// Append a string (or part of it) to the string in buffer. -/** - * This function treats the internal buffer as a string and appends the src string to it. - * If src is longer than n, n bytes will be used and an extra null byte will be appended. - * It is virtually equivalent to `strncat(char_array->buffer, src, n)` except that the buffer - * grows as needed so a user doesn't have to deal with memory management. - * - * \param[inout] char_array pointer to the instance of rcutils_char_array_t which is being appended to - * \param[in] src the string to be appended to the end of the string in buffer - * \param[in] n it uses at most n bytes from the src string - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation failed, or - * \return #RCUTILS_RET_ERROR if an unexpected error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_char_array_strncat(rcutils_char_array_t * char_array, const char * src, size_t n); - -/// Append a string to the string in buffer. -/** - * This function treats the internal buffer as a string and appends the src string to it. - * It is virtually equivalent to `strcat(char_array->buffer, src)` except that the buffer - * grows as needed. That is to say, a user can safely use it without doing calculation or - * checks on the sizes of the src and buffer. - * - * \param[inout] char_array pointer to the instance of rcutils_char_array_t which is being - * appended to - * \param[in] src the string to be appended to the end of the string in buffer - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation failed, or - * \return #RCUTILS_RET_ERROR if an unexpected error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_char_array_strcat(rcutils_char_array_t * char_array, const char * src); - -/// Copy memory to buffer. -/** - * This function is equivalent to `memcpy(char_array->buffer, src, n)` except that the buffer - * grows as needed so a user doesn't have to worry about overflow. - * - * \param[inout] char_array pointer to the instance of rcutils_char_array_t which is being resized - * \param[in] src the memory to be copied from - * \param[in] n a total of n bytes will be copied - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation failed, or - * \return #RCUTILS_RET_ERROR if an unexpected error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_char_array_memcpy(rcutils_char_array_t * char_array, const char * src, size_t n); - -/// Copy a string to buffer. -/** - * This function is equivalent to `strcpy(char_array->buffer, src)` except that the buffer - * grows as needed so that `src` will fit without overflow. - * - * \param[inout] char_array pointer to the instance of rcutils_char_array_t which is being - * copied to - * \param[in] src the string to be copied from - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation failed, or - * \return #RCUTILS_RET_ERROR if an unexpected error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_char_array_strcpy(rcutils_char_array_t * char_array, const char * src); - -#if __cplusplus -} -#endif - -#endif // RCUTILS__TYPES__CHAR_ARRAY_H_ diff --git a/src/rcutils/types/hash_map.h b/src/rcutils/types/hash_map.h deleted file mode 100755 index bc4dc0de9..000000000 --- a/src/rcutils/types/hash_map.h +++ /dev/null @@ -1,427 +0,0 @@ -// Copyright 2018-2019 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__TYPES__HASH_MAP_H_ -#define RCUTILS__TYPES__HASH_MAP_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" -#include "rcutils/types/rcutils_ret.h" -#include "rcutils/macros.h" -#include "rcutils/visibility_control.h" - -struct rcutils_hash_map_impl_s; - -/// The structure holding the metadata for a hash map. -typedef struct RCUTILS_PUBLIC_TYPE rcutils_hash_map_s -{ - /// A pointer to the PIMPL implementation type. - struct rcutils_hash_map_impl_s * impl; -} rcutils_hash_map_t; - -/// The function signature for a key hashing function. -/** - * \param[in] key The key that needs to be hashed - * \return A hash value for the provided string - */ -typedef size_t (* rcutils_hash_map_key_hasher_t)( - const void * key -); - -/// The function signature for a key comparison function. -/** - * \param[in] val1 The first value to compare - * \param[in] val2 The second value to compare - * \return A negative number if val1 < val2, or - * \return A positve number if val1 > val2, or - * \return Zero if val1 == val2. - */ -typedef int (* rcutils_hash_map_key_cmp_t)( - const void * val1, - const void * val2 -); - -/** - * Validates that an rcutils_hash_map_t* points to a valid hash map. - * \param[in] map A pointer to an rcutils_hash_map_t - * \return #RCUTILS_RET_INVALID_ARGUMENT if map is null - * \return #RCUTILS_RET_NOT_INITIALIZED if map is not initialized. - */ -#define HASH_MAP_VALIDATE_HASH_MAP(map) \ - RCUTILS_CHECK_ARGUMENT_FOR_NULL(map, RCUTILS_RET_INVALID_ARGUMENT); \ - if (NULL == map->impl) { \ - RCUTILS_SET_ERROR_MSG("map is not initialized"); \ - return RCUTILS_RET_NOT_INITIALIZED; \ - } - -/// A hashing function for a null terminated c string. -/** - * A hashing function for a null terminated c string. - * Should be used when your key is just a pointer to a c-string - */ -RCUTILS_PUBLIC -size_t -rcutils_hash_map_string_hash_func(const void * key_str); - -/// A comparison function for a null terminated c string. -/** - * A comparison function for a null terminated c string. - * Should be used when your key is just a pointer to a c-string - */ -RCUTILS_PUBLIC -int -rcutils_hash_map_string_cmp_func(const void * val1, const void * val2); - -/// Return an empty hash_map struct. -/** - * This function returns an empty and zero initialized hash_map struct. - * All hash maps should be initialized with this or manually initialized - * before being used. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * Example: - * ```c - * // Do not do this: - * // rcutils_hash_map_t foo; - * // rcutils_hash_map_fini(&foo); // undefined behavior! - * - * // Do this instead: - * rcutils_hash_map_t bar = rcutils_get_zero_initialized_hash_map(); - * rcutils_hash_map_fini(&bar); // ok - * ``` - * */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_hash_map_t -rcutils_get_zero_initialized_hash_map(void); - -/// Initialize a rcutils_hash_map_t, allocating space for given capacity. -/** - * This function initializes the rcutils_hash_map_t with a given initial - * capacity for entries. - * Note this does not allocate space for keys or values in the hash_map, just the - * arrays of pointers to the keys and values. - * rcutils_hash_map_set() should still be used when assigning values. - * - * The hash_map argument should point to allocated memory and should have - * been zero initialized with rcutils_get_zero_initialized_hash_map(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * Example: - * ```c - * rcutils_hash_map_t hash_map = rcutils_get_zero_initialized_hash_map(); - * rcutils_ret_t ret = - * rcutils_hash_map_init(&hash_map, 2, rcutils_get_default_allocator()); - * if (ret != RCUTILS_RET_OK) { - * // ... do error handling - * } - * // ... use the hash_map and when done: - * ret = rcutils_hash_map_fini(&hash_map); - * if (ret != RCUTILS_RET_OK) { - * // ... do error handling - * } - * ``` - * - * \param[inout] hash_map rcutils_hash_map_t to be initialized - * \param[in] initial_capacity the amount of initial capacity for the hash_map - this must be - * greater than zero and will be automatically rounded up to the next power of 2 - * \param[in] key_size the size (in bytes) of the key used to index the data - * \param[in] data_size the size (in bytes) of the data being stored - * \param[in] key_hashing_func a function that returns a hashed value for a key - * \param[in] key_cmp_func a function used to compare keys - * \param[in] allocator the allocator to use through out the lifetime of the hash_map - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_STRING_MAP_ALREADY_INIT if alread initialized, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_hash_map_init( - rcutils_hash_map_t * hash_map, - size_t initial_capacity, - size_t key_size, - size_t data_size, - rcutils_hash_map_key_hasher_t key_hashing_func, - rcutils_hash_map_key_cmp_t key_cmp_func, - const rcutils_allocator_t * allocator); - -/// Finalize the previously initialized hash_map struct. -/** - * This function will free any resources which were created when initializing - * or when calling rcutils_hash_map_set(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] hash_map rcutils_hash_map_t to be finalized - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_hash_map_fini(rcutils_hash_map_t * hash_map); - -/// Get the current capacity of the hash_map. -/** - * This function will return the internal capacity of the hash_map, which is the - * number of buckets the hash_map uses to sort the keys. - * The capacity does not indicate how many key value pairs are stored in the - * hash_map, the rcutils_hash_map_get_size() function can provide that, nor the - * maximum number that can be stored without increasing the capacity. - * The capacity can be set initially with rcutils_hash_map_init(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] hash_map rcutils_hash_map_t to be queried - * \param[out] capacity capacity of the hash_map - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_NOT_INITIALIZED if the hash_map is invalid, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_hash_map_get_capacity(const rcutils_hash_map_t * hash_map, size_t * capacity); - -/// Get the current size of the hash_map. -/** - * This function will return the internal size of the hash_map, which is the - * current number of key value pairs in the hash_map. - * The size is changed when calling rcutils_hash_map_set() or rcutils_hash_map_unset(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] hash_map rcutils_hash_map_t to be queried - * \param[out] size size of the hash_map - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_NOT_INITIALIZED if the hash_map is invalid, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_hash_map_get_size(const rcutils_hash_map_t * hash_map, size_t * size); - -/// Set a key value pair in the hash_map, increasing capacity if necessary. -/** - * If the key already exists in the map then the value is updated to the new value - * provided. If it does not already exist then a new entry is added for the new key - * and value. The capacity will be increased if needed. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] hash_map rcutils_hash_map_t to be updated - * \param[in] key hash_map key - * \param[in] value value for given hash_map key - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_NOT_INITIALIZED if the hash_map is invalid, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_hash_map_set(rcutils_hash_map_t * hash_map, const void * key, const void * value); - -/// Unset a key value pair in the hash_map. -/** - * Unsets the key value pair in the hash_map and frees any internal resources allocated - * for the entry. This function will never decrease the capacity when removing keys. - * If the given key is not found, RCUTILS_RET_STRING_KEY_NOT_FOUND is returned. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[inout] hash_map rcutils_hash_map_t to be updated - * \param[in] key hash_map key, must be null terminated c string - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_NOT_INITIALIZED if the hash_map is invalid, or - * \return #RCUTILS_RET_STRING_KEY_NOT_FOUND if the key is not found in the map, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_hash_map_unset(rcutils_hash_map_t * hash_map, const void * key); - -/// Get whether or not a key exists. -/** - * Returns true if the provided key exists in the hash_map or false if it does not or - * if the hash_map or key are invalid. - * In all cases no error message is set. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] hash_map rcutils_hash_map_t to be searched - * \param[in] key hash_map key, must be null terminated c string - * \return `true` if key is in the hash_map, or - * \return `false` if key is not in the hash_map, or - * \return `false` for invalid arguments, or - * \return `false` if the hash_map is invalid. - */ -RCUTILS_PUBLIC -bool -rcutils_hash_map_key_exists(const rcutils_hash_map_t * hash_map, const void * key); - -/// Get value given a key. -/** - * This function can be used to retrieve a shallow copy of the stored data. The data - * pointer must point to a section of memory large enough to copy the full size of - * the data being stored, which is specified when the hash_map in initialized. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] hash_map rcutils_hash_map_t to be searched - * \param[in] key hash_map key to look up the data for - * \param[out] data A copy of the data stored in the map - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_NOT_INITIALIZED if the hash_map is invalid, or - * \return #RCUTILS_RET_NOT_FOUND if the key doesn't exist in the map, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -rcutils_ret_t -rcutils_hash_map_get(const rcutils_hash_map_t * hash_map, const void * key, void * data); - -/// Get the next key in the hash_map, unless NULL is given, then get the first key. -/** - * This function allows you to iteratively get each key/value pair in the hash_map. - * - * If NULL is given for the previous_key, then the first key in the hash_map is returned. - * If that returned key is given as the previous_key for the next call to this function, - * then the next key in the hash_map is returned. - * If there are no more keys in the hash_map or if the given key is not in the hash_map, - * an error will be returned. - * - * The order of the keys in the hash_map is arbitrary and if the hash_map is modified - * between calls to this function the behavior is undefined. - * If the hash_map is modified then iteration should begin again by passing NULL to - * get the first key again. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * Example: - * ```c - * printf("entries in the hash_map:\n"); - * int key = 0, data = 0; - * rcutils_ret_t status = rcutils_hash_map_get_next_key(&hash_map, NULL, &key, &data); - * while (RCUTILS_RET_OK == status) { - * printf("%i: %i\n", key, data); - * status = rcutils_hash_map_get_next_key(&hash_map, &key, &key, &data); - * } - * ``` - * - * \param[in] hash_map rcutils_hash_map_t to be queried - * \param[in] previous_key NULL to get the first key or the previous key to get the next for - * \param[out] key A copy of the next key in the sequence - * \param[out] data A copy of the next data in the sequence - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_NOT_INITIALIZED if the hash_map is invalid, or - * \return #RCUTILS_RET_NOT_FOUND if the previous_key doesn't exist in the map, or - * \return #RCUTILS_RET_HASH_MAP_NO_MORE_ENTRIES if there is no more data beyound the previous_key, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -rcutils_ret_t -rcutils_hash_map_get_next_key_and_data( - const rcutils_hash_map_t * hash_map, - const void * previous_key, - void * key, - void * data); - - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__TYPES__HASH_MAP_H_ diff --git a/src/rcutils/types/rcutils_ret.h b/src/rcutils/types/rcutils_ret.h deleted file mode 100755 index b4712d2b0..000000000 --- a/src/rcutils/types/rcutils_ret.h +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__TYPES__RCUTILS_RET_H_ -#define RCUTILS__TYPES__RCUTILS_RET_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// The type that holds a return value for an rcutils operation. -typedef int rcutils_ret_t; - -/// Successful operation. -#define RCUTILS_RET_OK 0 -/// Operation produced a warning. -#define RCUTILS_RET_WARN 1 -/// Generic failure in operation. -#define RCUTILS_RET_ERROR 2 - -/// Failed to allocate memory return code. -#define RCUTILS_RET_BAD_ALLOC 10 -/// Invalid argument return code. -#define RCUTILS_RET_INVALID_ARGUMENT 11 -/// Not enough storage to do operation. -#define RCUTILS_RET_NOT_ENOUGH_SPACE 12 -/// Resource is not initialized -#define RCUTILS_RET_NOT_INITIALIZED 13 -/// Resource for request not found -#define RCUTILS_RET_NOT_FOUND 14 - -/// Given string map was either already initialized or was not zero initialized. -#define RCUTILS_RET_STRING_MAP_ALREADY_INIT 30 -/// Given string map is invalid, perhaps not initialized yet. -#define RCUTILS_RET_STRING_MAP_INVALID 31 -/// Given key not found in given string map. -#define RCUTILS_RET_STRING_KEY_NOT_FOUND 32 - -/// Internal severity map for logger thresholds is invalid. -#define RCUTILS_RET_LOGGING_SEVERITY_MAP_INVALID 40 -/// String representation of a severity is invalid. -#define RCUTILS_RET_LOGGING_SEVERITY_STRING_INVALID 41 - -/// There are no more entires beyond the last one in the map -#define RCUTILS_RET_HASH_MAP_NO_MORE_ENTRIES 50 - - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__TYPES__RCUTILS_RET_H_ diff --git a/src/rcutils/types/string_array.h b/src/rcutils/types/string_array.h deleted file mode 100755 index 4c4c97e93..000000000 --- a/src/rcutils/types/string_array.h +++ /dev/null @@ -1,221 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__TYPES__STRING_ARRAY_H_ -#define RCUTILS__TYPES__STRING_ARRAY_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" -#include "rcutils/error_handling.h" -#include "rcutils/macros.h" -#include "rcutils/qsort.h" -#include "rcutils/types/rcutils_ret.h" -#include "rcutils/visibility_control.h" - -/// The structure holding the metadata for a string array. -typedef struct RCUTILS_PUBLIC_TYPE rcutils_string_array_s -{ - /// The number of strings that can be stored in the string array. - size_t size; - - /// The allocated memory for the string array. - char ** data; - - /// The allocator used to allocate and free memory for the string array. - rcutils_allocator_t allocator; -} rcutils_string_array_t; - -/// Return an empty string array struct. -/** - * This function returns an empty and zero initialized string array struct. - * Calling rcutils_string_array_fini() on any non-initialized instance leads - * to undefined behavior. - * Every instance of string_array_t has to either be zero_initialized with this - * function or manually allocated. - * - * Example: - * - * ```c - * rcutils_string_array_t foo; - * rcutils_string_array_fini(&foo); // undefined behavior! - * - * rcutils_string_array_t bar = rcutils_get_zero_initialized_string_array(); - * rcutils_string_array_fini(&bar); // ok - * ``` - */ -RCUTILS_PUBLIC -rcutils_string_array_t -rcutils_get_zero_initialized_string_array(void); - -/// Initialize a string array with a given size. -/** - * This function will initialize a given, zero initialized, string array to - * a given size. - * - * Note that putting a string into the array gives owenship to the array. - * - * Example: - * - * ```c - * rcutils_allocator_t allocator = rcutils_get_default_allocator(); - * rcutils_string_array_t string_array = rcutils_get_zero_initialized_string_array(); - * rcutils_ret_t ret = rcutils_string_array_init(&string_array, 2, &allocator); - * if (ret != RCUTILS_RET_OK) { - * // ... error handling - * } - * string_array.data[0] = rcutils_strdup("Hello", &allocator); - * string_array.data[1] = rcutils_strdup("World", &allocator); - * ret = rcutils_string_array_fini(&string_array); - * ``` - * - * \param[inout] string_array object to be initialized - * \param[in] size the size the array should be - * \param[in] allocator to be used to allocate and deallocate memory - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_array_init( - rcutils_string_array_t * string_array, - size_t size, - const rcutils_allocator_t * allocator); - -/// Finalize a string array, reclaiming all resources. -/** - * This function reclaims any memory owned by the string array, including the - * strings it references. - * - * The allocator used to initialize the string array is used to deallocate each - * string in the array and the array of strings itself. - * - * \param[inout] string_array object to be finalized - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_array_fini(rcutils_string_array_t * string_array); - -/// Compare two string arrays. -/** - * The two string arrays are compared according to lexicographical order. - * - * \param[in] lhs The first string array. - * \param[in] rhs The second string array. - * \param[out] res Negative value if `lhs` appears before `rhs` in lexicographical order. - * Zero if `lhs` and `rhs` are equal. - * Positive value if `lhs` appears after `rhs` in lexographical order. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if any argument is `NULL, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if `lhs->data` or `rhs->data` is `NULL, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_array_cmp( - const rcutils_string_array_t * lhs, - const rcutils_string_array_t * rhs, - int * res); - -/// Resize a string array, reclaiming removed resources. -/** - * This function changes the size of an existing string array. - * If the new size is larger, new entries are added to the end of the array and - * are zero- initialized. - * If the new size is smaller, entries are removed from the end of the array - * and their resources reclaimed. - * - * \par Note: - * Resizing to 0 is not a substitute for calling ::rcutils_string_array_fini. - * - * \par Note: - * If this function fails, \p string_array remains unchanged and should still - * be reclaimed with ::rcutils_string_array_fini. - * - * \param[inout] string_array object to be resized. - * \param[in] new_size the size the array should be changed to. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_array_resize( - rcutils_string_array_t * string_array, - size_t new_size); - -/// Lexicographic comparer for pointers to string pointers. -/** - * This functions compares pointers to string pointers lexicographically - * ascending. - * - * \param[in] lhs pointer to the first string pointer. - * \param[in] rhs pointer to the second string pointer. - * \return <0 if lhs is lexicographically lower, or - * \return 0 if the strings are the same, or - * \return >0 if lhs is lexicographically higher. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -int -rcutils_string_array_sort_compare(const void * lhs, const void * rhs); - -/// Sort a string array according to lexicographical order. -/** - * This function changes the order of the entries in a string array so that - * they are in lexicographically ascending order. - * Empty entries are placed at the end of the array. - * - * \param[inout] string_array object whose elements should be sorted. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -inline -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_array_sort(rcutils_string_array_t * string_array) -{ - RCUTILS_CHECK_FOR_NULL_WITH_MSG( - string_array, "string_array is null", return RCUTILS_RET_INVALID_ARGUMENT); - - return rcutils_qsort( - string_array->data, - string_array->size, - sizeof(string_array->data[0]), - rcutils_string_array_sort_compare); -} - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__TYPES__STRING_ARRAY_H_ diff --git a/src/rcutils/types/string_map.h b/src/rcutils/types/string_map.h deleted file mode 100755 index 7bb6ed89c..000000000 --- a/src/rcutils/types/string_map.h +++ /dev/null @@ -1,443 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__TYPES__STRING_MAP_H_ -#define RCUTILS__TYPES__STRING_MAP_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" -#include "rcutils/types/rcutils_ret.h" -#include "rcutils/macros.h" -#include "rcutils/visibility_control.h" - -struct rcutils_string_map_impl_s; - -/// The structure holding the metadata for a string map. -typedef struct RCUTILS_PUBLIC_TYPE rcutils_string_map_s -{ - /// A pointer to the PIMPL implementation type. - struct rcutils_string_map_impl_s * impl; -} rcutils_string_map_t; - -/// Return an empty string map struct. -/** - * This function returns an empty and zero initialized string map struct. - * - * Example: - * - * ```c - * // Do not do this: - * // rcutils_string_map_t foo; - * // rcutils_string_map_fini(&foo); // undefined behavior! - * - * // Do this instead: - * rcutils_string_map_t bar = rcutils_get_zero_initialized_string_map(); - * rcutils_string_map_fini(&bar); // ok - * ``` - * */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_string_map_t -rcutils_get_zero_initialized_string_map(void); - -/// Initialize a rcutils_string_map_t, allocating space for given capacity. -/** - * This function initializes the rcutils_string_map_t with a given initial - * capacity for entries. - * Note this does not allocate space for keys or values in the map, just the - * arrays of pointers to the keys and values. - * rcutils_string_map_set() should still be used when assigning values. - * - * The string_map argument should point to allocated memory and should have - * been zero initialized with rcutils_get_zero_initialized_string_map(). - * For example: - * - * ```c - * rcutils_string_map_t string_map = rcutils_get_zero_initialized_string_map(); - * rcutils_ret_t ret = - * rcutils_string_map_init(&string_map, 10, rcutils_get_default_allocator()); - * if (ret != RCUTILS_RET_OK) { - * // ... do error handling - * } - * // ... use the string map and when done: - * ret = rcutils_string_map_fini(&string_map); - * if (ret != RCUTILS_RET_OK) { - * // ... do error handling - * } - * ``` - * - * \param[inout] string_map rcutils_string_map_t to be initialized - * \param[in] initial_capacity the amount of initial capacity for the string map - * \param[in] allocator the allocator to use through out the lifetime of the map - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_STRING_MAP_ALREADY_INIT if already initialized, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_map_init( - rcutils_string_map_t * string_map, - size_t initial_capacity, - rcutils_allocator_t allocator); - -/// Finalize the previously initialized string map struct. -/** - * This function will free any resources which were created when initializing - * or when calling rcutils_string_map_set(). - * - * \param[inout] string_map rcutils_string_map_t to be finalized - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_map_fini(rcutils_string_map_t * string_map); - -/// Get the current capacity of the string map. -/** - * This function will return the internal capacity of the map, which is the - * maximum number of key value pairs the map could hold. - * The capacity can be set initially with rcutils_string_map_init() or - * with rcutils_string_map_reserve(). - * The capacity does not indicate how many key value paris are stored in the - * map, the rcutils_string_map_get_size() function can provide that. - * - * \param[in] string_map rcutils_string_map_t to be queried - * \param[out] capacity capacity of the string map - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_STRING_MAP_INVALID if the string map is invalid, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_map_get_capacity(const rcutils_string_map_t * string_map, size_t * capacity); - -/// Get the current size of the string map. -/** - * This function will return the internal size of the map, which is the - * current number of key value pairs in the map. - * The size is changed when calling rcutils_string_map_set_no_resize(), - * rcutils_string_map_set(), or rcutils_string_map_unset(). - * - * \param[in] string_map rcutils_string_map_t to be queried - * \param[out] size size of the string map - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_STRING_MAP_INVALID if the string map is invalid, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_map_get_size(const rcutils_string_map_t * string_map, size_t * size); - -/// Reserve a given amount of capacity in the map. -/** - * Increases the capacity of the map to at least the given size. - * - * If the current capacity is less than requested capacity then the capacity - * is increased using the allocator given during initialization of the map in - * rcutils_string_map_init(). - * If the requested capacity is less than the current capacity, the capacity - * may be reduced, but no existing key value pairs will be truncated to do so. - * In effect, the capacity will be shrunk to fit the number of items in map or - * the requested capacity, which ever is larger. - * - * If recovering all resources is desired first call rcutils_string_map_clear() - * and then this function with a capacity of 0. - * - * \param[inout] string_map rcutils_string_map_t to have space reserved in - * \param[in] capacity requested size to reserve in the map - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_STRING_MAP_INVALID if the string map is invalid, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_map_reserve(rcutils_string_map_t * string_map, size_t capacity); - -/// Remove all key value pairs from the map. -/** - * This function will remove all key value pairs from the map, and it will - * reclaim all resources allocated as a result of setting key value pairs. - * rcutils_string_map_fini() should still be called after this. - * - * \param[inout] string_map rcutils_string_map_t to be cleared - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_STRING_MAP_INVALID if the string map is invalid, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_map_clear(rcutils_string_map_t * string_map); - -/// Set a key value pair in the map, increasing capacity if necessary. -/** - * The capacity will be increased if needed using rcutils_string_map_reserve(). - * Otherwise it is the same as rcutils_string_map_set_no_resize(). - * - * \see rcutils_string_map_set_no_resize() - * - * \param[inout] string_map rcutils_string_map_t to be updated - * \param[in] key map key, must be null terminated c string - * \param[in] value value for given map key, must be null terminated c string - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_STRING_MAP_INVALID if the string map is invalid, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_map_set(rcutils_string_map_t * string_map, const char * key, const char * value); - -/// Set a key value pair in the map but only if the map has enough capacity. -/** - * If the map already contains the given key, the existing value will be - * replaced with the given value. - * If the map does not contain the given key, and the map has additional - * unused capacity, then it will store the given key and value in the map. - * If there is no unused capacity in the map, then RCUTILS_RET_NOT_ENOUGH_SPACE - * is returned. - * - * The given key and value c strings are copied into the map, and so storage is - * allocated for them in the map when this function is called if necessary. - * The storage allocated for this purpose is reclaimed either when - * rcutils_string_map_fini() is called on this map or when using this function - * or rcutils_string_map_unset(). - * - * Any allocation that occurs in this functions uses the allocator of the map, - * which is given when the map is initialized in rcutils_string_map_init(). - * - * \param[inout] string_map rcutils_string_map_t to be updated - * \param[in] key map key, must be null terminated c string - * \param[in] value value for given map key, must be null terminated c string - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_STRING_MAP_INVALID if the string map is invalid, or - * \return #RCUTILS_RET_NOT_ENOUGH_SPACE if map is full, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_map_set_no_resize( - rcutils_string_map_t * string_map, - const char * key, - const char * value); - -/// Unset a key value pair in the map. -/** - * The key needs to be a null terminated c string. - * If the given key is not found, RCUTILS_RET_STRING_KEY_NOT_FOUND is returned. - * - * \param[inout] string_map rcutils_string_map_t to be updated - * \param[in] key map key, must be null terminated c string - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_STRING_MAP_INVALID if the string map is invalid, or - * \return #RCUTILS_RET_STRING_KEY_NOT_FOUND if key not found, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_map_unset(rcutils_string_map_t * string_map, const char * key); - -/// Get whether or not a key exists. -/** - * The key needs to be a null terminated c string. - * - * This function can fail and return false if the key is not found, - * or the string_map is NULL or invalid, or if the key is NULL. - * In all cases no error message is set. - * - * \param[in] string_map rcutils_string_map_t to be searched - * \param[in] key map key, must be null terminated c string - * \return `true` if key is in the map, or - * \return `false` if key is not in the map, or - * \return `false` for invalid arguments, or - * \return `false` if the string map is invalid. - */ -RCUTILS_PUBLIC -bool -rcutils_string_map_key_exists(const rcutils_string_map_t * string_map, const char * key); - -/// Get whether or not a key of known length exists. -/** - * Identical to rcutils_string_map_key_exists() but without relying on key to be - * a null terminated c string. - * - * \param[in] string_map rcutils_string_map_t to be searched - * \param[in] key map key - * \param[in] key_length map key length - * \return `true` if key is in the map, or - * \return `false` if key is not in the map, or - * \return `false` for invalid arguments, or - * \return `false` if the string map is invalid. - */ -RCUTILS_PUBLIC -bool -rcutils_string_map_key_existsn( - const rcutils_string_map_t * string_map, - const char * key, - size_t key_length); - -/// Get value given a key. -/** - * The key needs to be a null terminated c string. - * - * This function can fail, and therefore return NULL, if the key is not found, - * or the string_map is NULL or invalid, or if the key is NULL. - * In all cases no error message is set. - * - * The returned value string is still owned by the map, and it should not be - * modified or free'd. - * This also means that the value pointer becomes invalid if either - * rcutils_string_map_clear() or rcutils_string_map_fini() are called or if - * the key value pair is updated or removed with one of rcutils_string_map_set() - * or rcutils_string_map_set_no_resize() or rcutils_string_map_unset(). - * - * \param[in] string_map rcutils_string_map_t to be searched - * \param[in] key map key, must be null terminated c string - * \return value for the given key if successful, or - * \return `NULL` for invalid arguments, or - * \return `NULL` if the string map is invalid, or - * \return `NULL` if key not found, or - * \return `NULL` if an unknown error occurs. - */ -RCUTILS_PUBLIC -const char * -rcutils_string_map_get(const rcutils_string_map_t * string_map, const char * key); - -/// Get value given a key and key length. -/** - * Identical to rcutils_string_map_get() but without relying on key to be a - * null terminated c string. - * - * \param[in] string_map rcutils_string_map_t to be searched - * \param[in] key map key - * \param[in] key_length map key length - * \return value for the given key if successful, or - * \return `NULL` for invalid arguments, or - * \return `NULL` if the string map is invalid, or - * \return `NULL` if key not found, or - * \return `NULL` if an unknown error occurs. - */ -RCUTILS_PUBLIC -const char * -rcutils_string_map_getn( - const rcutils_string_map_t * string_map, - const char * key, - size_t key_length); - -/// Get the next key in the map, unless NULL is given, then get the first key. -/** - * This function allows you iteratively get each key in the map. - * - * If NULL is given for the key, then the first key in the map is returned. - * If that returned key if given to the this function, then the next key in the - * map is returned. - * If there are no more keys in the map or if the given key is not in the map, - * NULL is returned. - * - * The order of the keys in the map is arbitrary and if the map is modified - * between calls to this function the behavior is undefined. - * If the map is modifeid then iteration should begin again by passing NULL to - * get the first key again. - * - * This function operates based on the address of the pointer, you cannot pass - * a copy of a key to get the next key. - * - * Example: - * - * ```c - * printf("keys in the map:\n"); - * const char * current_key = rcutils_string_map_get_next_key(&map, NULL); - * while (current_key) { - * printf(" - %s\n", current_key); - * current_key = rcutils_string_map_get_next_key(&map, current_key); - * } - * ``` - * - * NULL can also be returned if NULL is given for the string_map or if the - * string_map is invalid. - * - * \param[in] string_map rcutils_string_map_t to be queried - * \param[in] key NULL to get the first key or the previous key to get the next - * \return value for the given key if successful, or - * \return `NULL` for invalid arguments, or - * \return `NULL` if the string map is invalid, or - * \return `NULL` if key not found, or - * \return `NULL` if there are no more keys in the map, or - * \return `NULL` if an unknown error occurs. - */ -RCUTILS_PUBLIC -const char * -rcutils_string_map_get_next_key( - const rcutils_string_map_t * string_map, - const char * key); - -/// Copy all the key value pairs from one map into another, overwritting and resizing if needed. -/** - * If the destination string map does not have enough storage, then it is will - * be resized. - * If a key value pair exists in the destination map, its value will be - * replaced with the source map's value. - * - * It is possible for only some of the values to be copied if an error happens - * during the copying process, e.g. if memory allocation fails. - * - * \param[in] src_string_map rcutils_string_map_t to be copied from - * \param[inout] dst_string_map rcutils_string_map_t to be copied to - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_STRING_MAP_INVALID if the string map is invalid, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_string_map_copy( - const rcutils_string_map_t * src_string_map, - rcutils_string_map_t * dst_string_map); - -#ifdef __cplusplus -} -#endif - -#endif // RCUTILS__TYPES__STRING_MAP_H_ diff --git a/src/rcutils/types/uint8_array.h b/src/rcutils/types/uint8_array.h deleted file mode 100755 index 215e9384a..000000000 --- a/src/rcutils/types/uint8_array.h +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// \file - -#ifndef RCUTILS__TYPES__UINT8_ARRAY_H_ -#define RCUTILS__TYPES__UINT8_ARRAY_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" -#include "rcutils/types/rcutils_ret.h" -#include "rcutils/visibility_control.h" - -/// The structure holding the metadata for a uint8 array. -typedef struct RCUTILS_PUBLIC_TYPE rcutils_uint8_array_s -{ - /// The allocated memory for the uint8 array. - uint8_t * buffer; - - /// The number of valid elements in the uint8 array. - size_t buffer_length; - - /// The maximum capacity of the uint8 array. - size_t buffer_capacity; - - /// The allocator used to allocate and free memory for the uint8 array. - rcutils_allocator_t allocator; -} rcutils_uint8_array_t; - -/// Return a zero initialized uint8 array struct. -/** - * \return rcutils_uint8_array_t a zero initialized uint8 array struct - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_uint8_array_t -rcutils_get_zero_initialized_uint8_array(void); - -/// Initialize a zero initialized uint8 array struct. -/** - * This function may leak if the uint8 array struct is already initialized. - * If the capacity is set to 0, no memory is allocated and the internal buffer - * is still NULL. - * - * \param[inout] uint8_array a pointer to the to be initialized uint8 array struct - * \param[in] buffer_capacity the size of the memory to allocate for the byte stream - * \param[in] allocator the allocator to use for the memory allocation - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if any arguments are invalid, or - * \return 'RCUTILS_RET_BAD_ALLOC` if no memory could be allocated correctly - * \return #RCUTILS_RET_ERROR if an unexpected error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_uint8_array_init( - rcutils_uint8_array_t * uint8_array, - size_t buffer_capacity, - const rcutils_allocator_t * allocator); - -/// Finalize a uint8 array struct. -/** - * Cleans up and deallocates any resources used in a rcutils_uint8_array_t. - * The array passed to this function needs to have been initialized by - * rcutils_uint8_array_init(). - * Passing an uninitialized instance to this function leads to undefined - * behavior. - * - * \param[in] uint8_array pointer to the rcutils_uint8_array_t to be cleaned up - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if the uint8_array argument is invalid - * \return #RCUTILS_RET_ERROR if an unexpected error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_uint8_array_fini(rcutils_uint8_array_t * uint8_array); - -/// Resize the internal buffer of the uint8 array. -/** - * The internal buffer of the uint8 array can be resized dynamically if needed. - * If the new size is smaller than the current capacity, then the memory is - * truncated. - * Be aware, that this might deallocate the memory and therefore invalidates any - * pointers to this storage. - * - * \param[inout] uint8_array pointer to the instance of rcutils_uint8_array_t which is - * being resized - * \param[in] new_size the new size of the internal buffer - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT if new_size is set to zero - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation failed, or - * \return #RCUTILS_RET_ERROR if an unexpected error occurs. - */ -RCUTILS_PUBLIC -RCUTILS_WARN_UNUSED -rcutils_ret_t -rcutils_uint8_array_resize(rcutils_uint8_array_t * uint8_array, size_t new_size); - -#if __cplusplus -} -#endif - -#endif // RCUTILS__TYPES__UINT8_ARRAY_H_ diff --git a/src/rcutils/visibility_control.h b/src/rcutils/visibility_control.h deleted file mode 100755 index 189cb39a3..000000000 --- a/src/rcutils/visibility_control.h +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCUTILS__VISIBILITY_CONTROL_H_ -#define RCUTILS__VISIBILITY_CONTROL_H_ - -#include "rcutils/visibility_control_macros.h" - -#ifdef RCUTILS_BUILDING_DLL -# define RCUTILS_PUBLIC RCUTILS_EXPORT -#else -# define RCUTILS_PUBLIC RCUTILS_IMPORT -#endif // !RCUTILS_BUILDING_DLL - -#if defined(_MSC_VER) || defined(__CYGWIN__) -# define RCUTILS_PUBLIC_TYPE RCUTILS_PUBLIC -#else // defined(_MSC_VER) || defined(__CYGWIN__) -# define RCUTILS_PUBLIC_TYPE -#endif // !defined(_MSC_VER) && !defined(__CYGWIN__) - -#endif // RCUTILS__VISIBILITY_CONTROL_H_ diff --git a/src/rcutils/visibility_control_macros.h b/src/rcutils/visibility_control_macros.h deleted file mode 100755 index 1f0bfa8b6..000000000 --- a/src/rcutils/visibility_control_macros.h +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RCUTILS__VISIBILITY_CONTROL_MACROS_H_ -#define RCUTILS__VISIBILITY_CONTROL_MACROS_H_ - -// Defines macros to express whether a symbol is localed, imported, or exported -// -// Those macros are compatible with GCC, clang, and Microsoft Visual C++. They -// can be used to enforce which symbols of a library are publicly accessible. -// -// RCUTILS_IMPORT, RCUTILS_EXPORT, and RCUTILS_LOCAL are respectively declaring -// an imported, exported, or local symbol. -// RCUTILS_LOCAL can be used directly. However, RCUTILS_IMPORT, and -// RCUTILS_EXPORT may not be used directly. Every project need to provide -// an additional header called `visibility_macros.h` containing: -// -// #ifdef _BUILDING_DLL -// # define _PUBLIC RCUTILS_EXPORT -// #else -// # define _PUBLIC RCUTILS_IMPORT -// #endif // !_BUILDING_DLL -// #define _LOCAL RCUTILS_LOCAL -// -// ...where "" has been replaced by the project name, such as -// "MY_PROJECT". -// Your project CMakeLists.txt should also contain the following statement: -// -// target_compile_definitions( PRIVATE "_BUILDING_DLL") -// -// A public (exported) class should then be tagged as _PUBLIC, whereas -// a non-public class should be tagged with _LOCAL. -// -// See GCC documentation: https://gcc.gnu.org/wiki/Visibility - -#if defined(_MSC_VER) || defined(__CYGWIN__) -// Use the Windows syntax when compiling with Microsoft Visual C++. -// -// GCC on Windows also support this syntax. When compiling with cygwin, -// prefer using dllimport/dllexport are the semantic of those flags is closer -// to msvc++ behavior. See GCC documentation: -// https://gcc.gnu.org/onlinedocs/gcc/Microsoft-Windows-Function-Attributes.html -# define RCUTILS_IMPORT __declspec(dllimport) -# define RCUTILS_EXPORT __declspec(dllexport) -# define RCUTILS_LOCAL -#else // defined(_MSC_VER) || defined(__CYGWIN__) -// On Linux, use the GCC syntax. This syntax is understood by other compilers -// such as clang, icpc, and xlc++. -# define RCUTILS_IMPORT __attribute__ ((visibility("default"))) -# define RCUTILS_EXPORT __attribute__ ((visibility("default"))) -# define RCUTILS_LOCAL __attribute__ ((visibility("hidden"))) -#endif // !defined(_MSC_VER) && !defined(__CYGWIN__) - -#endif // RCUTILS__VISIBILITY_CONTROL_MACROS_H_ diff --git a/src/rmw/allocators.h b/src/rmw/allocators.h deleted file mode 100755 index 976c86726..000000000 --- a/src/rmw/allocators.h +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__ALLOCATORS_H_ -#define RMW__ALLOCATORS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/types.h" -#include "rmw/visibility_control.h" - -/// Allocate memory of size in bytes using rcutils default allocator's allocate() -/** - * \param[in] size The number of bytes to allocate - * \return pointer to allocated memory - */ -RMW_PUBLIC -void * -rmw_allocate(size_t size); - -/// Free memory using rcutils default allocator's deallocate() -/** - * \param[in] pointer pointer to allocated memory - */ -RMW_PUBLIC -void -rmw_free(void * pointer); - -/// Allocate memory for an `rmw_node_t` using rcutils default allocator's allocate() -/** - * \return pointer to allocated memory - */ -RMW_PUBLIC -rmw_node_t * -rmw_node_allocate(void); - -/// Free memory allocated to this node pointer using rcutils default allocator's deallocate() -/** - * \param[in] node pointer to allocated memory - */ -RMW_PUBLIC -void -rmw_node_free(rmw_node_t * node); - -/// Allocate memory for an `rmw_publisher_t` using rcutils default allocator's allocate() -/** - * \return pointer to allocated memory - */ -RMW_PUBLIC -rmw_publisher_t * -rmw_publisher_allocate(void); - -/// Free memory using rcutils default allocator's deallocate() -/** - * \param[in] publisher pointer to allocated memory - */ -RMW_PUBLIC -void -rmw_publisher_free(rmw_publisher_t * publisher); - -/// Allocate memory for an `rmw_subscription_t` using rcutils default allocator's allocate() -/** - * \return pointer to allocated memory - */ -RMW_PUBLIC -rmw_subscription_t * -rmw_subscription_allocate(void); - -/// Free memory using rcutils default allocator's deallocate() -/** - * \param[in] subscription pointer to allocated memory - */ -RMW_PUBLIC -void -rmw_subscription_free(rmw_subscription_t * subscription); - -/// Allocate memory for an `rmw_guard_condition_t` using rcutils default allocator's allocate() -/** - * \return pointer to allocated memory - */ -RMW_PUBLIC -rmw_guard_condition_t * -rmw_guard_condition_allocate(void); - -/// Free memory using rcutils default allocator's deallocate() -/** - * \param[in] guard_condition pointer to allocated memory - */ -RMW_PUBLIC -void -rmw_guard_condition_free(rmw_guard_condition_t * guard_condition); - -/// Allocate memory for an `rmw_client_t` using rcutils default allocator's allocate() -/** - * \return pointer to allocated memory - */ -RMW_PUBLIC -rmw_client_t * -rmw_client_allocate(void); - -/// Free memory using rcutils default allocator's deallocate() -/** - * \param[in] client pointer to allocated memory - */ -RMW_PUBLIC -void -rmw_client_free(rmw_client_t * client); - -/// Allocate memory for an `rmw_service_t` using rcutils default allocator's allocate() -/** - * \return pointer to allocated memory - */ -RMW_PUBLIC -rmw_service_t * -rmw_service_allocate(void); - -/// Free memory using rcutils default allocator's deallocate() -/** - * \param[in] service pointer to allocated memory - */ -RMW_PUBLIC -void -rmw_service_free(rmw_service_t * service); - -/// Allocate memory for an `rmw_wait_set_t` using rcutils default allocator's allocate() -/** - * \return pointer to allocated memory - */ -RMW_PUBLIC -rmw_wait_set_t * -rmw_wait_set_allocate(void); - -/// Free memory using rcutils default allocator's deallocate() -/** - * \param[in] wait_set pointer to allocated memory - */ -RMW_PUBLIC -void -rmw_wait_set_free(rmw_wait_set_t * wait_set); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__ALLOCATORS_H_ diff --git a/src/rmw/check_type_identifiers_match.h b/src/rmw/check_type_identifiers_match.h deleted file mode 100755 index b60d90197..000000000 --- a/src/rmw/check_type_identifiers_match.h +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2023 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__CHECK_TYPE_IDENTIFIERS_MATCH_H_ -#define RMW__CHECK_TYPE_IDENTIFIERS_MATCH_H_ - -#include - -#include "rcutils/snprintf.h" - -#include "rmw/allocators.h" -#include "rmw/error_handling.h" -#include "rmw/impl/config.h" // For RMW_AVOID_MEMORY_ALLOCATION - -#if RMW_AVOID_MEMORY_ALLOCATION -#define RMW_CHECK_TYPE_IDENTIFIERS_MATCH(ElementName, ElementTypeID, ExpectedTypeID, OnFailure) \ - do { \ - if (ElementTypeID != ExpectedTypeID) { \ - char __msg[1024]; \ - int ret = rcutils_snprintf( \ - __msg, sizeof(__msg), \ - #ElementName " implementation '%s'(%p) does not match rmw implementation '%s'(%p)", \ - ElementTypeID, (const void *)ElementTypeID, \ - ExpectedTypeID, (const void *)ExpectedTypeID); \ - if (ret < 0) { \ - static const char error_msg[] = \ - "RMW_CHECK_TYPE_IDENTIFIERS_MATCH(): rcutils_snprintf() failed"; \ - memmove(__msg, error_msg, sizeof(error_msg)); \ - } \ - RMW_SET_ERROR_MSG(__msg); \ - OnFailure; \ - } \ - } while(0) -#else // RMW_AVOID_MEMORY_ALLOCATION -#define RMW_CHECK_TYPE_IDENTIFIERS_MATCH(ElementName, ElementTypeID, ExpectedTypeID, OnFailure) \ - do { \ - if (ElementTypeID != ExpectedTypeID) { \ - int __bytes_that_would_have_been_written = rcutils_snprintf( \ - NULL, 0, \ - #ElementName " implementation '%s'(%p) does not match rmw implementation '%s'(%p)", \ - ElementTypeID, (const void *)ElementTypeID, \ - ExpectedTypeID, (const void *)ExpectedTypeID); \ - if (__bytes_that_would_have_been_written < 0) { \ - RMW_SET_ERROR_MSG( \ - "RMW_CHECK_TYPE_IDENTIFIERS_MATCH(): rcutils_snprintf(NULL, 0, ...) failed"); \ - OnFailure; \ - } else { \ - char * __msg = \ - (char *)rmw_allocate(__bytes_that_would_have_been_written + 1); \ - if (NULL == __msg) { \ - RMW_SET_ERROR_MSG( \ - "RMW_CHECK_TYPE_IDENTIFIERS_MATCH(): rmw_allocate() failed"); \ - } else { \ - int ret = rcutils_snprintf( \ - __msg, __bytes_that_would_have_been_written + 1, \ - #ElementName " implementation '%s'(%p) does not match rmw implementation '%s'(%p)", \ - ElementTypeID, (const void *)ElementTypeID, \ - ExpectedTypeID, (const void *)ExpectedTypeID); \ - if (ret < 0) { \ - RMW_SET_ERROR_MSG( \ - "RMW_CHECK_TYPE_IDENTIFIERS_MATCH(): rcutils_snprintf() failed"); \ - } else { \ - RMW_SET_ERROR_MSG(__msg); \ - } \ - } \ - rmw_free(__msg); \ - OnFailure; \ - } \ - } \ - } while(0) -#endif // RMW_AVOID_MEMORY_ALLOCATION - -#endif // RMW__CHECK_TYPE_IDENTIFIERS_MATCH_H_ diff --git a/src/rmw/convert_rcutils_ret_to_rmw_ret.h b/src/rmw/convert_rcutils_ret_to_rmw_ret.h deleted file mode 100755 index 2ffc7d907..000000000 --- a/src/rmw/convert_rcutils_ret_to_rmw_ret.h +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__CONVERT_RCUTILS_RET_TO_RMW_RET_H_ -#define RMW__CONVERT_RCUTILS_RET_TO_RMW_RET_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/types.h" -#include "rmw/macros.h" -#include "rmw/types.h" -#include "rmw/visibility_control.h" - -/// Map a `rcutil_ret_t` value to the equivalent `rmw_ret_t` value -/** - * \param[in] rcutils_ret The rcutils type to map - * \return rmw_ret_t result mapped value, or RMW_RET_ERROR if the rcutils_ret value is not supported - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_convert_rcutils_ret_to_rmw_ret(rcutils_ret_t rcutils_ret); - -#ifdef __cplusplus -} // extern "C" -#endif - -#endif // RMW__CONVERT_RCUTILS_RET_TO_RMW_RET_H_ diff --git a/src/rmw/discovery_options.h b/src/rmw/discovery_options.h deleted file mode 100755 index 8178a9306..000000000 --- a/src/rmw/discovery_options.h +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__DISCOVERY_OPTIONS_H_ -#define RMW__DISCOVERY_OPTIONS_H_ - -#include "rcutils/allocator.h" - -#include "rmw/macros.h" -#include "rmw/ret_types.h" -#include "rmw/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Used to control the range that nodes will be discovered -typedef enum RMW_PUBLIC_TYPE rmw_automatic_discovery_range_e -{ - /// The discovery range has not been set - RMW_AUTOMATIC_DISCOVERY_RANGE_NOT_SET = 0, - /// Force discovery off - RMW_AUTOMATIC_DISCOVERY_RANGE_OFF = 1, - /// Allows discovering nodes on the same host - RMW_AUTOMATIC_DISCOVERY_RANGE_LOCALHOST = 2, - /// Allows discovering nodes on the same subnet - RMW_AUTOMATIC_DISCOVERY_RANGE_SUBNET = 3, - /// Use discovery settings configured directly with the middleware - RMW_AUTOMATIC_DISCOVERY_RANGE_SYSTEM_DEFAULT = 4, -} rmw_automatic_discovery_range_t; - -/// Maximum length of a peer hostname or IP address -#define RMW_DISCOVERY_OPTIONS_STATIC_PEERS_MAX_LENGTH 256 - -/// Struct to typedef some of the peer addresses -typedef struct rmw_peer_address_s -{ - char peer_address[RMW_DISCOVERY_OPTIONS_STATIC_PEERS_MAX_LENGTH]; -} rmw_peer_address_t; - -/// Used to specify the options that control how discovery is performed -typedef struct RMW_PUBLIC_TYPE rmw_discovery_options_s -{ - /// How far to allow discovering nodes - /** - * This needs to be set to something other than RMW_AUTOMATIC_DISCOVERY_RANGE_NOT_SET, - * because that is just a sentinel value to see if this was set, but rmw - * implementations should error if this is what is given during context init. - */ - rmw_automatic_discovery_range_t automatic_discovery_range; - - /// The list of manually-specified peers to perform static discovery with - /** - * Each peer is specified as a hostname or an IP address (IPv4 and IPv6 are both acceptable), or - * a subnet, e.g. 192.168.0.0/24. - */ - rmw_peer_address_t * static_peers; - - /// The number of manually-specified peers - size_t static_peers_count; - - /// The allocator used to allocate static_peers - rcutils_allocator_t allocator; -} rmw_discovery_options_t; - -/// Return a zero-initialized discovery options structure. -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_discovery_options_t -rmw_get_zero_initialized_discovery_options(void); - -/// Initialize a discovery options structure with a set number of static peers. -/** - * This function initializes rmw_discovery_options_t with space for a set number of static peers. - * - * \param[in] discovery_options Pointer to a zero initialized option structure to be initialized on - * success, but left unchanged on failure. - * \param[in] size Number of static peers to allocate space for. - * \param[in] allocator Allocator to be used to allocate memory. - * \returns `RMW_RET_OK` if successful, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `discovery_options` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `discovery_options` is not - * zero initialized, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `allocator` is invalid, - * by rcutils_allocator_is_valid() definition, or - * \returns `RMW_BAD_ALLOC` if memory allocation fails, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark This function sets the RMW error state on failure. -*/ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_discovery_options_init( - rmw_discovery_options_t * discovery_options, - size_t size, - rcutils_allocator_t * allocator); - -/// Compare two discovery parameter instances for equality. -/** - * Equality means the automatic_discovery_range values are equal, they have the same - * static_peers_count value, and each entry in static_peers is evaluated as - * equal using strncmp. - * - * NOTE: If the two parameter structs list the static peers in different orders - * then this will evaulate as NOT equal. - * - * \param[in] left - The first set of options to compare - * \param[in] right - The second set of options to compare - * \param[out] result - The result of the calculation. - * - * \return RMW_RET_OK when the input arguments are valid. - * \return RMW_RET_INVALID_ARGUMENT will be returned when any input is a nullptr, - * or if something in either struct was malformed, such as static_peers being - * a nullptr while static_peers_count is non-zero. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_discovery_options_equal( - const rmw_discovery_options_t * const left, - const rmw_discovery_options_t * const right, - bool * result); - -/// Perform a deep copy of the discovery options from src into dst using the -/// given allocator. -/** - * The dst will be left with an owned copy of the static peers array whose - * string values match the src. - * If successful, src and dst will evaluate as equal using - * rmw_discovery_options_equal. - * - * \param[in] src discovery options to be copied. - * \param[in] allocator to use. - * \param[out] dst Destination options to use. - * \return RMW_RET_OK if success. - * \return RMW_RET_INVALID_ARGUMENT if either the src, allocator or dst is null, or - * \return RMW_RET_INVALID_ARGUMENT if src and dst are the same object. - * \return RMW_RET_BAD_ALLOC if allocation fails. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_discovery_options_copy( - const rmw_discovery_options_t * src, - rcutils_allocator_t * allocator, - rmw_discovery_options_t * dst); - -/// Destructor for rmw_discovery_options_t -/** - * \param[in] discovery_options to destroy - * \return RMW_RET_OK if success. - * \return RMW_RET_INVALID_ARGUMENT if allocator is invalid - * or discovery_options is null. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_discovery_options_fini( - rmw_discovery_options_t * discovery_options); -#ifdef __cplusplus -} -#endif - -#endif // RMW__DISCOVERY_OPTIONS_H_ diff --git a/src/rmw/domain_id.h b/src/rmw/domain_id.h deleted file mode 100755 index 7a5a1c0dd..000000000 --- a/src/rmw/domain_id.h +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2019 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__DOMAIN_ID_H_ -#define RMW__DOMAIN_ID_H_ - -/// Default domain id. -#define RMW_DEFAULT_DOMAIN_ID SIZE_MAX - -#endif // RMW__DOMAIN_ID_H_ diff --git a/src/rmw/dynamic_message_type_support.h b/src/rmw/dynamic_message_type_support.h deleted file mode 100755 index 7d8b13da4..000000000 --- a/src/rmw/dynamic_message_type_support.h +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__DYNAMIC_MESSAGE_TYPE_SUPPORT_H_ -#define RMW__DYNAMIC_MESSAGE_TYPE_SUPPORT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include -#include -#include -#include - -#include -#include -#include - -#include "rmw/features.h" -#include "rmw/serialized_message.h" -#include "rmw/visibility_control.h" - -/// Interfaces for runtime interface reflection - -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_take_dynamic_message( - const rmw_subscription_t * subscription, - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_message, - bool * taken, - rmw_subscription_allocation_t * allocation); - -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_take_dynamic_message_with_info( - const rmw_subscription_t * subscription, - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_message, - bool * taken, - rmw_message_info_t * message_info, - rmw_subscription_allocation_t * allocation); - -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_serialization_support_init( - const char * serialization_lib_name, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_serialization_support_t * serialization_support); // OUT - -// TODO(methylDragon): Nice to have only -// RMW_PUBLIC -// RMW_WARN_UNUSED -// rmw_ret_t -// rmw_get_dynamic_type_from_middleware( -// const rmw_node_t * node, -// const char * topic_name, -// const rosidl_message_type_support_t type_support, -// rosidl_dynamic_typesupport_dynamic_type_t * dynamic_message_type); -// -// RMW_PUBLIC -// RMW_WARN_UNUSED -// rmw_ret_t -// rmw_get_dynamic_data_from_middleware( -// const rmw_node_t * node, -// const char * topic_name, -// const rosidl_message_type_support_t type_support, -// rosidl_dynamic_typesupport_dynamic_data_t * dynamic_message); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__DYNAMIC_MESSAGE_TYPE_SUPPORT_H_ diff --git a/src/rmw/enclave.h b/src/rmw/enclave.h deleted file mode 100755 index accdab225..000000000 --- a/src/rmw/enclave.h +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright 2025 Sony Group Corporation. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__ENCLAVE_H_ -#define RMW__ENCLAVE_H_ - -#include "rcutils/allocator.h" - -#include "rmw/macros.h" -#include "rmw/ret_types.h" -#include "rmw/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Perform a deep copy of the enclave options from src into dst using the -/// given allocator. -/** - * The dst will be left with an owned copy of the enclave whose - * string values match the src. - * If successful, src and dst will evaluate as equal. - * - * \param[in] src enclave options to be copied. - * \param[in] allocator to use. - * \param[out] dst Destination options to use. - * \return RMW_RET_OK if success. - * \return RMW_RET_INVALID_ARGUMENT if the src, dst or allocator is null. - * \return RMW_RET_BAD_ALLOC if allocation fails. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_enclave_options_copy( - const char * src, - const rcutils_allocator_t * allocator, - char ** dst); - -/// Destructor for enclave options -/** - * \param[in] enclave_options to destroy - * \param[in] allocator to be used for destruction. - * \return RMW_RET_OK if success. - * \return RMW_RET_INVALID_ARGUMENT if allocator is invalid - * or enclave_options is null. - */ -RMW_PUBLIC -rmw_ret_t -rmw_enclave_options_fini( - char * enclave_options, - const rcutils_allocator_t * allocator -); -#ifdef __cplusplus -} -#endif - -#endif // RMW__ENCLAVE_H_ diff --git a/src/rmw/error_handling.h b/src/rmw/error_handling.h deleted file mode 100755 index 63d7d2ba1..000000000 --- a/src/rmw/error_handling.h +++ /dev/null @@ -1,205 +0,0 @@ -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file error_handling.h - * @brief Functions and macros to interact with error handling mechanisms - * - * This logic pretty much renames many `rcutils` functions and macros. Also check out that - * package's documentation for more information. - */ - -#ifndef RMW__ERROR_HANDLING_H_ -#define RMW__ERROR_HANDLING_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -/// Struct wrapping a fixed-size c string used for returning the formatted error string. -typedef rcutils_error_string_t rmw_error_string_t; - -/// Struct which encapsulates the error state set by RMW_SET_ERROR_MSG(). -typedef rcutils_error_state_t rmw_error_state_t; - -/// Limit the buffer size in the `fwrite` call to give an upper bound to buffer overrun in the case -/// of non-null terminated `msg`. -#define RMW_SAFE_FWRITE_TO_STDERR RCUTILS_SAFE_FWRITE_TO_STDERR - -/// Forces initialization of thread-local storage if called in a newly created thread. -/** - * If this function is not called beforehand, then the first time the error - * state is set or the first time the error message is retrieved, the default - * allocator will be used to allocate thread-local storage. - * - * This function may or may not allocate memory. - * The system's thread-local storage implementation may need to allocate - * memory, since it usually has no way of knowing how much storage is needed - * without knowing how many threads will be created. - * Most implementations (e.g. C11, C++11, and pthread) do not have ways to - * specify how this memory is allocated, but if the implementation allows, the - * given allocator to this function will be used, but is otherwise unused. - * This only occurs when creating and destroying threads, which can be avoided - * in the "steady" state by reusing pools of threads. - * - * It is worth considering that repeated thread creation and destruction will - * result in repeated memory allocations and could result in memory - * fragmentation. - * This is typically avoided anyways by using pools of threads. - * - * In case an error is indicated by the return code, no error message will have - * been set. - * - * If called more than once in a thread, or after implicitly initialized by - * setting the error state, it will still return `RCUTILS_RET_OK`, even - * if the given allocator is invalid. - * Essentially this function does nothing if thread-local storage has already - * been called. - * If already initialized, the given allocator is ignored, even if it does not - * match the allocator used originally to initialize the thread-local storage. - * - * \return `RCUTILS_RET_OK` if successful, or - * \return `RCUTILS_RET_INVALID_ARGUMENT` if the allocator is invalid, or - * \return `RCUTILS_RET_BAD_ALLOC` if allocating memory fails, or - * \return `RCUTILS_RET_ERROR` if an unspecified error occurs. - */ -#define rmw_initialize_error_handling_thread_local_storage \ - rcutils_initialize_error_handling_thread_local_storage - -/// Set the error message, as well as the file and line on which it occurred. -/** - * This is not meant to be used directly, but instead via the - * RMW_SET_ERROR_MSG(msg) macro. - * - * The error_msg parameter is copied into the internal error storage and must - * be null terminated. - * The file parameter is copied into the internal error storage and must - * be null terminated. - * - * \param[in] error_string The error message to set. - * \param[in] file The path to the file in which the error occurred. - * \param[in] line_number The line number on which the error occurred. - */ -#define rmw_set_error_state rcutils_set_error_state - -/// Check an argument for a null value. -/** - * If the argument's value is `NULL`, set the error message saying so and - * return the `error_return_type`. - * - * \param[in] argument The argument to test. - * \param[in] error_return_type The type to return if the argument is `NULL`. - */ -#define RMW_CHECK_ARGUMENT_FOR_NULL(argument, error_return_type) \ - RCUTILS_CHECK_ARGUMENT_FOR_NULL(argument, error_return_type) - -/// Check a value for null, with an error message and error statement. -/** - * If `value` is `NULL`, the error statement will be evaluated after - * setting the error message. - * - * \param[in] value The value to test. - * \param[in] msg The error message if `value` is `NULL`. - * \param[in] error_statement The statement to evaluate if `value` is `NULL`. - */ -#define RMW_CHECK_FOR_NULL_WITH_MSG(value, msg, error_statement) \ - RCUTILS_CHECK_FOR_NULL_WITH_MSG(value, msg, error_statement) - -/// Set the error message, as well as append the current file and line number. -/** - * If an error message was previously set, and rmw_reset_error() was not called - * afterwards, and this library was built with RCUTILS_REPORT_ERROR_HANDLING_ERRORS - * turned on, then the previously set error message will be printed to stderr. - * Error state storage is thread local and so all error related functions are - * also thread local. - * - * \param[in] msg The error message to be set. - */ -#define RMW_SET_ERROR_MSG(msg) RCUTILS_SET_ERROR_MSG(msg) - -/// Set the error message using a format string and format arguments. -/** - * This function sets the error message using the given format string. - * The resulting formatted string is silently truncated at - * RCUTILS_ERROR_MESSAGE_MAX_LENGTH. - * - * \param[in] format_string The string to be used as the format of the error message. - * \param[in] ... Arguments for the format string. - */ -#define RMW_SET_ERROR_MSG_WITH_FORMAT_STRING(format_string, ...) \ - RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING(format_string, __VA_ARGS__) - -/// Return `true` if the error is set, otherwise `false`. -/** - * This is currently defines as `rcutils_error_is_set` - */ -#define rmw_error_is_set rcutils_error_is_set - -/// Return an rcutils_error_state_t which was set with rcutils_set_error_state(). -/** - * The returned pointer will be NULL if no error has been set in this thread. - * - * The returned pointer is valid until RCUTILS_SET_ERROR_MSG, rcutils_set_error_state, - * or rcutils_reset_error are called in the same thread. - * - * \return A pointer to the current error state struct. - */ -#define rmw_get_error_state rcutils_get_error_state - -/// Return the error message followed by `, at :` if set, else "error not set". -/** - * This function is "safe" because it returns a copy of the current error - * string or one containing the string "error not set" if no error was set. - * This ensures that the copy is owned by the calling thread and is therefore - * never invalidated by other error handling calls, and that the C string - * inside is always valid and null terminated. - * - * \return The current error string, with file and line number, or "error not set" if not set. - */ -#define rmw_get_error_string rcutils_get_error_string - -/// Reset the error state by clearing any previously set error state. -#define rmw_reset_error rcutils_reset_error - -/// Set the error message using RCUTILS_SET_ERROR_MSG and append the previous error. -/** - * If there is no previous error, has same behavior as RCUTILS_SET_ERROR_MSG. - * \param[in] msg The error message to be set. - */ -#define RMW_SET_ERROR_MSG_AND_APPEND_PREV_ERROR(msg) \ - RCUTILS_SET_ERROR_MSG_AND_APPEND_PREV_ERROR(msg) - -/// Set the error message with RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING and append the previous -/// error. -/** - * This function sets the error message using the given format string, and appends and resets the - * latest error string. - * The resulting formatted string is silently truncated at RCUTILS_ERROR_MESSAGE_MAX_LENGTH. - * - * If there is no previous error, has same behavior as RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING. - * - * \param[in] format_string The string to be used as the format of the error message. - * \param[in] ... Arguments for the format string. - */ -#define RMW_SET_ERROR_MSG_WITH_FORMAT_STRING_AND_APPEND_PREV_ERROR(format_string, ...) \ - RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING_AND_APPEND_PREV_ERROR(format_string, __VA_ARGS__) - -#ifdef __cplusplus -} -#endif - -#endif // RMW__ERROR_HANDLING_H_ diff --git a/src/rmw/event.h b/src/rmw/event.h deleted file mode 100755 index a474d80bb..000000000 --- a/src/rmw/event.h +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2019 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__EVENT_H_ -#define RMW__EVENT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" - -#include "rmw/macros.h" -#include "rmw/types.h" -#include "rmw/ret_types.h" -#include "rmw/visibility_control.h" - -/// Define publisher/subscription events -typedef enum rmw_event_type_e -{ - // must be zero or rmw_get_zero_initialized_event will break - RMW_EVENT_INVALID = 0, - - // subscription events - RMW_EVENT_LIVELINESS_CHANGED, - RMW_EVENT_REQUESTED_DEADLINE_MISSED, - RMW_EVENT_REQUESTED_QOS_INCOMPATIBLE, - RMW_EVENT_MESSAGE_LOST, - RMW_EVENT_SUBSCRIPTION_INCOMPATIBLE_TYPE, - RMW_EVENT_SUBSCRIPTION_MATCHED, - - // publisher events - RMW_EVENT_LIVELINESS_LOST, - RMW_EVENT_OFFERED_DEADLINE_MISSED, - RMW_EVENT_OFFERED_QOS_INCOMPATIBLE, - RMW_EVENT_PUBLISHER_INCOMPATIBLE_TYPE, - RMW_EVENT_PUBLICATION_MATCHED, - - // sentinel value - RMW_EVENT_TYPE_MAX -} rmw_event_type_t; - -/// Encapsulate the RMW event implementation, data, and type. -typedef struct RMW_PUBLIC_TYPE rmw_event_s -{ - /// Implementation identifier, used to ensure two different implementations are not being mixed. - const char * implementation_identifier; - /// Data specific to this event type from either the publisher or subscriber. - void * data; - /// The event type that occurred. - rmw_event_type_t event_type; -} rmw_event_t; - -/// Return a zero initialized event structure. -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_event_t -rmw_get_zero_initialized_event(void); - -/// Initialize a rmw publisher event. -/** - * \param[inout] rmw_event to initialize - * \param[in] publisher to initialize with - * \param[inout] event_type for the event to initialize - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if invalid argument, or - * \return `RMW_RET_UNSUPPORTED` if event_type is not supported, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_publisher_event_init( - rmw_event_t * rmw_event, - const rmw_publisher_t * publisher, - rmw_event_type_t event_type); - -/// Initialize a rmw subscription event. -/** - * \param[inout] rmw_event to initialize - * \param[in] subscription to initialize with - * \param[inout] event_type for the event to handle - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if invalid argument, or - * \return `RMW_RET_UNSUPPORTED` if event_type is not supported, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_subscription_event_init( - rmw_event_t * rmw_event, - const rmw_subscription_t * subscription, - rmw_event_type_t event_type); - -/// Take an event from the event handle. -/** - * \param[in] event_handle event object to take from - * \param[inout] event_info event info object to write taken data into - * \param[out] taken boolean flag indicating if an event was taken or not - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation failed, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_take_event( - const rmw_event_t * event_handle, - void * event_info, - bool * taken); - -/// Finalize an rmw_event_t. -/** - * \param[in] event to finalize - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_event_fini(rmw_event_t * event); - - -/// Check if an event type is supported by the RMW implementation. -/* - * \param[in] rmw_event_type to check - * \return True if the event is supported false otherwise. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -bool -rmw_event_type_is_supported(rmw_event_type_t rmw_event_type); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__EVENT_H_ diff --git a/src/rmw/event_callback_type.h b/src/rmw/event_callback_type.h deleted file mode 100755 index 8833b49fc..000000000 --- a/src/rmw/event_callback_type.h +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2021 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__EVENT_CALLBACK_TYPE_H_ -#define RMW__EVENT_CALLBACK_TYPE_H_ - -#include - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Common event callback type signature. -/** - * Event callbacks of this type can be called in various scenarios, e.g. - * data becomes available on a subscription, a QoS event has occurred, or - * something similar. - * - * The user_data argument is given by the user when registering the callback, - * and is given back to the callback each time so it can have associated, - * user-defined state. - * - * The number_of_events argument indicates the number of events since the - * callback was called. - * This is most often 1, but can be > 1 when events occur before the callback - * is registered. - * It should never be 0. - * - * \sa rmw_subscription_set_on_new_message_callback() - * \sa rmw_service_set_on_new_request_callback() - * \sa rmw_client_set_on_new_response_callback() - * \sa rmw_event_set_callback() - */ -typedef void (* rmw_event_callback_t)(const void * user_data, size_t number_of_events); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__EVENT_CALLBACK_TYPE_H_ diff --git a/src/rmw/events_statuses/events_statuses.h b/src/rmw/events_statuses/events_statuses.h deleted file mode 100755 index 7c0ab929c..000000000 --- a/src/rmw/events_statuses/events_statuses.h +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__EVENTS_STATUSES__EVENTS_STATUSES_H_ -#define RMW__EVENTS_STATUSES__EVENTS_STATUSES_H_ - -#include "rmw/events_statuses/incompatible_qos.h" -#include "rmw/events_statuses/incompatible_type.h" -#include "rmw/events_statuses/liveliness_changed.h" -#include "rmw/events_statuses/liveliness_lost.h" -#include "rmw/events_statuses/matched.h" -#include "rmw/events_statuses/message_lost.h" -#include "rmw/events_statuses/offered_deadline_missed.h" -#include "rmw/events_statuses/requested_deadline_missed.h" - -#endif // RMW__EVENTS_STATUSES__EVENTS_STATUSES_H_ diff --git a/src/rmw/events_statuses/incompatible_qos.h b/src/rmw/events_statuses/incompatible_qos.h deleted file mode 100755 index 018cd6a45..000000000 --- a/src/rmw/events_statuses/incompatible_qos.h +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__EVENTS_STATUSES__INCOMPATIBLE_QOS_H_ -#define RMW__EVENTS_STATUSES__INCOMPATIBLE_QOS_H_ - -#include - -#include "rmw/qos_policy_kind.h" -#include "rmw/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -typedef struct RMW_PUBLIC_TYPE rmw_qos_incompatible_event_status_s -{ - /** - * Total cumulative number of times the concerned subscription discovered a - * publisher for the same topic with an offered QoS that was incompatible - * with that requested by the subscription. - */ - int32_t total_count; - /** - * The change in total_count since the last time the status was read. - */ - int32_t total_count_change; - /** - * The Qos Policy Kind of one of the policies that was found to be - * incompatible the last time an incompatibility was detected. - */ - rmw_qos_policy_kind_t last_policy_kind; -} rmw_qos_incompatible_event_status_t; - -/// Event state for a subscription's 'RMW_EVENT_REQUESTED_QOS_INCOMPATIBLE' events. -typedef rmw_qos_incompatible_event_status_t rmw_requested_qos_incompatible_event_status_t; - -/// Event state for a publisher's 'RMW_EVENT_OFFERED_QOS_INCOMPATIBLE' events. -typedef rmw_qos_incompatible_event_status_t rmw_offered_qos_incompatible_event_status_t; - -#ifdef __cplusplus -} -#endif - -#endif // RMW__EVENTS_STATUSES__INCOMPATIBLE_QOS_H_ diff --git a/src/rmw/events_statuses/incompatible_type.h b/src/rmw/events_statuses/incompatible_type.h deleted file mode 100755 index 9471e24e7..000000000 --- a/src/rmw/events_statuses/incompatible_type.h +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__EVENTS_STATUSES__INCOMPATIBLE_TYPE_H_ -#define RMW__EVENTS_STATUSES__INCOMPATIBLE_TYPE_H_ - -#include - -#include "rmw/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Incompatible type information provided by a topic. -typedef struct RMW_PUBLIC_TYPE rmw_incompatible_type_status_s -{ - /// Lifetime cumulative number of incompatible types detected. - int32_t total_count; - /// The incremental number of incompatible types detected since the status was read. - int32_t total_count_change; -} rmw_incompatible_type_status_t; - -#ifdef __cplusplus -} -#endif - -#endif // RMW__EVENTS_STATUSES__INCOMPATIBLE_TYPE_H_ diff --git a/src/rmw/events_statuses/liveliness_changed.h b/src/rmw/events_statuses/liveliness_changed.h deleted file mode 100755 index e7abf7290..000000000 --- a/src/rmw/events_statuses/liveliness_changed.h +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__EVENTS_STATUSES__LIVELINESS_CHANGED_H_ -#define RMW__EVENTS_STATUSES__LIVELINESS_CHANGED_H_ - -#include - -#include "rmw/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// QoS Liveliness Changed information provided by a subscription. -typedef struct RMW_PUBLIC_TYPE rmw_liveliness_changed_status_s -{ - /** - * The total number of currently active Publishers which publish to the topic associated with - * the Subscription. - * This count increases when a newly matched Publisher asserts its liveliness for the first time - * or when a Publisher previously considered to be not alive reasserts its liveliness. - * The count decreases when a Publisher considered alive fails to assert its liveliness and - * becomes not alive, whether because it was deleted normally or for some other reason. - */ - int32_t alive_count; - /** - * The total count of current Publishers which publish to the topic associated with the - * Subscription that are no longer asserting their liveliness. - * This count increases when a Publisher considered alive fails to assert its liveliness and - * becomes not alive for some reason other than the normal deletion of that Publisher. - * It decreases when a previously not alive Publisher either reasserts its liveliness or is - * deleted normally. - */ - int32_t not_alive_count; - /// The change in the alive_count since the status was last read. - int32_t alive_count_change; - /// The change in the not_alive_count since the status was last read. - int32_t not_alive_count_change; -} rmw_liveliness_changed_status_t; - -#ifdef __cplusplus -} -#endif - -#endif // RMW__EVENTS_STATUSES__LIVELINESS_CHANGED_H_ diff --git a/src/rmw/events_statuses/liveliness_lost.h b/src/rmw/events_statuses/liveliness_lost.h deleted file mode 100755 index a91879a6c..000000000 --- a/src/rmw/events_statuses/liveliness_lost.h +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__EVENTS_STATUSES__LIVELINESS_LOST_H_ -#define RMW__EVENTS_STATUSES__LIVELINESS_LOST_H_ - -#include - -#include "rmw/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// QoS Liveliness Lost information provided by a publisher. -typedef struct RMW_PUBLIC_TYPE rmw_liveliness_lost_status_s -{ - /** - * Lifetime cumulative number of times that a previously-alive Publisher became not alive due to - * a failure to actively signal its liveliness within its offered liveliness period. - * This count does not change when an already not alive Publisher simply remains not alive for - * another liveliness period. - */ - int32_t total_count; - /// The change in total_count since the last time the status was last read. - int32_t total_count_change; -} rmw_liveliness_lost_status_t; - -#ifdef __cplusplus -} -#endif - -#endif // RMW__EVENTS_STATUSES__LIVELINESS_LOST_H_ diff --git a/src/rmw/events_statuses/matched.h b/src/rmw/events_statuses/matched.h deleted file mode 100755 index b798b9ca4..000000000 --- a/src/rmw/events_statuses/matched.h +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2023 Sony Group Corporation. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__EVENTS_STATUSES__MATCHED_H_ -#define RMW__EVENTS_STATUSES__MATCHED_H_ - -#include -#include - -#include "rmw/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -typedef struct RMW_PUBLIC_TYPE rmw_matched_status_s -{ - /** - * For publisher, the total cumulative count of subscribers matched to the concerned publisher. - * - * For subscriber, the total cumulative count of publishers matched to the concerned subscriber. - */ - size_t total_count; - - /** - * total_count change since last time the status was read. - */ - size_t total_count_change; - - /** - * For publisher, the number of subscribers currently matched to the concerned publisher. - * - * For subscriber, the number of publishers currently matched to the concerned subscriber. - */ - size_t current_count; - - /** - * The current_count change since last time the status was read. - */ - int32_t current_count_change; -} rmw_matched_status_t; - -#ifdef __cplusplus -} -#endif - -#endif // RMW__EVENTS_STATUSES__MATCHED_H_ diff --git a/src/rmw/events_statuses/message_lost.h b/src/rmw/events_statuses/message_lost.h deleted file mode 100755 index b08fc8d5c..000000000 --- a/src/rmw/events_statuses/message_lost.h +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__EVENTS_STATUSES__MESSAGE_LOST_H_ -#define RMW__EVENTS_STATUSES__MESSAGE_LOST_H_ - -#include - -#include "rmw/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -typedef struct RMW_PUBLIC_TYPE rmw_message_lost_status_s -{ - /// Total number of messages lost. - size_t total_count; - /// Number of messages lost since last callback. - size_t total_count_change; -} rmw_message_lost_status_t; - -#ifdef __cplusplus -} -#endif - -#endif // RMW__EVENTS_STATUSES__MESSAGE_LOST_H_ diff --git a/src/rmw/events_statuses/offered_deadline_missed.h b/src/rmw/events_statuses/offered_deadline_missed.h deleted file mode 100755 index 84acb0426..000000000 --- a/src/rmw/events_statuses/offered_deadline_missed.h +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__EVENTS_STATUSES__OFFERED_DEADLINE_MISSED_H_ -#define RMW__EVENTS_STATUSES__OFFERED_DEADLINE_MISSED_H_ - -#include - -#include "rmw/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// QoS Deadline Missed information provided by a publisher. -typedef struct RMW_PUBLIC_TYPE rmw_offered_deadline_missed_status_s -{ - /** - * Lifetime cumulative number of offered deadline periods elapsed during which a Publisher failed - * to provide data. - * Missed deadlines accumulate; that is, each deadline period the total_count will be incremented - * by one. - */ - int32_t total_count; - /// The change in total_count since the last time the status was last read. - int32_t total_count_change; -} rmw_offered_deadline_missed_status_t; - -#ifdef __cplusplus -} -#endif - -#endif // RMW__EVENTS_STATUSES__OFFERED_DEADLINE_MISSED_H_ diff --git a/src/rmw/events_statuses/requested_deadline_missed.h b/src/rmw/events_statuses/requested_deadline_missed.h deleted file mode 100755 index b39cb5a32..000000000 --- a/src/rmw/events_statuses/requested_deadline_missed.h +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__EVENTS_STATUSES__REQUESTED_DEADLINE_MISSED_H_ -#define RMW__EVENTS_STATUSES__REQUESTED_DEADLINE_MISSED_H_ - -#include - -#include "rmw/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// QoS Requested Deadline Missed information provided by a subscription. -typedef struct RMW_PUBLIC_TYPE rmw_requested_deadline_missed_status_s -{ - /** - * Lifetime cumulative number of missed deadlines detected for any instance read by the - * subscription. - * Missed deadlines accumulate; that is, each deadline period the total_count will be incremented - * by one for each instance for which data was not received. - */ - int32_t total_count; - /// The incremental number of deadlines detected since the status was read. - int32_t total_count_change; -} rmw_requested_deadline_missed_status_t; - -#ifdef __cplusplus -} -#endif - -#endif // RMW__EVENTS_STATUSES__REQUESTED_DEADLINE_MISSED_H_ diff --git a/src/rmw/features.h b/src/rmw/features.h deleted file mode 100755 index 18ef2fb6b..000000000 --- a/src/rmw/features.h +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - - -#ifndef RMW__FEATURES_H_ -#define RMW__FEATURES_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" - -#include "rmw/macros.h" -#include "rmw/types.h" -#include "rmw/ret_types.h" -#include "rmw/visibility_control.h" - -/// List of optional rmw features. -/** - * Some of the features listed here might become mandatory in the feature, in which case all rmw - * implementations should return `true`. - * - * There might be some optional features that are not listed here, but the goal is to have all of - * them added. - */ -typedef enum RMW_PUBLIC_TYPE rmw_feature_e -{ - /// `rmw_message_info_t.publication_sequence_number` is filled correctly - /// by the rmw implementation. - RMW_FEATURE_MESSAGE_INFO_PUBLICATION_SEQUENCE_NUMBER = 0, - /// `rmw_message_info_t.reception_sequence_number` is filled correctly - /// by the rmw implementation. - RMW_FEATURE_MESSAGE_INFO_RECEPTION_SEQUENCE_NUMBER = 1, - /// deferred description dynamic type rosidl_message_type_support_t structs are allowed, and the - /// middleware MUST populate them on type discovery - RMW_MIDDLEWARE_SUPPORTS_TYPE_DISCOVERY = 2, - /// dynamic type subscriptions will use take_dynamic_message_with_info() - RMW_MIDDLEWARE_CAN_TAKE_DYNAMIC_MESSAGE = 3, -} rmw_feature_t; - -/// Query if a feature is supported by the rmw implementation. -/** - * \return `true` if the rmw implementation supports the feature, `false` if not. - */ -RMW_PUBLIC -bool -rmw_feature_supported(rmw_feature_t feature); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__FEATURES_H_ diff --git a/src/rmw/get_network_flow_endpoints.h b/src/rmw/get_network_flow_endpoints.h deleted file mode 100755 index 5e8569985..000000000 --- a/src/rmw/get_network_flow_endpoints.h +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2020 Ericsson AB -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__GET_NETWORK_FLOW_ENDPOINTS_H_ -#define RMW__GET_NETWORK_FLOW_ENDPOINTS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/network_flow_endpoint_array.h" -#include "rmw/types.h" -#include "rmw/visibility_control.h" - -/// Get network flow endpoints of a publisher -/** - * Query the underlying middleware for a given publisher's network flow endpoints - * - * \param[in] publisher the publisher instance to inspect - * \param[in] allocator allocator to be used when allocating space for network_flow_endpoint_array_t - * \param[out] network_flow_endpoint_array the network flow endpoints - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if any argument is null, - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_UNSUPPORTED` if not supported, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_publisher_get_network_flow_endpoints( - const rmw_publisher_t * publisher, - rcutils_allocator_t * allocator, - rmw_network_flow_endpoint_array_t * network_flow_endpoint_array); - -/// Get network flow endpoints of a subscription -/** - * Query the underlying middleware for a given subscription's network flow endpoints - * - * \param[in] subscription the subscription instance to inspect - * \param[in] allocator allocator to be used when allocating space for network_flow_endpoint_array_t - * \param[out] network_flow_endpoint_array the network flow endpoints - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if any argument is null, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_UNSUPPORTED` if not supported, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_subscription_get_network_flow_endpoints( - const rmw_subscription_t * subscription, - rcutils_allocator_t * allocator, - rmw_network_flow_endpoint_array_t * network_flow_endpoint_array); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__GET_NETWORK_FLOW_ENDPOINTS_H_ diff --git a/src/rmw/get_node_info_and_types.h b/src/rmw/get_node_info_and_types.h deleted file mode 100755 index 0b6da2982..000000000 --- a/src/rmw/get_node_info_and_types.h +++ /dev/null @@ -1,319 +0,0 @@ -// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__GET_NODE_INFO_AND_TYPES_H_ -#define RMW__GET_NODE_INFO_AND_TYPES_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/macros.h" -#include "rmw/names_and_types.h" -#include "rmw/types.h" -#include "rmw/visibility_control.h" - -/// Return all topic names and types for which a given remote node has subscriptions. -/** - * This function returns an array of topic names and types for which a given remote - * node has subscriptions, as discovered so far by the given local node. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to query the ROS graph using the same node concurrently. - * However, when querying subscribed topic names and types: - * - Access to the array of names and types is not synchronized. - * It is not safe to read or write `topic_names_and_types` - * while rmw_get_subscriber_names_and_types_by_node() uses it. - * - Access to node name and namespace is read-only but it is not synchronized. - * Concurrent `node_name` and `node_namespace` reads are safe, but concurrent reads and - * writes are not. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \pre Given `node` must be a valid node handle, as returned by rmw_create_node(). - * \pre Given `topic_names_and_types` must be a zero-initialized array of names and types, - * as returned by rmw_get_zero_initialized_names_and_types(). - * - * \param[in] node Local node to query the ROS graph. - * \param[in] allocator Allocator to be used when populating the `topic_names_and_types` array. - * \param[in] node_name Name of the remote node to get information for. - * \param[in] node_namespace Namespace of the remote node to get information for. - * \param[in] no_demangle Whether to demangle all topic names following ROS conventions or not. - * \param[out] topic_names_and_types Array of topic names and types the remote node has created - * a subscription for, populated on success but left unchanged on failure. - * If populated, it is up to the caller to finalize this array later on - * using rmw_names_and_types_fini(). - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `allocator` is not valid, - * by rcutils_allocator_is_valid() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_name` is not valid, - * by rmw_validate_node_name() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_namespace` is not valid, - * by rmw_validate_namespace() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `topic_names_and_types` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `topic_names_and_types` is not a - * zero-initialized array, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_NODE_NAME_NON_EXISTENT` if the node name wasn't found, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_get_subscriber_names_and_types_by_node( - const rmw_node_t * node, - rcutils_allocator_t * allocator, - const char * node_name, - const char * node_namespace, - bool no_demangle, - rmw_names_and_types_t * topic_names_and_types); - -/// Return all topic names and types for which a given remote node has publishers. -/** - * This function returns an array of topic names and types for which a given remote - * node has created publishers, as discovered so far by the given local node. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to query the ROS graph using the same node concurrently. - * However, when querying published topic names and types: - * - Access to the array of names and types is not synchronized. - * It is not safe to read or write `topic_names_and_types` - * while rmw_get_publisher_names_and_types_by_node() uses it. - * - Access to node name and namespace is read-only but it is not synchronized. - * Concurrent `node_name` and `node_namespace` reads are safe, but concurrent reads and - * writes are not. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \pre Given `node` must be a valid node handle, as returned by rmw_create_node(). - * \pre Given `topic_names_and_types` must be a zero-initialized array of names and types, - * as returned by rmw_get_zero_initialized_names_and_types(). - * - * \param[in] node Local node to query the ROS graph. - * \param[in] allocator Allocator to be used when populating the `topic_names_and_types` array. - * \param[in] node_name Name of the remote node to get information for. - * \param[in] node_namespace Namespace of the remote node to get information for. - * \param[in] no_demangle Whether to demangle all topic names following ROS conventions or not. - * \param[out] topic_names_and_types Array of topic names and types the remote node has created - * a publisher for, populated on success but left unchanged on failure. - * If populated, it is up to the caller to finalize this array later on - * using rmw_names_and_types_fini(). - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `allocator` is not valid, - * by rcutils_allocator_is_valid() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_name` is not valid, - * by rmw_validate_node_name() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_namespace` is not valid, - * by rmw_validate_namespace() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `topic_names_and_types` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `topic_names_and_types` is not a - * zero-initialized array, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_NODE_NAME_NON_EXISTENT` if the node name wasn't found, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_get_publisher_names_and_types_by_node( - const rmw_node_t * node, - rcutils_allocator_t * allocator, - const char * node_name, - const char * node_namespace, - bool no_demangle, - rmw_names_and_types_t * topic_names_and_types); - -/// Return all service names and types for which a given remote node has servers. -/** - * This function returns an array of service names and types for which a given remote - * node has servers, as discovered so far by the given local node. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to query the ROS graph using the same node concurrently. - * However, when querying served service names and types: - * - Access to the array of names and types is not synchronized. - * It is not safe to read or write `service_names_and_types` - * while rmw_get_service_names_and_types_by_node() uses it. - * - Access to node name and namespace is read-only but it is not synchronized. - * Concurrent `node_name` and `node_namespace` reads are safe, but concurrent reads and - * writes are not. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \param[in] node Local node to query the ROS graph. - * \param[in] allocator Allocator to be used when populating the `service_names_and_types` array. - * \param[in] node_name Name of the remote node to get information for. - * \param[in] node_namespace Namespace of the remote node to get information for. - * \param[out] service_names_and_types Array of service names and types the remote node has - * created a service server for, populated on success but left unchanged on failure. - * If populated, it is up to the caller to finalize this array later on - * using rmw_names_and_types_fini(). - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `allocator` is not valid, - * by rcutils_allocator_is_valid() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_name` is not valid, - * by rmw_validate_node_name() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_namespace` is not valid, - * by rmw_validate_namespace() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service_names_and_types` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service_names_and_types` is not a - * zero-initialized array, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_NODE_NAME_NON_EXISTENT` if the node name wasn't found, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_get_service_names_and_types_by_node( - const rmw_node_t * node, - rcutils_allocator_t * allocator, - const char * node_name, - const char * node_namespace, - rmw_names_and_types_t * service_names_and_types); - -/// Return all service names and types for which a given remote node has clients. -/** - * This function returns an array of service names and types for which a given remote - * node has clients, as discovered so far by the given local node. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to query the ROS graph using the same node concurrently. - * However, when querying served service names and types: - * - Access to the array of names and types is not synchronized. - * It is not safe to read or write `service_names_and_types` - * while rmw_get_client_names_and_types_by_node() uses it. - * - Access to C-style string arguments is read-only but it is not synchronized. - * Concurrent `node_name` and `node_namespace` reads are safe, but concurrent reads and - * writes are not. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \param[in] node Local node to query the ROS graph. - * \param[in] allocator Allocator to be used when populating the `service_names_and_types` array. - * \param[in] node_name Name of the remote node to get information for. - * \param[in] node_namespace Namespace of the remote node to get information for. - * \param[out] service_names_and_types Array of service names and types the remote node has - * created a service client for, populated on success but left unchanged on failure. - * If populated, it is up to the caller to finalize this array later on - * using rmw_names_and_types_fini(). - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `allocator` is not valid, - * by rcutils_allocator_is_valid() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_name` is not valid, - * by rmw_validate_node_name() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_namespace` is not valid, - * by rmw_validate_namespace() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service_names_and_types` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service_names_and_types` is not a - * zero-initialized array, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_NODE_NAME_NON_EXISTENT` if the node name wasn't found, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_get_client_names_and_types_by_node( - const rmw_node_t * node, - rcutils_allocator_t * allocator, - const char * node_name, - const char * node_namespace, - rmw_names_and_types_t * service_names_and_types); - -#ifdef __cplusplus -} -#endif -#endif // RMW__GET_NODE_INFO_AND_TYPES_H_ diff --git a/src/rmw/get_service_names_and_types.h b/src/rmw/get_service_names_and_types.h deleted file mode 100755 index 5bf72491a..000000000 --- a/src/rmw/get_service_names_and_types.h +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__GET_SERVICE_NAMES_AND_TYPES_H_ -#define RMW__GET_SERVICE_NAMES_AND_TYPES_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/macros.h" -#include "rmw/names_and_types.h" -#include "rmw/types.h" -#include "rmw/visibility_control.h" - -/// Return all service names and types in the ROS graph. -/** - * This function returns an array of all service names and types in the ROS graph - * i.e. for which a server and/or client exists, as discovered so far by the given - * local node. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to query the ROS graph using the same node concurrently. - * However, when querying services names and types: - * - Access to the array of names and types is not synchronized. - * It is not safe to read or write `service_names_and_types` - * while rmw_get_service_names_and_types() uses it. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \pre Given `node` must be a valid node handle, as returned by rmw_create_node(). - * \pre Given `services_names_and_types` must be a zero-initialized array of names and types, - * as returned by rmw_get_zero_initialized_names_and_types(). - * - * \param[in] node Node to query the ROS graph. - * \param[in] allocator Allocator to be used when populating the `service_names_and_types` array. - * \param[out] service_names_and_types Array of service names and their types, - * populated on success but left unchanged on failure. - * If populated, it is up to the caller to finalize this array later - * on using rmw_names_and_types_fini(). - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `allocator` is not valid, - * by rcutils_allocator_is_valid() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service_names_and_types` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service_names_and_types` is not a - * zero-initialized array, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_get_service_names_and_types( - const rmw_node_t * node, - rcutils_allocator_t * allocator, - rmw_names_and_types_t * service_names_and_types); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__GET_SERVICE_NAMES_AND_TYPES_H_ diff --git a/src/rmw/get_topic_endpoint_info.h b/src/rmw/get_topic_endpoint_info.h deleted file mode 100755 index 8e873b87c..000000000 --- a/src/rmw/get_topic_endpoint_info.h +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__GET_TOPIC_ENDPOINT_INFO_H_ -#define RMW__GET_TOPIC_ENDPOINT_INFO_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/topic_endpoint_info_array.h" -#include "rmw/visibility_control.h" - -/// Retrieve endpoint information for each known publisher of a given topic. -/** - * This function returns an array of endpoint information for each publisher - * of a given topic, as discovered so far by the given node. - * Endpoint information includes the publisher's node name and namespace, - * the associated topic type, the publisher's gid, and the publisher QoS profile. - * Names of non-existent topics are allowed, in which case an empty array will be returned. - * - * Depending on the RMW in use, discovery may be asynchronous. Therefore, creating a publisher - * and then calling this API may not show the newly created publisher immediately. - * - * \par QoS that are correctly read - * The QoS profiles returned might have some invalid fields. - * The rmw implementation must set the invalid fields to `RMW_QOS_POLICY_*_UNKNOWN`. - * For DDS based implementations, the only QoS policies that are guaranteed to be shared - * during discovery are the ones that participate in endpoint matching. - * From the current QoS settings available, the only ones not shared by DDS based - * implementations are `history` and `history_depth`. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to query the ROS graph using the same node concurrently. - * However, when querying topic names and types: - * - Access to the array of topic endpoint information is not synchronized. - * It is not safe to read or write `publishers_info` - * while rmw_get_publishers_info_by_topic() uses it. - * - Access to C-style string arguments is read-only but it is not synchronized. - * Concurrent `topic_name` reads are safe, but concurrent reads and writes are not. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \pre Given `node` must be a valid node handle, as returned by rmw_create_node(). - * \pre Given `publishers_info` must be a zero-initialized array of endpoints' information, - * as returned by rmw_get_zero_initialized_topic_endpoint_info_array(). - * - * \param[in] node Node to query the ROS graph. - * \param[in] allocator Allocator to be used when populating the `publishers_info` array. - * \param[in] topic_name Name of the topic for publisher lookup, often a fully qualified - * topic name but not necessarily (see rmw_create_publisher()). - * \param[in] no_mangle Whether to mangle the topic name before publisher lookup or not. - * \param[out] publishers_info Array of publisher information, populated on success, - * left unchanged on failure. - * If populated, it is up to the caller to finalize this array later on, - * using rmw_topic_endpoint_info_array_fini(). - * QoS Profiles in the info array will use RMW_DURATION_INFINITE for infinite durations, - * avoiding exposing any implementation-specific values. - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `allocator` is not valid, - * by rcutils_allocator_is_valid() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `topic_name` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `publishers_info` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `publishers_info` is not a - * zero-initialized array, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_get_publishers_info_by_topic( - const rmw_node_t * node, - rcutils_allocator_t * allocator, - const char * topic_name, - bool no_mangle, - rmw_topic_endpoint_info_array_t * publishers_info); - -/// Retrieve endpoint information for each known subscription of a given topic. -/** - * This function returns an array of endpoint information for each subscription - * of a given topic, as discovered so far by the given node. - * Endpoint information includes the subscription's node name and namespace, - * the associated topic type, the subscription's gid, and the subscription QoS profile. - * Names of non-existent topics are allowed, in which case an empty array will be returned. - * - * Depending on the RMW in use, discovery may be asynchronous. Therefore, creating a subscription - * and then calling this API may not show the newly created subscription immediately. - * - * \par QoS that are correctly read - * Not all QoS may be read correctly, \sa rmw_get_publishers_info_by_topic() for more details. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to query the ROS graph using the same node concurrently. - * However, when querying subscriptions' information: - * - Access to the array of topic endpoint information is not synchronized. - * It is not safe to read or write `subscriptions_info` - * while rmw_get_subscriptions_info_by_topic() uses it. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \pre Given `node` must be a valid node handle, as returned by rmw_create_node(). - * \pre Given `subscriptions_info` must be a zero-initialized array of endpoints' information, - * as returned by rmw_get_zero_initialized_topic_endpoint_info_array(). - * - * \param[in] node Node to query the ROS graph. - * \param[in] allocator Allocator to be used when populating the `subscriptions_info` array. - * \param[in] topic_name Name of the topic for subscription lookup, often a fully qualified - * topic name but not necessarily (see rmw_create_subscription()). - * \param[in] no_mangle Whether to mangle the topic name before subscription lookup or not. - * \param[out] subscriptions_info Array of subscription information, populated on success, - * left unchanged on failure. - * If populated, it is up to the caller to finalize this array later on, - * using rmw_topic_endpoint_info_array_fini(). - * QoS Profiles in the info array will use RMW_DURATION_INFINITE for infinite durations, - * avoiding exposing any implementation-specific values. - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `allocator` is not valid, - * by rcutils_allocator_is_valid() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `topic_name` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `subscriptions_info` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `subscriptions_info` is not a - * zero-initialized array, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_get_subscriptions_info_by_topic( - const rmw_node_t * node, - rcutils_allocator_t * allocator, - const char * topic_name, - bool no_mangle, - rmw_topic_endpoint_info_array_t * subscriptions_info); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__GET_TOPIC_ENDPOINT_INFO_H_ diff --git a/src/rmw/get_topic_names_and_types.h b/src/rmw/get_topic_names_and_types.h deleted file mode 100755 index d070a3514..000000000 --- a/src/rmw/get_topic_names_and_types.h +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__GET_TOPIC_NAMES_AND_TYPES_H_ -#define RMW__GET_TOPIC_NAMES_AND_TYPES_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/macros.h" -#include "rmw/names_and_types.h" -#include "rmw/types.h" -#include "rmw/visibility_control.h" - -/// Return all topic names and types in the ROS graph. -/** - * This function returns an array of all topic names and types in the ROS graph - * i.e. for which a publisher and/or a subscription exists, as discovered so far - * by the given local node. - * - * Unless `no_demangle` is true, some demangling and filtering may take place when - * listing topics as implemented by the middleware. - * Whether demangling applies or not, and how it applies, depends on the underlying - * implementation. - * See http://design.ros2.org/articles/topic_and_service_names.html for an example - * on how it is used in DDS and RTPS based implementations. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to query the ROS graph using the same node concurrently. - * However, when querying topic names and types: - * - Access to the array of names and types is not synchronized. - * It is not safe to read or write `topic_names_and_types` - * while rmw_get_topic_names_and_types() uses it. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \pre Given `node` must be a valid node handle, as returned by rmw_create_node(). - * \pre Given `topic_names_and_types` must be a zero-initialized array of names and types, - * as returned by rmw_get_zero_initialized_names_and_types(). - * - * \param[in] node Node to query the ROS graph. - * \param[in] allocator Allocator to be used when populating the `topic_names_and_types` array. - * \param[in] no_demangle Whether to demangle all topic names following ROS conventions or not. - * \param[out] topic_names_and_types Array of topic names and their types, - * populated on success but left unchanged on failure. - * If populated, it is up to the caller to finalize this array later on - * using rmw_names_and_types_fini(). - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `allocator` is not valid, by rcutils_allocator_is_valid() - * definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `topic_names_and_types` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `topic_names_and_types` is not a - * zero-initialized array, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_get_topic_names_and_types( - const rmw_node_t * node, - rcutils_allocator_t * allocator, - bool no_demangle, - rmw_names_and_types_t * topic_names_and_types); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__GET_TOPIC_NAMES_AND_TYPES_H_ diff --git a/src/rmw/impl/config.h b/src/rmw/impl/config.h deleted file mode 100755 index f4318f6bd..000000000 --- a/src/rmw/impl/config.h +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__IMPL__CONFIG_H_ -#define RMW__IMPL__CONFIG_H_ - -#ifndef RMW_AVOID_MEMORY_ALLOCATION -// Default to off. -// TODO(wjwwood): document these configuration flags. -#define RMW_AVOID_MEMORY_ALLOCATION 0 -#endif - -#endif // RMW__IMPL__CONFIG_H_ diff --git a/src/rmw/impl/cpp/demangle.hpp b/src/rmw/impl/cpp/demangle.hpp deleted file mode 100755 index 0d0da3956..000000000 --- a/src/rmw/impl/cpp/demangle.hpp +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__IMPL__CPP__DEMANGLE_HPP_ -#define RMW__IMPL__CPP__DEMANGLE_HPP_ - -#ifndef _WIN32 -// Includes for abi::__cxa_demangle. -#include -#include -#include -#endif -#include -#include - -#include "rmw/impl/config.h" - -namespace rmw -{ -namespace impl -{ -namespace cpp -{ - -/// Return the demangle name of the instance of type T. -template -std::string -demangle(const T & instance) -{ - (void)instance; -// Cannot do demangling if on Windows or if we want to avoid memory allocation. -#if !defined(_WIN32) || RMW_AVOID_MEMORY_ALLOCATION - int status = 0; - std::string mangled_typeid_name = typeid(T).name(); - - std::unique_ptr res { - abi::__cxa_demangle(mangled_typeid_name.c_str(), NULL, NULL, &status), - std::free - }; - - return (status == 0) ? res.get() : mangled_typeid_name; -#else - return typeid(T).name(); -#endif -} - -} // namespace cpp -} // namespace impl -} // namespace rmw - -#endif // RMW__IMPL__CPP__DEMANGLE_HPP_ diff --git a/src/rmw/impl/cpp/key_value.hpp b/src/rmw/impl/cpp/key_value.hpp deleted file mode 100755 index 1b82b2d12..000000000 --- a/src/rmw/impl/cpp/key_value.hpp +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__IMPL__CPP__KEY_VALUE_HPP_ -#define RMW__IMPL__CPP__KEY_VALUE_HPP_ - -#include -#include -#include - -namespace rmw -{ -namespace impl -{ -namespace cpp -{ - -// TODO(karsten1987): Implement based on -// https://github.com/PrismTech/opensplice/blob/master/docs/pdf/OpenSplice_refman_CPP.pdf -static std::map> -parse_key_value(const std::vector & kv) -{ - std::map> m; - - bool keyfound = false; - - std::string key; - std::vector value; - uint8_t prev = '\0'; - - if (kv.size() == 0) { - goto not_valid; - } - - for (uint8_t u8 : kv) { - if (keyfound) { - if ((u8 == ';') && (prev != ';')) { - prev = u8; - continue; - } else if ((u8 != ';') && (prev == ';')) { - if (value.size() == 0) { - goto not_valid; - } - m[key] = value; - - key.clear(); - value.clear(); - keyfound = false; - } else { - value.push_back(u8); - } - } - if (!keyfound) { - if (u8 == '=') { - if (key.size() == 0) { - goto not_valid; - } - keyfound = true; - } else if (isalnum(u8)) { - key.push_back(u8); - } else if ((u8 == '\0') && (key.size() == 0) && (m.size() > 0)) { - break; // accept trailing '\0' characters - } else if ((prev != ';') || (key.size() > 0)) { - goto not_valid; - } - } - prev = u8; - } - if (keyfound) { - if (value.size() == 0) { - goto not_valid; - } - m[key] = value; - } else if (key.size() > 0) { - goto not_valid; - } - return m; -not_valid: - // This is not a failure this is something that can happen because the participant_qos userData - // is used. Other participants in the system not created by rmw could use userData for something - // else. - return std::map>(); -} - -} // namespace cpp -} // namespace impl -} // namespace rmw - -#endif // RMW__IMPL__CPP__KEY_VALUE_HPP_ diff --git a/src/rmw/impl/cpp/macros.hpp b/src/rmw/impl/cpp/macros.hpp deleted file mode 100755 index 375867f52..000000000 --- a/src/rmw/impl/cpp/macros.hpp +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__IMPL__CPP__MACROS_HPP_ -#define RMW__IMPL__CPP__MACROS_HPP_ - -#include -#include -#include -#include - -#include "rmw/check_type_identifiers_match.h" -#include "rmw/error_handling.h" -#include "rmw/impl/cpp/demangle.hpp" // For demangle. - -#define RMW_TRY_PLACEMENT_NEW(Destination, BufferForNew, FailureAction, Type, ...) \ - try { \ - Destination = new(BufferForNew) Type(__VA_ARGS__); \ - } catch (const std::exception & exception) { \ - RMW_SET_ERROR_MSG( \ - ( \ - std::string("caught C++ exception ") + rmw::impl::cpp::demangle(exception) + \ - " constructing " #Type ": " + exception.what() \ - ).c_str()); \ - FailureAction; \ - } catch (...) { \ - RMW_SET_ERROR_MSG("caught unknown C++ exception constructing " #Type); \ - FailureAction; \ - } - -#define RMW_TRY_DESTRUCTOR(Statement, Type, FailureAction) \ - try { \ - Statement; \ - } catch (const std::exception & exception) { \ - RMW_SET_ERROR_MSG( \ - ( \ - std::string("caught C++ exception in destructor of " #Type ": ") + \ - rmw::impl::cpp::demangle(exception) + ": " + exception.what() \ - ).c_str()); \ - FailureAction; \ - } catch (...) { \ - RMW_SET_ERROR_MSG("caught unknown C++ exception in destructor of " #Type); \ - FailureAction; \ - } - -#define RMW_TRY_DESTRUCTOR_FROM_WITHIN_FAILURE(Statement, Type) \ - try { \ - Statement; \ - } catch (const std::exception & exception) { \ - std::stringstream ss; \ - ss << "caught C++ exception in destructor of " #Type " while handling a failure: " \ - << rmw::impl::cpp::demangle(exception) << ": " << exception.what() \ - << ", at: " << __FILE__ << ":" << __LINE__ << '\n'; \ - (std::cerr << ss.str()).flush(); \ - } catch (...) { \ - std::stringstream ss; \ - ss << "caught unknown C++ exception in destructor of " #Type << \ - " while handling a failure at: " << __FILE__ << ":" << __LINE__ << '\n'; \ - (std::cerr << ss.str()).flush(); \ - } - -#endif // RMW__IMPL__CPP__MACROS_HPP_ diff --git a/src/rmw/incompatible_qos_events_statuses.h b/src/rmw/incompatible_qos_events_statuses.h deleted file mode 100755 index 3edb98ade..000000000 --- a/src/rmw/incompatible_qos_events_statuses.h +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__INCOMPATIBLE_QOS_EVENTS_STATUSES_H_ -#define RMW__INCOMPATIBLE_QOS_EVENTS_STATUSES_H_ - -#include "rmw/events_statuses/incompatible_qos.h" - -#endif // RMW__INCOMPATIBLE_QOS_EVENTS_STATUSES_H_ diff --git a/src/rmw/init.h b/src/rmw/init.h deleted file mode 100755 index e4a6c550c..000000000 --- a/src/rmw/init.h +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright 2014-2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__INIT_H_ -#define RMW__INIT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rmw/init_options.h" -#include "rmw/macros.h" -#include "rmw/ret_types.h" -#include "rmw/visibility_control.h" - -/// Implementation defined context structure returned by rmw_init(). -/** - * This should be defined by the rmw implementation. - */ -typedef struct rmw_context_impl_s rmw_context_impl_t; - -/// Initialization context structure which is used to store init specific information. -typedef struct RMW_PUBLIC_TYPE rmw_context_s -{ - /// Locally (process local) unique ID that represents this init/shutdown cycle. - uint64_t instance_id; - /// Implementation identifier, used to ensure two different implementations are not being mixed. - const char * implementation_identifier; - /// Options used to initialize the context. - rmw_init_options_t options; - /// Domain id that is being used. - size_t actual_domain_id; - /// Implementation defined context information. - /** May be NULL if there is no implementation defined context information. */ - rmw_context_impl_t * impl; -} rmw_context_t; - -/// Return a zero initialized context structure. -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_context_t -rmw_get_zero_initialized_context(void); - -/// Initialize the middleware with the given options, and yielding an context. -/** - * Context is filled with middleware specific data upon success of this function. - * The context is used when initializing some entities like nodes and - * guard conditions, and is also required to properly call `rmw_shutdown()`. - * - * \pre The given options must have been initialized - * i.e. `rmw_init_options_init()` called on it and - * an enclave set. - * \pre The given context must be zero initialized. - * - * \post If initialization fails, context will remain zero initialized. - * \post `context->actual_domain_id` will be set with the domain id the rmw implementation is using. - * This matches `options->domain_id` if it is not RMW_DEFAULT_DOMAIN_ID. - * In other case, the value is rmw implementation dependent. - * - * \remarks If options are zero-initialized, then `RMW_RET_INVALID_ARGUMENT` is returned. - * If options are initialized but no enclave is provided, then `RMW_RET_INVALID_ARGUMENT` - * is returned. - * If context has been already initialized (`rmw_init()` was called on it), then - * `RMW_RET_INVALID_ARGUMENT` is returned. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * This should be defined by the rmw implementation. - * - * \param[in] options initialization options to be used during initialization - * \param[out] context resulting context struct - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the implementation - * identifier does not match, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_init(const rmw_init_options_t * options, rmw_context_t * context); - -/// Shutdown the middleware for a given context. -/** - * \pre The given context must be a valid context which has been initialized with `rmw_init()`. - * - * \remarks If context is zero initialized, then `RMW_RET_INVALID_ARGUMENT` is returned. - * If context has been already invalidated (`rmw_shutdown()` was called on it), then - * this function is a no-op and `RMW_RET_OK` is returned. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * This should be defined by the rmw implementation. - * - * \param[in] context resulting context struct - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if any argument are invalid, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the implementation - * identifier does not match, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_shutdown(rmw_context_t * context); - -/// Finalize a context. -/** - * This function will return early if a logical error, such as `RMW_RET_INVALID_ARGUMENT` - * or `RMW_RET_INCORRECT_RMW_IMPLEMENTATION`, ensues, leaving the given context unchanged. - * Otherwise, it will proceed despite errors, freeing as much resources as it can and zero - * initializing the given context. - * - * \pre The context to be finalized must have been previously initialized with - * `rmw_init()`, and then later invalidated with `rmw_shutdown()`. - * - * \remarks If context is zero initialized, then `RMW_RET_INVALID_ARGUMENT` is returned. - * If context is initialized and valid (`rmw_shutdown()` was not called on it), then - * `RMW_RET_INVALID_ARGUMENT` is returned. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes [1] - * [1] if `atomic_is_lock_free()` returns true for `atomic_uint_least64_t` - * - * This should be defined by the rmw implementation. - * - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the implementation - * identifier does not match, or - * \return `RMW_RET_ERROR` if an unspecified error occur. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_context_fini(rmw_context_t * context); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__INIT_H_ diff --git a/src/rmw/init_options.h b/src/rmw/init_options.h deleted file mode 100755 index 040c3431b..000000000 --- a/src/rmw/init_options.h +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright 2014-2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__INIT_OPTIONS_H_ -#define RMW__INIT_OPTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" -#include "rmw/discovery_options.h" -#include "rmw/domain_id.h" -#include "rmw/enclave.h" -#include "rmw/macros.h" -#include "rmw/ret_types.h" -#include "rmw/security_options.h" -#include "rmw/visibility_control.h" - -/// Implementation defined options structure used during rmw_init(). -/** - * This should be defined by the rmw implementation. - */ -typedef struct rmw_init_options_impl_s rmw_init_options_impl_t; - -/// Options structure used during rmw_init(). -typedef struct RMW_PUBLIC_TYPE rmw_init_options_s -{ - /// Locally (process local) unique ID that represents this init/shutdown cycle. - /** - * This should be set by the caller of `rmw_init()` to a number that is - * unique within this process. - * It is designed to be used with `rcl_init()` and `rcl_get_instance_id()`. - */ - uint64_t instance_id; - /// Implementation identifier, used to ensure two different implementations are not being mixed. - const char * implementation_identifier; - /// ROS domain id - size_t domain_id; - /// Security options - rmw_security_options_t security_options; - /// Configure discovery - rmw_discovery_options_t discovery_options; - /// Enclave, name used to find security artifacts in a sros2 keystore. - char * enclave; - - // TODO(wjwwood): replace with rmw_allocator_t when that refactor happens - /// Allocator used during internal allocation of init options, if needed. - rcutils_allocator_t allocator; - /// Implementation defined init options. - /** May be NULL if there are no implementation defined options. */ - rmw_init_options_impl_t * impl; -} rmw_init_options_t; - -/// Return a zero initialized init options structure. -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_init_options_t -rmw_get_zero_initialized_init_options(void); - -/// Initialize given init options with the default values and implementation specific values. -/** - * The given allocator is used, if required, during setup of the init options, - * but is also used during initialization. - * - * In either case the given allocator is stored in the returned init options. - * - * The `impl` pointer should not be changed manually. - * - * \pre The given init options must be zero initialized. - * - * \post If initialization fails, init options will remain zero initialized. - * - * \remark Giving an already initialized init options will result - * in a failure with return code `RMW_RET_INVALID_ARGUMENT`. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes - * - * This should be defined by the rmw implementation. - * - * \param[inout] init_options object to be setup - * \param[in] allocator to be used during setup and during initialization - * \return `RMW_RET_OK` if setup is successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RMW_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_init_options_init(rmw_init_options_t * init_options, rcutils_allocator_t allocator); - -/// Copy the given source init options to the destination init options. -/** - * The allocator from the source is used for any allocations and stored in the - * destination. - * - * \pre The source init options must have been initialized - * i.e. had `rmw_init_options_init()` called on. - * \pre The destination init options must be zero initialized. - * - * \post If copy fails, destination init options will remain zero initialized. - * - * \remark Giving an zero initialized init options as a source will result - * in a failure with return code `RMW_RET_INVALID_ARGUMENT`. - * \remark Giving an already initialized init options for the destination will result - * in a failure with return code `RMW_RET_INVALID_ARGUMENT`. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes - * - * This should be defined by the rmw implementation. - * - * \param[in] src rcl_init_options_t object to be copied from - * \param[out] dst rcl_init_options_t object to be copied into - * \return `RMW_RET_OK` if the copy is successful, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the implementation - * identifier for src does not match the implementation of this function, or - * \return `RMW_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RMW_RET_BAD_ALLOC` if allocating memory failed, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_init_options_copy(const rmw_init_options_t * src, rmw_init_options_t * dst); - -/// Finalize the given init options. -/** - * This function will return early if a logical error, such as `RMW_RET_INVALID_ARGUMENT` - * or `RMW_RET_INCORRECT_RMW_IMPLEMENTATION`, ensues, leaving the given init options - * unchanged. - * Otherwise, it will proceed despite errors, freeing as much resources as it can and zero - * initializing the given init options. - * - * \pre The given init options must have been initialized - * i.e. had `rmw_init_options_init()` called on. - * - * \remarks If init options are zero initialized, - * then `RMW_RET_INVALID_ARGUMENT` is returned. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Yes - * Lock-Free | Yes - * - * This should be defined by the rmw implementation. - * - * \param[inout] init_options object to finalized - * \return `RMW_RET_OK` if finalization is successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the implementation - * identifier does not match the implementation of this function, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_init_options_fini(rmw_init_options_t * init_options); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__INIT_OPTIONS_H_ diff --git a/src/rmw/macros.h b/src/rmw/macros.h deleted file mode 100755 index 7bb5e4f70..000000000 --- a/src/rmw/macros.h +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__MACROS_H_ -#define RMW__MACROS_H_ - -#include "rcutils/macros.h" - -/// Expand the argument to its literal text -#define RMW_STRINGIFY(x) RCUTILS_STRINGIFY(x) - -/// Indicate that the caller of a method must check the return value, -/// otherwise the compiler will issue a warning. -#define RMW_WARN_UNUSED RCUTILS_WARN_UNUSED - -#endif // RMW__MACROS_H_ diff --git a/src/rmw/message_sequence.h b/src/rmw/message_sequence.h deleted file mode 100755 index 77dd0a30a..000000000 --- a/src/rmw/message_sequence.h +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__MESSAGE_SEQUENCE_H_ -#define RMW__MESSAGE_SEQUENCE_H_ - -#include - -#include "rmw/macros.h" -#include "rmw/visibility_control.h" -#include "rmw/types.h" - -#if __cplusplus -extern "C" -{ -#endif - -/// Structure to hold a sequence of ROS messages. -typedef struct RMW_PUBLIC_TYPE rmw_message_sequence_s -{ - /// Array of pointers to ROS messages. - void ** data; - /// The number of valid entries in `data`. - size_t size; - /// The total allocated capacity of the data array. - size_t capacity; - /// The allocator used to allocate the data array. - rcutils_allocator_t * allocator; -} rmw_message_sequence_t; - -/// Structure to hold a sequence of message infos. -typedef struct RMW_PUBLIC_TYPE rmw_message_info_sequence_s -{ - /// Array of message info. - rmw_message_info_t * data; - /// The number of valid entries in data. - size_t size; - /// The total allocated capacity of the data array. - size_t capacity; - /// The allocator used to allocate the data array. - rcutils_allocator_t * allocator; -} rmw_message_info_sequence_t; - -/// Return an rmw_message_sequence_t struct with members initialized to `NULL` -RMW_PUBLIC -rmw_message_sequence_t -rmw_get_zero_initialized_message_sequence(void); - -/// Initialize an rmw_message_sequence_t object. -/** - * \param[inout] sequence sequence object to be initialized. - * \param[in] size capacity of the sequence to be allocated. - * \param[in] allocator the allcator used to allocate memory. - */ -RMW_PUBLIC -rmw_ret_t -rmw_message_sequence_init( - rmw_message_sequence_t * sequence, - size_t size, - rcutils_allocator_t * allocator); - -/// Finalize an rmw_message_sequence_t object. -/** - * The rmw_message_sequence_t struct has members which require memory to be allocated to them - * before setting values. - * This function reclaims any allocated resources within the object and zeroes out all other - * members. - * - * Note: This will not call `fini` or deallocate the underlying message structures. - * - * \param[inout] sequence sequence object to be finalized. - */ -RMW_PUBLIC -rmw_ret_t -rmw_message_sequence_fini(rmw_message_sequence_t * sequence); - -/// Return an rmw_message_info_sequence_t struct with members initialized to `NULL` -RMW_PUBLIC -rmw_message_info_sequence_t -rmw_get_zero_initialized_message_info_sequence(void); - -/// Initialize an rmw_message_info_sequence_t object. -/** - * \param[inout] sequence sequence object to be initialized. - * \param[in] size capacity of the sequence to be allocated. - * \param[in] allocator the allcator used to allocate memory. - */ -RMW_PUBLIC -rmw_ret_t -rmw_message_info_sequence_init( - rmw_message_info_sequence_t * sequence, - size_t size, - rcutils_allocator_t * allocator); - -/// Finalize an rmw_message_sequence_t object. -/** - * The rmw_message_sequence_t struct has members which require memory to be allocated to them - * before setting values. - * This function reclaims any allocated resources within the object and zeroes out all other - * members. - * - * \param[inout] sequence sequence object to be finalized. - */ -RMW_PUBLIC -rmw_ret_t -rmw_message_info_sequence_fini(rmw_message_info_sequence_t * sequence); - -#if __cplusplus -} -#endif - -#endif // RMW__MESSAGE_SEQUENCE_H_ diff --git a/src/rmw/names_and_types.h b/src/rmw/names_and_types.h deleted file mode 100755 index 08280995b..000000000 --- a/src/rmw/names_and_types.h +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__NAMES_AND_TYPES_H_ -#define RMW__NAMES_AND_TYPES_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" -#include "rcutils/types.h" -#include "rmw/macros.h" -#include "rmw/types.h" -#include "rmw/visibility_control.h" - -/// Associative array of topic or service names and types. -typedef struct RMW_PUBLIC_TYPE rmw_names_and_types_s -{ - /// Array of names - rcutils_string_array_t names; - - /// Dynamic array of arrays of type names, with the same length as `names` - rcutils_string_array_t * types; -} rmw_names_and_types_t; - -/// Return a zero initialized array of names and types. -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_names_and_types_t -rmw_get_zero_initialized_names_and_types(void); - -/// Check that the given `names_and_types` array is zero initialized. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Access to the array of names and types is read-only, but it is not synchronized. - * Concurrent `names_and_types` reads are safe, but concurrent reads and writes are not. - * - * \param[in] names_and_types Array to be checked. - * \return RMW_RET_OK if array is zero initialized, RMW_RET_INVALID_ARGUMENT otherwise. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_names_and_types_check_zero(rmw_names_and_types_t * names_and_types); - -/// Initialize an array of names and types. -/** - * This function initializes the string array for the names and allocates space - * for all the string arrays for the types according to the given size, but - * it does not initialize the string array for each setup of types. - * However, the string arrays for each set of types is zero initialized. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Initialization is a reentrant procedure, but: - * - Access to arrays of names and types is not synchronized. - * It is not safe to read or write `names_and_types` during initialization. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \param[inout] names_and_types Array to be initialized on success, - * but left unchanged on failure. - * \param[in] size Size of the array. - * \param[in] allocator Allocator to be used to populate `names_and_types`. - * \returns `RMW_RET_OK` if successful, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `names_and_types` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `names_and_types` is not - * a zero initialized array, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `allocator` is invalid, - * by rcutils_allocator_is_valid() definition, or - * \returns `RMW_BAD_ALLOC` if memory allocation fails, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_names_and_types_init( - rmw_names_and_types_t * names_and_types, - size_t size, - rcutils_allocator_t * allocator); - -/// Finalize an array of names and types. -/** - * This function deallocates the string array of names and the array of string arrays of types, - * and zero initializes the given array. - * If a logical error, such as `RMW_RET_INVALID_ARGUMENT`, ensues, this function will return - * early, leaving the given array unchanged. - * Otherwise, it will proceed despite errors. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Finalization is a reentrant procedure, but access to arrays of names and types - * is not synchronized. - * It is not safe to read or write `names_and_types` during initialization. - * - * \param[inout] names_and_types Array to be finalized. - * \returns `RMW_RET_OK` if successful, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `names_and_types` is NULL, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_names_and_types_fini(rmw_names_and_types_t * names_and_types); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__NAMES_AND_TYPES_H_ diff --git a/src/rmw/network_flow_endpoint.h b/src/rmw/network_flow_endpoint.h deleted file mode 100755 index 331fedb17..000000000 --- a/src/rmw/network_flow_endpoint.h +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright 2020 Ericsson AB -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__NETWORK_FLOW_ENDPOINT_H_ -#define RMW__NETWORK_FLOW_ENDPOINT_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include "rmw/types.h" -#include "rmw/visibility_control.h" - -/// Transport protocol types -typedef enum rmw_transport_protocol_e -{ - RMW_TRANSPORT_PROTOCOL_UNKNOWN = 0, - RMW_TRANSPORT_PROTOCOL_UDP, - RMW_TRANSPORT_PROTOCOL_TCP, - RMW_TRANSPORT_PROTOCOL_COUNT -} rmw_transport_protocol_t; - -/// Internet protocol types -typedef enum rmw_internet_protocol_e -{ - RMW_INTERNET_PROTOCOL_UNKNOWN = 0, - RMW_INTERNET_PROTOCOL_IPV4, - RMW_INTERNET_PROTOCOL_IPV6, - RMW_INTERNET_PROTOCOL_COUNT -} rmw_internet_protocol_t; - -/// Maximum length of internet address string including terminating null -/// Inspired from linux/inet.h -#define RMW_INET_ADDRSTRLEN 48 - -/// Structure that describes network flow endpoint of a publisher or subscription -typedef struct RMW_PUBLIC_TYPE rmw_network_flow_endpoint_s -{ - // Transport protocol - rmw_transport_protocol_t transport_protocol; - // Internet protocol - rmw_internet_protocol_t internet_protocol; - // Port - uint16_t transport_port; - // Flow label - // TODO(anamud): Consider specializing since flow_label is set only at publisher - // ... side. - uint32_t flow_label; - // DSCP (Diff. Services Code Point) - // TODO(anamud): Consider specializing since DSCP is set only at publisher - // ... side. - uint8_t dscp; - // Internet address - char internet_address[RMW_INET_ADDRSTRLEN]; -} rmw_network_flow_endpoint_t; - -/// Return a rmw_network_flow_endpoint_t struct with zero-initialized members -RMW_PUBLIC -rmw_network_flow_endpoint_t -rmw_get_zero_initialized_network_flow_endpoint(void); - -/// Convert to string variant of transport protocol -/** - * \param[in] transport_protocol transport_protocol_t to be converted - */ -RMW_PUBLIC -const char * -rmw_network_flow_endpoint_get_transport_protocol_string( - const rmw_transport_protocol_t transport_protocol); - -/// Convert to string variant of internet protocol -/** - * \param[in] internet_protocol internet_protocol_t to be converted - */ -RMW_PUBLIC -const char * -rmw_network_flow_endpoint_get_internet_protocol_string( - const rmw_internet_protocol_t internet_protocol); - -/// Set internet address in the rmw_network_flow_endpoint_t struct -/** - * \param[in] network_flow_endpoint network_flow_endpoint_t to be initialized - * \param[in] internet_address the internet address as C-style string - * \param[in] size size of internet_address excluding terminating null - * \returns `RMW_RET_OK` on successfull initilization, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `network_flow_endpoint` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `internet_address` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `size` is not less than RMW_INET_ADDRSTRLEN, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - */ -RMW_PUBLIC -rmw_ret_t -rmw_network_flow_endpoint_set_internet_address( - rmw_network_flow_endpoint_t * network_flow_endpoint, - const char * internet_address, - size_t size); - -#if __cplusplus -} -#endif - -#endif // RMW__NETWORK_FLOW_ENDPOINT_H_ diff --git a/src/rmw/network_flow_endpoint_array.h b/src/rmw/network_flow_endpoint_array.h deleted file mode 100755 index 584b4911e..000000000 --- a/src/rmw/network_flow_endpoint_array.h +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright 2020 Ericsson AB -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__NETWORK_FLOW_ENDPOINT_ARRAY_H_ -#define RMW__NETWORK_FLOW_ENDPOINT_ARRAY_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include "rcutils/allocator.h" - -#include "rmw/network_flow_endpoint.h" -#include "rmw/types.h" -#include "rmw/visibility_control.h" - -/// Structure to hold an arrary of network_flow_endpoint_t -typedef struct RMW_PUBLIC_TYPE rmw_network_flow_endpoint_array_s -{ - /// Size of the array - size_t size; - /// Array of rmw_network_flow_endpoint_t - rmw_network_flow_endpoint_t * network_flow_endpoint; - /// Allocator - rcutils_allocator_t * allocator; -} rmw_network_flow_endpoint_array_t; - -/// Return a rmw_network_flow_endpoint_array_t instance with zero-initialized members -RMW_PUBLIC -rmw_network_flow_endpoint_array_t -rmw_get_zero_initialized_network_flow_endpoint_array(void); - -/// Check if network_flow_endpoint_array instance is zero-initialized -/** - * \param[in] network_flow_endpoint_array arrary to be checked - * \returns `RMW_RET_OK` if array is zero-initialized, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `network_flow_endpoint_array` is NULL, or - * \returns `RMW_RET_ERROR` if `network_flow_endpoint_array` is not zero-initialized. - * \remark RMW error state is set on failure - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_network_flow_endpoint_array_check_zero( - const rmw_network_flow_endpoint_array_t * network_flow_endpoint_array); - -/// Allocate a rmw_network_flow_endpoint_array_t instance -/** - * \param[inout] network_flow_endpoint_array array to be allocated - * \param[in] size size of the array to be allocated - * \param[in] allocator the allcator for allocating memory - * \returns `RMW_RET_OK` on successfull initilization, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `network_flow_endpoint_array` or `allocator` is NULL, or - * \returns `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark RMW error state is set on failure - */ -RMW_PUBLIC -rmw_ret_t -rmw_network_flow_endpoint_array_init( - rmw_network_flow_endpoint_array_t * network_flow_endpoint_array, - size_t size, - rcutils_allocator_t * allocator); - -/// Deallocate a rmw_network_flow_endpoint_array_t instance -/** - * \param[inout] network_flow_endpoint_array array to be deallocated - * \returns `RMW_RET_OK` on successfully deallocation, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `network_flow_endpoint_array` or its allocator is NULL, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark RMW error state is set on failure - */ -RMW_PUBLIC -rmw_ret_t -rmw_network_flow_endpoint_array_fini( - rmw_network_flow_endpoint_array_t * network_flow_endpoint_array); - -#if __cplusplus -} -#endif - -#endif // RMW__NETWORK_FLOW_ENDPOINT_ARRAY_H_ diff --git a/src/rmw/publisher_options.h b/src/rmw/publisher_options.h deleted file mode 100755 index ccedea2d2..000000000 --- a/src/rmw/publisher_options.h +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2019 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__PUBLISHER_OPTIONS_H_ -#define RMW__PUBLISHER_OPTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/types.h" - -// For now, the rmw_publisher_options_t type is still defined in "rmw/types.h". - -/// Return a rmw_publisher_options_t initialized with default values. -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_publisher_options_t -rmw_get_default_publisher_options(void); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__PUBLISHER_OPTIONS_H_ diff --git a/src/rmw/qos_policy_kind.h b/src/rmw/qos_policy_kind.h deleted file mode 100755 index 422e53e43..000000000 --- a/src/rmw/qos_policy_kind.h +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__QOS_POLICY_KIND_H_ -#define RMW__QOS_POLICY_KIND_H_ - -#include "rmw/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// QoS Policy Kinds -typedef enum RMW_PUBLIC_TYPE rmw_qos_policy_kind_e -{ - RMW_QOS_POLICY_INVALID = 1 << 0, - RMW_QOS_POLICY_DURABILITY = 1 << 1, - RMW_QOS_POLICY_DEADLINE = 1 << 2, - RMW_QOS_POLICY_LIVELINESS = 1 << 3, - RMW_QOS_POLICY_RELIABILITY = 1 << 4, - RMW_QOS_POLICY_HISTORY = 1 << 5, - RMW_QOS_POLICY_LIFESPAN = 1 << 6, - RMW_QOS_POLICY_DEPTH = 1 << 7, - RMW_QOS_POLICY_LIVELINESS_LEASE_DURATION = 1 << 8, - RMW_QOS_POLICY_AVOID_ROS_NAMESPACE_CONVENTIONS = 1 << 9, -} rmw_qos_policy_kind_t; - -#ifdef __cplusplus -} -#endif - -#endif // RMW__QOS_POLICY_KIND_H_ diff --git a/src/rmw/qos_profiles.h b/src/rmw/qos_profiles.h deleted file mode 100755 index 215109dfd..000000000 --- a/src/rmw/qos_profiles.h +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__QOS_PROFILES_H_ -#define RMW__QOS_PROFILES_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/types.h" - -static const rmw_qos_profile_t rmw_qos_profile_sensor_data = -{ - RMW_QOS_POLICY_HISTORY_KEEP_LAST, - 5, - RMW_QOS_POLICY_RELIABILITY_BEST_EFFORT, - RMW_QOS_POLICY_DURABILITY_VOLATILE, - RMW_QOS_DEADLINE_DEFAULT, - RMW_QOS_LIFESPAN_DEFAULT, - RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT, - RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT, - false -}; - -static const rmw_qos_profile_t rmw_qos_profile_parameters = -{ - RMW_QOS_POLICY_HISTORY_KEEP_LAST, - 1000, - RMW_QOS_POLICY_RELIABILITY_RELIABLE, - RMW_QOS_POLICY_DURABILITY_VOLATILE, - RMW_QOS_DEADLINE_DEFAULT, - RMW_QOS_LIFESPAN_DEFAULT, - RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT, - RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT, - false -}; - -static const rmw_qos_profile_t rmw_qos_profile_default = -{ - RMW_QOS_POLICY_HISTORY_KEEP_LAST, - 10, - RMW_QOS_POLICY_RELIABILITY_RELIABLE, - RMW_QOS_POLICY_DURABILITY_VOLATILE, - RMW_QOS_DEADLINE_DEFAULT, - RMW_QOS_LIFESPAN_DEFAULT, - RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT, - RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT, - false -}; - -static const rmw_qos_profile_t rmw_qos_profile_services_default = -{ - RMW_QOS_POLICY_HISTORY_KEEP_LAST, - 10, - RMW_QOS_POLICY_RELIABILITY_RELIABLE, - RMW_QOS_POLICY_DURABILITY_VOLATILE, - RMW_QOS_DEADLINE_DEFAULT, - RMW_QOS_LIFESPAN_DEFAULT, - RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT, - RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT, - false -}; - -static const rmw_qos_profile_t rmw_qos_profile_parameter_events = -{ - RMW_QOS_POLICY_HISTORY_KEEP_LAST, - 1000, - RMW_QOS_POLICY_RELIABILITY_RELIABLE, - RMW_QOS_POLICY_DURABILITY_VOLATILE, - RMW_QOS_DEADLINE_DEFAULT, - RMW_QOS_LIFESPAN_DEFAULT, - RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT, - RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT, - false -}; - -static const rmw_qos_profile_t rmw_qos_profile_rosout_default = -{ - RMW_QOS_POLICY_HISTORY_KEEP_LAST, - 1000, - RMW_QOS_POLICY_RELIABILITY_RELIABLE, - RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL, - RMW_QOS_DEADLINE_DEFAULT, - {10, 0}, - RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT, - RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT, - false -}; - -static const rmw_qos_profile_t rmw_qos_profile_system_default = -{ - RMW_QOS_POLICY_HISTORY_SYSTEM_DEFAULT, - RMW_QOS_POLICY_DEPTH_SYSTEM_DEFAULT, - RMW_QOS_POLICY_RELIABILITY_SYSTEM_DEFAULT, - RMW_QOS_POLICY_DURABILITY_SYSTEM_DEFAULT, - RMW_QOS_DEADLINE_DEFAULT, - RMW_QOS_LIFESPAN_DEFAULT, - RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT, - RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT, - false -}; - -/// Match majority of endpoints currently available while maintaining the highest level of service -/** - * Reliability, durability, deadline, liveliness, and liveliness lease duration policies will be - * chosen at the time of creating a subscription or publisher. - * - * The actual QoS policy can be retrieved after the endpoint is created with - * `rmw_get_subscriptions_info_by_topic` or `rmw_get_publishers_info_by_topic`. - * - * The middleware is not expected to update policies after creating a subscription or - * publisher, even if one or more policies are incompatible with newly discovered endpoints. - * Therefore, this profile should be used with care since non-deterministic behavior - * can occur due to races with discovery. - */ -static const rmw_qos_profile_t rmw_qos_profile_best_available = -{ - RMW_QOS_POLICY_HISTORY_KEEP_LAST, - 10, - RMW_QOS_POLICY_RELIABILITY_BEST_AVAILABLE, - RMW_QOS_POLICY_DURABILITY_BEST_AVAILABLE, - RMW_QOS_DEADLINE_BEST_AVAILABLE, - RMW_QOS_LIFESPAN_DEFAULT, - RMW_QOS_POLICY_LIVELINESS_BEST_AVAILABLE, - RMW_QOS_LIVELINESS_LEASE_DURATION_BEST_AVAILABLE, - false -}; - -static const rmw_qos_profile_t rmw_qos_profile_unknown = -{ - RMW_QOS_POLICY_HISTORY_UNKNOWN, - RMW_QOS_POLICY_DEPTH_SYSTEM_DEFAULT, - RMW_QOS_POLICY_RELIABILITY_UNKNOWN, - RMW_QOS_POLICY_DURABILITY_UNKNOWN, - RMW_QOS_DEADLINE_DEFAULT, - RMW_QOS_LIFESPAN_DEFAULT, - RMW_QOS_POLICY_LIVELINESS_UNKNOWN, - RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT, - false -}; - -typedef enum RMW_PUBLIC_TYPE rmw_qos_compatibility_type_e -{ - /// QoS policies are compatible - RMW_QOS_COMPATIBILITY_OK = 0, - - /// QoS policies may not be compatible - RMW_QOS_COMPATIBILITY_WARNING, - - /// QoS policies are not compatible - RMW_QOS_COMPATIBILITY_ERROR -} rmw_qos_compatibility_type_t; - - -/// Check if two QoS profiles are compatible. -/** - * Two QoS profiles are compatible if a publisher and subcription - * using the QoS policies can communicate with each other. - * - * If any of the profile policies has the value "system default" or "unknown", then it may not be - * possible to determine the compatibilty. - * In this case, the output parameter `compatibility` is set to `RMW_QOS_COMPATIBILITY_WARNING` - * and `reason` is populated. - * - * If there is a compatibility warning or error, and a buffer is provided for `reason`, then an - * explanation of all warnings and errors will be populated into the buffer, separated by - * semi-colons (`;`). - * Errors will appear before warnings in the string buffer. - * If the provided buffer is not large enough, this function will still write to the buffer, up to - * the `reason_size` number of characters. - * Therefore, it is possible that not all errors and warnings are communicated if the buffer size limit - * is reached. - * A buffer size of 2048 should be more than enough to capture all possible errors and warnings. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] publisher_profile: The QoS profile used for a publisher. - * \param[in] subscription_profile: The QoS profile used for a subscription. - * \param[out] compatibility: `RMW_QOS_COMPATIBILITY_OK` if the QoS profiles are compatible, or - * `RMW_QOS_COMPATIBILITY_WARNING` if the QoS profiles might be compatible, or - * `RMW_QOS_COMPATIBILITY_ERROR` if the QoS profiles are not compatible. - * \param[out] reason: A detailed reason for a QoS incompatibility or potential incompatibility. - * Must be pre-allocated by the caller. - * This parameter is optional and may be set to `NULL` if the reason information is not - * desired. - * \param[in] reason_size: Size of the string buffer `reason`, if one is provided. - * If `reason` is `nullptr`, then this parameter must be zero. - * \return `RMW_RET_OK` if the check was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `compatibility` is `nullptr`, or - * \return `RMW_RET_INVALID_ARGUMENT` if `reason` is `NULL` and `reason_size` is not zero, or - * \return `RMW_RET_ERROR` if there is an unexpected error. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_qos_profile_check_compatible( - const rmw_qos_profile_t publisher_profile, - const rmw_qos_profile_t subscription_profile, - rmw_qos_compatibility_type_t * compatibility, - char * reason, - size_t reason_size); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__QOS_PROFILES_H_ diff --git a/src/rmw/qos_string_conversions.h b/src/rmw/qos_string_conversions.h deleted file mode 100755 index 52b320e18..000000000 --- a/src/rmw/qos_string_conversions.h +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__QOS_STRING_CONVERSIONS_H_ -#define RMW__QOS_STRING_CONVERSIONS_H_ - -#include "rmw/types.h" -#include "rmw/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Return a string representing the policy kind. -/** - * Returns `NULL` when `kind` is `RMW_QOS_POLICY_INVALID` or an undefined kind. - * - * The stringified version of the policy kind can be obtained doing the follwing conversion: - * RMW_QOS_POLICY_ -> lower_case() - * - * For example, the stringified version of `RMW_QOS_POLICY_DURABILITY` is - * "durability" and `RMW_QOS_POLICY_DEADLINE` is "deadline". - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] kind qos policy kind to be stringified. - * \return a null terminated string representing the policy kind, or - * \return `NULL` if kind is `RMW_QOS_POLICY_INVALID` or an undefined kind. - */ -RMW_PUBLIC -const char * -rmw_qos_policy_kind_to_str(rmw_qos_policy_kind_t kind); - -/// Return a string representing the policy value. -/** - * Returns `NULL` when `value` is `RMW_QOS_POLICY_*_UNKNOWN` or an undefined enum value. - * - * The stringified version of the policy value can be obtained doing the follwing conversion: - * RMW_QOS_POLICY__ -> lower_case() - * - * For example, the stringified version of `RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC` is - * "manual_by_topic" and `RMW_QOS_POLICY_RELIABILITY_BEST_EFFORT` is "best_effort". - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] value qos policy value to be stringified. - * \return a null terminated string representing the policy value, or - * \return `NULL` if value is `RMW_QOS_POLICY_*_UNKNOWN` or an undefined enum value. - */ -RMW_PUBLIC -const char * -rmw_qos_durability_policy_to_str(rmw_qos_durability_policy_t value); - -/// Return a string representing the policy value. -/** - * See \ref rmw_qos_durability_policy_to_str() for more details. - */ -RMW_PUBLIC -const char * -rmw_qos_history_policy_to_str(rmw_qos_history_policy_t value); - -/// Return a string representing the policy value. -/** - * See \ref rmw_qos_durability_policy_to_str() for more details. - */ -RMW_PUBLIC -const char * -rmw_qos_liveliness_policy_to_str(rmw_qos_liveliness_policy_t value); - -/// Return a string representing the policy value. -/** - * See \ref rmw_qos_durability_policy_to_str() for more details. - */ -RMW_PUBLIC -const char * -rmw_qos_reliability_policy_to_str(rmw_qos_reliability_policy_t value); - -/// Return a policy kind based on the provided string. -/** - * Returns the policy kind represented by the provided string, or - * `RMW_QOS_POLICY_INVALID` when the provided string doesn't represent any policy kind. - * - * How policy kinds are stringified is explained in \ref rmw_qos_policy_kind_to_str. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] str string identifying a qos policy kind. - * \return the policy kind represented by the string, or - * \return `RMW_QOS_POLICY_INVALID` if the string doesn't represent any policy kind. - */ -RMW_PUBLIC -rmw_qos_policy_kind_t -rmw_qos_policy_kind_from_str(const char * str); - -/// Return a enum value based on the provided string. -/** - * Returns the enum value based on the provided string, or - * `RMW_QOS_POLICY_*_UNKNOWN` when the provided string is unexpected. - * - * How policy values are stringified is explained in \ref rmw_qos_durability_policy_to_str. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] str string identifying a qos policy value. - * \return the policy value represented by the string, or - * \return `RMW_QOS_POLICY_*_UNKNOWN` if the string doesn't represent any value. - */ -RMW_PUBLIC -rmw_qos_durability_policy_t -rmw_qos_durability_policy_from_str(const char * str); - -/// Return a enum value based on the provided string. -/** - * See \ref rmw_qos_durability_policy_from_str() for more details. - */ -RMW_PUBLIC -rmw_qos_history_policy_t -rmw_qos_history_policy_from_str(const char * str); - -/// Return a enum value based on the provided string. -/** - * See \ref rmw_qos_durability_policy_from_str() for more details. - */ -RMW_PUBLIC -rmw_qos_liveliness_policy_t -rmw_qos_liveliness_policy_from_str(const char * str); - - -/// Return a enum value based on the provided string. -/** - * See \ref rmw_qos_durability_policy_from_str() for more details. - */ -RMW_PUBLIC -rmw_qos_reliability_policy_t -rmw_qos_reliability_policy_from_str(const char * str); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__QOS_STRING_CONVERSIONS_H_ diff --git a/src/rmw/ret_types.h b/src/rmw/ret_types.h deleted file mode 100755 index 5268bca34..000000000 --- a/src/rmw/ret_types.h +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2014-2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__RET_TYPES_H_ -#define RMW__RET_TYPES_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -/// Return code for rmw functions -typedef int32_t rmw_ret_t; -/// The operation ran as expected -#define RMW_RET_OK 0 -/// Generic error to indicate operation could not complete successfully -#define RMW_RET_ERROR 1 -/// The operation was halted early because it exceeded its timeout critera -#define RMW_RET_TIMEOUT 2 -/// The operation or event handling is not supported. -#define RMW_RET_UNSUPPORTED 3 - -/// Failed to allocate memory -#define RMW_RET_BAD_ALLOC 10 -/// Argument to function was invalid -#define RMW_RET_INVALID_ARGUMENT 11 -/// Incorrect rmw implementation. -#define RMW_RET_INCORRECT_RMW_IMPLEMENTATION 12 - -// rmw node specific ret codes in 2XX -/// Failed to find node name -// Using same return code than in rcl -#define RMW_RET_NODE_NAME_NON_EXISTENT 203 - -#ifdef __cplusplus -} -#endif - -#endif // RMW__RET_TYPES_H_ diff --git a/src/rmw/rmw.h b/src/rmw/rmw.h deleted file mode 100755 index c6fea475f..000000000 --- a/src/rmw/rmw.h +++ /dev/null @@ -1,3349 +0,0 @@ -// Copyright 2014-2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** \mainpage rmw: ROS Middleware Abstraction Interface - * - * `rmw` defines an interface of middleware primitives that are used by the higher level ROS APIs. - * It consists of these main components: - * - * - Initialization and Shutdown: - * - rmw/init.h - * - Nodes - * - rmw/rmw.h - * - Publisher - * - rmw/rmw.h - * - Subscription - * - rmw/rmw.h - * - Service Client - * - rmw/rmw.h - * - Service Server - * - rmw/rmw.h - * - * There are some common utility functions in combination with "Topics" or "Services": - * - A function to validate a fully qualified topic or service name - * - rmw_validate_full_topic_name() - * - rmw/validate_full_topic_name.h - * - A function to validate a node's namespace - * - rmw_validate_namespace() - * - rmw/validate_namespace.h - * - A function to validate a node's name - * - rmw_validate_node_name() - * - rmw/validate_node_name.h - * - A function to validate the compatibility of two QoS profiles - * - rmw_qos_profile_check_compatible() - * - rmw/qos_profiles.h - * - * It also has some machinery that is necessary to wait on and act on these concepts: - * - * - Initialization and shutdown management (global for now) - * - rmw/rmw.h - * - Wait sets for waiting on messages and service requests / responses to be ready - * - rmw/rmw.h - * - Guard conditions for waking up wait sets asynchronously - * - rmw/rmw.h - * - Introspection of the ROS graph - * - rmw_names_and_types_t - * - rmw_get_topic_names_and_types() - * - rmw_get_service_names_and_types() - * - rmw/names_and_types.h - * - rmw/get_topic_names_and_types.h - * - rmw/get_topic_endpoint_info.h - * - rmw/get_service_names_and_types.h - * - * Further still there are some useful abstractions and utilities: - * - * - Allocator functions for various types - * - rmw/allocators.h - * - Error handling functionality (C style) - * - rmw/error_handling.h - * - Macros - * - rmw/macros.h - * - Return code types and other utility types - * - rmw/types.h - * - Sanity checks for some of the types - * - rmw/sanity_checks.h - * - Macros for controlling symbol visibility on the library - * - rmw/visibility_control.h - * - Utility function to demangle a type to a human readable string (C++ specific): - * - rmw/impl/cpp/demangle.hpp - */ - -#ifndef RMW__RMW_H_ -#define RMW__RMW_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -#include "rcutils/allocator.h" -#include "rcutils/macros.h" -#include "rcutils/types.h" - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/sequence_bound.h" - -#include "rmw/event.h" -#include "rmw/init.h" -#include "rmw/event_callback_type.h" -#include "rmw/macros.h" -#include "rmw/message_sequence.h" -#include "rmw/publisher_options.h" -#include "rmw/qos_profiles.h" -#include "rmw/dynamic_message_type_support.h" -#include "rmw/subscription_options.h" -#include "rmw/types.h" -#include "rmw/visibility_control.h" - -/// Get the name of the rmw implementation being used -/** - * \return Name of rmw implementation - */ -RMW_PUBLIC -RMW_WARN_UNUSED -const char * -rmw_get_implementation_identifier(void); - -/// Get the unique serialization format for this middleware. -/** - * Return the format in which binary data is serialized. - * One middleware can only have one encoding. - * In contrast to the implementation identifier, the serialization format can be equal between - * multiple RMW implementations. - * This means, that the same binary messages can be deserialized by RMW implementations with the - * same format. - * \sa rmw_serialize - * \sa rmw_deserialize - * \return serialization format - */ -RMW_PUBLIC -RMW_WARN_UNUSED -const char * -rmw_get_serialization_format(void); - -// TODO(wjwwood): refactor this API to return a return code when updated to use an allocator -/// Create a node and return a handle to that node. -/** - * This function can fail, and therefore return `NULL`, if: - * - name is not a valid non-null node name - * - namespace_ is not a valid non-null namespace - * - context is not valid i.e. it is zero-initialized, or - * its implementation identifier does not match that of - * this API implementation, or has been invalidated by - * `rmw_shutdown()` - * - memory allocation fails during node creation - * - an unspecified error occurs - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No [1] - * Lock-Free | No [1] - * [1] rmw implementation defined, check the implementation documentation - * - * This should be defined by the rmw implementation. - * - * \param[in] context init context that this node should be associated with - * \param[in] name the node name - * \param[in] namespace_ the node namespace - * \return rmw node handle, or `NULL` if there was an error - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_node_t * -rmw_create_node( - rmw_context_t * context, - const char * name, - const char * namespace_); - -/// Finalize a given node handle, reclaim the resources, and deallocate the node handle. -/** - * This function will return early if a logical error, such as `RMW_RET_INVALID_ARGUMENT` - * or `RMW_RET_INCORRECT_RMW_IMPLEMENTATION`, ensues, leaving the given node handle unchanged. - * Otherwise, it will proceed despite errors, freeing as many resources as it can, including - * the node handle. Usage of a deallocated node handle is undefined behavior. - * - * \pre All publishers, subscribers, services, and clients created from this node must - * have been destroyed prior to this call. Some rmw implementations may verify this, - * returning `RMW_RET_ERROR` and setting a human readable error message if any entity - * created from this node has not yet been destroyed. However, this is not guaranteed - * and so callers should ensure that this is the case before calling this function. - * - * \param[in] node the node handle to be destroyed - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if node is invalid, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the implementation - * identifier does not match, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_destroy_node(rmw_node_t * node); - -/// Return a guard condition which is triggered when the ROS graph changes. -/** - * The guard condition will be triggered anytime a change to the ROS graph occurs. - * A ROS graph change occurs whenever: - * - A node joins or leaves the ROS graph. - * This change will be reflected in rmw_get_node_names() and - * rmw_get_node_names_with_enclaves() outcome. - * - A topic subscription joins or leaves the ROS graph. - * This change will be reflected in rmw_get_topic_names_and_types(), - * rmw_get_subscriber_names_and_types_by_node(), and - * rmw_get_subscriptions_info_by_topic() outcome. - * - A topic publisher joins or leaves the ROS graph. - * This change will be reflected in rmw_get_topic_names_and_types(), - * rmw_get_publisher_names_and_types_by_node(), and - * rmw_get_publishers_info_by_topic() outcome. - * - A topic subscription matches a topic publisher with compatible QoS policies. - * This change will be reflected in rmw_subscription_count_matched_publishers() outcome. - * - A topic publisher matches a topic subscription with compatible QoS policies. - * This change will be reflected in rmw_publisher_count_matched_subscriptions() outcome. - * - A service server joins or leaves the ROS graph. - * This change will be reflected in rmw_get_service_names_and_types() and - * rmw_get_service_names_and_types_by_node() outcome. - * - A service client joins or leaves the ROS graph. - * This change will be reflected in rmw_get_service_names_and_types() and - * rmw_get_client_names_and_types_by_node() outcome. - * - A service client matches a service server with compatible QoS policies. - * This change will be reflected in rmw_service_server_is_available() outcome. - * - * \note The state of the ROS graph, and any changes that may take place, - * are reported as seen by the associated `node`. - * - * The guard condition is owned and internally held by the `node`. - * It will be invalidated if `node` is finalized using rmw_destroy_node(). - * It is undefined behavior to use an invalidated guard condition. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \pre Given `node` must be a valid node handle, as returned by rmw_create_node(). - * - * \param[in] node Node to retrieve the guard condition from. - * \return Guard condition if successful, or `NULL` if - * `node` is `NULL`, or an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -const rmw_guard_condition_t * -rmw_node_get_graph_guard_condition(const rmw_node_t * node); - -/// Initialize a publisher allocation to be used with later publications. -/** - * This creates an allocation object that can be used in conjunction with - * the rmw_publish method to perform more carefully control memory allocations. - * - * This will allow the middleware to preallocate the correct amount of memory - * for a given message type and message bounds. - * As allocation is performed in this method, it will not be necessary to allocate - * in the `rmw_publish` method. - * - * \param[in] type_support Type support of the message to be preallocated. - * \param[in] message_bounds Bounds structure of the message to be preallocated. - * \param[out] allocation Allocation structure to be passed to `rmw_publish`. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_UNSUPPORTED` if it's unimplemented - * \return `RMW_RET_INVALID_ARGUMENT` if an argument is null, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_init_publisher_allocation( - const rosidl_message_type_support_t * type_support, - const rosidl_runtime_c__Sequence__bound * message_bounds, - rmw_publisher_allocation_t * allocation); - -/// Destroy a publisher allocation object. -/** - * This deallocates any memory allocated by `rmw_init_publisher_allocation`. - * - * \param[in] allocation Allocation object to be destroyed. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_UNSUPPORTED` if it's unimplemented - * \return `RMW_RET_INVALID_ARGUMENT` if argument is null, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_fini_publisher_allocation( - rmw_publisher_allocation_t * allocation); - -/// Create a publisher and return a handle to that publisher. -/** - * This function can fail, and therefore return `NULL`, if: - * - node is not a valid non-null handle for this rmw implementation, - * as returned by `rmw_create_node()` - * - type_support is a not valid non-null message type support, as returned by - * `ROSIDL_GET_MSG_TYPE_SUPPORT()` - * - topic_name is not a valid non-null topic name, according to - * `rmw_validate_full_topic_name()` - * - qos_profile is not a fully specified non-null profile i.e. no UNKNOWN policies - * - publisher_options is not a valid non-null option set, as returned by - * `rmw_get_default_publisher_options()` - * - memory allocation fails during publisher creation - * - an unspecified error occurs - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \param[in] node Handle to node with which to register this publisher - * \param[in] type_support Type support for the messages to be published - * \param[in] topic_name Name of the topic to publish to, often a fully qualified - * topic name unless `qos_profile` is configured to avoid ROS namespace conventions - * i.e. to create a native topic publisher - * \param[in] qos_profile QoS policies for this publisher - * \param[in] publisher_options Options to configure this publisher - * \return rmw publisher handle, or `NULL` if there was an error - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_publisher_t * -rmw_create_publisher( - const rmw_node_t * node, - const rosidl_message_type_support_t * type_support, - const char * topic_name, - const rmw_qos_profile_t * qos_profile, - const rmw_publisher_options_t * publisher_options); - -/// Finalize a given publisher handle, reclaim the resources, and deallocate the publisher handle. -/** - * This function will return early if a logical error, such as `RMW_RET_INVALID_ARGUMENT` - * or `RMW_RET_INCORRECT_RMW_IMPLEMENTATION`, ensues, leaving the given publisher handle unchanged. - * Otherwise, it will proceed despite errors, freeing as many resources as it can, including - * the publisher handle. Usage of a deallocated publisher handle is undefined behavior. - * - * \pre Given node must be the one the publisher was registered with. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \param[in] node Handle to node with which the given publisher is registered - * \param[in] publisher Handle to publisher to be finalized - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if node or publisher is `NULL`, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if node or publisher - * implementation identifier does not match, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_destroy_publisher(rmw_node_t * node, rmw_publisher_t * publisher); - -/// Borrow a loaned ROS message. -/** - * This ROS message is owned by the middleware, that will keep it alive (i.e. in valid - * memory space) until the caller publishes it using rmw_publish_loaned_message() or - * returns it using rmw_return_loaned_message_from_publisher(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * To borrow a ROS message is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on borrow or not. - * Check the implementation documentation to learn about memory allocation - * guarantees when using ROS message loaning support. - * - * \par Thread-safety - * Publishers are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to borrow ROS messages from the same publisher concurrently. - * - * \pre Given `publisher` must be a valid publisher, as returned by rmw_create_publisher(). - * \pre Given `type_support` must be a valid `rosidl` message type support, matching the - * one registered with the `publisher` on creation. - * - * \param[in] publisher Publisher to which the loaned ROS message will be associated. - * \param[in] type_support Message type support of the loaned ROS message. - * \param[out] ros_message Pointer to type erased ROS message loaned by the middleware. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_INVALID_ARGUMENT` if `publisher` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `type_support` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `ros_message` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `*ros_message` is not NULL (to prevent leaks), or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if `publisher` implementation identifier - * does not match this implementation, or - * \return `RMW_RET_UNSUPPORTED` if the implementation does not support ROS message loaning, or - * \return `RMW_RET_ERROR` if an unexpected error occurred. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_borrow_loaned_message( - const rmw_publisher_t * publisher, - const rosidl_message_type_support_t * type_support, - void ** ros_message); - -/// Return a loaned message previously borrowed from a publisher. -/** - * Tells the middleware that a borrowed ROS message is no longer needed by the caller. - * Ownership of the ROS message is given back to the middleware. - * If this function fails early due to a logical error, such as an invalid argument, - * the loaned ROS message will be left unchanged. - * Otherwise, ownership of the ROS message will be given back to the middleware. - * It is up to the middleware what will be made of the returned ROS message. - * It is undefined behavior to use a loaned ROS message after returning it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * To return a ROS message is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Publishers are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to return borrowed ROS messages to the same publisher concurrently. - * However, since ownership of the loaned ROS message is given back to the middleware and - * this transfer is not synchronized, it is not safe to return the same loaned ROS message - * concurrently. - * - * \pre Given `publisher` must be a valid publisher, as returned by rmw_create_publisher(). - * \pre Given `loaned_message` must have been previously borrowed from the same publisher - * using rmw_borrow_loaned_message(). - * - * \param[in] publisher Publisher to which the loaned ROS message is associated. - * \param[in] loaned_message Type erased loaned ROS message to be returned. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `publisher` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `loaned_message` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if `publisher` implementation identifier - * does not match this implementation, or - * \return `RMW_RET_UNSUPPORTED` if the implementation does not support ROS message loaning, or - * \return `RMW_RET_ERROR` if an unexpected error occurs and no message can be initialized. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_return_loaned_message_from_publisher( - const rmw_publisher_t * publisher, - void * loaned_message); - -/// Publish a ROS message. -/** - * Send a ROS message to all subscriptions with matching QoS policies using the given publisher. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * It is implementation defined whether to publish a ROS message is a - * synchronous or asynchronous, blocking or non-blocking operation. - * However, asynchronous implementations are not allowed to access the - * given ROS message after this function returns. - * Check the implementation documentation to learn about publish behavior. - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on publish or not. - * For instance, implementations that serialize ROS messages to send it over the - * wire may need to perform additional memory allocations when dealing with - * unbounded (dynamically-sized) fields. - * A publisher allocation, if provided, may or may not be used. - * Check the implementation documentation to learn about memory allocation - * guarantees when publishing ROS messages with and without publisher allocations. - * - * \par Thread-safety - * Publishers are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to publish using the same publisher concurrently. - * However, when publishing regular ROS messages: - * - Access to the ROS message is read-only but it is not synchronized. - * Concurrent `ros_message` reads are safe, but concurrent reads and writes are not. - * - Access to the publisher allocation is not synchronized, unless specifically stated - * otherwise by the implementation. - * Thus, it is generally not safe to read or write `allocation` while rmw_publish() uses it. - * Check the implementation documentation to learn about publisher allocations' thread-safety. - * - * \pre Given `publisher` must be a valid publisher, as returned by rmw_create_publisher(). - * \pre Given `ros_message` must be a valid message, whose type matches the message type - * support the `publisher` was registered with on creation. - * \pre If not NULL, given `allocation` must be a valid publisher allocation, initialized - * with rmw_publisher_allocation_init() with a message type support that matches the - * one registered with `publisher` on creation. - * - * \param[in] publisher Publisher to be used to send message. - * \param[in] ros_message Type erased ROS message to be sent. - * \param[in] allocation Pre-allocated memory to be used. May be NULL. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `publisher` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `ros_message` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if `publisher` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_publish( - const rmw_publisher_t * publisher, - const void * ros_message, - rmw_publisher_allocation_t * allocation); - -/// Publish a loaned ROS message. -/** - * Send a previously borrowed ROS message to all subscriptions with matching QoS policies - * using the given publisher, then return ROS message ownership to the middleware. - * - * If this function fails early due to a logical error, such as an invalid argument, - * the loaned ROS message will be left unchanged. - * Otherwise, ownership of the ROS message will be given back to the middleware. - * It is up to the middleware what will be made of the returned ROS message. - * It is undefined behavior to use a loaned ROS message after publishing it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check the implementation documentation. - * - * \par Runtime behavior - * It is implementation defined whether to publish a loaned ROS message is a - * synchronous or asynchronous, blocking or non-blocking operation. - * Check the implementation documentation to learn about publish behavior. - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on publish or not. - * For instance, implementations that serialize ROS messages to send it over the - * wire may need to perform additional memory allocations when dealing with - * unbounded (dynamically-sized) fields. - * A publisher allocation, if provided, may or may not be used. - * Check the implementation documentation to learn about memory allocation - * guarantees when publishing loaned ROS messages with and without publisher allocations. - * - * \par Thread-safety - * Publishers are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to publish using the same publisher concurrently. - * However, when publishing loaned ROS messages: - * - Ownership of the loaned ROS message is given back to the middleware. - * This transfer is not synchronized, and thus it is not safe to publish the - * same loaned ROS message concurrently. - * - Access to the publisher allocation is not synchronized, unless specifically stated - * otherwise by the implementation. - * Thus, it is generally not safe to read or write `allocation` while rmw_publish() uses it. - * Check the implementation documentation to learn about publisher allocations' thread-safety. - * - * \pre Given `publisher` must be a valid publisher, as returned by rmw_create_publisher(). - * \pre Given `ros_message` must be a valid message, borrowed from the same publisher using - * rmw_borrow_loaned_message(). - * \pre If not NULL, given `allocation` must be a valid publisher allocation, initialized - * with rmw_publisher_allocation_init() with a message type support that matches the - * one registered with `publisher` on creation. - * - * \param[in] publisher Publisher to be used to send message. - * \param[in] ros_message Loaned type erased ROS message to be sent. - * \param[in] allocation Pre-allocated memory to be used. May be NULL. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `publisher` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `ros_message` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if `publisher` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_UNSUPPORTED` if the implementation does not support ROS message loaning, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_publish_loaned_message( - const rmw_publisher_t * publisher, - void * ros_message, - rmw_publisher_allocation_t * allocation); - -/// Retrieve the number of matched subscriptions to a publisher. -/** - * Query the underlying middleware to determine how many subscriptions are - * matched to a given publisher. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \param[in] publisher the publisher object to inspect - * \param[out] subscription_count the number of subscriptions matched - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if either argument is null, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if publisher - * implementation identifier does not match, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_publisher_count_matched_subscriptions( - const rmw_publisher_t * publisher, - size_t * subscription_count); - -/// Retrieve the actual qos settings of the publisher. -/** - * Query the underlying middleware to determine the qos settings - * of the publisher. - * The actual configuration applied when using RMW_*_SYSTEM_DEFAULT - * can only be resolved after the creation of the publisher, and it - * depends on the underlying rmw implementation. - * If the underlying setting in use can't be represented in ROS terms, - * it will be set to RMW_*_UNKNOWN. - * - * \note The value of avoid_ros_namespace_conventions field is not resolved - * with this function. The rcl function `rcl_publisher_get_actual_qos()` - * resolves it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \param[in] publisher the publisher object to inspect - * \param[out] qos the actual qos settings - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if either argument is null, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if publisher - * implementation identifier does not match, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_publisher_get_actual_qos( - const rmw_publisher_t * publisher, - rmw_qos_profile_t * qos); - -/// Publish a ROS message as a byte stream. -/** - * Send a ROS message serialized as a byte stream to all subscriptions with - * matching QoS policies using the given publisher. - * A ROS message can be serialized manually using rmw_serialize(). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check the implementation documentation. - * - * \par Runtime behavior - * It is implementation defined whether to publish a loaned ROS message is a - * synchronous or asynchronous, blocking or non-blocking operation. - * However, asynchronous implementations are not allowed to access the - * given byte stream after this function returns. - * Check the implementation documentation to learn about publish behavior. - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on publish or not. - * Even if a publisher allocation is provided, an implementation may ignore it. - * Check the implementation documentation to learn about memory allocation - * guarantees when publishing serialized messages with and without publisher allocations. - * - * \par Thread-safety - * Publishers are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to publish using the same publisher concurrently. - * However, when publishing serialized ROS messages: - * - Access to the byte stream is read-only but it is not synchronized. - * Concurrent `serialized_message` reads are safe, but concurrent reads and writes are not. - * - Access to the publisher allocation is not synchronized, unless specifically stated - * otherwise by the implementation. - * Thus, it is generally not safe to read or write `allocation` while rmw_publish() uses it. - * Check the implementation documentation to learn about publisher allocations' thread-safety. - * - * \pre Given `publisher` must be a valid publisher, as returned by rmw_create_publisher(). - * \pre Given `serialized_message` must be a valid serialized message, initialized by - * rmw_serialized_message_init() and containing the serialization of a ROS message whose - * type matches the message type support the `publisher` was registered with on creation. - * \pre If not NULL, given `allocation` must be a valid publisher allocation, initialized - * with rmw_publisher_allocation_init() with a message type support that matches the - * one registered with `publisher` on creation. - * - * \param[in] publisher Publisher to be used to send message. - * \param[in] serialized_message Serialized ROS message to be sent. - * \param[in] allocation Pre-allocated memory to be used. May be NULL. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `publisher` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `serialized_message` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if `publisher` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_publish_serialized_message( - const rmw_publisher_t * publisher, - const rmw_serialized_message_t * serialized_message, - rmw_publisher_allocation_t * allocation); - -/// Compute the size of a serialized message. -/** - * Given a message definition and bounds, compute the serialized size. - * - * \param[in] type_support The type support of the message to compute. - * \param[in] message_bounds Artifical bounds to use on unbounded fields. - * \param[out] size The computed size of the serialized message. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if either argument is null, or - * \return `RMW_RET_UNSUPPORTED` if it's unimplemented, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_get_serialized_message_size( - const rosidl_message_type_support_t * type_support, - const rosidl_runtime_c__Sequence__bound * message_bounds, - size_t * size); - -/// Manually assert that this Publisher is alive (for RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC) -/** - * If the rmw Liveliness policy is set to RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC, the creator of - * this publisher may manually call `assert_liveliness` at some point in time to signal to the rest - * of the system that this Node is still alive. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] publisher handle to the publisher that needs liveliness to be asserted - * \return `RMW_RET_OK` if the liveliness assertion was completed successfully, or - * \return `RMW_RET_ERROR` if an unspecified error occurs, or - * \return `RMW_RET_UNSUPPORTED` if the rmw implementation does not support asserting liveliness. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_publisher_assert_liveliness(const rmw_publisher_t * publisher); - -/// Wait until all published message data is acknowledged or until the specified timeout elapses. -/** - * This function waits until all published message data were acknowledged by peer node or timeout. - * - * This function only works effectively while QOS profile of publisher is set to RELIABLE. - * Otherwise this function will immediately return RMW_RET_OK. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \par Runtime behavior - * Waiting for all acknowledgments is synchronous operation. - * So the calling thread is blocked until all published message data is acknowledged or specified - * duration elapses. - * - * \par Thread-Safety - * Publishers are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to call this function using the same publisher concurrently. - * - * \pre Given `publisher` must be a valid publisher, as returned by rmw_create_publisher(). - * - * \param[in] publisher handle to the publisher that needs to wait for all acked. - * \param[in] wait_timeout represents the maximum amount of time to wait for all published message - * data were acknowledged. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_TIMEOUT` if wait timed out, or - * \return `RMW_RET_INVALID_ARGUMENT` if `publisher` is `NULL`, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `publisher` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unspecified error occurs, or - * \return `RMW_RET_UNSUPPORTED` if the rmw implementation is unimplemented. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_publisher_wait_for_all_acked( - const rmw_publisher_t * publisher, - rmw_time_t wait_timeout); - -/// Serialize a ROS message into a rmw_serialized_message_t. -/** - * The ROS message is serialized into a byte stream contained within the - * rmw_serialized_message_t structure. - * The serialization format depends on the underlying implementation. - * - * \pre Given ROS message must be a valid non-null instance, initialized - * by the caller and matching the provided typesupport. - * \pre Given typesupport must be a valid non-null instance, as provided - * by `rosidl` APIs. - * \pre Given serialized message must be a valid non-null instance, initialized - * by the caller. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | Maybe [2] - * Lock-Free | Maybe [2] - * [1] if the given serialized message does not have enough capacity to hold - * the ROS message serialization - * [2] rmw implementation defined, check the implementation documentation - * - * \param[in] ros_message the typed ROS message - * \param[in] type_support the typesupport for the ROS message - * \param[out] serialized_message the destination for the serialize ROS message - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation failed, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_serialize( - const void * ros_message, - const rosidl_message_type_support_t * type_support, - rmw_serialized_message_t * serialized_message); - -/// Deserialize a ROS message. -/** - * The given rmw_serialized_message_t's internal byte stream buffer is deserialized - * into the given ROS message. - * The serialization format expected in the rmw_serialized_message_t depends on the - * underlying implementation. - * - * \pre Given serialized message must be a valid non-null instance, such - * as that returned by `rmw_serialize()`, matching provided typesupport - * and ROS message. - * \pre Given typesupport must be a valid non-null instance, as provided - * by `rosidl` APIs. - * \pre Given ROS message must be a valid non-null instance, initialized - * by the caller. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | Maybe [2] - * Lock-Free | Maybe [2] - * [1] if the given ROS message contains unbounded fields - * [2] rmw implementation defined, check the implementation documentation - * - * \param[in] serialized_message the serialized message holding the byte stream - * \param[in] type_support the typesupport for the typed ros message - * \param[out] ros_message destination for the deserialized ROS message - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation failed, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_deserialize( - const rmw_serialized_message_t * serialized_message, - const rosidl_message_type_support_t * type_support, - void * ros_message); - -/// Initialize a subscription allocation to be used with later `take`s. -/** - * This creates an allocation object that can be used in conjunction with - * the rmw_take method to perform more carefully control memory allocations. - * - * This will allow the middleware to preallocate the correct amount of memory - * for a given message type and message bounds. - * As allocation is performed in this method, it will not be necessary to allocate - * in the `rmw_take` method. - * - * \param[in] type_support Type support of the message to be preallocated. - * \param[in] message_bounds Bounds structure of the message to be preallocated. - * \param[out] allocation Allocation structure to be passed to `rmw_take`. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_UNSUPPORTED` if it's unimplemented - * \return `RMW_RET_INVALID_ARGUMENT` if an argument is null, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_init_subscription_allocation( - const rosidl_message_type_support_t * type_support, - const rosidl_runtime_c__Sequence__bound * message_bounds, - rmw_subscription_allocation_t * allocation); - -/// Destroy a publisher allocation object. -/** - * This deallocates memory allocated by `rmw_init_subscription_allocation`. - * - * \param[in] allocation Allocation object to be destroyed. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_UNSUPPORTED` if it's unimplemented - * \return `RMW_RET_INVALID_ARGUMENT` if argument is null, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_fini_subscription_allocation( - rmw_subscription_allocation_t * allocation); - -/// Create a subscription and return a handle to that subscription. -/** - * This function can fail, and therefore return `NULL`, if: - * - node is not a valid non-null handle for this rmw implementation, - * as returned by `rmw_create_node()` - * - type_support is a not valid non-null message type support, as returned by - * `ROSIDL_GET_MSG_TYPE_SUPPORT()` - * - topic_name is not a valid non-null topic name, according to - * `rmw_validate_full_topic_name()` if ROS namespace conventions apply - * - qos_profile is not a fully specified non-null profile i.e. no UNKNOWN policies - * - subscription_options is not a valid non-null option set, such as the one - * returned by `rmw_get_default_subscription_options()` - * - memory allocation fails during subscription creation - * - an unspecified error occurs - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \param[in] node Handle to node with which to register this subscription - * \param[in] type_support Type support for the messages to be subscribed to - * \param[in] topic_name Name of the topic to subscribe to, often a fully qualified - * topic name unless `qos_profile` is configured to avoid ROS namespace conventions - * i.e. to create a native topic subscription - * \param[in] qos_policies QoS policies for this subscription - * \param[in] subscription_options Options for configuring this subscription - * \return rmw subscription handle, or `NULL` if there was an error - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_subscription_t * -rmw_create_subscription( - const rmw_node_t * node, - const rosidl_message_type_support_t * type_support, - const char * topic_name, - const rmw_qos_profile_t * qos_policies, - const rmw_subscription_options_t * subscription_options); - -/// Finalize a given subscription handle, reclaim the resources, and deallocate the subscription -/// handle. -/** - * This function will return early if a logical error, namely `RMW_RET_INVALID_ARGUMENT` - * or `RMW_RET_INCORRECT_RMW_IMPLEMENTATION`, ensues, leaving the given subscription handle - * unchanged. - * Otherwise, it will proceed despite errors, freeing as many resources as it can, including - * the subscription handle, and return `RMW_RET_ERROR`. Usage of a deallocated subscription - * handle is undefined behavior. - * - * \pre Given node must be the one the subscription was registered with. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \param[in] node Handle to node with which the given subscription is registered - * \param[in] subscription Handle to subscription to be finalized - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if node or subscription is `NULL`, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if node or subscription - * implementation identifier does not match, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_destroy_subscription(rmw_node_t * node, rmw_subscription_t * subscription); - -/// Retrieve the number of matched publishers to a subscription. -/** - * Query the underlying middleware to determine how many publishers are - * matched to a given subscription. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \param[in] subscription the subscription object to inspect - * \param[out] publisher_count the number of publishers matched - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if either argument is null, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if subscription - * implementation identifier does not match, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_subscription_count_matched_publishers( - const rmw_subscription_t * subscription, - size_t * publisher_count); - -/// Retrieve the actual qos settings of the subscription. -/** - * Query the underlying middleware to determine the qos settings - * of the subscription. - * The actual configuration applied when using RMW_*_SYSTEM_DEFAULT - * can only be resolved after the creation of the subscription, and it - * depends on the underlying rmw implementation. - * If the underlying setting in use can't be represented in ROS terms, - * it will be set to RMW_*_UNKNOWN. - * - * \note The value of avoid_ros_namespace_conventions field is not resolved - * with this function. The rcl function `rcl_subscription_get_actual_qos()` - * resolves it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \param[in] subscription the subscription object to inspect - * \param[out] qos the actual qos settings - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if either argument is null, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if subscription - * implementation identifier does not match, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_subscription_get_actual_qos( - const rmw_subscription_t * subscription, - rmw_qos_profile_t * qos); - -/// Set the content filter options for the subscription. -/** - * This function will set a filter expression and an array of expression parameters - * for the given subscription. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] implementation defined, check the implementation documentation - * - * \param[in] subscription The subscription to set content filter options. - * \param[in] options The content filter options. - * Use `options.filter_expression` with an empty("") string to - * reset/clean content filtered topic for the subscription. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if an argument is null, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `subscription` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_UNSUPPORTED` if the implementation does not support content filtered topic, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_subscription_set_content_filter( - rmw_subscription_t * subscription, - const rmw_subscription_content_filter_options_t * options); - -/// Retrieve the content filter options of the subscription. -/** - * This function will return a content filter options by the given subscription. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] implementation defined, check the implementation documentation - * - * \param[in] subscription The subscription object to inspect. - * \param[in] allocator Allocator to be used when populating the content filter options. - * \param[out] options The content filter options. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if an argument is null, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `subscription` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_UNSUPPORTED` if the implementation does not support content filtered topic, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_subscription_get_content_filter( - const rmw_subscription_t * subscription, - rcutils_allocator_t * allocator, - rmw_subscription_content_filter_options_t * options); - -/// Take an incoming ROS message. -/** - * Take a ROS message already received by the given subscription, removing it from internal queues. - * This function will succeed even if no ROS message was received, but `taken` will be false. - * - * \remarks The same ROS message cannot be taken twice. - * Callers do not have to deal with duplicates. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * To take a ROS message is a synchronous operation. - * It is also non-blocking, to the extent it will not wait for new ROS messages to arrive, - * but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on take or not. - * For instance, implementations that deserialize ROS messages received over - * the wire may need to perform additional memory allocations when dealing with - * unbounded (dynamically-sized) fields. - * A subscription allocation, if provided, may or may not be used. - * Check the implementation documentation to learn about memory allocation - * guarantees when taking ROS messages with and without subscription allocations. - * - * \par Thread-safety - * Subscriptions are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to take from the same subscription concurrently. - * However, when taking regular ROS messages: - * - Access to the given ROS message is not synchronized. - * It is not safe to read or write `ros_message` while rmw_take() uses it. - * - Access to given primitive data-type arguments is not synchronized. - * It is not safe to read or write `taken` while rmw_take() uses it. - * - Access to the given subscription allocation is not synchronized, - * unless specifically stated otherwise by the implementation. - * Thus, it is generally not safe to read or write `allocation` while rmw_take() uses it. - * Check the implementation documentation to learn about subscription allocations' - * thread-safety. - * - * \pre Given `subscription` must be a valid subscription, as returned - * by rmw_create_subscription(). - * \pre Given `ros_message` must be a valid message, whose type matches the message type support - * registered with the `subscription` on creation. - * \pre If not NULL, given `allocation` must be a valid subscription allocation initialized - * with rmw_subscription_allocation_init() with a message type support that matches the - * one registered with the `subscription` on creation. - * \post Given `ros_message` will remain a valid message. - * It will be left unchanged if this function fails early due to a logical error, such as an - * invalid argument, or in an unknown yet valid state if it fails due to a runtime error. - * It will also be left unchanged if this function succeeds but `taken` is false. - * - * \param[in] subscription Subscription to take message from. - * \param[out] ros_message Type erased ROS message to write to. - * \param[out] taken Boolean flag indicating if a ROS message was taken or not. - * \param[in] allocation Pre-allocated memory to be used. May be NULL. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_INVALID_ARGUMENT` if `subscription` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `ros_message` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `taken` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `subscription` - * implementation identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_take( - const rmw_subscription_t * subscription, - void * ros_message, - bool * taken, - rmw_subscription_allocation_t * allocation); - -/// Take an incoming ROS message with its metadata. -/** - * Same as rmw_take(), except it also takes ROS message metadata. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * To take a ROS message with its metadata is a synchronous operation. - * It is also non-blocking, to the extent it will not wait for new ROS messages to arrive, - * but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on take or not. - * For instance, implementations that deserialize ROS messages received over - * the wire may need to perform additional memory allocations when dealing with - * unbounded (dynamically-sized) fields. - * A subscription allocation, if provided, may or may not be used. - * Check the implementation documentation to learn about memory allocation - * guarantees when taking ROS messages with and without subscription allocations. - * - * \par Thread-safety - * Subscriptions are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to take from the same subscription concurrently. - * However, when taking regular ROS messages with metadata: - * - Access to the given ROS message is not synchronized. - * It is not safe to read or write `ros_message` while rmw_take_with_info() uses it. - * - Access to given primitive data-type arguments is not synchronized. - * It is not safe to read or write `taken` while rmw_take_with_info() uses it. - * - Access to the given ROS message metadata is not synchronized. - * It is not safe to read or write `message_info` while rmw_take_with_info() uses it. - * - Access to the given subscription allocation is not synchronized, - * unless specifically stated otherwise by the implementation. - * Thus, it is generally not safe to read or write `allocation` while rmw_take_with_info() - * uses it. - * Check the implementation documentation to learn about subscription allocations' - * thread-safety. - * - * \pre Given `subscription` must be a valid subscription, as returned - * by rmw_create_subscription(). - * \pre Given `ros_message` must be a valid message, whose type matches - * the message type support registered with the `subscription` on creation. - * \pre If not NULL, given `allocation` must be a valid subscription allocation - * initialized with rmw_subscription_allocation_init() with a message type support - * that matches the one registered with the `subscription` on creation. - * \post Given `ros_message` will remain a valid message, and - * `message_info`, valid message metadata. - * Both will be left unchanged if this function fails early due to a logical error, such as - * an invalid argument, or in an unknown yet valid state if it fails due to a runtime error. - * Both will also be left unchanged if this function succeeds but `taken` is false. - * - * \param[in] subscription Subscription to take ROS message from. - * \param[out] ros_message Type erased ROS message to write to. - * \param[out] taken Boolean flag indicating if a ROS message was taken or not. - * \param[out] message_info Taken ROS message metadata. - * \param[in] allocation Pre-allocated memory to be used. May be NULL. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_INVALID_ARGUMENT` if `subscription` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `ros_message` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `taken` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `message_info` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `subscription` - * implementation identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_take_with_info( - const rmw_subscription_t * subscription, - void * ros_message, - bool * taken, - rmw_message_info_t * message_info, - rmw_subscription_allocation_t * allocation); - -/// Take multiple incoming ROS messages with their metadata. -/** - * Take a sequence of consecutive ROS messages already received by the given - * subscription, removing them from internal queues. - * While `count` ROS messages may be requested, fewer messages may have been - * received by the subscription. - * This function will only take what has been already received, and it will - * succeed even if fewer (or zero) messages were received. - * In this case, only currently available messages will be returned. - * The `taken` output variable indicates the number of ROS messages actually taken. - * - * \remarks Once taken, ROS messages in the sequence cannot be taken again. - * Callers do not have to deal with duplicates. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * To take a sequence of ROS messages is a synchronous operation. - * It is also non-blocking, to the extent it will not wait for new ROS messages to arrive, - * but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on take or not. - * For instance, implementations that deserialize ROS messages received over - * the wire may need to perform additional memory allocations when dealing with - * unbounded (dynamically-sized) fields. - * A subscription allocation, if provided, may or may not be used. - * Check the implementation documentation to learn about memory allocation - * guarantees when taking ROS messages with and without subscription allocations. - * - * \par Thread-safety - * Subscriptions are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to take from the same subscription concurrently. - * Moreover, the sequence of ROS messages taken is guaranteed to be consecutive and to - * preserve the order in the subscription queues, despite any concurrent takes. - * However, when taking a sequence of ROS messages with metadata: - * - Access to the given ROS message sequence is not synchronized. - * It is not safe to read or write `message_sequence` while rmw_take_sequence() uses it. - * - Access to the given ROS message metadata sequence is not synchronized. - * It is not safe to read or write `message_info_sequence` while rmw_take_sequence() uses it. - * - Access to given primitive data-type arguments is not synchronized. - * It is not safe to read or write `taken` while rmw_take_sequence() uses it. - * - Access to the given subscription allocation is not synchronized, - * unless specifically stated otherwise by the implementation. - * Thus, it is generally not safe to read or write `allocation` while rmw_take_sequence() - * uses it. - * Check the implementation documentation to learn about subscription allocations' - * thread-safety. - * - * \pre Given `subscription` must be a valid subscription, as returned - * by rmw_create_subscription(). - * \pre Given `message_sequence` must be a valid message sequence, initialized - * by rmw_message_sequence_init() and populated with ROS messages whose - * type matches the message type support registered with the `subscription` - * on creation. - * \pre Given `message_info_sequence` must be a valid message metadata sequence, - * initialized by rmw_message_info_sequence_init(). - * \pre If not NULL, given `allocation` must be a valid subscription allocation initialized - * with rmw_subscription_allocation_init() with a message type support that matches the - * one registered with `subscription` on creation. - * \post Given `message_sequence` will remain a valid message sequence, and - * `message_info_sequence`, a valid message metadata sequence. - * Both will be left unchanged if this function fails early due to a logical error, such as - * an invalid argument, or in an unknown yet valid state if it fails due to a runtime error. - * Both will also be left unchanged if this function succeeds but `taken` is zero. - * - * \param[in] subscription Subscription to take ROS message from. - * \param[in] count Number of messages to attempt to take. - * \param[out] message_sequence Sequence of type erase ROS messages to write to. - * Message sequence capacity has to be enough to hold all requested messages - * i.e. capacity has to be equal or greater than `count`. - * It does not have to match that of `message_info_sequence`. - * \param[out] message_info_sequence Sequence of additional message metadata. - * Message info sequence capacity has to be enough to hold all requested messages - * metadata i.e. capacity has to be equal or greater than `count`. - * It does not have to match that of `message_sequence`. - * \param[out] taken Number of messages actually taken from subscription. - * \param[in] allocation Pre-allocated memory to use. May be NULL. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_INVALID_ARGUMENT` if `subscription` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `message_sequence` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `message_info_sequence` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `taken` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `count` is 0, or - * \return `RMW_RET_INVALID_ARGUMENT` if `message_sequence` capacity is less than `count`, or - * \return `RMW_RET_INVALID_ARGUMENT` if `message_info_sequence` capacity is less than `count`, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `subscription` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_take_sequence( - const rmw_subscription_t * subscription, - size_t count, - rmw_message_sequence_t * message_sequence, - rmw_message_info_sequence_t * message_info_sequence, - size_t * taken, - rmw_subscription_allocation_t * allocation); - -/// Take an incoming ROS message as a byte stream. -/** - * Take a ROS message already received by the given subscription, removing it from internal queues. - * This function will succeed even if no ROS message was received, but `taken` will be false. - * Unlike rmw_take(), the ROS message is taken in its serialized form, as a byte stream. - * If needed, this byte stream can then be deserialized into a ROS message with rmw_deserialize(). - * - * \remarks The same ROS message, serialized or not, cannot be taken twice. - * Callers do not have to deal with duplicates. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * To take a ROS message a byte stream is a synchronous operation. - * It is also non-blocking, to the extent it will not wait for new ROS messages to arrive, - * but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on take or not. - * For instance, implementations may have to perform additional memory allocations - * when dealing with ROS messages that contain unbounded (dynamically-sized) fields - * i.e. these implementations may have to resize the given byte stream. - * A subscription allocation, if provided, may or may not be used. - * Check the implementation documentation to learn about memory allocation guarantees - * when taking serialized ROS messages with and without subscription allocations. - * \par - * For ROS messages that only contain bounded (fixed-size) fields, callers can query - * their size using rmw_get_serialized_message_size() and resize `serialized_message` - * using rmw_serialized_message_resize() accordingly to prevent byte stream resizing - * on take. - * Nonetheless, byte stream resizing is not guaranteed to be the sole memory operation. - * - * \par Thread-safety - * Subscriptions are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to take from the same subscription concurrently. - * However, when taking serialized ROS messages: - * - Access to the given byte stream for serialized ROS messages is not synchronized. - * It is not safe to read or write `serialized_message` while - * rmw_take_serialized_message() uses it. - * - Access to given primitive data-type arguments is not synchronized. - * It is not safe to read or write `taken` while rmw_take_serialized_message() uses it. - * - Access to the given subscription allocation is not synchronized, - * unless specifically stated otherwise by the implementation. - * Thus, it is generally not safe to read or write `allocation` while - * rmw_take_serialized_message() uses it. - * Check the implementation documentation to learn about subscription allocations' - * thread-safety. - * - * \pre Given `subscription` must be a valid subscription, as returned by - * rmw_create_subscription(). - * \pre Given `serialized_message` must be a valid serialized message, initialized by - * rmw_serialized_message_init(). - * \pre If not NULL, given `allocation` must be a valid subscription allocation initialized - * with rmw_subscription_allocation_init() with a message type support that matches the - * one registered with `subscription` on creation. - * \post Given `serialized_message` will remain a valid serialized message. - * It will be left unchanged if this function fails early due to a logical error, - * such as an invalid argument, or in an unknown yet valid state if it fails due to a - * runtime error. - * It will also be left unchanged if this function succeeds but `taken` is false. - * - * \param[in] subscription Subscription to take ROS message from. - * \param[out] serialized_message Byte stream to write to. - * \param[out] taken Boolean flag indicating if a ROS message was taken or not. - * \param[in] allocation Pre-allocated memory to use. May be NULL. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_INVALID_ARGUMENT` if `subscription` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `serialized_message` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `taken` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `subscription` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_take_serialized_message( - const rmw_subscription_t * subscription, - rmw_serialized_message_t * serialized_message, - bool * taken, - rmw_subscription_allocation_t * allocation); - -/// Take an incoming ROS message as a byte stream with its metadata. -/** - * Same as rmw_take_serialized_message(), except it also takes ROS message metadata. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * To take a ROS message a byte stream with its metadata is a synchronous operation. - * It is also non-blocking, to the extent it will not wait for new ROS messages to arrive, - * but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on take or not. - * For instance, implementations may have to perform additional memory allocations - * when dealing with ROS messages that contain unbounded (dynamically-sized) fields - * i.e. these implementations may have to resize the given byte stream. - * A subscription allocation, if provided, may or may not be used. - * Check the implementation documentation to learn about memory allocation guarantees - * when taking serialized ROS messages with and without subscription allocations. - * \par - * For ROS messages that only contain bounded (fixed-size) fields, callers can query - * their size using rmw_get_serialized_message_size() and resize `serialized_message` - * using rmw_serialized_message_resize() accordingly to prevent byte stream resizing - * on take. - * Nonetheless, byte stream resizing is not guaranteed to be the sole memory operation. - * - * \par Thread-safety - * Subscriptions are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to take from the same subscription concurrently. - * However, when taking serialized ROS messages with metadata: - * - Access to the given byte stream for serialized ROS messages is not synchronized. - * It is not safe to read or write `serialized_message` while - * rmw_take_serialized_message_with_info() uses it. - * - Access to the given ROS message metadata is not synchronized. - * It is not safe to read or write `message_info` while - * rmw_take_serialized_message_with_info() uses it. - * - Access to given primitive data-type arguments is not synchronized. - * It is not safe to read or write `taken` while rmw_take_serialized_message_with_info() - * uses it. - * - Access to the given subscription allocation is not synchronized, - * unless specifically stated otherwise by the implementation. - * Thus, it is generally not safe to read or write `allocation` while - * rmw_take_serialized_message_with_info() uses it. - * Check the implementation documentation to learn about subscription allocations' - * thread-safety. - * - * \pre Given `serialized_message` must be a valid serialized message, initialized by - * rmw_serialized_message_init(). - * \pre If not NULL, given `allocation` must be a valid subscription allocation initialized - * with rmw_subscription_allocation_init() with a message type support that matches the - * one registered with `subscription` on creation. - * \post Given `serialized_message` will remain a valid serialized message, and `message_info`, - * valid message metadata. - * Both will be left unchanged if this function fails early due to a logical error, - * such as an invalid argument, or in an unknown yet valid state if it fails due to a - * runtime error. - * It will also be left unchanged if this function succeeds but `taken` is false. - * - * \param[in] subscription Subscription to take ROS message from. - * \param[out] serialized_message Byte stream to write to. - * \param[out] taken Boolean flag indicating if a ROS message was taken or not. - * \param[out] message_info Taken ROS message metadata. - * \param[in] allocation Pre-allocated memory to use. May be NULL. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_INVALID_ARGUMENT` if `subscription` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `serialized_message` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `taken` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `message_info` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `subscription` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_take_serialized_message_with_info( - const rmw_subscription_t * subscription, - rmw_serialized_message_t * serialized_message, - bool * taken, - rmw_message_info_t * message_info, - rmw_subscription_allocation_t * allocation); - -/// Take an incoming ROS message, loaned by the middleware. -/** - * Take a ROS message already received by the given subscription, removing it from internal queues. - * This function will succeed even if no ROS message was received, but `taken` will be false. - * The loaned ROS message is owned by the middleware, which will keep it alive (i.e. in valid - * memory space) until the caller returns it using rmw_return_loaned_message_from_subscription(). - * - * \remarks The same ROS message, loaned or not, cannot be taken twice. - * Callers do not have to deal with duplicates. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * To take a loaned ROS message is a synchronous operation. - * It is also non-blocking, to the extent it will not wait for new ROS messages to arrive - * nor for internal memory loaning pools, if any, to be replenished, but it is not - * guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on take or not. - * For instance, implementations that deserialize ROS messages received over - * the wire may need to perform additional memory allocations when dealing with - * unbounded (dynamically-sized) fields. - * A subscription allocation, if provided, may or may not be used. - * Check the implementation documentation to learn about memory allocation - * guarantees when taking loaned ROS messages with and without subscription allocations. - * - * \par Thread-safety - * Subscriptions are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to take from the same subscription concurrently. - * However, when taking loaned ROS messages: - * - Access to given primitive data-type arguments is not synchronized. - * It is not safe to read or write `taken` nor `loaned_message` - * while rmw_take_loaned_message() uses them. - * - Access to the given subscription allocation is not synchronized, - * unless specifically stated otherwise by the implementation. - * Thus, it is generally not safe to read or write `allocation` while - * rmw_take_loaned_message() uses it. - * Check the implementation documentation to learn about subscription allocations' - * thread-safety. - * - * \pre Given `subscription` must be a valid subscription, as returned - * by rmw_create_subscription(). - * \pre If not NULL, given `allocation` must be a valid subscription allocation initialized - * with rmw_subscription_allocation_init() with a message type support that matches the - * one registered with `subscription` on creation. - * \post Given `loaned_message` will remain unchanged, or point to a valid message if - * this function was successful and `taken` is true. - * - * \param[in] subscription Subscription to take ROS message from. - * \param[inout] loaned_message Pointer to type erased ROS message taken - * and loaned by the middleware. - * \param[out] taken Boolean flag indicating if a ROS message was taken or not. - * \param[in] allocation Pre-allocated memory to use. May be NULL. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_INVALID_ARGUMENT` if `subscription` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `loaned_message` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `*loaned_message` is not NULL (to prevent leaks), or - * \return `RMW_RET_INVALID_ARGUMENT` if `taken` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `subscription` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_UNSUPPORTED` if the implementation does not support loaned ROS messages, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_take_loaned_message( - const rmw_subscription_t * subscription, - void ** loaned_message, - bool * taken, - rmw_subscription_allocation_t * allocation); - -/// Take a loaned message and with its additional message information. -/** - * Same as rmw_take_loaned_message(), except it also takes ROS message metadata. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * To take a loaned ROS message with its metadata is a synchronous operation. - * It is also non-blocking, to the extent it will not wait for new ROS messages to arrive - * nor for internal memory loaning pools, if any, to be replenished, but it is not - * guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on take or not. - * For instance, implementations that deserialize ROS messages received over - * the wire may need to perform additional memory allocations when dealing with - * unbounded (dynamically-sized) fields. - * A subscription allocation, if provided, may or may not be used. - * Check the implementation documentation to learn about memory allocation - * guarantees when taking loaned ROS messages with and without subscription allocations. - * - * \par Thread-safety - * Subscriptions are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to take from the same subscription concurrently. - * However, when taking loaned ROS messages with metadata: - * - Access to given primitive data-type arguments is not synchronized. - * It is not safe to read or write `taken` nor `loaned_message` - * while rmw_take_loaned_message_with_info() uses them. - * - Access to the given ROS message metadata is not synchronized. - * It is not safe to read or write `message_info` while - * rmw_take_loaned_message_with_info() uses it. - * - Access to the given subscription allocation is not synchronized, - * unless specifically stated otherwise by the implementation. - * Thus, it is generally not safe to read or write `allocation` while - * rmw_take_loaned_message_with_info() uses it. - * Check the implementation documentation to learn about subscription allocations' - * thread-safety. - * - * \pre Given `subscription` must be a valid subscription, as returned - * by rmw_create_subscription(). - * \pre If not NULL, given `allocation` must be a valid subscription allocation initialized - * with rmw_subscription_allocation_init() with a message type support that matches the - * one registered with `subscription` on creation. - * \post Given `loaned_message` will remain unchanged, or point to a valid message if - * this function was successful and `taken` is true. - * \post Given `message_info` will remain valid message metadata. - * It will be left unchanged if this function fails early due to a logical error, - * such as an invalid argument, or in an unknown yet valid state if it fails due to a - * runtime error. - * It will also be left unchanged if this function succeeds but `taken` is false. - * - * \param[in] subscription Subscription to take ROS message from. - * \param[inout] loaned_message Pointer to type erased ROS message taken - * and loaned by the middleware. - * \param[out] taken Boolean flag indicating if a ROS message was taken or not. - * \param[out] message_info Taken ROS message metadata. - * \param[in] allocation Pre-allocated memory to use. May be NULL. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_INVALID_ARGUMENT` if `subscription` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `loaned_message` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `*loaned_message` is not NULL to prevent leaks, or - * \return `RMW_RET_INVALID_ARGUMENT` if `taken` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `message_info` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `subscription` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_UNSUPPORTED` if the implementation does not support loaned ROS messages, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_take_loaned_message_with_info( - const rmw_subscription_t * subscription, - void ** loaned_message, - bool * taken, - rmw_message_info_t * message_info, - rmw_subscription_allocation_t * allocation); - -/// Return a loaned ROS message previously taken from a subscription. -/** - * Tells the middleware that previously loaned ROS message is no longer needed by the caller. - * If this function fails early due to a logical error, such as an invalid argument, - * the loaned ROS message will be left unchanged. - * Otherwise, ownership of the ROS message will be given back to the middleware. - * It is up to the middleware what will be made of the returned ROS message. - * It is undefined behavior to use a loaned ROS message after returning it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * To return a loaned ROS message is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Subscriptions are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to return loaned ROS messages to the same subscription concurrently. - * However, since ownership of the loaned ROS message is given back to middleware and this - * transfer is not synchronized, it is not safe to return the same loaned ROS message - * concurrently. - * - * \pre Given `subscription` must be a valid subscription, as returned - * by rmw_create_subscription(). - * \pre Given `loaned_message` must be a loaned ROS message, previously taken from - * `subscription` using rmw_take_loaned_message() or rmw_take_loaned_message_with_info(). - * - * \param[in] subscription Subscription the ROS message was taken and loaned from. - * \param[in] loaned_message Loaned type erased ROS message to be returned to the middleware. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `subscription` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `loaned_message` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `subscription` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_UNSUPPORTED` if the implementation does not support loaned ROS messages, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_return_loaned_message_from_subscription( - const rmw_subscription_t * subscription, - void * loaned_message); - -/// Create a service client that can send requests to and receive replies from a service server. -/** - * This function can fail, and therefore return `NULL`, if: - * - `node` is `NULL`, or - * - `node` does not belong to this implementation - * i.e. it does not have a matching implementation identifier, or - * - `type_support` is `NULL`, or - * - `service_name` is `NULL`, or - * - `service_name` is an empty string, or - * - (if ROS namespace conventions apply) `service_name` is invalid by - * rmw_validate_full_topic_name() definition, or - * - `qos_profile` is `NULL`, or - * - `qos_profile` has invalid or unknown policies, or - * - memory allocation fails during service client creation, or - * - an unspecified error occurs. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \pre Given `node` must be a valid node, as returned by rmw_create_node(). - * \pre Given `type_support` must be a valid `rosidl` service type support, as - * returned by ROSIDL_GET_SRV_TYPE_SUPPORT(). - * - * \param[in] node Node with which to register this service client. - * \param[in] type_support Type support of the service to be used. - * \param[in] service_name Name of the service to be used, often a fully qualified - * service name unless `qos_profile` is configured to avoid ROS namespace conventions - * i.e. to create a native service client. - * \param[in] qos_policies QoS policies for this service client's connections. - * \return rmw service client handle, or `NULL` if there was an error. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_client_t * -rmw_create_client( - const rmw_node_t * node, - const rosidl_service_type_support_t * type_support, - const char * service_name, - const rmw_qos_profile_t * qos_policies); - -/// Destroy and unregister a service client from its node. -/** - * This function will reclaim all associated resources, including the service client itself. - * Use of a destroyed service client is undefined behavior. - * This function will return early if a logical error, such as `RMW_RET_INVALID_ARGUMENT` - * or `RMW_RET_INCORRECT_RMW_IMPLEMENTATION`, ensues, leaving the given service client unchanged. - * Otherwise, it will proceed despite errors. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \pre Given `node` must be the one the service client was registered with. - * \pre Given `client` must be a valid service client, as returned by rmw_create_service(). - * - * \param[in] node Node with which the given service client is registered. - * \param[in] client Service client to be destroyed. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is `NULL`, or - * \return `RMW_RET_INVALID_ARGUMENT` if `client` is `NULL`, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` - * implementation identifier does not match this implementation, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `client` - * implementation identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_destroy_client(rmw_node_t * node, rmw_client_t * client); - -/// Send a ROS service request. -/** - * Send a ROS service request to one or more service servers, with matching QoS policies, - * using the given client. - * - * \note It is implementation defined how many service servers may get, and potentially react to, - * the same request, considering there may be more than one server for the same service - * in the ROS graph. - * - * On success, this function will return a sequence number. - * It is up to callers to save the returned sequence number to pair the ROS service request - * just sent with future ROS service responses (taken using rmw_take_response()). - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * It is implementation defined whether sending a ROS service request is a - * synchronous or asynchronous, and blocking or non-blocking, operation. - * However, asynchronous implementations are not allowed to access the - * given ROS service request after this function returns. - * Check the implementation documentation to learn about request behavior. - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on send or not. - * For instance, implementations that serialize ROS service requests may need to - * perform additional memory allocations when dealing with unbounded (dynamically-sized) - * fields. - * - * \par Thread-safety - * Service clients are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to send requests using the same service client concurrently. - * However: - * - Access to the given ROS service request is read-only but it is not synchronized. - * Concurrent `ros_request` reads are safe, but concurrent reads and writes are not. - * - Access to given primitive data-type arguments is not synchronized. - * It is not safe to read or write `sequence_id` while rmw_send_request() uses it. - * - * \pre Given `client` must be a valid client, as returned by rmw_create_client(). - * \pre Given `ros_request` must be a valid service request, whose type matches the - * service type support registered with the `client` on creation. - * - * \param[in] client Service client to send a request with. - * \param[in] ros_request ROS service request to be sent. - * \param[out] sequence_id Sequence number for the `ros_request` just sent - * i.e. a unique identification number for it, populated on success. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_INVALID_ARGUMENT` if `client` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `ros_request` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `sequence_id` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `client` - * implementation identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_send_request( - const rmw_client_t * client, - const void * ros_request, - int64_t * sequence_id); - -/// Take an incoming ROS service response. -/** - * Take a ROS service response already received by the given service server, removing - * it from internal queues. - * The response header (i.e. its metadata), containing at least the writer guid and - * sequence number, is also retrieved. - * Both writer guid and sequence number allow callers to pair, potentially for each - * remote service server, a ROS service response with its corresponding ROS service - * request, previously sent using rmw_send_request(). - * - * \note It is implementation defined how many responses a given request may get, - * considering there may be more than one server for the same service in the ROS graph. - * - * This function will succeed even if no ROS service request was received, - * but `taken` will be false. - * - * \remarks The same ROS service response cannot be taken twice. - * Callers do not have to deal with duplicates. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * Taking a ROS service response is a synchronous operation. - * It is also non-blocking, to the extent it will not wait for new ROS service responses - * to arrive, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on take or not. - * For instance, implementations that deserialize ROS service responses received over - * the wire may need to perform additional memory allocations when dealing with - * unbounded (dynamically-sized) fields. - * - * \par Thread-safety - * Service clients are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to take responses from the same service client concurrently. - * However: - * - Access to the given ROS service response is not synchronized. - * It is not safe to read or write `ros_response` while rmw_take_request() uses it. - * - Access to the given ROS service response header is not synchronized. - * It is not safe to read or write `request_header` while rmw_take_response() uses it. - * - Access to given primitive data-type arguments is not synchronized. - * It is not safe to read or write `taken` while rmw_take_response() uses it. - * - * \pre Given `client` must be a valid client, as returned by rmw_create_client(). - * \pre Given `ros_response` must be a valid service response, whose type matches the - * service type support registered with the `client` on creation. - * \post Given `ros_response` will remain a valid service response. - * It will be left unchanged if this function fails early due to a logical error, such as an - * invalid argument, or in an unknown yet valid state if it fails due to a runtime error. - * It will also be left unchanged if this function succeeds but `taken` is false. - * - * \param[in] client Service client to take response from. - * \param[out] request_header Service response header to write to. - * \param[out] ros_response Type erased ROS service response to write to. - * \param[out] taken Boolean flag indicating if a ROS service response was taken or not. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_INVALID_ARGUMENT` if `client` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `request_header` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `ros_response` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `taken` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `client` - * implementation identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_take_response( - const rmw_client_t * client, - rmw_service_info_t * request_header, - void * ros_response, - bool * taken); - -/// Retrieve the actual qos settings of the client's request publisher. -/** - * Query the underlying middleware to determine the qos settings - * of the client's request publisher. - * The actual configuration applied when using RMW_*_SYSTEM_DEFAULT - * can only be resolved after the creation of the client, and it - * depends on the underlying rmw implementation. - * If the underlying setting in use can't be represented in ROS terms, - * it will be set to RMW_*_UNKNOWN. - * - * \note The value of avoid_ros_namespace_conventions field is not resolved - * with this function. The rcl function `rcl_client_request_publisher_get_actual_qos()` - * resolves it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \param[in] client the client object to inspect - * \param[out] qos the actual qos settings - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if either argument is null, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if client - * implementation identifier does not match, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_client_request_publisher_get_actual_qos( - const rmw_client_t * client, - rmw_qos_profile_t * qos); - -/// Retrieve the actual qos settings of the client's response subscription. -/** - * Query the underlying middleware to determine the qos settings - * of the client's response subscription. - * The actual configuration applied when using RMW_*_SYSTEM_DEFAULT - * can only be resolved after the creation of the client, and it - * depends on the underlying rmw implementation. - * If the underlying setting in use can't be represented in ROS terms, - * it will be set to RMW_*_UNKNOWN. - * - * \note The value of avoid_ros_namespace_conventions field is not resolved - * with this function. The rcl function `rcl_client_request_publisher_get_actual_qos()` - * resolves it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \param[in] client the client object to inspect - * \param[out] qos the actual qos settings - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if either argument is null, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if client - * implementation identifier does not match, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_client_response_subscription_get_actual_qos( - const rmw_client_t * client, - rmw_qos_profile_t * qos); - -/// Create a service server that can receive requests from and send replies to a service client. -/** - * This function can fail, and therefore return `NULL`, if: - * - `node` is `NULL`, or - * - `node` does not belong to this implementation - * i.e. it does not have a matching implementation identifier, or - * - `type_support` is `NULL`, or - * - `service_name` is `NULL`, or - * - `service_name` is an empty string, or - * - (if ROS namespace conventions apply) `service_name` is invalid by - * rmw_validate_full_topic_name() definition, or - * - `qos_profile` is `NULL`, or - * - `qos_profile` has invalid or unknown policies, or - * - memory allocation fails during service server creation, or - * - an unspecified error occurs - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \pre Given `node` must be a valid node, as returned by rmw_create_node(). - * \pre Given `type_support` must be a valid `rosidl` service type support, as - * returned by ROSIDL_GET_SRV_TYPE_SUPPORT(). - * - * \param[in] node Node with which to register this service server. - * \param[in] type_support Type support of the service to be served. - * \param[in] service_name Name of the service to be served, often a fully qualified - * service name unless `qos_profile` is configured to avoid ROS namespace conventions - * i.e. to create a native service server. - * \param[in] qos_profile QoS policies for this service server's connections. - * \return rmw service handle, or `NULL` if there was an error. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_service_t * -rmw_create_service( - const rmw_node_t * node, - const rosidl_service_type_support_t * type_support, - const char * service_name, - const rmw_qos_profile_t * qos_profile); - -/// Destroy and unregister a service server from its node. -/** - * This function will reclaim all associated resources, including the service server itself. - * Use of a destroyed service server is undefined behavior. - * This function will return early if a logical error, such as `RMW_RET_INVALID_ARGUMENT` - * or `RMW_RET_INCORRECT_RMW_IMPLEMENTATION`, ensues, leaving the given service server unchanged. - * Otherwise, it will proceed despite errors. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \pre Given `node` must be the one the service server was registered with. - * \pre Given `service` must be a valid service server, as returned by rmw_create_service(). - * - * \param[in] node Node with which the given service server is registered. - * \param[in] service Service server to be destroyed. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is `NULL`, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service` is `NULL`, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` - * implementation identifier does not match this implementation, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `service` - * implementation identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_destroy_service(rmw_node_t * node, rmw_service_t * service); - -/// Take an incoming ROS service request. -/** - * Take a ROS service request already received by the given service server, removing - * it from internal queues. - * The request header (i.e. its metadata), containing at least the writer guid and - * sequence number, is also retrieved. - * Both writer guid and sequence number allow callers to pair, for each remote service - * client, a ROS service request with its corresponding ROS service response, to be later - * sent using rmw_send_response(). - * - * This function will succeed even if no ROS service request was received, - * but `taken` will be false. - * - * \remarks The same ROS service request cannot be taken twice. - * Callers do not have to deal with duplicates. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * Taking a ROS service request is a synchronous operation. - * It is also non-blocking, to the extent it will not wait for new ROS service requests - * to arrive, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on take or not. - * For instance, implementations that deserialize ROS service requests received over - * the wire may need to perform additional memory allocations when dealing with - * unbounded (dynamically-sized) fields. - * - * \par Thread-safety - * Service servers are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to take requests from the same service server concurrently. - * However: - * - Access to the given ROS service request is not synchronized. - * It is not safe to read or write `ros_request` while rmw_take_request() uses it. - * - Access to the given ROS service request header is not synchronized. - * It is not safe to read or write `request_header` while rmw_take_request() uses it. - * - Access to given primitive data-type arguments is not synchronized. - * It is not safe to read or write `taken` while rmw_take_request() uses it. - * - * \pre Given `service` must be a valid service, as returned by rmw_create_service(). - * \pre Given `ros_request` must be a valid service request, whose type matches the - * service type support registered with the `service` on creation. - * \post Given `ros_request` will remain a valid service request. - * It will be left unchanged if this function fails early due to a logical error, such as an - * invalid argument, or in an unknown yet valid state if it fails due to a runtime error. - * It will also be left unchanged if this function succeeds but `taken` is false. - * - * \param[in] service Service server to take request from. - * \param[out] request_header Service request header to write to. - * \param[out] ros_request Type erased ROS service request to write to. - * \param[out] taken Boolean flag indicating if a ROS service request was taken or not. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `request_header` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `ros_request` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `taken` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `service` - * implementation identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_take_request( - const rmw_service_t * service, - rmw_service_info_t * request_header, - void * ros_request, - bool * taken); - -/// Send a ROS service response. -/** - * Send a ROS service response to the service client, with matching QoS policies, - * from which the previously taken ROS service request was originally sent. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * It is implementation defined whether sending a ROS service response is a - * synchronous or asynchronous, and blocking or non-blocking, operation. - * However, asynchronous implementations are not allowed to access the - * given ROS service request after this function returns. - * Check the implementation documentation to learn about request behavior. - * - * \par Memory allocation - * It is implementation defined whether memory will be allocated on send or not. - * For instance, implementations that serialize ROS service responses may need to - * perform additional memory allocations when dealing with unbounded (dynamically-sized) - * fields. - * - * \par Thread-safety - * Service servers are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to send responses using the same service server concurrently. - * However: - * - Access to the given ROS service request header is read-only but it is not synchronized. - * Concurrent `request_header` reads are safe, but concurrent reads and writes are not. - * - Access to the given ROS service response is read-only but it is not synchronized. - * Concurrent `ros_request` reads are safe, but concurrent reads and writes are not. - * - * \pre Given `service` must be a valid service server, as returned by rmw_create_service(). - * \pre Given `request_header` must be the one previously taken along with the ROS service - * request to which we reply. - * \pre Given `ros_response` must be a valid service response, whose type matches the - * service type support registered with the `service` on creation. - * - * \param[in] service Service server to send a response with. - * \param[in] request_header Service response header, same as the one taken - * with the corresponding ROS service request. - * \param[in] ros_response ROS service response to be sent. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `request_header` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `ros_response` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `service` - * implementation identifier does not match this implementation, or - * \return `RMW_RET_TIMEOUT` if a response reader is not ready yet, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_send_response( - const rmw_service_t * service, - rmw_request_id_t * request_header, - void * ros_response); - -/// Retrieve the actual qos settings of the service's request subscription. -/** - * Query the underlying middleware to determine the qos settings - * of the service's request subscription. - * The actual configuration applied when using RMW_*_SYSTEM_DEFAULT - * can only be resolved after the creation of the service, and it - * depends on the underlying rmw implementation. - * If the underlying setting in use can't be represented in ROS terms, - * it will be set to RMW_*_UNKNOWN. - * - * \note The value of avoid_ros_namespace_conventions field is not resolved - * with this function. The rcl function `rcl_service_request_subscription_get_actual_qos()` - * resolves it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \param[in] service the service object to inspect - * \param[out] qos the actual qos settings - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if either argument is null, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if service - * implementation identifier does not match, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_service_request_subscription_get_actual_qos( - const rmw_service_t * service, - rmw_qos_profile_t * qos); - -/// Retrieve the actual qos settings of the service's response publisher. -/** - * Query the underlying middleware to determine the qos settings - * of the service's response publisher. - * The actual configuration applied when using RMW_*_SYSTEM_DEFAULT - * can only be resolved after the creation of the service, and it - * depends on the underlying rmw implementation. - * If the underlying setting in use can't be represented in ROS terms, - * it will be set to RMW_*_UNKNOWN. - * - * \note The value of avoid_ros_namespace_conventions field is not resolved - * with this function. The rcl function `rcl_service_request_subscription_get_actual_qos()` - * resolves it. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \param[in] service the service object to inspect - * \param[out] qos the actual qos settings - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if either argument is null, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if service - * implementation identifier does not match, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_service_response_publisher_get_actual_qos( - const rmw_service_t * service, - rmw_qos_profile_t * qos); - -// TODO(wjwwood): refactor this API to return a return code when updated to use an allocator -/// Create a guard condition and return a handle to that guard condition. -/** - * This function can fail, and therefore return `NULL`, if: - * - context is `NULL` - * - context is invalid - * - memory allocation fails during guard condition creation - * - an unspecified error occurs - * - * The context must be non-null and valid, i.e. it has been initialized - * by `rmw_init()` and has not been finalized by `rmw_shutdown()`. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No [1] - * Lock-Free | No [1] - * [1] rmw implementation defined, check the implementation documentation - * - * This should be defined by the rmw implementation. - * - * \param[in] context init context that this node should be associated with - * \return rmw guard condition handle or `NULL` if there was an error - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_guard_condition_t * -rmw_create_guard_condition(rmw_context_t * context); - -/// Finalize a given guard condition handle, reclaim the resources, and deallocate the handle. -/** - * \param[in] guard_condition the guard condition handle to be destroyed - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if guard_condition is null, or - * \return `RMW_RET_ERROR` if an unexpected error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_destroy_guard_condition(rmw_guard_condition_t * guard_condition); - -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_trigger_guard_condition(const rmw_guard_condition_t * guard_condition); - -/// Create a wait set to store conditions that the middleware can wait on. -/** - * This function can fail, and therefore return `NULL`, if: - * - context is `NULL` - * - context is zero initialized, as provided by rmw_get_zero_initialized_context() - * - context does not belong to this implementation i.e. does not have a matching - * implementation identifier - * - memory allocation fails during wait set creation - * - an unspecified error occurs - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \par Thread-safety - * Contexts are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to create multiple wait sets in the same context concurrently. - * - * \pre Given `context` must be a valid context, initialized by rmw_init(). - * - * \param[in] context Context to associate the wait set with. - * \param[in] max_conditions - * The maximum number of conditions that can be attached to, and stored by, the wait set. - * Can be set to zero (0) for the wait set to support an unbounded number of conditions. - * \return An rmw wait set, or `NULL` if an error occurred. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_wait_set_t * -rmw_create_wait_set(rmw_context_t * context, size_t max_conditions); - -/// Destroy a wait set. -/** - * This function will reclaim all associated resources, including the wait set. - * Use of a wait set after destruction is undefined behavior. - * This function will return early if a logical error, such as `RMW_RET_INVALID_ARGUMENT` - * or `RMW_RET_INCORRECT_RMW_IMPLEMENTATION`, ensues, leaving the given wait set unchanged. - * Otherwise, it will proceed despite errors. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \pre Given `wait_set` must be a valid wait set, as returned by rmw_create_wait_set(). - * - * \param[in] wait_set Wait set to be finalized. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `wait_set` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `wait_set` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_destroy_wait_set(rmw_wait_set_t * wait_set); - -/// Waits on sets of different entities and returns when one is ready. -/** - * This function adds middleware-specific conditions to the wait set and waits - * until one or more become ready, or until the timeout is reached. - * - * \remark Elapsed time should be measured using a monotonic clock, - * though rmw implementations could use a different one. - * Timeout granularity is thus bound to that of the clock used by the underlying implementation, - * and to the platform-specific APIs used to sleep and/or wait. - * - * \remark - * The amount of time this function actually waits may be either above or - * below the specified timeout. - * - * Arrays contain type-erased, middleware-specific conditions associated with - * waitable entities, which this function casts and adds to the wait set. - * `NULL` entries in arrays prior to wait are considered invalid. - * When the wait is over, entries in each array that correspond to - * conditions that were \b not triggered are set to `NULL`. - * - * \remark Arrays' memory management is external to this function. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Maybe [1] - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] rmw implementation defined, check the implementation documentation - * - * \par Thread-safety - * To wait is a reentrant procedure, but: - * - It is not safe to use the same wait set to wait in two or more threads concurrently. - * - It is not safe to wait for the same entity using different wait sets in two or - * more threads concurrently. - * - Access to the given timeout is read-only but it is not synchronized. - * Concurrent `wait_timeout` reads are safe, but concurrent reads and writes are not. - * - * \pre Given `wait_set` must be a valid wait set, as returned by rmw_create_wait_set(). - * \pre All given entities must be associated with nodes that, in turn, were registered - * with the same context the given `wait_set` was registered with on creation. - * - * \param[inout] subscriptions Array of subscriptions to wait on. - * Can be `NULL` if there are no subscriptions to wait on. - * \param[inout] guard_conditions Array of guard conditions to wait on - * Can be `NULL` if there are no guard conditions to wait on. - * \param[inout] services Array of services to wait on. - * Can be `NULL` if there are no services to wait on. - * \param[inout] clients Array of clients to wait on. - * Can be `NULL` if there are no clients to wait on. - * \param[inout] events Array of events to wait on. - * Can be `NULL` if there are no events to wait on. - * \param[in] wait_set Wait set to use for waiting. - * \param[in] wait_timeout If `NULL`, block indefinitely until an entity becomes ready. - * If zero, do not block -- check only for immediately available entities. - * Else, this represents the maximum amount of time to wait for an entity to become ready. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_TIMEOUT` if wait timed out, or - * \return `RMW_RET_INVALID_ARGUMENT` if `wait_set` is `NULL`, or - * \return `RMW_RET_INVALID_ARGUMENT` if an array entry is `NULL`, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `wait_set` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_wait( - rmw_subscriptions_t * subscriptions, - rmw_guard_conditions_t * guard_conditions, - rmw_services_t * services, - rmw_clients_t * clients, - rmw_events_t * events, - rmw_wait_set_t * wait_set, - const rmw_time_t * wait_timeout); - -/// Return the name and namespace of all nodes in the ROS graph. -/** - * This function will return an array of node names and an array of node namespaces, - * as discovered so far by the given node. - * The two arrays represent name and namespace pairs for each discovered node. - * Both arrays will be the same length and the same index will refer to the same node. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to query the ROS graph using the same node concurrently. - * However, access to string arrays is not synchronized. - * It is not safe to read or write `node_names` nor `node_namespaces` - * while rmw_get_node_names() uses them. - * - * \pre Given `node` must be a valid node handle, as returned by rmw_create_node(). - * \pre Given `node_names` must be a valid string array, zero-initialized - * as returned by rcutils_get_zero_initialized_string_array(). - * \pre Given `node_namespaces` must be a valid string array, zero-initialized - * as returned by rcutils_get_zero_initialized_string_array(). - * \post Given `node_names` and `node_namespaces` will remain valid arrays. - * These will be left unchanged if this function fails early due to a logical error, - * such as an invalid argument, or in an unknown yet valid state if it fails due to - * a runtime error. - * - * \param[in] node Node to query the ROS graph. - * \param[out] node_names Array of discovered node names, populated on success. - * It is up to the caller to finalize this array later on, using rcutils_string_array_fini(). - * \param[out] node_namespaces Array of discovered node namespaces, populated on success. - * It is up to the caller to finalize this array later on, using rcutils_string_array_fini(). - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_names` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_names` is not a zero-initialized array, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_namespaces` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_namespaces` is not a zero-initialized array, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_get_node_names( - const rmw_node_t * node, - rcutils_string_array_t * node_names, - rcutils_string_array_t * node_namespaces); - -/// Return the name, namespae, and enclave name of all nodes in the ROS graph. -/** - * This is similar to rmw_get_node_names(), but it also provides enclave names. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to query the ROS graph using the same node concurrently. - * However, access to string arrays is not synchronized. - * It is not safe to read or write `node_names`, `node_namespaces`, nor `enclaves` - * while rmw_get_node_names_with_enclaves() uses them. - * - * \pre Given `node` must be a valid node handle, as returned by rmw_create_node(). - * \pre Given `node_names` must be a valid string array, zero-initialized - * as returned by rcutils_get_zero_initialized_string_array(). - * \pre Given `node_namespaces` must be a valid string array, zero-initialized - * as returned by rcutils_get_zero_initialized_string_array(). - * \pre Given `enclaves` must be a zero-initialized string array, - * as returned by rcutils_get_zero_initialized_string_array(). - * \post Given `node_names`, `node_namespaces`, and `enclaves` will remain valid arrays. - * These will be left unchanged if this function fails early due to a logical error, - * such as an invalid argument, or in an unknown yet valid state if it fails due to - * a runtime error. - * - * \param[in] node Node to query the ROS graph. - * \param[out] node_names Array of discovered node names, populated on success. - * It is up to the caller to finalize this array later on, using rcutils_string_array_fini(). - * \param[out] node_namespaces Array of discovered node namespaces, populated on success. - * It is up to the caller to finalize this array later on, using rcutils_string_array_fini(). - * \param[out] enclaves Array of discovered node enclave names, populated on success. - * It is up to the caller to finalize this array later on, using rcutils_string_array_fini(). - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_names` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_names` is not a zero-initialized array, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_namespaces` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node_namespaces` is not a zero-initialized array, or - * \return `RMW_RET_INVALID_ARGUMENT` if `enclaves` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `enclaves` is not a zero-initialized array, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_get_node_names_with_enclaves( - const rmw_node_t * node, - rcutils_string_array_t * node_names, - rcutils_string_array_t * node_namespaces, - rcutils_string_array_t * enclaves); - -/// Count the number of known publishers matching a topic name. -/** - * This function returns the numbers of publishers of a given topic in the ROS graph, - * as discovered so far by the given node. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to query the ROS graph using the same node concurrently. - * However, access to primitive data-type arguments is not synchronized. - * It is not safe to read or write `topic_name` or `count` while rmw_count_publishers() - * uses them. - * - * \pre Given `node` must be a valid node handle, as returned by rmw_create_node(). - * - * \param[in] node Handle to node to use to query the ROS graph. - * \param[in] topic_name Fully qualified ROS topic name. - * \param[out] count Number of publishers matching the given topic name. - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `topic_name` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `topic_name` is not a fully qualified topic name, - * by rmw_validate_full_topic_name() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `count` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_count_publishers( - const rmw_node_t * node, - const char * topic_name, - size_t * count); - -/// Count the number of known subscribers matching a topic name. -/** - * This function returns the numbers of subscribers of a given topic in the ROS graph, - * as discovered so far by the given node. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is to query the ROS graph using the same node concurrently. - * However, access to primitive data-type arguments is not synchronized. - * It is not safe to read or write `topic_name` or `count` while rmw_count_subscribers() - * uses them. - * - * \pre Given `node` must be a valid node handle, as returned by rmw_create_node(). - * - * \param[in] node Handle to node to use to query the ROS graph. - * \param[in] topic_name Fully qualified ROS topic name. - * \param[out] count Number of subscribers matching the given topic name. - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `topic_name` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `topic_name` is not a fully qualified topic name, - * by rmw_validate_full_topic_name() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `count` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_count_subscribers( - const rmw_node_t * node, - const char * topic_name, - size_t * count); - -/// Count the number of known clients matching a service name. -/** - * This function returns the numbers of clients of a given service in the ROS graph, - * as discovered so far by the given node. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to query the ROS graph using the same node concurrently. - * However, access to primitive data-type arguments is not synchronized. - * It is not safe to read or write `service_name` or `count` while rmw_count_clients() - * uses them. - * - * \pre Given `node` must be a valid node handle, as returned by rmw_create_node(). - * - * \param[in] node Handle to node to use to query the ROS graph. - * \param[in] service_name Fully qualified ROS topic name. - * \param[out] count Number of clients matching the given topic name. - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service_name` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service_name` is not a fully qualified topic name, - * by rmw_validate_full_topic_name() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `count` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_count_clients( - const rmw_node_t * node, - const char * service_name, - size_t * count); - -/// Count the number of known servers matching a service name. -/** - * This function returns the numbers of servers of a given service in the ROS graph, - * as discovered so far by the given node. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * [1] implementation defined, check the implementation documentation - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \par Thread-safety - * Nodes are thread-safe objects, and so are all operations on them except for finalization. - * Therefore, it is safe to query the ROS graph using the same node concurrently. - * However, access to primitive data-type arguments is not synchronized. - * It is not safe to read or write `service_name` or `count` while rmw_count_services() - * uses them. - * - * \pre Given `node` must be a valid node handle, as returned by rmw_create_node(). - * - * \param[in] node Handle to node to use to query the ROS graph. - * \param[in] service_name Fully qualified ROS topic name. - * \param[out] count Number of services matching the given topic name. - * \return `RMW_RET_OK` if the query was successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service_name` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service_name` is not a fully qualified service name, - * by rmw_validate_full_topic_name() definition, or - * \return `RMW_RET_INVALID_ARGUMENT` if `count` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `node` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_count_services( - const rmw_node_t * node, - const char * service_name, - size_t * count); - -/// Get the globally unique identifier (GID) of a publisher. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Thread-safety - * Publishers are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to get the unique identifier from the same publisher concurrently. - * However, access to the GID is not synchronized. - * It is not safe to read or write `gid` while rmw_get_gid_for_publisher() uses it. - * - * \pre Given `publisher` must be a valid publisher, as returned by rmw_create_publisher(). - * - * This is expected to be globally unique within a ROS domain. - * The identifier should be the same when reported both locally (where the entity was created) - * and on remote hosts or processes. - * - * \param[in] publisher Publisher to get a GID from. - * \param[out] gid Publisher's unique identifier, populated on success - * but left unchanged on failure. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `publisher` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `gid` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `publisher` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_get_gid_for_publisher(const rmw_publisher_t * publisher, rmw_gid_t * gid); - -/// Get the globally unique identifier (GID) of a service client. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Thread-safety - * Service clients are thread-safe objects, and so are all operations on them except for - * finalization. - * Therefore, it is safe to get the unique identifier from the same client concurrently. - * However, access to the GID is not synchronized. - * It is not safe to read or write `gid` while rmw_get_gid_for_client() uses it. - * - * \pre Given `client` must be a valid service client, as returned by rmw_create_client(). - * - * This is expected to be globally unique within a ROS domain. - * The identifier should be the same when reported both locally (where the entity was created) - * and on remote hosts or processes. - * \param[in] client Service client to get a GID from. - * \param[out] gid Service client's unique identifier, populated on success - * but left unchanged on failure. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `publisher` is NULL, or - * \return `RMW_RET_INVALID_ARGUMENT` if `gid` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the `client` implementation - * identifier does not match this implementation, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_get_gid_for_client(const rmw_client_t * client, rmw_gid_t * gid); - -/// Check if two globally unique identifiers (GIDs) are equal. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Thread-safety - * Unique identifier comparison is a reentrant function, but: - * - Access to both GIDs is read-only but it is not synchronized. - * Concurrent `gid1` and `gid2` reads are safe, but concurrent reads and writes are not. - * - Access to primitive data-type arguments is not synchronized. - * It is not safe to read or write `result` while rmw_compare_gids_equal() uses it. - * - * \param[in] gid1 First unique identifier to compare. - * \param[in] gid2 Second unique identifier to compare. - * \param[out] result true if both GIDs are equal, false otherwise. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `gid1` or `gid2` is NULL, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the implementation - * identifier of `gid1` or `gid2` does not match this implementation, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_compare_gids_equal(const rmw_gid_t * gid1, const rmw_gid_t * gid2, bool * result); - -/// Check if a service server is available for the given service client. -/** - * This function checks whether one or more service services matching the - * given service client exist in the ROS graph, as discovered so far by the - * given local node. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | Maybe [1] - * Lock-Free | Maybe [1] - * - * [1] implementation defined, check implementation documentation. - * - * \par Runtime behavior - * To query the ROS graph is a synchronous operation. - * It is also non-blocking, but it is not guaranteed to be lock-free. - * Generally speaking, implementations may synchronize access to internal resources using - * locks but are not allowed to wait for events with no guaranteed time bound (barring - * the effects of starvation due to OS scheduling). - * - * \pre Given `node` must be a valid node, as returned by rmw_create_node(). - * \pre Given `client` must be a valid client, as returned by rmw_create_client(). - * \pre Given `node` must be the one the `client` was registered with. - * - * \param[in] node Node to query the ROS graph. - * \param[in] client Service client to look for matching service servers. - * \param[out] is_available True if there is a service server available, else false. - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `node` is `NULL`, or - * \return `RMW_RET_INVALID_ARGUMENT` if `client` is `NULL`, or - * \return `RMW_RET_INVALID_ARGUMENT` if `is_available` is `NULL`, or - * \return `RMW_RET_INCORRECT_RMW_IMPLEMENTATION` if the implementation - * identifier of `node` or `client` does not match this implementation, or - * \return `RMW_RET_ERROR` if an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_service_server_is_available( - const rmw_node_t * node, - const rmw_client_t * client, - bool * is_available); - -/// Set the current log severity -/** - * \param[in] severity The log severity to set - * \return RMW_RET_OK if successful, otherwise an appropriate error code - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_set_log_severity(rmw_log_severity_t severity); - -/// Set the on new message callback function for the subscription. -/** - * This API sets the callback function to be called whenever the - * subscription is notified about a new message. - * - * This callback is called for each new message received by the subscription. - * If messages arrive before the callback is registered, the number_of_events - * argument given to the callback may be > 1. - * - * The callback may be called from a thread that the rmw implementation - * created, rather than a thread owned by the user, i.e. some thread other - * than user owned threads calling rmw functions such as rmw_wait() or - * rmw_publish(). - * - * This function is thread-safe. - * This is required of the rmw implementation because the callback may be called - * from any middleware thread, and this function could be called by the user - * at any time. - * - * \param[in] subscription The subscription on which to set the callback - * \param[in] callback The callback to be called when new messages arrive, - * can be NULL to clear the registered callback - * \param[in] user_data Given to the callback when called later, may be NULL - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if `subscription` is NULL, or - * \return `RMW_RET_UNSUPPORTED` if the API is not implemented in the dds implementation - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_subscription_set_on_new_message_callback( - rmw_subscription_t * subscription, - rmw_event_callback_t callback, - const void * user_data); - -/// Set the on new request callback function for the service. -/** - * This API sets the callback function to be called whenever the - * service is notified about a new request. - * - * This callback is called for each new request received by the service. - * If requests arrive before the callback is registered, the number_of_events - * argument given to the callback may be > 1. - * - * The callback may be called from a thread that the rmw implementation - * created, rather than a thread owned by the user, i.e. some thread other - * than user owned threads calling rmw functions such as rmw_wait() or - * rmw_send_request(). - * - * This function is thread-safe. - * This is required of the rmw implementation because the callback may be called - * from any middleware thread, and this function could be called by the user - * at any time. - * - * \param[in] service The service on which to set the callback - * \param[in] callback The callback to be called when new requests arrive, - * can be NULL to clear the registered callback - * \param[in] user_data Given to the callback when called later, may be NULL - * \return `RMW_RET_OK` if callback was set to the listener, or - * \return `RMW_RET_INVALID_ARGUMENT` if `service` is NULL, or - * \return `RMW_RET_UNSUPPORTED` if the API is not implemented in the dds implementation - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_service_set_on_new_request_callback( - rmw_service_t * service, - rmw_event_callback_t callback, - const void * user_data); - -/// Set the on new response callback function for the client. -/** - * This API sets the callback function to be called whenever the - * client is notified about a new response. - * - * This callback is called for each new response received by the client. - * If responses arrive before the callback is registered, the number_of_events - * argument given to the callback may be > 1. - * - * The callback may be called from a thread that the rmw implementation - * created, rather than a thread owned by the user, i.e. some thread other - * than user owned threads calling rmw functions such as rmw_wait() or - * rmw_take_response(). - * - * This function is thread-safe. - * This is required of the rmw implementation because the callback may be called - * from any middleware thread, and this function could be called by the user - * at any time. - * - * \param[in] client The client on which to set the callback - * \param[in] callback The callback to be called when new responses arrive, - * can be NULL to clear the registered callback - * \param[in] user_data Given to the callback when called later, may be NULL - * \return `RMW_RET_OK` if callback was set to the listener, or - * \return `RMW_RET_INVALID_ARGUMENT` if `client` is NULL, or - * \return `RMW_RET_UNSUPPORTED` if the API is not implemented in the dds implementation - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_client_set_on_new_response_callback( - rmw_client_t * client, - rmw_event_callback_t callback, - const void * user_data); - -/// Set the callback function for the event. -/** - * This API sets the callback function to be called whenever the - * event is notified about a new instance of the event. - * - * For example, this could be called when incompatible QoS is detected, or - * a deadline is missed, or any other QoS event. - * - * This callback is called for each new event that occurs for this rmw_event_t - * instance. - * If events occur before the callback is registered, the number_of_events - * argument given to the callback may be > 1. - * - * The callback may be called from a thread that the rmw implementation - * created, rather than a thread owned by the user, i.e. some thread other - * than user owned threads calling rmw functions such as rmw_wait() or - * rmw_publish(). - * - * This function is thread-safe. - * This is required of the rmw implementation because the callback may be called - * from any middleware thread, and this function could be called by the user - * at any time. - * - * \param[in] event The event on which to set the callback - * \param[in] callback The callback to be called when new events occur, - * can be NULL to clear the registered callback - * \param[in] user_data Given to the callback when called later, may be NULL - * \return `RMW_RET_OK` if callback was set to the listener, or - * \return `RMW_RET_INVALID_ARGUMENT` if `event` is NULL, or - * \return `RMW_RET_UNSUPPORTED` if the API is not implemented in the dds implementation - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_event_set_callback( - rmw_event_t * event, - rmw_event_callback_t callback, - const void * user_data); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__RMW_H_ diff --git a/src/rmw/sanity_checks.h b/src/rmw/sanity_checks.h deleted file mode 100755 index 6fb5de568..000000000 --- a/src/rmw/sanity_checks.h +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2016-2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__SANITY_CHECKS_H_ -#define RMW__SANITY_CHECKS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/types.h" - -#include "rmw/macros.h" -#include "rmw/types.h" -#include "rmw/visibility_control.h" - -/// Check that a string_array struct is zero initialized -/** - * This sets error message and returns error code if array is not zero initialized - * - * \param[in] array The string array to check - * \return RMW_RET_OK if array is zero initialized, otherwise RMW_RET_ERROR - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_check_zero_rmw_string_array(rcutils_string_array_t * array); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__SANITY_CHECKS_H_ diff --git a/src/rmw/security_options.h b/src/rmw/security_options.h deleted file mode 100755 index 2b4d67596..000000000 --- a/src/rmw/security_options.h +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright 2020 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__SECURITY_OPTIONS_H_ -#define RMW__SECURITY_OPTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#include "rcutils/allocator.h" - -#include "rmw/ret_types.h" -#include "rmw/visibility_control.h" - -typedef enum RMW_PUBLIC_TYPE rmw_security_enforcement_policy_e -{ - RMW_SECURITY_ENFORCEMENT_PERMISSIVE, - RMW_SECURITY_ENFORCEMENT_ENFORCE, -} rmw_security_enforcement_policy_t; - -typedef struct RMW_PUBLIC_TYPE rmw_security_options_s -{ - rmw_security_enforcement_policy_t enforce_security; - char * security_root_path; -} rmw_security_options_t; - -/// Get zero initialized security options. -RMW_PUBLIC -rmw_security_options_t -rmw_get_zero_initialized_security_options(void); - -/// Get default initialized security options. -RMW_PUBLIC -rmw_security_options_t -rmw_get_default_security_options(void); - -/// Copy the given security options. -/** - * \param[in] src security options to be copied. - * \param[in] allocator allocator used when copying data to the new security options. - * \param[out] dst security options to be set. - * \returns RMW_RET_BAD_ALLOC, or - * \returns RMW_RET_OK - */ -RMW_PUBLIC -rmw_ret_t -rmw_security_options_copy( - const rmw_security_options_t * src, - const rcutils_allocator_t * allocator, - rmw_security_options_t * dst); - -/// Set the security root path for the given security options. -/** - * The provided `security_root_path` will be copied into allocated memory. - * - * \param[in] security_root_path path to be set. - * \param[in] allocator allocator used to allocate the new path. - * \param[inout] security_options security options to be set. - * \returns RMW_RET_BAD_ALLOC, or - * \returns RMW_RET_OK - */ -RMW_PUBLIC -rmw_ret_t -rmw_security_options_set_root_path( - const char * security_root_path, - const rcutils_allocator_t * allocator, - rmw_security_options_t * security_options); - -/// Finalize the given security_options. -/** - * \param[in] security_options security options to be finalized. - * \param[in] allocator allocator used to deallocate the root path. - * \returns RMW_RET_ERROR, or - * \returns RMW_RET_OK - */ -RMW_PUBLIC -rmw_ret_t -rmw_security_options_fini( - rmw_security_options_t * security_options, - const rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__SECURITY_OPTIONS_H_ diff --git a/src/rmw/serialized_message.h b/src/rmw/serialized_message.h deleted file mode 100755 index 59f7605e1..000000000 --- a/src/rmw/serialized_message.h +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__SERIALIZED_MESSAGE_H_ -#define RMW__SERIALIZED_MESSAGE_H_ - -#if __cplusplus -extern "C" -{ -#endif - -#include "rcutils/types/uint8_array.h" - -/** - * \brief Serialized message as a string of bytes. - * - * It includes (but it is not limited to) the following members: - * \e \c buffer the reference to internal storage, as a pointer - * \e \c buffer_length the size of stored contents, as an unsigned integer - * \e \c buffer_capacity the capacity of internal storage, as an unsigned integer - */ -/* For now this is a simple aliasing from a serialized message to a uint8 array. - * However, in future developments this serialized message can become something - * more complex and is therefore aliased. - */ -typedef rcutils_uint8_array_t rmw_serialized_message_t; - -/// Return a zero initialized serialized message struct. -#define rmw_get_zero_initialized_serialized_message rcutils_get_zero_initialized_uint8_array - -/// Initialize a serialized message, zero initializing its contents. -/** - * Given serialized message must have been zero initialized. - * - * \param[inout] serialized_message a pointer to the serialized message to initialize - * \param[in] message_capacity the size of the memory to allocate - * \param[in] allocator the allocator to use for the memory allocation - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if any arguments are invalid, or - * \return 'RMW_RET_BAD_ALLOC` if no memory could be allocated correctly, or - * \return `RMW_RET_ERROR` if an unexpected error occurs - */ -#define rmw_serialized_message_init(serialized_message, message_capacity, allocator) \ - rcutils_uint8_array_init(serialized_message, message_capacity, allocator) - -/// Finalize a serialized message. -/** - * Given serialized message must have been initialized with `rmw_serialized_message_init()`. - * - * \remarks If serialized message is zero initialized, then `RMW_RET_INVALID_ARGUMENT` is returned. - * - * \param[in] serialized_message pointer to the serialized message to be cleaned up - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if serialized_message is invalid, or - * \return `RMW_RET_ERROR` if an unexpected error occurs - */ -#define rmw_serialized_message_fini(serialized_message) \ - rcutils_uint8_array_fini(serialized_message) - -/// Resize the internal buffer of the serialized message. -/** - * The internal buffer of the serialized message can be resized dynamically - * if needed. - * If the new size is smaller than the current capacity, then the memory is - * truncated. - * - * \pre Given serialized message must have been initialized with `rmw_serialized_message_init()`. - * - * \remarks If serialized message is zero initialized, then `RMW_RET_INVALID_ARGUMENT` - * is returned. - * - * \warning Be aware that this might deallocate the memory and therefore - * invalidate any pointers to the internal buffer. - * - * \param[inout] serialized_message pointer to the serialized message - * to be resized - * \param[in] new_size the new size of the internal buffer - * \return `RMW_RET_OK` if successful, or - * \return `RMW_RET_INVALID_ARGUMENT` if serialized_message is invalid - * or new_size is set to zero, or - * \return `RMW_RET_BAD_ALLOC` if memory allocation failed, or - * \return `RMW_RET_ERROR` if an unexpected error occurs - */ -#define rmw_serialized_message_resize(serialized_message, new_size) \ - rcutils_uint8_array_resize(serialized_message, new_size) - -#if __cplusplus -} -#endif - -#endif // RMW__SERIALIZED_MESSAGE_H_ diff --git a/src/rmw/subscription_content_filter_options.h b/src/rmw/subscription_content_filter_options.h deleted file mode 100755 index ee5c354f4..000000000 --- a/src/rmw/subscription_content_filter_options.h +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2021 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__SUBSCRIPTION_CONTENT_FILTER_OPTIONS_H_ -#define RMW__SUBSCRIPTION_CONTENT_FILTER_OPTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/allocator.h" -#include "rcutils/types.h" - -#include "rmw/macros.h" -#include "rmw/ret_types.h" -#include "rmw/visibility_control.h" - -typedef struct RMW_PUBLIC_TYPE rmw_subscription_content_filter_options_s -{ - /** - * Specify the criteria to select the data samples of interest. - * - * It is similar to the WHERE part of an SQL clause. - */ - char * filter_expression; - /** - * Give values to the tokens placeholder ‘parameters’ (i.e., "%n" tokens begin from 0) in the - * filter_expression. The number of supplied parameters must fit with the requested values. - * - * It can be NULL if there is no "%n" tokens placeholder in filter_expression. - * The maximum index number must be smaller than 100. - */ - rcutils_string_array_t expression_parameters; -} rmw_subscription_content_filter_options_t; - - -/// Get zero initialized content filter options. -RMW_PUBLIC -rmw_subscription_content_filter_options_t -rmw_get_zero_initialized_content_filter_options(void); - - -/// Initialize the given content filter options. -/** - * \param[in] filter_expression The filter expression. - * \param[in] expression_parameters_argc The expression parameters argc. - * \param[in] expression_parameter_argv The expression parameters argv. - * \param[in] allocator The allocator used when copying data to the content filter options. - * \param[out] options The content filter options to be set. - * \returns RMW_RET_INVALID_ARGUMENT, or - * \returns RMW_RET_BAD_ALLOC, or - * \returns RMW_RET_OK - */ -RMW_PUBLIC -rmw_ret_t -rmw_subscription_content_filter_options_init( - const char * filter_expression, - size_t expression_parameters_argc, - const char * expression_parameter_argv[], - const rcutils_allocator_t * allocator, - rmw_subscription_content_filter_options_t * options); - -/// Set the given content filter options. -/** - * \param[in] filter_expression The filter expression. - * \param[in] expression_parameters_argc The expression parameters argc. - * \param[in] expression_parameter_argv The expression parameters argv. - * \param[in] allocator The allocator used when copying data to the content filter options. - * \param[out] options The content filter options to be set. - * \returns RMW_RET_INVALID_ARGUMENT, or - * \returns RMW_RET_BAD_ALLOC, or - * \returns RMW_RET_OK - */ -RMW_PUBLIC -rmw_ret_t -rmw_subscription_content_filter_options_set( - const char * filter_expression, - size_t expression_parameters_argc, - const char * expression_parameter_argv[], - const rcutils_allocator_t * allocator, - rmw_subscription_content_filter_options_t * options); - -/// Copy the given content filter options. -/** - * \param[in] src content filter options to be copied. - * \param[in] allocator allocator used when copying data to the new content filter options. - * \param[out] dst content filter options to be set. - * \returns RMW_RET_INVALID_ARGUMENT, or - * \returns RMW_RET_BAD_ALLOC, or - * \returns RMW_RET_OK - */ -RMW_PUBLIC -rmw_ret_t -rmw_subscription_content_filter_options_copy( - const rmw_subscription_content_filter_options_t * src, - const rcutils_allocator_t * allocator, - rmw_subscription_content_filter_options_t * dst); - - -/// Finalize the content filter options. -/** - * \param[in] options content filter options to be finalized. - * \param[in] allocator allocator used to deallocate the content filter options. - * \returns RMW_RET_INVALID_ARGUMENT, or - * \returns RMW_RET_ERROR, or - * \returns RMW_RET_OK - */ -RMW_PUBLIC -rmw_ret_t -rmw_subscription_content_filter_options_fini( - rmw_subscription_content_filter_options_t * options, - const rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__SUBSCRIPTION_CONTENT_FILTER_OPTIONS_H_ diff --git a/src/rmw/subscription_options.h b/src/rmw/subscription_options.h deleted file mode 100755 index 30fb23cdb..000000000 --- a/src/rmw/subscription_options.h +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2019 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__SUBSCRIPTION_OPTIONS_H_ -#define RMW__SUBSCRIPTION_OPTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/types.h" - -// For now, the rmw_subscription_options_t type is still defined in "rmw/types.h". - -/// Return a rmw_subscription_options_t initialized with default values. -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_subscription_options_t -rmw_get_default_subscription_options(void); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__SUBSCRIPTION_OPTIONS_H_ diff --git a/src/rmw/time.h b/src/rmw/time.h deleted file mode 100755 index f5ee3efbd..000000000 --- a/src/rmw/time.h +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__TIME_H_ -#define RMW__TIME_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // __cplusplus - -#include - -#include "rcutils/time.h" - -#include "rmw/macros.h" -#include "rmw/visibility_control.h" - -/// A struct representing a duration or relative time in RMW - does not encode an origin. -typedef struct RMW_PUBLIC_TYPE rmw_time_s -{ - /// Seconds component - uint64_t sec; - - /// Nanoseconds component - uint64_t nsec; -} rmw_time_t; - -typedef rcutils_time_point_value_t rmw_time_point_value_t; -typedef rcutils_duration_value_t rmw_duration_t; - -/// Constant representing an infinite duration. Use rmw_time_equal for comparisons. -/** - * Different RMW implementations have different representations for infinite durations. - * This value is reported for QoS policy durations that are left unspecified. - * Do not directly compare `sec == sec && nsec == nsec`, because we don't want to be sensitive - * to non-normalized values (nsec > 1 second) - use rmw_time_equal instead. - * This value is INT64_MAX nanoseconds = 0x7FFF FFFF FFFF FFFF = d 9 223 372 036 854 775 807 - * - * Note: these constants cannot be `static const rmw_time_t` because in C that can't be used - * as a compile-time initializer - */ -#define RMW_DURATION_INFINITE {9223372036LL, 854775807LL} -#define RMW_DURATION_UNSPECIFIED {0LL, 0LL} - -/// Check whether two rmw_time_t represent the same time. -RMW_PUBLIC -RMW_WARN_UNUSED -bool -rmw_time_equal(const rmw_time_t left, const rmw_time_t right); - -/// Return the total nanosecond representation of a time. -/** - * \return INT64_MAX if input is too large to store in 64 bits - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_duration_t -rmw_time_total_nsec(const rmw_time_t time); - -/// Construct rmw_time_t from a total nanoseconds representation. -/** - * rmw_time_t only specifies relative time, so the origin is not relevant for this calculation. - * \return RMW_DURATION_INFINITE if input is negative, which is not representable in rmw_time_t - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_time_t -rmw_time_from_nsec(const rmw_duration_t nanoseconds); - -/// Ensure that an rmw_time_t does not have nanoseconds > 1 second. -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_time_t -rmw_time_normalize(const rmw_time_t time); - -#ifdef __cplusplus -} -#endif // __cplusplus - -#endif // RMW__TIME_H_ diff --git a/src/rmw/topic_endpoint_info.h b/src/rmw/topic_endpoint_info.h deleted file mode 100755 index c05d397a3..000000000 --- a/src/rmw/topic_endpoint_info.h +++ /dev/null @@ -1,370 +0,0 @@ -// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__TOPIC_ENDPOINT_INFO_H_ -#define RMW__TOPIC_ENDPOINT_INFO_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/allocator.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rmw/types.h" -#include "rmw/visibility_control.h" - -/// A data structure that encapsulates the node name, node namespace, -/// topic_type, gid, and qos_profile of publishers and subscriptions -/// for a topic. -typedef struct RMW_PUBLIC_TYPE rmw_topic_endpoint_info_s -{ - /// Name of the node - const char * node_name; - /// Namespace of the node - const char * node_namespace; - /// The associated topic type's name - const char * topic_type; - /// Hashed value for topic type's description - rosidl_type_hash_t topic_type_hash; - /// The endpoint type - rmw_endpoint_type_t endpoint_type; - /// The GID of the endpoint - uint8_t endpoint_gid[RMW_GID_STORAGE_SIZE]; - /// QoS profile of the endpoint - rmw_qos_profile_t qos_profile; -} rmw_topic_endpoint_info_t; - -/// Return zero initialized topic endpoint info data structure. -/** - * Endpoint type will be invalid. - * Endpoint QoS profile will be the system default. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_topic_endpoint_info_t -rmw_get_zero_initialized_topic_endpoint_info(void); - -/// Finalize a topic endpoint info data structure. -/** - * Deallocates all allocated members of the given data structure, - * and then zero initializes it. - * If a logical error, such as `RMW_RET_INVALID_ARGUMENT`, ensues, this function - * will return early, leaving the given data structure unchanged. - * Otherwise, it will proceed despite errors. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Finalization is a reentrant procedure, but: - * - Access to the topic endpoint info data structure is not synchronized. - * It is not safe to read or write `topic_endpoint` during finalization. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \param[inout] topic_endpoint_info Data structure to be finalized. - * \param[in] allocator Allocator used to populate the given `topic_endpoint_info`. - * \returns `RMW_RET_OK` if successful, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_endpoint_info` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `allocator` is invalid, - * by rcutils_allocator_is_valid() definition, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_topic_endpoint_info_fini( - rmw_topic_endpoint_info_t * topic_endpoint_info, - rcutils_allocator_t * allocator); - -/// Set the topic type in the given topic endpoint info data structure. -/** - * Allocates memory and copies the value of the `topic_type` - * argument to set the data structure's `topic_type` member. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Setting a member is a reentrant procedure, but: - * - Access to the topic endpoint info data structure is not synchronized. - * It is not safe to read or write the `topic_type` member of the given `topic_endpoint` - * while setting it. - * - Access to C-style string arguments is read-only but it is not synchronized. - * Concurrent `topic_type` reads are safe, but concurrent reads and writes are not. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \pre Given `topic_type` is a valid C-style string i.e. NULL terminated. - * - * \param[inout] topic_endpoint_info Data structure to be populated. - * \param[in] topic_type Type name to be set. - * \param[in] allocator Allocator to be used. - * \returns `RMW_RET_OK` if successful, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_endpoint_info` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_type` is NULL, or - * \returns `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_topic_endpoint_info_set_topic_type( - rmw_topic_endpoint_info_t * topic_endpoint_info, - const char * topic_type, - rcutils_allocator_t * allocator); - -/// Set the topic type hash in the given topic endpoint info data structure. -/** - * Assigns the value of the `topic_type_hash` argument to the data structure's - * `topic_type_hash` member. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Setting a member is a reentrant procedure, but: - * - Access to the topic endpoint info data structure is not synchronized. - * It is not safe to read or write the `topic_type_hash` member of the given `topic_endpoint` - * while setting it. - * Concurrent `topic_type_hash` reads are safe, but concurrent reads and writes are not. - * - * \param[inout] topic_endpoint_info Data structure to be populated. - * \param[in] topic_type_hash Topic type hash to be copied. - * \returns `RMW_RET_OK` if successful, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_endpoint_info` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_type_hash` is NULL, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_topic_endpoint_info_set_topic_type_hash( - rmw_topic_endpoint_info_t * topic_endpoint_info, - const rosidl_type_hash_t * type_hash); - -/// Set the node name in the given topic endpoint info data structure. -/** - * Allocates memory and copies the value of the `node_name` - * argument to set the data structure's `node_name` member. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Setting a member is a reentrant procedure, but: - * - Access to the topic endpoint info data structure is not synchronized. - * It is not safe to read or write the `node_name` member of the given `topic_endpoint` - * while setting it. - * - Access to C-style string arguments is read-only but it is not synchronized. - * Concurrent `node_name` reads are safe, but concurrent reads and writes are not. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \pre Given `node_name` is a valid C-style string i.e. NULL terminated. - * - * \param[inout] topic_endpoint_info Data structure to be populated. - * \param[in] node_name Node name to be set. - * \param[in] allocator Allocator to be used. - * \returns `RMW_RET_OK` if successful, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_endpoint_info` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `node_name` is NULL, or - * \returns `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_topic_endpoint_info_set_node_name( - rmw_topic_endpoint_info_t * topic_endpoint_info, - const char * node_name, - rcutils_allocator_t * allocator); - -/// Set the node namespace in the given topic endpoint info data structure. -/** - * Allocates memory and copies the value of the `node_namespace` - * argument to set the data structure's `node_namespace` member. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Setting a member is a reentrant procedure, but: - * - Access to the topic endpoint info data structure is not synchronized. - * It is not safe to read or write the `node_namespace` member of the given `topic_endpoint` - * while setting it. - * - Access to C-style string arguments is read-only but it is not synchronized. - * Concurrent `node_namespace` reads are safe, but concurrent reads and writes are not. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \pre Given `node_namespace` is a valid C-style string i.e. NULL terminated. - * - * \param[inout] topic_endpoint_info Data structure to be populated. - * \param[in] node_namespace Node namespace to be set. - * \param[in] allocator Allocator to be used. - * \returns `RMW_RET_OK` if successful, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_endpoint_info` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `node_namespace` is NULL, or - * \returns `RMW_RET_BAD_ALLOC` if memory allocation fails, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_topic_endpoint_info_set_node_namespace( - rmw_topic_endpoint_info_t * topic_endpoint_info, - const char * node_namespace, - rcutils_allocator_t * allocator); - -/// Set the endpoint type in the given topic endpoint info data structure. -/** - * Assigns the value of the `type` argument to the data structure's - * `endpoint_type` member. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Setting a member is a reentrant procedure, but access to the - * topic endpoint info data structure is not synchronized. - * It is not safe to read or write the `endpoint_type` member of the - * given `topic_endpoint` while setting it. - * - * \param[inout] topic_endpoint_info Data structure to be populated. - * \param[in] type Endpoint type to be set. - * \returns `RMW_RET_OK` if successful, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_endpoint_info` is NULL, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_topic_endpoint_info_set_endpoint_type( - rmw_topic_endpoint_info_t * topic_endpoint_info, - rmw_endpoint_type_t type); - -/// Set the endpoint gid in the given topic endpoint info data structure. -/** - * Copies the value of the `gid` argument to the data structure's - * `endpoint_gid` member. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Setting a member is a reentrant procedure, but access to the - * topic endpoint info data structure is not synchronized. - * It is not safe to read or write the `gid` member of the - * given `topic_endpoint` while setting it. - * - * \param[inout] topic_endpoint_info Data structure to be populated. - * \param[in] gid Endpoint gid to be set. - * \param[in] size Size of the given `gid`. - * \returns `RMW_RET_OK` if successful, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_endpoint_info` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `gid` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `size` is greater than RMW_GID_STORAGE_SIZE, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_topic_endpoint_info_set_gid( - rmw_topic_endpoint_info_t * topic_endpoint_info, - const uint8_t * gid, - size_t size); - -/// Set the endpoint QoS profile in the given topic endpoint info data structure. -/** - * Assigns the value of the `qos_profile` argument to the data structure's - * `qos_profile` member. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Setting a member is a reentrant procedure, but access to the - * topic endpoint info data structure is not synchronized. - * It is not safe to read or write the `qos_profile` member of the - * given `topic_endpoint` while setting it. - * - * \param[inout] topic_endpoint_info Data structure to be populated. - * \param[in] qos_profile QoS profile to be set. - * \returns `RMW_RET_OK` if successful, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_endpoint_info` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `qos_profile` is NULL, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_topic_endpoint_info_set_qos_profile( - rmw_topic_endpoint_info_t * topic_endpoint_info, - const rmw_qos_profile_t * qos_profile); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__TOPIC_ENDPOINT_INFO_H_ diff --git a/src/rmw/topic_endpoint_info_array.h b/src/rmw/topic_endpoint_info_array.h deleted file mode 100755 index f052f81ac..000000000 --- a/src/rmw/topic_endpoint_info_array.h +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__TOPIC_ENDPOINT_INFO_ARRAY_H_ -#define RMW__TOPIC_ENDPOINT_INFO_ARRAY_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rcutils/allocator.h" -#include "rmw/topic_endpoint_info.h" -#include "rmw/visibility_control.h" - -/// Array of topic endpoint information -typedef struct RMW_PUBLIC_TYPE rmw_topic_endpoint_info_array_s -{ - /// Size of the array. - size_t size; - /// Contiguous storage for topic endpoint information elements. - rmw_topic_endpoint_info_t * info_array; -} rmw_topic_endpoint_info_array_t; - -/// Return a zero initialized array of topic endpoint information. -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_topic_endpoint_info_array_t -rmw_get_zero_initialized_topic_endpoint_info_array(void); - -/// Check that the given `topic_endpoint_info_array` is zero initialized. -/** - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | Yes - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Access to the array of topic endpoint information is read-only, but it is not synchronized. - * Concurrent `topic_endpoint_info_array` reads are safe, but concurrent reads - * and writes are not. - * - * \param[in] topic_endpoint_info_array Array to be checked. - * \returns `RMW_RET_OK` if array is zero initialized, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_endpoint_info_array` is NULL, or - * \returns `RMW_RET_ERROR` if `topic_endpoint_info_array` is not zero initialized. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_topic_endpoint_info_array_check_zero( - rmw_topic_endpoint_info_array_t * topic_endpoint_info_array); - -/// Initialize an array of topic endpoint information. -/** - * This function allocates space to hold `size` topic endpoint information elements. - * Both `info_array` and `size` members are updated accordingly. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Initialization is a reentrant procedure, but: - * - Access to the array of topic endpoint information is not synchronized. - * It is not safe to read or write `topic_endpoint_info_array` during initialization. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \param[inout] topic_endpoint_info_array Array to be initialized on success, - * but left unchanged on failure. - * \param[in] size Size of the array. - * \param[in] allocator Allocator to be used to populate `names_and_types`. - * \returns `RMW_RET_OK` if successful, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_endpoint_info_array` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_endpoint_info_array` is not - * a zero initialized array, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `allocator` is invalid, - * by rcutils_allocator_is_valid() definition, or - * \returns `RMW_BAD_ALLOC` if memory allocation fails, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_topic_endpoint_info_array_init_with_size( - rmw_topic_endpoint_info_array_t * topic_endpoint_info_array, - size_t size, - rcutils_allocator_t * allocator); - -/// Finalize an array of topic endpoint information. -/** - * This function deallocates the given array storage, and then zero initializes it. - * If a logical error, such as `RMW_RET_INVALID_ARGUMENT`, ensues, this function will - * return early, leaving the given array unchanged. - * Otherwise, it will proceed despite errors. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \par Thread-safety - * Finalization is a reentrant procedure, but: - * - Access to the array of topic endpoint information is not synchronized. - * It is not safe to read or write `topic_endpoint_info_array` during finalization. - * - The default allocators are thread-safe objects, but any custom `allocator` may not be. - * Check your allocator documentation for further reference. - * - * \pre Given `allocator` must be the same used to initialize the given `topic_endpoint_info_array`. - * - * \param[inout] topic_endpoint_info_array object to be finalized. - * \param[in] allocator Allocator used to populate the given `topic_endpoint_info_array`. - * \returns `RMW_RET_OK` if successful, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `topic_endpoint_info_array` is NULL, or - * \returns `RMW_RET_INVALID_ARGUMENT` if `allocator` is invalid, - * by rcutils_allocator_is_valid() definition, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - * \remark This function sets the RMW error state on failure. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_topic_endpoint_info_array_fini( - rmw_topic_endpoint_info_array_t * topic_endpoint_info_array, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__TOPIC_ENDPOINT_INFO_ARRAY_H_ diff --git a/src/rmw/types.h b/src/rmw/types.h deleted file mode 100755 index 987ae7a29..000000000 --- a/src/rmw/types.h +++ /dev/null @@ -1,753 +0,0 @@ -// Copyright 2014-2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__TYPES_H_ -#define RMW__TYPES_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// map rcutils specific log levels to rmw speicfic type -#include - -#include "rmw/events_statuses/events_statuses.h" -#include "rmw/init.h" -#include "rmw/init_options.h" -#include "rmw/ret_types.h" -#include "rmw/security_options.h" -#include "rmw/serialized_message.h" -#include "rmw/subscription_content_filter_options.h" -#include "rmw/time.h" -#include "rmw/visibility_control.h" - -// We define the GID as 16 bytes (128 bits). This should be enough to ensure -// uniqueness amongst all entities in the system. It is up to the individual -// RMW implementations to fill that in, either from the underlying middleware -// or from the RMW layer itself. -#define RMW_GID_STORAGE_SIZE 16u - -/// Structure which encapsulates an rmw node -typedef struct RMW_PUBLIC_TYPE rmw_node_s -{ - /// Name of the rmw implementation - const char * implementation_identifier; - - /// Type erased pointer to this node's data - void * data; - - /// A concise name of this rmw node for identification - const char * name; - - /// The namespace of this rmw node - const char * namespace_; - - /// Context information about node's init specific information - rmw_context_t * context; -} rmw_node_t; - -/// Endpoint enumeration type -typedef enum RMW_PUBLIC_TYPE rmw_endpoint_type_e -{ - /// Endpoint type has not yet been set - RMW_ENDPOINT_INVALID = 0, - - /// Creates and publishes messages to the ROS topic - RMW_ENDPOINT_PUBLISHER, - - /// Listens for and receives messages from a topic - RMW_ENDPOINT_SUBSCRIPTION -} rmw_endpoint_type_t; - -/// Unique network flow endpoints requirement enumeration -typedef enum RMW_PUBLIC_TYPE rmw_unique_network_flow_endpoints_requirement_e -{ - /// Unique network flow endpoints not required - RMW_UNIQUE_NETWORK_FLOW_ENDPOINTS_NOT_REQUIRED = 0, - - /// Unique network flow endpoins strictly required. - /// Error if not provided by RMW implementation. - RMW_UNIQUE_NETWORK_FLOW_ENDPOINTS_STRICTLY_REQUIRED, - - /// Unique network flow endpoints optionally required. - /// No error if not provided RMW implementation. - RMW_UNIQUE_NETWORK_FLOW_ENDPOINTS_OPTIONALLY_REQUIRED, - - /// Unique network flow endpoints requirement decided by system. - RMW_UNIQUE_NETWORK_FLOW_ENDPOINTS_SYSTEM_DEFAULT -} rmw_unique_network_flow_endpoints_requirement_t; - -/// Options that can be used to configure the creation of a publisher in rmw. -typedef struct RMW_PUBLIC_TYPE rmw_publisher_options_s -{ - /// Used to pass rmw implementation specific resources during publisher creation. - /** - * This field is type erased (rather than forward declared) because it will - * usually be a non-owned reference to an language specific object, e.g. - * C++ it may be a polymorphic class that only the rmw implementation can use. - * - * The resource pointed to here needs to outlive this options structure, and - * any rmw_publisher objects that are created using it, as they copy this - * structure and may use this payload throughout their lifetime. - */ - void * rmw_specific_publisher_payload; - - /// Require middleware to generate unique network flow endpoints. - /** - * Unique network flow endpoints are required to differentiate the QoS provided by - * networks for flows between publishers and subscribers in communicating - * nodes. - * Default value is RMW_UNIQUE_NETWORK_FLOW_ENDPOINTS_NOT_REQUIRED. - */ - rmw_unique_network_flow_endpoints_requirement_t require_unique_network_flow_endpoints; -} rmw_publisher_options_t; - -/// Structure which encapsulates an rmw publisher -typedef struct RMW_PUBLIC_TYPE rmw_publisher_s -{ - /// Name of the rmw implementation - const char * implementation_identifier; - - /// Type erased pointer to this publisher's data - void * data; - - /// The name of the ROS topic this publisher publishes to - const char * topic_name; - - /// Publisher options. - /** - * The options structure passed to rmw_create_publisher() should be - * assigned to this field by the rmw implementation. - * The fields should not be modified after creation, but - * the contents of the options structure may or may not be const, i.e. - * shallow const-ness. - * This field is not marked const to avoid any const casting during setup. - */ - rmw_publisher_options_t options; - - /// Indicate whether this publisher supports loaning messages - bool can_loan_messages; -} rmw_publisher_t; - -/// Options that can be used to configure the creation of a subscription in rmw. -typedef struct RMW_PUBLIC_TYPE rmw_subscription_options_s -{ - /// Used to pass rmw implementation specific resources during subscription creation. - /** - * All the same details and restrictions of this field in - * rmw_publisher_options_t apply to this struct as well. - * - * \sa rmw_publisher_options_t.rmw_specific_publisher_payload - */ - void * rmw_specific_subscription_payload; - - /// If true then the middleware should not deliver data from local publishers. - /** - * This setting is most often used when data should only be received from - * remote nodes, especially to avoid "double delivery" when both intra- and - * inter- process communication is taking place. - * - * The definition of local means that in the same context. - */ - bool ignore_local_publications; - - /// Require middleware to generate unique network flow endpoints. - /** - * Unique network flow endpoints are required to differentiate the QoS provided by - * networks for flows between publishers and subscribers in communicating - * nodes. - * Default value is RMW_UNIQUE_NETWORK_FLOW_ENDPOINTS_NOT_REQUIRED. - */ - rmw_unique_network_flow_endpoints_requirement_t require_unique_network_flow_endpoints; - - /// Used to create a content filter options during subscription creation. - rmw_subscription_content_filter_options_t * content_filter_options; -} rmw_subscription_options_t; - -typedef struct RMW_PUBLIC_TYPE rmw_subscription_s -{ - /// Name of the rmw implementation - const char * implementation_identifier; - - /// Type erased pointer to this subscription - void * data; - - /// Name of the ros topic this subscription listens to - const char * topic_name; - - /// Subscription options. - /** - * The options structure passed to rmw_create_subscription() should be - * assigned to this field by the rmw implementation. - * The fields should not be modified after creation, but - * the contents of the options structure may or may not be const, i.e. - * shallow const-ness. - * This field is not marked const to avoid any const casting during setup. - */ - rmw_subscription_options_t options; - - /// Indicates whether this subscription can loan messages - bool can_loan_messages; - - /// Indicates whether content filtered topic of this subscription is enabled - bool is_cft_enabled; -} rmw_subscription_t; - -/// A handle to an rmw service -typedef struct RMW_PUBLIC_TYPE rmw_service_s -{ - /// The name of the rmw implementation - const char * implementation_identifier; - - /// Type erased pointer to this service - void * data; - - /// The name of this service as exposed to the ros graph - const char * service_name; -} rmw_service_t; - -/// A handle to an rmw service client -typedef struct RMW_PUBLIC_TYPE rmw_client_s -{ - /// The name of the rmw implementation - const char * implementation_identifier; - - /// Type erased pointer to this service client - void * data; - - /// The name of this service as exposed to the ros graph - const char * service_name; -} rmw_client_t; - -/// Handle for an rmw guard condition -typedef struct RMW_PUBLIC_TYPE rmw_guard_condition_s -{ - /// The name of the rmw implementation - const char * implementation_identifier; - - /// Type erased pointer to this guard condition - void * data; - - /// rmw context associated with this guard condition - rmw_context_t * context; -} rmw_guard_condition_t; - -/// Allocation of memory for an rmw publisher -typedef struct RMW_PUBLIC_TYPE rmw_publisher_allocation_s -{ - /// The name of the rmw implementation - const char * implementation_identifier; - - /// Type erased pointer to this allocation - void * data; -} rmw_publisher_allocation_t; - -/// Allocation of memory for an rmw subscription -typedef struct RMW_PUBLIC_TYPE rmw_subscription_allocation_s -{ - /// The name of the rmw implementation - const char * implementation_identifier; - - /// Type erased pointer to this allocation - void * data; -} rmw_subscription_allocation_t; - -/// Array of subscriber handles. -/** - * An array of void * pointers representing type-erased middleware-specific subscriptions. - * The number of non-null entries may be smaller than the allocated size of the array. - * The number of subscriptions represented may be smaller than the allocated size of the array. - * The creator of this struct is responsible for allocating and deallocating the array. - */ -typedef struct RMW_PUBLIC_TYPE rmw_subscriptions_s -{ - /// The number of subscribers represented by the array. - size_t subscriber_count; - /// Pointer to an array of void * pointers of subscriptions. - void ** subscribers; -} rmw_subscriptions_t; - -/// Array of service handles. -/** - * An array of void * pointers representing type-erased middleware-specific services. - * The number of non-null entries may be smaller than the allocated size of the array. - * The number of services represented may be smaller than the allocated size of the array. - * The creator of this struct is responsible for allocating and deallocating the array. - */ -typedef struct RMW_PUBLIC_TYPE rmw_services_s -{ - /// The number of services represented by the array. - size_t service_count; - /// Pointer to an array of void * pointers of services. - void ** services; -} rmw_services_t; - -/// Array of client handles. -/** - * An array of void * pointers representing type-erased middleware-specific clients. - * The number of non-null entries may be smaller than the allocated size of the array. - * The number of clients represented may be smaller than the allocated size of the array. - * The creator of this struct is responsible for allocating and deallocating the array. - */ -typedef struct RMW_PUBLIC_TYPE rmw_clients_s -{ - /// The number of clients represented by the array. - size_t client_count; - /// Pointer to an array of void * pointers of clients. - void ** clients; -} rmw_clients_t; - -typedef struct RMW_PUBLIC_TYPE rmw_events_s -{ - /// The number of events represented by the array. - size_t event_count; - /// Pointer to an array of void * pointers of events. - void ** events; -} rmw_events_t; - -/// Array of guard condition handles. -/** - * An array of void * pointers representing type-erased middleware-specific guard conditions. - * The number of non-null entries may be smaller than the allocated size of the array. - * The number of guard conditions represented may be smaller than the allocated size of the array. - * The creator of this struct is responsible for allocating and deallocating the array. - */ -typedef struct RMW_PUBLIC_TYPE rmw_guard_conditions_s -{ - /// The number of guard conditions represented by the array. - size_t guard_condition_count; - /// Pointer to an array of void * pointers of guard conditions. - void ** guard_conditions; -} rmw_guard_conditions_t; - -/// Container for guard conditions to be waited on -typedef struct RMW_PUBLIC_TYPE rmw_wait_set_s -{ - /// The name of the rmw implementation - const char * implementation_identifier; - - /// The guard condition to be waited on - rmw_guard_conditions_t * guard_conditions; - - /// Type erased pointer to this wait set's data - void * data; -} rmw_wait_set_t; - -/// An rmw service request identifier -typedef struct RMW_PUBLIC_TYPE rmw_request_id_s -{ - /// The guid of the writer associated with this request - uint8_t writer_guid[RMW_GID_STORAGE_SIZE]; - - /// Sequence number of this service - int64_t sequence_number; -} rmw_request_id_t; - -/// Meta-data for a service-related take. -typedef struct RMW_PUBLIC_TYPE rmw_service_info_s -{ - rmw_time_point_value_t source_timestamp; - rmw_time_point_value_t received_timestamp; - rmw_request_id_t request_id; -} rmw_service_info_t; - -typedef enum RMW_PUBLIC_TYPE rmw_qos_reliability_policy_e -{ - /// Implementation specific default - RMW_QOS_POLICY_RELIABILITY_SYSTEM_DEFAULT, - - /// Guarantee that samples are delivered, may retry multiple times. - RMW_QOS_POLICY_RELIABILITY_RELIABLE, - - /// Attempt to deliver samples, but some may be lost if the network is not robust - RMW_QOS_POLICY_RELIABILITY_BEST_EFFORT, - - /// Reliability policy has not yet been set - RMW_QOS_POLICY_RELIABILITY_UNKNOWN, - - /// Will match the majority of endpoints and use a reliable policy if possible - /** - * A policy will be chosen at the time of creating a subscription or publisher. - * A reliable policy will by chosen if it matches with all discovered endpoints, - * otherwise a best effort policy will be chosen. - * - * The QoS policy reported by functions like `rmw_subscription_get_actual_qos` or - * `rmw_publisher_get_actual_qos` may be best available, reliable, or best effort. - * - * Services and clients are not supported and default to the reliability value in - * `rmw_qos_profile_services_default`. - * - * The middleware is not expected to update the policy after creating a subscription or - * publisher, even if the chosen policy is incompatible with newly discovered endpoints. - * Therefore, this policy should be used with care since non-deterministic behavior - * can occur due to races with discovery. - */ - RMW_QOS_POLICY_RELIABILITY_BEST_AVAILABLE -} rmw_qos_reliability_policy_t; - -/// QoS history enumerations describing how samples endure -typedef enum RMW_PUBLIC_TYPE rmw_qos_history_policy_e -{ - /// Implementation default for history policy - RMW_QOS_POLICY_HISTORY_SYSTEM_DEFAULT, - - /// Only store up to a maximum number of samples, dropping oldest once max is exceeded - RMW_QOS_POLICY_HISTORY_KEEP_LAST, - - /// Store all samples, subject to resource limits - RMW_QOS_POLICY_HISTORY_KEEP_ALL, - - /// History policy has not yet been set - RMW_QOS_POLICY_HISTORY_UNKNOWN -} rmw_qos_history_policy_t; - -/// QoS durability enumerations describing how samples persist -typedef enum RMW_PUBLIC_TYPE rmw_qos_durability_policy_e -{ - /// Impplementation specific default - RMW_QOS_POLICY_DURABILITY_SYSTEM_DEFAULT, - - /// The rmw publisher is responsible for persisting samples for “late-joining” subscribers - RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL, - - /// Samples are not persistent - RMW_QOS_POLICY_DURABILITY_VOLATILE, - - /// Durability policy has not yet been set - RMW_QOS_POLICY_DURABILITY_UNKNOWN, - - /// Will match the majority of endpoints and use a transient local policy if possible - /** - * A policy will be chosen at the time of creating a subscription or publisher. - * A transient local policy will by chosen if it matches with all discovered endpoints, - * otherwise a volatile policy will be chosen. - * - * In the case that a volatile policy is chosen for a subscription, any messages sent before - * the subscription was created by transient local publishers will not be received. - * - * The QoS policy reported by functions like `rmw_subscription_get_actual_qos` or - * `rmw_publisher_get_actual_qos` may be best available, transient local, or volatile. - * - * Services and clients are not supported and default to the durability value in - * `rmw_qos_profile_services_default`. - * - * The middleware is not expected to update the policy after creating a subscription or - * publisher, even if the chosen policy is incompatible with newly discovered endpoints. - * Therefore, this policy should be used with care since non-deterministic behavior - * can occur due to races with discovery. - */ - RMW_QOS_POLICY_DURABILITY_BEST_AVAILABLE -} rmw_qos_durability_policy_t; - -#define RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_NODE_DEPRECATED_MSG \ - "RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_NODE is deprecated. " \ - "Use RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC if manually asserted liveliness is needed." - -#ifndef _MSC_VER -# define RMW_DECLARE_DEPRECATED(name, msg) name __attribute__((deprecated(msg))) -#else -# define RMW_DECLARE_DEPRECATED(name, msg) name __pragma(deprecated(name)) -#endif - -/// QoS liveliness enumerations that describe a publisher's reporting policy for its alive status. -/// For a subscriber, these are its requirements for its topic's publishers. -// Suppress syntax errors, as cppcheck does not seem to handle enumerator attributes. -// cppcheck-suppress syntaxError -typedef enum RMW_PUBLIC_TYPE rmw_qos_liveliness_policy_e -{ - /// Implementation specific default - RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT = 0, - - /// The signal that establishes a Topic is alive comes from the ROS rmw layer. - RMW_QOS_POLICY_LIVELINESS_AUTOMATIC = 1, - - /// Explicitly asserting node liveliness is required in this case. - /// This option is deprecated, use RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC if your application - /// requires to assert liveliness manually. - RMW_DECLARE_DEPRECATED( - RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_NODE, - RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_NODE_DEPRECATED_MSG) = 2, - - /// The signal that establishes a Topic is alive is at the Topic level. Only publishing a message - /// on the Topic or an explicit signal from the application to assert liveliness on the Topic - /// will mark the Topic as being alive. - // Using `3` for backwards compatibility. - RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC = 3, - - /// Liveliness policy has not yet been set - RMW_QOS_POLICY_LIVELINESS_UNKNOWN = 4, - - /// Will match the majority of endpoints and use a manual by topic policy if possible - /** - * A policy will be chosen at the time of creating a subscription or publisher. - * A manual by topic policy will by chosen if it matches with all discovered endpoints, - * otherwise an automatic policy will be chosen. - * - * The QoS policy reported by functions like `rmw_subscription_get_actual_qos` or - * `rmw_publisher_get_actual_qos` may be best available, automatic, or manual by topic. - * - * Services and clients are not supported and default to the liveliness value in - * `rmw_qos_profile_services_default`. - * - * The middleware is not expected to update the policy after creating a subscription or - * publisher, even if the chosen policy is incompatible with newly discovered endpoints. - * Therefore, this policy should be used with care since non-deterministic behavior - * can occur due to races with discovery. - */ - RMW_QOS_POLICY_LIVELINESS_BEST_AVAILABLE = 5 -} rmw_qos_liveliness_policy_t; - -/// QoS Deadline default. -#define RMW_QOS_DEADLINE_DEFAULT RMW_DURATION_UNSPECIFIED -/// Will match the majority of endpoints while maintaining as strict a policy as possible -/** - * Value is RMW_DURATION_INFINITE - 1. - * - * A policy will be chosen at the time of creating a subscription or publisher. - * For a subscription, the deadline will be the maximum value of all discovered publisher - * deadlines. - * For a publisher, the deadline will be the minimum value of all discovered subscription - * deadlines. - * - * The QoS policy reported by functions like `rmw_subscription_get_actual_qos` or - * `rmw_publisher_get_actual_qos` may be best available or the actual deadline value. - * - * Services and clients are not supported and default to the deadline value in - * `rmw_qos_profile_services_default`. - * - * The middleware is not expected to update the policy after creating a subscription or - * publisher, even if the chosen policy is incompatible with newly discovered endpoints. - * Therefore, this policy should be used with care since non-deterministic behavior - * can occur due to races with discovery. - */ -#define RMW_QOS_DEADLINE_BEST_AVAILABLE {9223372036LL, 854775806LL} - -/// QoS Lifespan default. -#define RMW_QOS_LIFESPAN_DEFAULT RMW_DURATION_UNSPECIFIED - -/// QoS Liveliness lease duration default. -#define RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT RMW_DURATION_UNSPECIFIED -/// Will match the majority of endpoints while maintaining as strict a policy as possible -/** - * Value is RMW_DURATION_INFINITE - 1. - * - * A policy will be chosen at the time of creating a subscription or publisher. - * For a subscription, the lease duration will be the maximum value of all discovered publisher - * lease durations. - * For a publisher, the lease duration will be the minimum value of all discovered subscription - * lease durations. - * - * The QoS policy reported by functions like `rmw_subscription_get_actual_qos` or - * `rmw_publisher_get_actual_qos` may be best available or the actual lease duration value. - * - * Services and clients are not supported and default to the lease duration value in - * `rmw_qos_profile_services_default`. - * - * The middleware is not expected to update the policy after creating a subscription or - * publisher, even if the chosen policy is incompatible with newly discovered endpoints. - * Therefore, this policy should be used with care since non-deterministic behavior - * can occur due to races with discovery. - */ -#define RMW_QOS_LIVELINESS_LEASE_DURATION_BEST_AVAILABLE {9223372036LL, 854775806LL} - -/// ROS MiddleWare quality of service profile. -typedef struct RMW_PUBLIC_TYPE rmw_qos_profile_s -{ - enum rmw_qos_history_policy_e history; - /// Size of the message queue. - size_t depth; - /// Reliabiilty QoS policy setting - enum rmw_qos_reliability_policy_e reliability; - /// Durability QoS policy setting - enum rmw_qos_durability_policy_e durability; - /// The period at which messages are expected to be sent/received - /** - * RMW_DURATION_UNSPECIFIED will use the RMW implementation's default value, - * which may or may not be infinite. - * RMW_DURATION_INFINITE explicitly states that messages never miss a deadline expectation. - */ - struct rmw_time_s deadline; - /// The age at which messages are considered expired and no longer valid - /** - * RMW_DURATION_UNSPECIFIED will use the RMW implementation's default value, - * which may or may not be infinite. - * RMW_DURATION_INFINITE explicitly states that messages do not expire. - */ - struct rmw_time_s lifespan; - /// Liveliness QoS policy setting - enum rmw_qos_liveliness_policy_e liveliness; - /// The time within which the RMW node or publisher must show that it is alive - /** - * RMW_DURATION_UNSPECIFIED will use the RMW implementation's default value, - * which may or may not be infinite. - * RMW_DURATION_INFINITE explicitly states that liveliness is not enforced. - */ - struct rmw_time_s liveliness_lease_duration; - - /// If true, any ROS specific namespacing conventions will be circumvented. - /** - * In the case of DDS and topics, for example, this means the typical - * ROS specific prefix of `rt` would not be applied as described here: - * - * http://design.ros2.org/articles/topic_and_service_names.html#ros-specific-namespace-prefix - * - * This might be useful when trying to directly connect a native DDS topic - * with a ROS 2 topic. - */ - bool avoid_ros_namespace_conventions; -} rmw_qos_profile_t; - -/// Globally unique identifier for a ROS graph entity -/** - * This is expected to be globally unique within a ROS domain. - * The identifier should be the same when reported both locally (where the entity was created) - * and on remote hosts or processes. - */ -typedef struct RMW_PUBLIC_TYPE rmw_gid_s -{ - /// Name of the rmw implementation - const char * implementation_identifier; - - /// Byte data GID value - uint8_t data[RMW_GID_STORAGE_SIZE]; -} rmw_gid_t; - -#define RMW_MESSAGE_INFO_SEQUENCE_NUMBER_UNSUPPORTED UINT64_MAX - -/// Information describing an rmw message -typedef struct RMW_PUBLIC_TYPE rmw_message_info_s -{ - /// Time when the message was published by the publisher. - /** - * The exact point at which the timestamp is taken is not specified, but - * it should be taken consistently at the same point in the - * publishing process each time. - */ - rmw_time_point_value_t source_timestamp; - /// Time when the message was received by the subscription. - /** - * The exact point at which the timestamp is taken is not specified, but - * it should be taken consistently at the same point in the - * process of receiving a message each time. - */ - rmw_time_point_value_t received_timestamp; - /// Sequence number of the received message set by the publisher. - /** - * This sequence number is set by the publisher and therefore uniquely identifies - * a message when combined with the publisher GID. - * For long running applications, the sequence number might wrap around at some point. - * - * If the rmw implementation doesn't support sequence numbers, its value will be - * RMW_MESSAGE_INFO_SEQUENCE_NUMBER_UNSUPPORTED. - * - * Requirements: - * - * If `psn1` and `psn2` are the publication sequence numbers obtained by - * calls to `rmw_take*()`, where `psn1` was obtained in a call that happened before `psn2` and both - * sequence numbers are from the same publisher (i.e. also same publisher gid), then: - * - * - psn2 > psn1 (except in the case of a wrap around) - * - `psn2 - psn1 - 1` is the number of messages the publisher sent in the middle of both - * received messages. - * Those might have already been taken by other `rmw_take*()` calls that happened in between or lost. - * `psn2 - psn1 - 1 = 0` if and only if the messages were sent by the publisher consecutively. - */ - uint64_t publication_sequence_number; - /// Sequence number of the received message set by the subscription. - /** - * This sequence number is set by the subscription regardless of which - * publisher sent the message. - * For long running applications, the sequence number might wrap around at some point. - * - * If the rmw implementation doesn't support sequence numbers, its value will be - * RMW_MESSAGE_INFO_SEQUENCE_NUMBER_UNSUPPORTED. - * - * Requirements: - * - * If `rsn1` and `rsn2` are the reception sequence numbers obtained by - * calls to `rmw_take*()`, where `rsn1` was obtained in a call that happened before `rsn2`, then: - * - * - rsn2 > rsn1 (except in the case of a wrap around) - * - `rsn2 = rsn1 + 1` if and only if both `rmw_take*()` calls happened consecutively. - */ - uint64_t reception_sequence_number; - /// Global unique identifier of the publisher that sent the message. - /** - * The identifier uniquely identifies the publisher for the local context, but - * it will not necessarily be the same identifier given in other contexts or processes - * for the same publisher. - * Therefore the identifier will uniquely identify the publisher within your application - * but may disagree about the identifier for that publisher when compared to another - * application. - * Even with this limitation, when combined with the publisher sequence number it can - * uniquely identify a message within your local context. - * Publisher GIDs generated by the rmw implementation could collide at some point, in which - * case it is not possible to distinguish which publisher sent the message. - * The details of how GIDs are generated are rmw implementation dependent. - * - * It is possible the the rmw implementation needs to reuse a publisher GID, - * due to running out of unique identifiers or some other constraint, in which case - * the rmw implementation may document what happens in that case, but that - * behavior is not defined here. - * However, this should be avoided, if at all possible, by the rmw implementation, - * and should be unlikely to happen in practice. - * - * \todo In the future we want this to uniquely identify the publisher globally across - * contexts, processes, and machines. - */ - rmw_gid_t publisher_gid; - - /// Whether this message is from intra_process communication or not - bool from_intra_process; -} rmw_message_info_t; - -/// Get zero initialized mesage info. -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_message_info_t -rmw_get_zero_initialized_message_info(void); - -/// Default size of the rmw queue when history is set to RMW_QOS_POLICY_HISTORY_KEEP_LAST, -/// 0 indicates it is currently not set -enum {RMW_QOS_POLICY_DEPTH_SYSTEM_DEFAULT = 0}; - -/// Type mapping of rcutils log severity types to rmw specific types. -typedef enum RMW_PUBLIC_TYPE -{ - /// Debug log severity, for pedantic messaging - RMW_LOG_SEVERITY_DEBUG = RCUTILS_LOG_SEVERITY_DEBUG, - - /// Informational log severity, for reporting expected but not overwhelming information - RMW_LOG_SEVERITY_INFO = RCUTILS_LOG_SEVERITY_INFO, - - /// Warning log severity, for reporting recoverable issues - RMW_LOG_SEVERITY_WARN = RCUTILS_LOG_SEVERITY_WARN, - - /// Error log severity, for reporting uncoverable issues - RMW_LOG_SEVERITY_ERROR = RCUTILS_LOG_SEVERITY_ERROR, - - /// Fatal log severity, for reporting issue causing imminent shutdown - RMW_LOG_SEVERITY_FATAL = RCUTILS_LOG_SEVERITY_FATAL -} rmw_log_severity_t; - -#ifdef __cplusplus -} -#endif - -#endif // RMW__TYPES_H_ diff --git a/src/rmw/validate_full_topic_name.h b/src/rmw/validate_full_topic_name.h deleted file mode 100755 index 4b61f3d28..000000000 --- a/src/rmw/validate_full_topic_name.h +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__VALIDATE_FULL_TOPIC_NAME_H_ -#define RMW__VALIDATE_FULL_TOPIC_NAME_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/macros.h" -#include "rmw/types.h" - -#define RMW_TOPIC_VALID 0 -#define RMW_TOPIC_INVALID_IS_EMPTY_STRING 1 -#define RMW_TOPIC_INVALID_NOT_ABSOLUTE 2 -#define RMW_TOPIC_INVALID_ENDS_WITH_FORWARD_SLASH 3 -#define RMW_TOPIC_INVALID_CONTAINS_UNALLOWED_CHARACTERS 4 -#define RMW_TOPIC_INVALID_CONTAINS_REPEATED_FORWARD_SLASH 5 -#define RMW_TOPIC_INVALID_NAME_TOKEN_STARTS_WITH_NUMBER 6 -#define RMW_TOPIC_INVALID_TOO_LONG 7 - -#define RMW_TOPIC_MAX_NAME_LENGTH 255U /* impl constraint */ - 8U /* reserved for prefixes */ - -/// Determine if a given fully qualified topic name is valid. -/** Validity of a FQN for topic is determined based on rules defined here: - * - * http://design.ros2.org/articles/topic_and_service_names.html - * - * Note that this function expects any URL suffixes as described in the above - * document to have already been removed. - * - * If either the C string or validation_result pointer are null, then - * `RMW_RET_INVALID_ARGUMENT` will be returned. - * The topic_name should be a valid, null-terminated C string. - * The validation_result int pointer should point to valid memory so a result - * can be stored in it as an output variable. - * The invalid_index size_t pointer should either point NULL or to valid memory - * so in the event of a validation error, the location in the input string can - * be stored therein. - * If NULL is passed in for invalid_index, it will be not be set. - * - * The invalid_index will not be assigned a value if the topic is valid. - * - * The int which validation_result points to will have a one of a few possible - * results values (defined with macros) stored into it: - * - * - RMW_TOPIC_VALID - * - RMW_TOPIC_INVALID_IS_EMPTY_STRING - * - RMW_TOPIC_INVALID_NOT_ABSOLUTE - * - RMW_TOPIC_INVALID_ENDS_WITH_FORWARD_SLASH - * - RMW_TOPIC_INVALID_CONTAINS_UNALLOWED_CHARACTERS - * - RMW_TOPIC_INVALID_CONTAINS_REPEATED_FORWARD_SLASH - * - RMW_TOPIC_INVALID_NAME_TOKEN_STARTS_WITH_NUMBER - * - RMW_TOPIC_INVALID_TOO_LONG - * - * The result value can be converted to a description with the - * rmw_full_topic_name_validation_result_string() function. - * - * The `RMW_TOPIC_INVALID_TOO_LONG` is guaranteed to be checked last, such - * that if you get that result, then you can assume all other checks succeeded. - * This is done so that the length limit can be treated as a warning rather - * than an error if desired. - * - * \param[in] topic_name topic name to be validated - * \param[out] validation_result int in which the result of the check is stored - * \param[out] invalid_index size_t index of the input string where an error occurred - * \returns `RMW_RET_OK` on successfully running the check, or - * \returns `RMW_RET_INVALID_ARGUMENT` on invalid parameters, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_validate_full_topic_name( - const char * topic_name, - int * validation_result, - size_t * invalid_index); - -/// Determine if a given topic name is valid. -/** - * This is an overload with an extra parameter for the length of topic_name. - * - * \sa rmw_validate_full_topic_name(const char *, int *, size_t *) - * - * \param[in] topic_name topic name to be validated - * \param[in] topic_name_length The number of characters in topic_name. - * \param[out] validation_result int in which the result of the check is stored - * \param[out] invalid_index size_t index of the input string where an error occurred - * \returns `RMW_RET_OK` on successfully running the check, or - * \returns `RMW_RET_INVALID_ARGUMENT` on invalid parameters, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_validate_full_topic_name_with_size( - const char * topic_name, - size_t topic_name_length, - int * validation_result, - size_t * invalid_index); - -/// Return a validation result description, or NULL if RMW_TOPIC_VALID. -/** - * \param[in] validation_result the result of validation - * \returns `NULL` if the validation result is `RMW_TOPIC_VALID`, or - * \returns a string representing the validation result. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -const char * -rmw_full_topic_name_validation_result_string(int validation_result); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__VALIDATE_FULL_TOPIC_NAME_H_ diff --git a/src/rmw/validate_namespace.h b/src/rmw/validate_namespace.h deleted file mode 100755 index abc927f8f..000000000 --- a/src/rmw/validate_namespace.h +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__VALIDATE_NAMESPACE_H_ -#define RMW__VALIDATE_NAMESPACE_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/macros.h" -#include "rmw/types.h" -#include "rmw/validate_full_topic_name.h" - -#define RMW_NAMESPACE_VALID 0 -#define RMW_NAMESPACE_INVALID_IS_EMPTY_STRING 1 -#define RMW_NAMESPACE_INVALID_NOT_ABSOLUTE 2 -#define RMW_NAMESPACE_INVALID_ENDS_WITH_FORWARD_SLASH 3 -#define RMW_NAMESPACE_INVALID_CONTAINS_UNALLOWED_CHARACTERS 4 -#define RMW_NAMESPACE_INVALID_CONTAINS_REPEATED_FORWARD_SLASH 5 -#define RMW_NAMESPACE_INVALID_NAME_TOKEN_STARTS_WITH_NUMBER 6 -#define RMW_NAMESPACE_INVALID_TOO_LONG 7 - -// An additional 2 characters are reserved for the shortest possible topic, e.g. '/X'. -#define RMW_NAMESPACE_MAX_LENGTH (RMW_TOPIC_MAX_NAME_LENGTH - 2U) - -/// Determine if a given namespace is valid. -/** Validity of a namespace is based on rules for a topic defined here: - * - * http://design.ros2.org/articles/topic_and_service_names.html - * - * Note that this function expects that there are no URL suffixes as described - * in the above document which can be used for topics and services. - * - * If either the C string or validation_result pointer are null, then - * `RMW_RET_INVALID_ARGUMENT` will be returned. - * The namespace_ should be a valid, null-terminated C string. - * The validation_result int pointer should point to valid memory so a result - * can be stored in it as an output variable. - * The invalid_index size_t pointer should either point NULL or to valid memory - * so in the event of a validation error, the location in the input string can - * be stored therein. - * If NULL is passed in for invalid_index, it will be not be set. - * - * The invalid_index will not be assigned a value if the namespace is valid. - * - * The int which validation_result points to will have a one of a few possible - * results values (defined with macros) stored into it: - * - * - RMW_NAMESPACE_VALID - * - RMW_NAMESPACE_INVALID_IS_EMPTY_STRING - * - RMW_NAMESPACE_INVALID_NOT_ABSOLUTE - * - RMW_NAMESPACE_INVALID_ENDS_WITH_FORWARD_SLASH - * - RMW_NAMESPACE_INVALID_CONTAINS_UNALLOWED_CHARACTERS - * - RMW_NAMESPACE_INVALID_CONTAINS_REPEATED_FORWARD_SLASH - * - RMW_NAMESPACE_INVALID_NAME_TOKEN_STARTS_WITH_NUMBER - * - RMW_NAMESPACE_INVALID_TOO_LONG - * - * The result value can be converted to a description with the - * rmw_namespace_validation_result_string() function. - * - * The ``RMW_NAMESPACE_INVALID_ENDS_WITH_FORWARD_SLASH`` validation result does - * not apply to ``"/"``, which is a valid namespace. - * - * The ``RMW_NAMESPACE_INVALID_TOO_LONG`` is guaranteed to be checked last, - * such that if you get that result, then you can assume all other checks - * succeeded. - * This is done so that the length limit can be treated as a warning rather - * than an error if desired. - * - * If a non RMW_RET_OK return value is returned, the RMW error message will be set - * - * \param[in] namespace_ namespace to be validated - * \param[out] validation_result int in which the result of the check is stored - * \param[out] invalid_index index of the input string where an error occurred - * \returns `RMW_RET_OK` on successfully running the check, or - * \returns `RMW_RET_INVALID_ARGUMENT` on invalid parameters, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_validate_namespace( - const char * namespace_, - int * validation_result, - size_t * invalid_index); - -/// Determine if a given namespace is valid. -/** - * This is an overload with an extra parameter for the length of namespace_. - * If a non RMW_RET_OK return value is returned, the RMW error message will be set. - * - * \sa rmw_validate_namespace(const char *, int *, size_t *) - * - * \param[in] namespace_ namespace to be validated - * \param[in] namespace_length The number of characters in namespace_. - * \param[out] validation_result int in which the result of the check is stored - * \param[out] invalid_index index of the input string where an error occurred - * \returns `RMW_RET_OK` on successfully running the check, or - * \returns `RMW_RET_INVALID_ARGUMENT` on invalid parameters, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_validate_namespace_with_size( - const char * namespace_, - size_t namespace_length, - int * validation_result, - size_t * invalid_index); - -/// Return a validation result description, or NULL if RMW_NAMESPACE_VALID. -/** - * \param[in] validation_result the result of validation - * \returns `NULL` if the validation result is `RMW_NAMESPACE_VALID`, or - * \returns a string representing the validation result. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -const char * -rmw_namespace_validation_result_string(int validation_result); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__VALIDATE_NAMESPACE_H_ diff --git a/src/rmw/validate_node_name.h b/src/rmw/validate_node_name.h deleted file mode 100755 index 2924cd00b..000000000 --- a/src/rmw/validate_node_name.h +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__VALIDATE_NODE_NAME_H_ -#define RMW__VALIDATE_NODE_NAME_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rmw/macros.h" -#include "rmw/types.h" - -#define RMW_NODE_NAME_VALID 0 -#define RMW_NODE_NAME_INVALID_IS_EMPTY_STRING 1 -#define RMW_NODE_NAME_INVALID_CONTAINS_UNALLOWED_CHARACTERS 2 -#define RMW_NODE_NAME_INVALID_STARTS_WITH_NUMBER 3 -#define RMW_NODE_NAME_INVALID_TOO_LONG 4 - -#define RMW_NODE_NAME_MAX_NAME_LENGTH 255 /* arbitrary constraint */ - -/// Determine if a node name is valid. -/** - * Node names must follow these rules: - * - * - must not be an empty string - * - must only contain alphanumeric characters and underscores (a-z|A-Z|0-9|_) - * - must not start with a number - * - * If either the node name C string or validation_result pointer are null, then - * `RMW_RET_INVALID_ARGUMENT` will be returned. - * The node_name should be a valid, null-terminated C string. - * The validation_result int pointer should point to valid memory so a result - * can be stored in it as an output variable. - * The invalid_index size_t pointer should either point NULL or to valid memory - * so in the event of a validation error, the location in the input string can - * be stored therein. - * If NULL is passed in for invalid_index, it will be not be set. - * - * The invalid_index will not be assigned a value if the node name is valid. - * - * The int which validation_result points to will have a one of a few possible - * results values (defined with macros) stored into it: - * - * - RMW_NODE_NAME_VALID - * - RMW_NODE_NAME_INVALID_IS_EMPTY_STRING - * - RMW_NODE_NAME_INVALID_CONTAINS_UNALLOWED_CHARACTERS - * - RMW_NODE_NAME_INVALID_STARTS_WITH_NUMBER - * - RMW_NODE_NAME_INVALID_TOO_LONG - * - * The result value can be converted to a description with the - * rmw_node_name_validation_result_string() function. - * - * The `RMW_NODE_NAME_INVALID_TOO_LONG` is guaranteed to be checked last, such - * that if you get that result, then you can assume all other checks succeeded. - * This is done so that the length limit can be treated as a warning rather - * than an error if desired. - * - * \param[in] node_name node name to be validated - * \param[out] validation_result int in which the result of the check is stored - * \param[out] invalid_index size_t index of the input string where an error occurred - * \returns `RMW_RET_OK` on successfully running the check, or - * \returns `RMW_RET_INVALID_ARGUMENT` on invalid parameters, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_validate_node_name( - const char * node_name, - int * validation_result, - size_t * invalid_index); - -/// Determine if a given node name is valid. -/** - * This is an overload with an extra parameter for the length of node_name. - * - * \sa rmw_validate_node_name(const char *, int *, size_t *) - * - * \param[in] node_name node name to be validated - * \param[in] node_name_length The number of characters in node_name. - * \param[out] validation_result int in which the result of the check is stored - * \param[out] invalid_index size_t index of the input string where an error occurred - * \returns `RMW_RET_OK` on successfully running the check, or - * \returns `RMW_RET_INVALID_ARGUMENT` on invalid parameters, or - * \returns `RMW_RET_ERROR` when an unspecified error occurs. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -rmw_ret_t -rmw_validate_node_name_with_size( - const char * node_name, - size_t node_name_length, - int * validation_result, - size_t * invalid_index); - -/// Return a validation result description, or NULL if RMW_NODE_NAME_VALID. -/** - * \param[in] validation_result the result of validation - * \returns `NULL` if the validation result is `RMW_NODE_NAME_VALID`, or - * \returns a string representing the validation result. - */ -RMW_PUBLIC -RMW_WARN_UNUSED -const char * -rmw_node_name_validation_result_string(int validation_result); - -#ifdef __cplusplus -} -#endif - -#endif // RMW__VALIDATE_NODE_NAME_H_ diff --git a/src/rmw/visibility_control.h b/src/rmw/visibility_control.h deleted file mode 100755 index e8de8d363..000000000 --- a/src/rmw/visibility_control.h +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2014 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW__VISIBILITY_CONTROL_H_ -#define RMW__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define RMW_EXPORT __attribute__ ((dllexport)) - #define RMW_IMPORT __attribute__ ((dllimport)) - #else - #define RMW_EXPORT __declspec(dllexport) - #define RMW_IMPORT __declspec(dllimport) - #endif - #ifdef RMW_BUILDING_DLL - #define RMW_PUBLIC RMW_EXPORT - #else - #define RMW_PUBLIC RMW_IMPORT - #endif - #define RMW_PUBLIC_TYPE RMW_PUBLIC - #define RMW_LOCAL -#else - #define RMW_EXPORT __attribute__ ((visibility("default"))) - #define RMW_IMPORT - #if __GNUC__ >= 4 - #define RMW_PUBLIC __attribute__ ((visibility("default"))) - #define RMW_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define RMW_PUBLIC - #define RMW_LOCAL - #endif - #define RMW_PUBLIC_TYPE -#endif - -#ifdef __cplusplus -} -#endif - -#endif // RMW__VISIBILITY_CONTROL_H_ diff --git a/src/rmw_microros/continous_serialization.h b/src/rmw_microros/continous_serialization.h deleted file mode 100755 index ebd14c7df..000000000 --- a/src/rmw_microros/continous_serialization.h +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef RMW_MICROROS__CONTINOUS_SERIALIZATION_H_ -#define RMW_MICROROS__CONTINOUS_SERIALIZATION_H_ - -#include -#include -#include -#include -#include - -#if defined(__cplusplus) -extern "C" -{ -#endif // if defined(__cplusplus) - -typedef void (* rmw_uros_continous_serialization_size)( - uint32_t * topic_length); -typedef void (* rmw_uros_continous_serialization)( - ucdrBuffer * ucdr); - -/** \addtogroup rmw micro-ROS RMW API - * @{ - */ - -/** - * \brief Sets the callback functions for continous serialization for a publisher - * - * \param[in] publisher publisher where continous serialization is being configured - * \param[in] size_cb callback that should modify the total serialization size - * \param[in] serialization_cb callback that should serialize the user part of the message - */ -void rmw_uros_set_continous_serialization_callbacks( - rmw_publisher_t * publisher, - rmw_uros_continous_serialization_size size_cb, - rmw_uros_continous_serialization serialization_cb); - -/** @}*/ - -#if defined(__cplusplus) -} -#endif // if defined(__cplusplus) - -#endif // RMW_MICROROS__CONTINOUS_SERIALIZATION_H_ diff --git a/src/rmw_microros/custom_transport.h b/src/rmw_microros/custom_transport.h deleted file mode 100755 index 60013ce35..000000000 --- a/src/rmw_microros/custom_transport.h +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef RMW_MICROROS__CUSTOM_TRANSPORT_H_ -#define RMW_MICROROS__CUSTOM_TRANSPORT_H_ - -#include -#include -#include -#include -#include - -#include - -#define MICROROS_TRANSPORTS_FRAMING_MODE 1 -#define MICROROS_TRANSPORTS_PACKET_MODE 0 - -#if defined(__cplusplus) -extern "C" -{ -#endif // if defined(__cplusplus) - -/** \addtogroup rmw micro-ROS RMW API - * @{ - */ - -/** - * \brief Sets micro-ROS default custom transport. - * - * \param[in] framing Enable XRCE framing. - * \param[in] args Arguments for open function. - * \param[in] open_cb Open transport callback. - * \param[in] close_cb Close transport callback. - * \param[in] write_cb Write transport callback. - * \param[in] read_cb Read transport callback. - * \return RMW_RET_OK If correct. - * \return RMW_RET_ERROR If invalid. - */ -rmw_ret_t rmw_uros_set_custom_transport( - bool framing, - void * args, - open_custom_func open_cb, - close_custom_func close_cb, - write_custom_func write_cb, - read_custom_func read_cb); - -/** - * \brief Fills rmw implementation-specific options with the given custom transport. - * - * \param[in] framing Enable XRCE framing. - * \param[in] args Arguments for open function. - * \param[in] open_cb Open transport callback. - * \param[in] close_cb Close transport callback. - * \param[in] write_cb Write transport callback. - * \param[in] read_cb Read transport callback. - * \param[in,out] rmw_options Updated options with updated transport. - * \return RMW_RET_OK If arguments were valid and set in rmw_init_options. - * \return RMW_RET_INVALID_ARGUMENT If rmw_init_options is not valid or unexpected arguments. - */ -rmw_ret_t rmw_uros_options_set_custom_transport( - bool framing, - void * args, - open_custom_func open_cb, - close_custom_func close_cb, - write_custom_func write_cb, - read_custom_func read_cb, - rmw_init_options_t * rmw_options); - -/** @}*/ - -#if defined(__cplusplus) -} -#endif // if defined(__cplusplus) - -#endif // RMW_MICROROS__CUSTOM_TRANSPORT_H_ diff --git a/src/rmw_microros/discovery.h b/src/rmw_microros/discovery.h deleted file mode 100755 index 89e731405..000000000 --- a/src/rmw_microros/discovery.h +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef RMW_MICROROS__DISCOVERY_H_ -#define RMW_MICROROS__DISCOVERY_H_ - -#include -#include -#include -#include -#include - -#if defined(__cplusplus) -extern "C" -{ -#endif // if defined(__cplusplus) - -/** \addtogroup rmw micro-ROS RMW API - * @{ - */ - -/** - * \brief Fills rmw implementation-specific options with the autodicovered address of an micro-ROS Agent. - * - * \param[in,out] rmw_options Updated options with rmw specifics. - * \return RMW_RET_OK If arguments were valid and set in rmw_init_options. - * \return RMW_RET_TIMEOUT If micro-ROS agent autodiscovery is timeout. - * \return RMW_RET_INVALID_ARGUMENT If rmw_init_options is not valid or unexpected arguments. - */ -rmw_ret_t rmw_uros_discover_agent( - rmw_init_options_t * rmw_options); - -/** @}*/ - -#if defined(__cplusplus) -} -#endif // if defined(__cplusplus) - -#endif // RMW_MICROROS__DISCOVERY_H_ diff --git a/src/rmw_microros/error_handling.h b/src/rmw_microros/error_handling.h deleted file mode 100755 index 0ae16a419..000000000 --- a/src/rmw_microros/error_handling.h +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef RMW_MICROROS__ERROR_HANDLING_H_ -#define RMW_MICROROS__ERROR_HANDLING_H_ - -#ifdef RMW_UROS_ERROR_HANDLING - -#include -#include -#include - -#if defined(__cplusplus) -extern "C" -{ -#endif // if defined(__cplusplus) - -typedef enum -{ - RMW_UROS_ERROR_ON_UNKNOWN = 0, - RMW_UROS_ERROR_ON_NODE, - RMW_UROS_ERROR_ON_SERVICE, - RMW_UROS_ERROR_ON_CLIENT, - RMW_UROS_ERROR_ON_SUBSCRIPTION, - RMW_UROS_ERROR_ON_PUBLISHER, - RMW_UROS_ERROR_ON_GRAPH, - RMW_UROS_ERROR_ON_GUARD_CONDITION, - RMW_UROS_ERROR_ON_TOPIC -} rmw_uros_error_entity_type_t; - -typedef enum -{ - RMW_UROS_ERROR_ENTITY_CREATION = 0, - RMW_UROS_ERROR_ENTITY_DESTRUCTION, - RMW_UROS_ERROR_CHECK, - RMW_UROS_ERROR_NOT_IMPLEMENTED, - RMW_UROS_ERROR_MIDDLEWARE_ALLOCATION, -} rmw_uros_error_source_t; - -typedef struct -{ - const char * node; - const char * node_namespace; - const char * topic_name; - const ucdrBuffer * ucdr; - const size_t size; - union { - const message_type_support_callbacks_t * message_callbacks; - const service_type_support_callbacks_t * service_callbacks; - } type_support; - const char * description; -} rmw_uros_error_context_t; - -typedef void (* rmw_uros_error_handling)( - const rmw_uros_error_entity_type_t entity, - const rmw_uros_error_source_t source, - const rmw_uros_error_context_t context, - const char * file, - const int line); - -/** \addtogroup rmw micro-ROS RMW API - * @{ - */ - -/** - * \brief Sets the callback functions for handling error in static memory handling - * - * \param[in] error_cb callback to be triggered on static memory failure - */ -void rmw_uros_set_error_handling_callback( - rmw_uros_error_handling error_cb); - -/** @}*/ - -#if defined(__cplusplus) -} -#endif // if defined(__cplusplus) - -#endif // RMW_UROS_ERROR_HANDLING - -#endif // RMW_MICROROS__ERROR_HANDLING_H_ diff --git a/src/rmw_microros/init_options.h b/src/rmw_microros/init_options.h deleted file mode 100755 index f29d75a33..000000000 --- a/src/rmw_microros/init_options.h +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef RMW_MICROROS__INIT_OPTIONS_H_ -#define RMW_MICROROS__INIT_OPTIONS_H_ - -#include -#include -#include -#include -#include - -#if defined(__cplusplus) -extern "C" -{ -#endif // if defined(__cplusplus) - -/** \addtogroup rmw micro-ROS RMW API - * @{ - */ - -/** - * \brief Parses command line args and fills rmw implementation-specific options. - * `rmw_init_options allocator` is used to allocate the specific rmw options. - * - * \param[in] argc Number of arguments. - * \param[in] argv Arguments. - * \param[in,out] rmw_options Updated options with rmw specifics. - * \return RMW_RET_OK If arguments were valid and set in rmw_init_options. - * \return RMW_RET_INVALID_ARGUMENT If rmw_init_options is not valid or unexpected arguments. - */ -rmw_ret_t rmw_uros_init_options( - int argc, - const char * const argv[], - rmw_init_options_t * rmw_options); - -/** - * \brief Fills rmw implementation-specific options with the given parameters. - * - * \param[in] dev Serial device. - * \param[in,out] rmw_options Updated options with rmw specifics. - * \return RMW_RET_OK If arguments were valid and set in rmw_init_options. - * \return RMW_RET_INVALID_ARGUMENT If rmw_init_options is not valid or unexpected arguments. - */ -rmw_ret_t rmw_uros_options_set_serial_device( - const char * dev, - rmw_init_options_t * rmw_options); - -/** - * \brief Fills rmw implementation-specific options with the given parameters. - * - * \param[in] ip Agent IP address. - * \param[in] port Agent UDP port. - * \param[in,out] rmw_options Updated options with rmw specifics. - * \return RMW_RET_OK If arguments were valid and set in rmw_init_options. - * \return RMW_RET_INVALID_ARGUMENT If rmw_init_options is not valid or unexpected arguments. - */ -rmw_ret_t rmw_uros_options_set_udp_address( - const char * ip, - const char * port, - rmw_init_options_t * rmw_options); - -/** - * \brief Fills rmw implementation-specific options with the given parameters. - * - * \param[in] client_key MicroXRCE-DDS client key. - * \param[in,out] rmw_options Updated options with rmw specifics. - * \return RMW_RET_OK If arguments were valid and set in rmw_init_options. - * \return RMW_RET_INVALID_ARGUMENT If rmw_init_options is not valid or unexpected arguments. - */ -rmw_ret_t rmw_uros_options_set_client_key( - uint32_t client_key, - rmw_init_options_t * rmw_options); - -/** @}*/ - -#if defined(__cplusplus) -} -#endif // if defined(__cplusplus) - -#endif // RMW_MICROROS__INIT_OPTIONS_H_ diff --git a/src/rmw_microros/ping.h b/src/rmw_microros/ping.h deleted file mode 100755 index 1375475a7..000000000 --- a/src/rmw_microros/ping.h +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef RMW_MICROROS__PING_H_ -#define RMW_MICROROS__PING_H_ - -#include -#include -#include -#include -#include - -#ifdef RMW_UXRCE_TRANSPORT_CUSTOM -#include -#endif // RMW_MICROROS__PING_H_ - - -#if defined(__cplusplus) -extern "C" -{ -#endif // if defined(__cplusplus) - -/** \addtogroup rmw micro-ROS RMW API - * @{ - */ - -/** - * \brief Check if micro-ROS Agent is up and running. - * This function can be called even when the micro-ROS context has not yet been - * initialized by the application logics. - * This function cannot be called concurrently with `rmw_init()` or `rmw_shutdown()`. - * \param[in] timeout_ms Timeout in ms (per attempt). - * \param[in] attempts Number of tries before considering the ping as failed. - * \return RMW_RET_OK If micro-ROS Agent is available. - * \return RMW_RET_ERROR If micro-ROS Agent is not available. - */ -rmw_ret_t rmw_uros_ping_agent( - const int timeout_ms, - const uint8_t attempts); - -/** - * \brief Check if micro-ROS Agent is up and running using the transport set on the given rmw options. - * This function can be called even when the micro-ROS context has not yet been initialized. - * The transport will be initialized and closed once during the ping process. - * This function cannot be called concurrently with `rmw_init()` or `rmw_shutdown()`. - * \param[in] timeout_ms Timeout in ms (per attempt). - * \param[in] attempts Number of tries before considering the ping as failed. - * \param[in] rmw_options rmw options with populated transport parameters. - * \return RMW_RET_OK If micro-ROS Agent is available. - * \return RMW_RET_ERROR If micro-ROS Agent is not available. - */ -rmw_ret_t rmw_uros_ping_agent_options( - const int timeout_ms, - const uint8_t attempts, - rmw_init_options_t * rmw_options); - -/** @}*/ - -#if defined(__cplusplus) -} -#endif // if defined(__cplusplus) - -#endif // RMW_MICROROS__PING_H_ diff --git a/src/rmw_microros/rmw_microros.h b/src/rmw_microros/rmw_microros.h deleted file mode 100755 index 2568f94a0..000000000 --- a/src/rmw_microros/rmw_microros.h +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW_MICROROS__RMW_MICROROS_H_ -#define RMW_MICROROS__RMW_MICROROS_H_ - -#include - -#include -#include -#include - -#include -#include -#include -#include -#include - -#if defined(RMW_UXRCE_TRANSPORT_UDP) || defined(RMW_UXRCE_TRANSPORT_TCP) -#include -#endif // RMW_UXRCE_TRANSPORT_UDP - -#ifdef RMW_UXRCE_TRANSPORT_CUSTOM -#include -#endif // RMW_UXRCE_TRANSPORT_CUSTOM - -#ifdef RMW_UROS_ERROR_HANDLING -#include -#endif // RMW_UROS_ERROR_HANDLING - -#if defined(__cplusplus) -extern "C" -{ -#endif // if defined(__cplusplus) - -#ifdef RMW_UXRCE_TRANSPORT_IPV4 - #define MAX_IP_LEN 16 -#elif defined(RMW_UXRCE_TRANSPORT_IPV6) - #define MAX_IP_LEN 39 -#endif // ifdef RMW_UXRCE_TRANSPORT_IPV4 -#define MAX_PORT_LEN 6 // uint16_t max size + NULL-end string -#define MAX_SERIAL_DEVICE 50 - -typedef struct rmw_uxrce_transport_params_t -{ -#if defined(RMW_UXRCE_TRANSPORT_SERIAL) - char serial_device[MAX_SERIAL_DEVICE]; -#elif defined(RMW_UXRCE_TRANSPORT_UDP) || defined(RMW_UXRCE_TRANSPORT_TCP) - char agent_address[MAX_IP_LEN]; - char agent_port[MAX_PORT_LEN]; -#elif defined(RMW_UXRCE_TRANSPORT_CUSTOM) - bool framing; - void * args; - open_custom_func open_cb; - close_custom_func close_cb; - write_custom_func write_cb; - read_custom_func read_cb; -#endif // if defined(RMW_UXRCE_TRANSPORT_SERIAL) - uint32_t client_key; -} rmw_uxrce_transport_params_t; - - -#if defined(__cplusplus) -} -#endif // if defined(__cplusplus) - -#endif // RMW_MICROROS__RMW_MICROROS_H_ diff --git a/src/rmw_microros/time_sync.h b/src/rmw_microros/time_sync.h deleted file mode 100755 index 5156f420f..000000000 --- a/src/rmw_microros/time_sync.h +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef RMW_MICROROS__TIME_SYNC_H_ -#define RMW_MICROROS__TIME_SYNC_H_ - -#include -#include -#include -#include - -#if defined(__cplusplus) -extern "C" -{ -#endif // if defined(__cplusplus) - -/** \addtogroup rmw micro-ROS RMW API - * @{ - */ - -/** - * \brief Returns the time synchronization state of the epoch time. - * \return true if last time synchronization succeded and false otherwise - */ -bool rmw_uros_epoch_synchronized(); - -/** - * \brief Returns the epoch time in milliseconds taking into account the offset computed during the time synchronization. - * \return epoch time in milliseconds. - * \return 0 if session is not initialized. - */ -int64_t rmw_uros_epoch_millis(); - -/** - * \brief Returns the epoch time in nanoseconds taking into account the offset computed during the time synchronization. - * \return epoch time in nanoseconds. - * \return 0 if session is not initialized. - */ -int64_t rmw_uros_epoch_nanos(); - -/** - * \brief Synchronizes the session time using the NTP protocol. - * \param[in] timeout_ms The waiting time in milliseconds. - * \return RMW_RET_OK when success. - * \return RMW_RET_ERROR If no session is running or the synchronization fails. - */ -rmw_ret_t rmw_uros_sync_session( - const int timeout_ms); - - -/** @}*/ - -#if defined(__cplusplus) -} -#endif // if defined(__cplusplus) - -#endif // RMW_MICROROS__TIME_SYNC_H_ diff --git a/src/rmw_microros/timing.h b/src/rmw_microros/timing.h deleted file mode 100755 index f9a76846a..000000000 --- a/src/rmw_microros/timing.h +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef RMW_MICROROS__TIMING_H_ -#define RMW_MICROROS__TIMING_H_ - -#include -#include -#include -#include - -#if defined(__cplusplus) -extern "C" -{ -#endif // if defined(__cplusplus) - -/** \addtogroup rmw micro-ROS RMW API - * @{ - */ - -/** - * \brief Sets the DDS-XRCE session spin time in reliable publication - * - * \param[in] publisher publisher where the spin time is configured - * \param[in] session_timeout time in milliseconds - * \return RMW_RET_OK when success. - * \return RMW_RET_INVALID_ARGUMENT If publisher is not valid or unexpected arguments. - */ -rmw_ret_t rmw_uros_set_publisher_session_timeout( - rmw_publisher_t * publisher, - int session_timeout); - -/** - * \brief Sets the DDS-XRCE session spin time in reliable service server - * - * \param[in] service service where the spin time is configured - * \param[in] session_timeout time in milliseconds - * \return RMW_RET_OK when success. - * \return RMW_RET_INVALID_ARGUMENT If service is not valid or unexpected arguments. - */ -rmw_ret_t rmw_uros_set_service_session_timeout( - rmw_service_t * service, - int session_timeout); - -/** - * \brief Sets the DDS-XRCE session spin time in reliable service client - * - * \param[in] client client where the spin time is configured - * \param[in] session_timeout time in milliseconds - * \return RMW_RET_OK when success. - * \return RMW_RET_INVALID_ARGUMENT If client is not valid or unexpected arguments. - */ -rmw_ret_t rmw_uros_set_client_session_timeout( - rmw_client_t * client, - int session_timeout); - -/** - * \brief Sets the DDS-XRCE session spin time for creating entities - * - * \param[in] context RWM context where the spin time is configured - * \param[in] session_timeout time in milliseconds - * \return RMW_RET_OK when success. - * \return RMW_RET_INVALID_ARGUMENT If client is not valid or unexpected arguments. - */ -rmw_ret_t rmw_uros_set_context_entity_creation_session_timeout( - rmw_context_t * context, - int session_timeout); - -/** - * \brief Sets the DDS-XRCE session spin time for destroying entities - * - * \param[in] context RWM context where the spin time is configured - * \param[in] session_timeout time in milliseconds - * \return RMW_RET_OK when success. - * \return RMW_RET_INVALID_ARGUMENT If client is not valid or unexpected arguments. - */ -rmw_ret_t rmw_uros_set_context_entity_destroy_session_timeout( - rmw_context_t * context, - int session_timeout); - -/** @}*/ - -#if defined(__cplusplus) -} -#endif // if defined(__cplusplus) - -#endif // RMW_MICROROS__TIMING_H_ diff --git a/src/rmw_microxrcedds_c/config.h b/src/rmw_microxrcedds_c/config.h deleted file mode 100755 index d24db7432..000000000 --- a/src/rmw_microxrcedds_c/config.h +++ /dev/null @@ -1,76 +0,0 @@ -#ifndef RMW_MICROXRCEDDS_CONFIG_H -#define RMW_MICROXRCEDDS_CONFIG_H - -#include - -/* #undef RMW_UXRCE_TRANSPORT_UDP */ -/* #undef RMW_UXRCE_TRANSPORT_TCP */ -/* #undef RMW_UXRCE_TRANSPORT_SERIAL */ -#define RMW_UXRCE_TRANSPORT_CUSTOM -/* #undef RMW_UXRCE_TRANSPORT_IPV4 */ -/* #undef RMW_UXRCE_TRANSPORT_IPV6 */ -/* #undef RMW_UXRCE_USE_REFS */ -/* #undef RMW_UXRCE_ALLOW_DYNAMIC_ALLOCATIONS */ -/* #undef RMW_UXRCE_GRAPH */ -/* #undef RMW_UROS_ERROR_HANDLING */ - -#ifdef RMW_UXRCE_TRANSPORT_UDP - #define RMW_UXRCE_MAX_TRANSPORT_MTU UXR_CONFIG_UDP_TRANSPORT_MTU - #define RMW_UXRCE_DEFAULT_IP "" - #define RMW_UXRCE_DEFAULT_PORT "" -#elif defined(RMW_UXRCE_TRANSPORT_TCP) - #define RMW_UXRCE_MAX_TRANSPORT_MTU UXR_CONFIG_TCP_TRANSPORT_MTU - #define RMW_UXRCE_DEFAULT_IP "" - #define RMW_UXRCE_DEFAULT_PORT "" -#elif defined(RMW_UXRCE_TRANSPORT_SERIAL) - #define RMW_UXRCE_MAX_TRANSPORT_MTU UXR_CONFIG_SERIAL_TRANSPORT_MTU - #define RMW_UXRCE_DEFAULT_SERIAL_DEVICE "" -#elif defined(RMW_UXRCE_TRANSPORT_CUSTOM) - #define RMW_UXRCE_MAX_TRANSPORT_MTU UXR_CONFIG_CUSTOM_TRANSPORT_MTU -#endif - -#define RMW_UXRCE_ENTITY_CREATION_TIMEOUT 1000 -#define RMW_UXRCE_ENTITY_DESTROY_TIMEOUT 1000 - -/* #undef RMW_UXRCE_STREAM_HISTORY_INPUT */ -/* #undef RMW_UXRCE_STREAM_HISTORY_OUTPUT */ -#if defined(RMW_UXRCE_STREAM_HISTORY_INPUT) && defined(RMW_UXRCE_STREAM_HISTORY_OUTPUT) -#undef RMW_UXRCE_STREAM_HISTORY_INPUT -#undef RMW_UXRCE_STREAM_HISTORY_OUTPUT -#define RMW_UXRCE_STREAM_HISTORY_INPUT -#define RMW_UXRCE_STREAM_HISTORY_OUTPUT -#else -#define RMW_UXRCE_STREAM_HISTORY_INPUT 4 -#define RMW_UXRCE_STREAM_HISTORY_OUTPUT 4 -#endif - -#define RMW_UXRCE_PUBLISH_RELIABLE_TIMEOUT 1000 - -#define RMW_UXRCE_MAX_HISTORY 4 -#define RMW_UXRCE_MAX_INPUT_BUFFER_SIZE (RMW_UXRCE_MAX_TRANSPORT_MTU * RMW_UXRCE_STREAM_HISTORY_INPUT) -#define RMW_UXRCE_MAX_OUTPUT_BUFFER_SIZE (RMW_UXRCE_MAX_TRANSPORT_MTU * RMW_UXRCE_STREAM_HISTORY_OUTPUT) - -#define RMW_UXRCE_MAX_SESSIONS 1 -#define RMW_UXRCE_MAX_OPTIONS RMW_UXRCE_MAX_SESSIONS*3 -#define RMW_UXRCE_MAX_NODES 1 -#define RMW_UXRCE_MAX_PUBLISHERS 10 -#define RMW_UXRCE_MAX_SUBSCRIPTIONS 5 -#define RMW_UXRCE_MAX_SERVICES 1 -#define RMW_UXRCE_MAX_CLIENTS 1 -#define RMW_UXRCE_MAX_TOPICS -1 -#define RMW_UXRCE_MAX_WAIT_SETS 4 -#define RMW_UXRCE_MAX_GUARD_CONDITION 4 - -#if RMW_UXRCE_MAX_TOPICS == -1 -#define RMW_UXRCE_MAX_TOPICS_INTERNAL RMW_UXRCE_MAX_PUBLISHERS + RMW_UXRCE_MAX_SUBSCRIPTIONS -#else -#define RMW_UXRCE_MAX_TOPICS_INTERNAL RMW_UXRCE_MAX_TOPICS -#endif - -#define RMW_UXRCE_NODE_NAME_MAX_LENGTH 60 -#define RMW_UXRCE_TOPIC_NAME_MAX_LENGTH 60 -#define RMW_UXRCE_TYPE_NAME_MAX_LENGTH 100 - -#define RMW_UXRCE_ENTITY_NAMING_BUFFER_LENGTH 100 - -#endif // RMW_MICROXRCEDDS_CONFIG_H diff --git a/src/rmw_microxrcedds_c/rmw_c_macros.h b/src/rmw_microxrcedds_c/rmw_c_macros.h deleted file mode 100755 index 4caad4436..000000000 --- a/src/rmw_microxrcedds_c/rmw_c_macros.h +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef RMW_MICROXRCEDDS_C__RMW_C_MACROS_H_ -#define RMW_MICROXRCEDDS_C__RMW_C_MACROS_H_ - -#include -#include - -#define RMW_CHECK_TYPE_IDENTIFIERS_MATCH(identifier, ret_on_failure) \ - { \ - if (NULL != identifier && strcmp(identifier, eprosima_microxrcedds_identifier) != 0) { \ - RMW_SET_ERROR_MSG("Implementation identifiers does not match"); \ - return ret_on_failure; \ - } \ - } - -#endif // RMW_MICROXRCEDDS_C__RMW_C_MACROS_H_ diff --git a/src/rosgraph_msgs/msg/clock.h b/src/rosgraph_msgs/msg/clock.h deleted file mode 100755 index 32b447e98..000000000 --- a/src/rosgraph_msgs/msg/clock.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from rosgraph_msgs:msg/Clock.idl -// generated code does not contain a copyright notice - -#ifndef ROSGRAPH_MSGS__MSG__CLOCK_H_ -#define ROSGRAPH_MSGS__MSG__CLOCK_H_ - -#include "rosgraph_msgs/msg/detail/clock__struct.h" -#include "rosgraph_msgs/msg/detail/clock__functions.h" -#include "rosgraph_msgs/msg/detail/clock__type_support.h" - -#endif // ROSGRAPH_MSGS__MSG__CLOCK_H_ diff --git a/src/rosgraph_msgs/msg/detail/clock__functions.h b/src/rosgraph_msgs/msg/detail/clock__functions.h deleted file mode 100755 index 623cf7a01..000000000 --- a/src/rosgraph_msgs/msg/detail/clock__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from rosgraph_msgs:msg/Clock.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rosgraph_msgs/msg/clock.h" - - -#ifndef ROSGRAPH_MSGS__MSG__DETAIL__CLOCK__FUNCTIONS_H_ -#define ROSGRAPH_MSGS__MSG__DETAIL__CLOCK__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rosgraph_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "rosgraph_msgs/msg/detail/clock__struct.h" - -/// Initialize msg/Clock message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rosgraph_msgs__msg__Clock - * )) before or use - * rosgraph_msgs__msg__Clock__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -bool -rosgraph_msgs__msg__Clock__init(rosgraph_msgs__msg__Clock * msg); - -/// Finalize msg/Clock message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -void -rosgraph_msgs__msg__Clock__fini(rosgraph_msgs__msg__Clock * msg); - -/// Create msg/Clock message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rosgraph_msgs__msg__Clock__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -rosgraph_msgs__msg__Clock * -rosgraph_msgs__msg__Clock__create(void); - -/// Destroy msg/Clock message. -/** - * It calls - * rosgraph_msgs__msg__Clock__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -void -rosgraph_msgs__msg__Clock__destroy(rosgraph_msgs__msg__Clock * msg); - -/// Check for msg/Clock message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -bool -rosgraph_msgs__msg__Clock__are_equal(const rosgraph_msgs__msg__Clock * lhs, const rosgraph_msgs__msg__Clock * rhs); - -/// Copy a msg/Clock message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -bool -rosgraph_msgs__msg__Clock__copy( - const rosgraph_msgs__msg__Clock * input, - rosgraph_msgs__msg__Clock * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -const rosidl_type_hash_t * -rosgraph_msgs__msg__Clock__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -const rosidl_runtime_c__type_description__TypeDescription * -rosgraph_msgs__msg__Clock__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -const rosidl_runtime_c__type_description__TypeSource * -rosgraph_msgs__msg__Clock__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rosgraph_msgs__msg__Clock__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Clock messages. -/** - * It allocates the memory for the number of elements and calls - * rosgraph_msgs__msg__Clock__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -bool -rosgraph_msgs__msg__Clock__Sequence__init(rosgraph_msgs__msg__Clock__Sequence * array, size_t size); - -/// Finalize array of msg/Clock messages. -/** - * It calls - * rosgraph_msgs__msg__Clock__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -void -rosgraph_msgs__msg__Clock__Sequence__fini(rosgraph_msgs__msg__Clock__Sequence * array); - -/// Create array of msg/Clock messages. -/** - * It allocates the memory for the array and calls - * rosgraph_msgs__msg__Clock__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -rosgraph_msgs__msg__Clock__Sequence * -rosgraph_msgs__msg__Clock__Sequence__create(size_t size); - -/// Destroy array of msg/Clock messages. -/** - * It calls - * rosgraph_msgs__msg__Clock__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -void -rosgraph_msgs__msg__Clock__Sequence__destroy(rosgraph_msgs__msg__Clock__Sequence * array); - -/// Check for msg/Clock message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -bool -rosgraph_msgs__msg__Clock__Sequence__are_equal(const rosgraph_msgs__msg__Clock__Sequence * lhs, const rosgraph_msgs__msg__Clock__Sequence * rhs); - -/// Copy an array of msg/Clock messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -bool -rosgraph_msgs__msg__Clock__Sequence__copy( - const rosgraph_msgs__msg__Clock__Sequence * input, - rosgraph_msgs__msg__Clock__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // ROSGRAPH_MSGS__MSG__DETAIL__CLOCK__FUNCTIONS_H_ diff --git a/src/rosgraph_msgs/msg/detail/clock__rosidl_typesupport_introspection_c.h b/src/rosgraph_msgs/msg/detail/clock__rosidl_typesupport_introspection_c.h deleted file mode 100755 index a3e30b3f8..000000000 --- a/src/rosgraph_msgs/msg/detail/clock__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from rosgraph_msgs:msg/Clock.idl -// generated code does not contain a copyright notice - -#ifndef ROSGRAPH_MSGS__MSG__DETAIL__CLOCK__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define ROSGRAPH_MSGS__MSG__DETAIL__CLOCK__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rosgraph_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rosgraph_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, rosgraph_msgs, msg, Clock)(); - -#ifdef __cplusplus -} -#endif - -#endif // ROSGRAPH_MSGS__MSG__DETAIL__CLOCK__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/rosgraph_msgs/msg/detail/clock__rosidl_typesupport_microxrcedds_c.h b/src/rosgraph_msgs/msg/detail/clock__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 34cdd146f..000000000 --- a/src/rosgraph_msgs/msg/detail/clock__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from rosgraph_msgs:msg/Clock.idl -// generated code does not contain a copyright notice -#ifndef ROSGRAPH_MSGS__MSG__CLOCK__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define ROSGRAPH_MSGS__MSG__CLOCK__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "rosgraph_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rosgraph_msgs -size_t get_serialized_size_rosgraph_msgs__msg__Clock( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rosgraph_msgs -size_t max_serialized_size_rosgraph_msgs__msg__Clock( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rosgraph_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, rosgraph_msgs, msg, Clock)(); - -#ifdef __cplusplus -} -#endif - - -#endif // ROSGRAPH_MSGS__MSG__CLOCK__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/rosgraph_msgs/msg/detail/clock__struct.h b/src/rosgraph_msgs/msg/detail/clock__struct.h deleted file mode 100755 index 4ea63ca09..000000000 --- a/src/rosgraph_msgs/msg/detail/clock__struct.h +++ /dev/null @@ -1,51 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from rosgraph_msgs:msg/Clock.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rosgraph_msgs/msg/clock.h" - - -#ifndef ROSGRAPH_MSGS__MSG__DETAIL__CLOCK__STRUCT_H_ -#define ROSGRAPH_MSGS__MSG__DETAIL__CLOCK__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'clock' -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in msg/Clock in the package rosgraph_msgs. -/** - * This message communicates the current time. - * - * For more information, see https://design.ros2.org/articles/clock_and_time.html. - */ -typedef struct rosgraph_msgs__msg__Clock -{ - builtin_interfaces__msg__Time clock; -} rosgraph_msgs__msg__Clock; - -// Struct for a sequence of rosgraph_msgs__msg__Clock. -typedef struct rosgraph_msgs__msg__Clock__Sequence -{ - rosgraph_msgs__msg__Clock * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rosgraph_msgs__msg__Clock__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ROSGRAPH_MSGS__MSG__DETAIL__CLOCK__STRUCT_H_ diff --git a/src/rosgraph_msgs/msg/detail/clock__type_support.h b/src/rosgraph_msgs/msg/detail/clock__type_support.h deleted file mode 100755 index 709937eff..000000000 --- a/src/rosgraph_msgs/msg/detail/clock__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from rosgraph_msgs:msg/Clock.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "rosgraph_msgs/msg/clock.h" - - -#ifndef ROSGRAPH_MSGS__MSG__DETAIL__CLOCK__TYPE_SUPPORT_H_ -#define ROSGRAPH_MSGS__MSG__DETAIL__CLOCK__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "rosgraph_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - rosgraph_msgs, - msg, - Clock -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // ROSGRAPH_MSGS__MSG__DETAIL__CLOCK__TYPE_SUPPORT_H_ diff --git a/src/rosgraph_msgs/msg/rosidl_generator_c__visibility_control.h b/src/rosgraph_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 7788faf8e..000000000 --- a/src/rosgraph_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef ROSGRAPH_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define ROSGRAPH_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_rosgraph_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_rosgraph_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_rosgraph_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_rosgraph_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_rosgraph_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs ROSIDL_GENERATOR_C_EXPORT_rosgraph_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs ROSIDL_GENERATOR_C_IMPORT_rosgraph_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_rosgraph_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_rosgraph_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_rosgraph_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ROSGRAPH_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/rosgraph_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/rosgraph_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 614ccafb4..000000000 --- a/src/rosgraph_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef ROSGRAPH_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define ROSGRAPH_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_rosgraph_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_rosgraph_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_rosgraph_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_rosgraph_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_rosgraph_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rosgraph_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_rosgraph_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rosgraph_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_rosgraph_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_rosgraph_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_rosgraph_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rosgraph_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_rosgraph_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ROSGRAPH_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/rosgraph_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/rosgraph_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 56b97dd44..000000000 --- a/src/rosgraph_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef ROSGRAPH_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define ROSGRAPH_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_rosgraph_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_rosgraph_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_rosgraph_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_rosgraph_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_rosgraph_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rosgraph_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_rosgraph_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rosgraph_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_rosgraph_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_rosgraph_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_rosgraph_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rosgraph_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_rosgraph_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ROSGRAPH_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/rosidl_dynamic_typesupport/api/dynamic_data.h b/src/rosidl_dynamic_typesupport/api/dynamic_data.h deleted file mode 100755 index 6a165487d..000000000 --- a/src/rosidl_dynamic_typesupport/api/dynamic_data.h +++ /dev/null @@ -1,619 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// Polymorphic serialization support interface -/// Downstream middlewares should populate this interface as appropriate - -#ifndef ROSIDL_DYNAMIC_TYPESUPPORT__API__DYNAMIC_DATA_H_ -#define ROSIDL_DYNAMIC_TYPESUPPORT__API__DYNAMIC_DATA_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include -#include - -#include "rosidl_dynamic_typesupport/api/serialization_support.h" -#include "rosidl_dynamic_typesupport/api/serialization_support_interface.h" -#include "rosidl_dynamic_typesupport/visibility_control.h" -#include "rosidl_dynamic_typesupport/types.h" -#include "rosidl_dynamic_typesupport/uchar.h" - -// Dynamic Data Impl -struct rosidl_dynamic_typesupport_dynamic_data_impl_s -{ - rcutils_allocator_t allocator; - void * handle; -}; - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rosidl_dynamic_typesupport_dynamic_data_impl_t -rosidl_dynamic_typesupport_get_zero_initialized_dynamic_data_impl(void); - -// Dynamic Data -struct rosidl_dynamic_typesupport_dynamic_data_s -{ - rcutils_allocator_t allocator; - rosidl_dynamic_typesupport_dynamic_data_impl_t impl; - // !!! Lifetime is NOT managed by this struct - rosidl_dynamic_typesupport_serialization_support_t * serialization_support; -}; - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rosidl_dynamic_typesupport_dynamic_data_t -rosidl_dynamic_typesupport_get_zero_initialized_dynamic_data(void); - -// =============================================================================================== -// DYNAMIC DATA -// =============================================================================================== - -// DYNAMIC DATA UTILS ============================================================================== -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_clear_all_values( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_clear_nonkey_values( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_clear_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_equals( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - const rosidl_dynamic_typesupport_dynamic_data_t * other, - bool * equals); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_item_count( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - size_t * item_count); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_member_id_by_name( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - const char * name, size_t name_length, - rosidl_dynamic_typesupport_member_id_t * member_id); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_member_id_at_index( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - size_t index, - rosidl_dynamic_typesupport_member_id_t * member_id); // OUT - -// You must use this for arrays -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_array_index( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - size_t index, - rosidl_dynamic_typesupport_member_id_t * array_index); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_loan_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_data_t * loaned_dynamic_data); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_return_loaned_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_dynamic_data_t * inner_dynamic_data); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_return_and_destroy_loaned_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_dynamic_data_t * inner_dynamic_data); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_name( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - const char ** name, // OUT - size_t * name_length); // OUT - - -// DYNAMIC DATA CONSTRUCTION ======================================================================= -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_init_from_dynamic_type_builder( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_init_from_dynamic_type( - rosidl_dynamic_typesupport_dynamic_type_t * dynamic_type, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_clone( - const rosidl_dynamic_typesupport_dynamic_data_t * other_dynamic_data, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_fini( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_destroy( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data); - - -// DYNAMIC DATA SERIALIZATION ====================================================================== -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_serialize( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rcutils_uint8_array_t * buffer); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_deserialize( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, // OUT - rcutils_uint8_array_t * buffer); - - -// DYNAMIC DATA PRIMITIVE MEMBER GETTERS =========================================================== -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_bool_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, bool * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_byte_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, unsigned char * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_char_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, char * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_wchar_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, char16_t * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_float32_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, float * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_float64_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, double * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_int8_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, int8_t * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_uint8_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, uint8_t * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_int16_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, int16_t * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_uint16_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, uint16_t * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_int32_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, int32_t * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_uint32_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, uint32_t * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_int64_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, int64_t * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_uint64_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, uint64_t * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_string_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, char ** value, size_t * value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_wstring_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, char16_t ** value, size_t * value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_fixed_string_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, char ** value, size_t * value_length, - size_t string_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_fixed_wstring_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, char16_t ** value, size_t * value_length, - size_t wstring_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_bounded_string_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, char ** value, size_t * value_length, - size_t string_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_bounded_wstring_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, char16_t ** value, size_t * value_length, - size_t wstring_bound); - - -// DYNAMIC DATA PRIMITIVE MEMBER SETTERS =========================================================== -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_bool_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, bool value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_byte_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, unsigned char value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_char_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, char value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_wchar_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, char16_t value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_float32_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, float value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_float64_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, double value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_int8_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, int8_t value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_uint8_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, uint8_t value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_int16_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, int16_t value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_uint16_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, uint16_t value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_int32_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, int32_t value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_uint32_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, uint32_t value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_int64_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, int64_t value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_uint64_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, uint64_t value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_string_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, const char * value, size_t value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_wstring_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, const char16_t * value, size_t value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_fixed_string_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, const char * value, size_t value_length, - size_t string_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_fixed_wstring_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, const char16_t * value, size_t value_length, - size_t wstring_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_bounded_string_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, const char * value, size_t value_length, - size_t string_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_bounded_wstring_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, const char16_t * value, size_t value_length, - size_t wstring_bound); - - -// DYNAMIC DATA SEQUENCES ========================================================================== -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_clear_sequence_data( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_remove_sequence_data( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_sequence_data( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_bool_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, bool value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_byte_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, uint8_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_char_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, char value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_wchar_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, char16_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_float32_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, float value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_float64_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, double value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_int8_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, int8_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_uint8_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, uint8_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_int16_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, int16_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_uint16_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, uint16_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_int32_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, int32_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_uint32_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, uint32_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_int64_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, int64_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_uint64_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, uint64_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_string_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, const char * value, size_t value_length, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_wstring_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, const char16_t * value, - size_t value_length, rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_fixed_string_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, const char * value, size_t value_length, - size_t string_length, rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_fixed_wstring_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, const char16_t * value, - size_t value_length, size_t wstring_length, rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_bounded_string_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, const char * value, size_t value_length, - size_t string_bound, rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_bounded_wstring_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, const char16_t * value, - size_t value_length, size_t wstring_bound, rosidl_dynamic_typesupport_member_id_t * out_id); - - -// DYNAMIC DATA NESTED ============================================================================= -// The user is expected to allocate the '** value' outparam outside -// This function will then reassign the '** value''s 'serialization_support' member to match the -// input's -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_get_complex_value( - const rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_data_t * value); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_set_complex_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, rosidl_dynamic_typesupport_dynamic_data_t * value); - -// This deep copies the passed data -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_complex_value_copy( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - const rosidl_dynamic_typesupport_dynamic_data_t * value, - rosidl_dynamic_typesupport_member_id_t * out_id); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_data_insert_complex_value( - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_data, - rosidl_dynamic_typesupport_dynamic_data_t * value, - rosidl_dynamic_typesupport_member_id_t * out_id); - - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_DYNAMIC_TYPESUPPORT__API__DYNAMIC_DATA_H_ diff --git a/src/rosidl_dynamic_typesupport/api/dynamic_type.h b/src/rosidl_dynamic_typesupport/api/dynamic_type.h deleted file mode 100755 index 1cfbc4e21..000000000 --- a/src/rosidl_dynamic_typesupport/api/dynamic_type.h +++ /dev/null @@ -1,961 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// Polymorphic serialization support interface -/// Downstream middlewares should populate this interface as appropriate - -#ifndef ROSIDL_DYNAMIC_TYPESUPPORT__API__DYNAMIC_TYPE_H_ -#define ROSIDL_DYNAMIC_TYPESUPPORT__API__DYNAMIC_TYPE_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include - -#include "rosidl_dynamic_typesupport/api/serialization_support.h" -#include "rosidl_dynamic_typesupport/api/serialization_support_interface.h" -#include "rosidl_dynamic_typesupport/types.h" -#include "rosidl_dynamic_typesupport/visibility_control.h" - -// Dynamic Type Builder Impl -struct rosidl_dynamic_typesupport_dynamic_type_builder_impl_s -{ - rcutils_allocator_t allocator; - void * handle; -}; - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rosidl_dynamic_typesupport_dynamic_type_builder_impl_t -rosidl_dynamic_typesupport_get_zero_initialized_dynamic_type_builder_impl(void); - -// Dynamic Type Builder -struct rosidl_dynamic_typesupport_dynamic_type_builder_s -{ - rcutils_allocator_t allocator; - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t impl; - // !!! Lifetime is NOT managed by this struct - rosidl_dynamic_typesupport_serialization_support_t * serialization_support; -}; - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rosidl_dynamic_typesupport_dynamic_type_builder_t -rosidl_dynamic_typesupport_get_zero_initialized_dynamic_type_builder(void); - -// Dynamic Type Impl -struct rosidl_dynamic_typesupport_dynamic_type_impl_s -{ - rcutils_allocator_t allocator; - void * handle; -}; - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rosidl_dynamic_typesupport_dynamic_type_impl_t -rosidl_dynamic_typesupport_get_zero_initialized_dynamic_type_impl(void); - -// Dynamic Type -struct rosidl_dynamic_typesupport_dynamic_type_s -{ - rcutils_allocator_t allocator; - rosidl_dynamic_typesupport_dynamic_type_impl_t impl; - // !!! Lifetime is NOT managed by this struct - rosidl_dynamic_typesupport_serialization_support_t * serialization_support; -}; - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rosidl_dynamic_typesupport_dynamic_type_t -rosidl_dynamic_typesupport_get_zero_initialized_dynamic_type(void); - -// ================================================================================================= -// DYNAMIC TYPE -// ================================================================================================= - -// DYNAMIC TYPE UTILS ============================================================================== -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_equals( - const rosidl_dynamic_typesupport_dynamic_type_t * dynamic_type, - const rosidl_dynamic_typesupport_dynamic_type_t * other, - bool * equals); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_get_member_count( - const rosidl_dynamic_typesupport_dynamic_type_t * dynamic_type, - size_t * member_count); // OUT - - -// DYNAMIC TYPE CONSTRUCTION ======================================================================= -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_init( - rosidl_dynamic_typesupport_serialization_support_t * serialization_support, const char * name, - size_t name_length, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_clone( - const rosidl_dynamic_typesupport_dynamic_type_builder_t * other, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_init_from_description( - rosidl_dynamic_typesupport_serialization_support_t * serialization_support, - const rosidl_runtime_c__type_description__TypeDescription * description, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_fini( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_destroy( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_init_from_dynamic_type_builder( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_type_t * dynamic_type); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_init_from_description( - rosidl_dynamic_typesupport_serialization_support_t * serialization_support, - const rosidl_runtime_c__type_description__TypeDescription * description, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_type_t * dynamic_type); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_clone( - const rosidl_dynamic_typesupport_dynamic_type_t * other, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_type_t * dynamic_type); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_fini( - rosidl_dynamic_typesupport_dynamic_type_t * dynamic_type); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_destroy( - rosidl_dynamic_typesupport_dynamic_type_t * dynamic_type); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_get_name( - const rosidl_dynamic_typesupport_dynamic_type_t * dynamic_type, - const char ** name, // OUT - size_t * name_length); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_get_name( - const rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - const char ** name, // OUT - size_t * name_length); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_set_name( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, const char * name, - size_t name_length); - - -// DYNAMIC TYPE PRIMITIVE MEMBERS ================================================================== -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_bool_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_byte_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_char_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_wchar_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_float32_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_float64_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int8_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint8_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int16_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint16_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int32_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint32_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int64_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint64_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_string_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_wstring_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_bounded_string_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_bounded_wstring_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_fixed_string_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_fixed_wstring_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_length); - - -// DYNAMIC TYPE STATIC ARRAY MEMBERS =============================================================== -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_bool_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_byte_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_char_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_wchar_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_float32_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_float64_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int8_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint8_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int16_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint16_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int32_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint32_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int64_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint64_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_string_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_wstring_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_bounded_string_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_bound, size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_bounded_wstring_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_bound, size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_fixed_string_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_length, size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_fixed_wstring_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_length, size_t array_length); - - -// DYNAMIC TYPE UNBOUNDED SEQUENCE MEMBERS ========================================================= -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_bool_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_byte_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_char_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_wchar_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_float32_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_float64_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int8_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint8_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int16_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint16_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int32_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint32_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int64_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint64_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_string_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_wstring_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_bounded_string_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_bounded_wstring_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_fixed_string_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_fixed_wstring_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_length); - - -// DYNAMIC TYPE BOUNDED SEQUENCE MEMBERS =========================================================== -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_bool_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_byte_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_char_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_wchar_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_float32_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_float64_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int8_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint8_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int16_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint16_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int32_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint32_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_int64_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_uint64_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_string_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_wstring_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_bounded_string_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_bound, size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_bounded_wstring_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_bound, size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_fixed_string_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_length, size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_fixed_wstring_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_length, size_t sequence_bound); - - -// DYNAMIC TYPE NESTED MEMBERS ===================================================================== -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_complex_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_t * nested_struct); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_complex_array_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_t * nested_struct, size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_complex_unbounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_t * nested_struct); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_complex_bounded_sequence_member( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_t * nested_struct, size_t sequence_bound); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_complex_member_builder( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_builder_t * nested_struct_builder); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_complex_array_member_builder( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_builder_t * nested_struct_builder, size_t array_length); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_complex_unbounded_sequence_member_builder( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_builder_t * nested_struct_builder); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_dynamic_type_builder_add_complex_bounded_sequence_member_builder( - rosidl_dynamic_typesupport_dynamic_type_builder_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_builder_t * nested_struct_builder, size_t sequence_bound); - - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_DYNAMIC_TYPESUPPORT__API__DYNAMIC_TYPE_H_ diff --git a/src/rosidl_dynamic_typesupport/api/serialization_support.h b/src/rosidl_dynamic_typesupport/api/serialization_support.h deleted file mode 100755 index c3c463d85..000000000 --- a/src/rosidl_dynamic_typesupport/api/serialization_support.h +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// Polymorphic serialization support interface -/// Downstream middlewares should populate this interface as appropriate - -#ifndef ROSIDL_DYNAMIC_TYPESUPPORT__API__SERIALIZATION_SUPPORT_H_ -#define ROSIDL_DYNAMIC_TYPESUPPORT__API__SERIALIZATION_SUPPORT_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include -#include -#include - -#include - -#include "rosidl_dynamic_typesupport/types.h" - -/// Serialization Support Impl -/// For anything necessary or useful for the operation of the serialization lib -/// (e.g. singleton dynamic type and dynamic data factories) -struct rosidl_dynamic_typesupport_serialization_support_impl_s -{ - rcutils_allocator_t allocator; - const char * serialization_library_identifier; - void * handle; -}; - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rosidl_dynamic_typesupport_serialization_support_impl_t -rosidl_dynamic_typesupport_get_zero_initialized_serialization_support_impl(void); - -/// Serialization Support -/// This is the main structure that encompasses: -/// - impl - The library-specific objects or implementation details -/// - methods - The shared serialization support interface, populated with serialization -/// library-specific function pointers -struct rosidl_dynamic_typesupport_serialization_support_s -{ - rcutils_allocator_t allocator; - const char * serialization_library_identifier; - - rosidl_dynamic_typesupport_serialization_support_impl_t impl; - // Can't call it `interface` because it's a reserved term in some Windows versions... - rosidl_dynamic_typesupport_serialization_support_interface_t methods; -}; - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rosidl_dynamic_typesupport_serialization_support_t -rosidl_dynamic_typesupport_get_zero_initialized_serialization_support(void); - -// CORE ============================================================================================ -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -const char * -rosidl_dynamic_typesupport_serialization_support_get_library_identifier( - const rosidl_dynamic_typesupport_serialization_support_t * serialization_support); - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_serialization_support_init( - rosidl_dynamic_typesupport_serialization_support_impl_t * impl, - rosidl_dynamic_typesupport_serialization_support_interface_t * methods, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_serialization_support_t * serialization_support); // OUT - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_typesupport_serialization_support_fini( - rosidl_dynamic_typesupport_serialization_support_t * serialization_support); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_DYNAMIC_TYPESUPPORT__API__SERIALIZATION_SUPPORT_H_ diff --git a/src/rosidl_dynamic_typesupport/api/serialization_support_interface.h b/src/rosidl_dynamic_typesupport/api/serialization_support_interface.h deleted file mode 100755 index 823ba5263..000000000 --- a/src/rosidl_dynamic_typesupport/api/serialization_support_interface.h +++ /dev/null @@ -1,1356 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/// Polymorphic serialization support interface -/// Downstream middlewares should populate this interface as appropriate - -#ifndef ROSIDL_DYNAMIC_TYPESUPPORT__API__SERIALIZATION_SUPPORT_INTERFACE_H_ -#define ROSIDL_DYNAMIC_TYPESUPPORT__API__SERIALIZATION_SUPPORT_INTERFACE_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include - -#include -#include -#include -#include - -#include "rosidl_dynamic_typesupport/types.h" -#include "rosidl_dynamic_typesupport/uchar.h" - -/// This interface must be adopted by all downstream serialization library implementations - -// ================================================================================================= -// Interface -// ================================================================================================= -struct rosidl_dynamic_typesupport_serialization_support_interface_s -{ - /// Interfaces mimicking the XTypes spec (Section 7.5: Language Binding) - /// https://www.omg.org/spec/DDS-XTypes/1.1/PDF - /// - /// Luckily for us, FastRTPS mimics the spec quite well - - /* TODOS??? (though these are just bonuses...) - * - DynamicType::get_type_descriptor / DynamicType::get_descriptor (and TypeDescriptor class) - * - * I'm not sure if these are necessary, given the fact we will have the type description message - * to guide the traversal? Also it's ambiguous what type we should be returning...: - * - DynamicType::get_all_members (Returns map of member ID to member) - * - DynamicType::get_all_members_by_name (Returns map of member name to member) - */ - - // CORE - rcutils_allocator_t allocator; - const char * serialization_library_identifier; - - rcutils_ret_t (* serialization_support_impl_fini)( - rosidl_dynamic_typesupport_serialization_support_impl_t * impl); - - rcutils_ret_t (* serialization_support_interface_fini)( - rosidl_dynamic_typesupport_serialization_support_interface_t * methods); - - // =============================================================================================== - // DYNAMIC TYPE - // =============================================================================================== - - // DYNAMIC TYPE UTILS - rcutils_ret_t (* dynamic_type_equals)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_type_impl_t * type, - const rosidl_dynamic_typesupport_dynamic_type_impl_t * other, - bool * equals); // OUT - - // "member" from XTypes spec - rcutils_ret_t (* dynamic_type_get_member_count)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_type_impl_t * dynamic_type, - size_t * member_count); // OUT - - - // DYNAMIC TYPE CONSTRUCTION - rcutils_ret_t (* dynamic_type_builder_init)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const char * name, size_t name_length, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder); // OUT - - rcutils_ret_t (* dynamic_type_builder_clone)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * other, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder); // OUT - - rcutils_ret_t (* dynamic_type_builder_fini)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder); - - - rcutils_ret_t (* dynamic_type_init_from_dynamic_type_builder)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_type_impl_t * dynamic_type); // OUT - - rcutils_ret_t (* dynamic_type_clone)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_type_impl_t * other, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_type_impl_t * dynamic_type); // OUT - - rcutils_ret_t (* dynamic_type_fini)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_impl_t * dynamic_type); - - - rcutils_ret_t (* dynamic_type_get_name)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_type_impl_t * dynamic_type, - const char ** name, // OUT - size_t * name_length); // OUT - - rcutils_ret_t (* dynamic_type_builder_get_name)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - const char ** name, // OUT - size_t * name_length); // OUT - - rcutils_ret_t (* dynamic_type_builder_set_name)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - const char * name, size_t name_length); - - - // DYNAMIC TYPE PRIMITIVE MEMBERS - rcutils_ret_t (* dynamic_type_builder_add_bool_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_byte_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_char_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_wchar_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_float32_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_float64_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_int8_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_uint8_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_int16_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_uint16_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_int32_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_uint32_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_int64_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_uint64_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_string_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_wstring_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_fixed_string_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_length); - - rcutils_ret_t (* dynamic_type_builder_add_fixed_wstring_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_length); - - rcutils_ret_t (* dynamic_type_builder_add_bounded_string_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_bound); - - rcutils_ret_t (* dynamic_type_builder_add_bounded_wstring_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_bound); - - - // DYNAMIC TYPE STATIC ARRAY MEMBERS - rcutils_ret_t (* dynamic_type_builder_add_bool_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_byte_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_char_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_wchar_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_float32_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_float64_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_int8_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_uint8_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_int16_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_uint16_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_int32_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_uint32_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_int64_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_uint64_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_string_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_wstring_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_fixed_string_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_length, size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_fixed_wstring_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_length, size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_bounded_string_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_bound, size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_bounded_wstring_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_bound, size_t array_length); - - - // DYNAMIC TYPE UNBOUNDED SEQUENCE MEMBERS - rcutils_ret_t (* dynamic_type_builder_add_bool_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_byte_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_char_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_wchar_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_float32_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_float64_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_int8_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_uint8_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_int16_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_uint16_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_int32_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_uint32_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_int64_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_uint64_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_string_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_wstring_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length); - - rcutils_ret_t (* dynamic_type_builder_add_fixed_string_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_length); - - rcutils_ret_t (* dynamic_type_builder_add_fixed_wstring_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_length); - - rcutils_ret_t (* dynamic_type_builder_add_bounded_string_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_bound); - - rcutils_ret_t (* dynamic_type_builder_add_bounded_wstring_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_bound); - - - // DYNAMIC TYPE BOUNDED SEQUENCE MEMBERS - rcutils_ret_t (* dynamic_type_builder_add_bool_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_byte_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_char_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_wchar_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_float32_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_float64_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_int8_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_uint8_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_int16_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_uint16_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_int32_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_uint32_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_int64_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_uint64_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_string_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_wstring_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_fixed_string_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_length, size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_fixed_wstring_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_length, size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_bounded_string_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t string_bound, size_t sequence_bound); - - rcutils_ret_t (* dynamic_type_builder_add_bounded_wstring_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - size_t wstring_bound, size_t sequence_bound); - - - // DYNAMIC TYPE NESTED MEMBERS - rcutils_ret_t (* dynamic_type_builder_add_complex_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_impl_t * nested_struct); - - rcutils_ret_t (* dynamic_type_builder_add_complex_array_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_impl_t * nested_struct, size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_complex_unbounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_impl_t * nested_struct); - - rcutils_ret_t (* dynamic_type_builder_add_complex_bounded_sequence_member)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_impl_t * nested_struct, size_t sequence_bound); - - - rcutils_ret_t (* dynamic_type_builder_add_complex_member_builder)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * nested_struct_builder); - - rcutils_ret_t (* dynamic_type_builder_add_complex_array_member_builder)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * nested_struct_builder, - size_t array_length); - - rcutils_ret_t (* dynamic_type_builder_add_complex_unbounded_sequence_member_builder)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * nested_struct_builder); - - rcutils_ret_t (* dynamic_type_builder_add_complex_bounded_sequence_member_builder)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rosidl_dynamic_typesupport_member_id_t id, - const char * name, size_t name_length, - const char * default_value, size_t default_value_length, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * nested_struct_builder, - size_t sequence_bound); - - - // =============================================================================================== - // DYNAMIC DATA - // =============================================================================================== - - // DYNAMIC DATA UTILS - rcutils_ret_t (* dynamic_data_clear_all_values)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data); - - rcutils_ret_t (* dynamic_data_clear_nonkey_values)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data); - - rcutils_ret_t (* dynamic_data_clear_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id); - - - rcutils_ret_t (* dynamic_data_equals)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * other, - bool * equals); // OUT - - // "item" from XTypes - rcutils_ret_t (* dynamic_data_get_item_count)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - size_t * item_count); // OUT - - rcutils_ret_t (* dynamic_data_get_member_id_by_name)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - const char * name, size_t name_length, - rosidl_dynamic_typesupport_member_id_t * member_id); // OUT - - rcutils_ret_t (* dynamic_data_get_member_id_at_index)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - size_t index, - rosidl_dynamic_typesupport_member_id_t * member_id); // OUT - - rcutils_ret_t (* dynamic_data_get_array_index)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - size_t index, - rosidl_dynamic_typesupport_member_id_t * array_index); // OUT - - - rcutils_ret_t (* dynamic_data_loan_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_data_impl_t * loaned_dynamic_data); // OUT - - rcutils_ret_t (* dynamic_data_return_loaned_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * inner_data); - - rcutils_ret_t (* dynamic_data_get_name)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - const char ** name, // OUT - size_t * name_length); // OUT - - - // DYNAMIC DATA CONSTRUCTION - rcutils_ret_t (* dynamic_data_init_from_dynamic_type_builder)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t * dynamic_type_builder, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data); // OUT - - rcutils_ret_t (* dynamic_data_init_from_dynamic_type)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_type_impl_t * type, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data); // OUT - - rcutils_ret_t (* dynamic_data_clone)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * other, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data); // OUT - - rcutils_ret_t (* dynamic_data_fini)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data); - - // DYNAMIC DATA SERIALIZATION - // NOTE(methylDragon): I'm not sure if rcutils_uint8_array_t is the right type to pass... - // On the other hand it plays well with rmw and stores the buffer, length, and - // capacity... - // - // I also considered using a void * instead, but I like the idea of forcing - // serialization support libraries to play with uint8_t *s instead of their - // own native type. - // - // ... Though I'm betting that any of their types can be accurately - // represented as such a byte array - // - // NOTE(methylDragon): rmw_serialized_message_t is a typedef of rcutils_uint8_array_t - rcutils_ret_t (* dynamic_data_serialize)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rcutils_uint8_array_t * buffer); // OUT - - rcutils_ret_t (* dynamic_data_deserialize)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, // OUT - rcutils_uint8_array_t * buffer); - - - // DYNAMIC DATA PRIMITIVE MEMBER GETTERS - rcutils_ret_t (* dynamic_data_get_bool_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - bool * value); // OUT - - rcutils_ret_t (* dynamic_data_get_byte_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - uint8_t * value); // OUT - - rcutils_ret_t (* dynamic_data_get_char_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - char * value); // OUT - - rcutils_ret_t (* dynamic_data_get_wchar_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - char16_t * value); // OUT - - rcutils_ret_t (* dynamic_data_get_float32_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - float * value); // OUT - - rcutils_ret_t (* dynamic_data_get_float64_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - double * value); // OUT - - rcutils_ret_t (* dynamic_data_get_int8_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - int8_t * value); // OUT - - rcutils_ret_t (* dynamic_data_get_uint8_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - uint8_t * value); // OUT - - rcutils_ret_t (* dynamic_data_get_int16_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - int16_t * value); // OUT - - rcutils_ret_t (* dynamic_data_get_uint16_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - uint16_t * value); // OUT - - rcutils_ret_t (* dynamic_data_get_int32_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - int32_t * value); // OUT - - rcutils_ret_t (* dynamic_data_get_uint32_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - uint32_t * value); // OUT - - rcutils_ret_t (* dynamic_data_get_int64_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - int64_t * value); // OUT - - rcutils_ret_t (* dynamic_data_get_uint64_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - uint64_t * value); // OUT - - rcutils_ret_t (* dynamic_data_get_string_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - char ** value, // OUT - size_t * value_length); // OUT - - rcutils_ret_t (* dynamic_data_get_wstring_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - char16_t ** value, // OUT - size_t * value_length); // OUT - - rcutils_ret_t (* dynamic_data_get_fixed_string_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - char ** value, // OUT - size_t * value_length, // OUT - size_t string_length); - - rcutils_ret_t (* dynamic_data_get_fixed_wstring_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - char16_t ** value, // OUT - size_t * value_length, // OUT - size_t wstring_length); - - rcutils_ret_t (* dynamic_data_get_bounded_string_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - char ** value, // OUT - size_t * value_length, // OUT - size_t string_bound); - - rcutils_ret_t (* dynamic_data_get_bounded_wstring_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - char16_t ** value, // OUT - size_t * value_length, // OUT - size_t wstring_bound); - - - // DYNAMIC DATA PRIMITIVE MEMBER SETTERS - rcutils_ret_t (* dynamic_data_set_bool_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, bool value); - - rcutils_ret_t (* dynamic_data_set_byte_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, uint8_t value); - - rcutils_ret_t (* dynamic_data_set_char_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, char value); - - rcutils_ret_t (* dynamic_data_set_wchar_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, char16_t value); - - rcutils_ret_t (* dynamic_data_set_float32_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, float value); - - rcutils_ret_t (* dynamic_data_set_float64_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, double value); - - rcutils_ret_t (* dynamic_data_set_int8_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, int8_t value); - - rcutils_ret_t (* dynamic_data_set_uint8_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, uint8_t value); - - rcutils_ret_t (* dynamic_data_set_int16_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, int16_t value); - - rcutils_ret_t (* dynamic_data_set_uint16_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, uint16_t value); - - rcutils_ret_t (* dynamic_data_set_int32_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, int32_t value); - - rcutils_ret_t (* dynamic_data_set_uint32_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, uint32_t value); - - rcutils_ret_t (* dynamic_data_set_int64_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, int64_t value); - - rcutils_ret_t (* dynamic_data_set_uint64_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, uint64_t value); - - rcutils_ret_t (* dynamic_data_set_string_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - const char * value, size_t value_length); - - rcutils_ret_t (* dynamic_data_set_wstring_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - const char16_t * value, size_t value_length); - - rcutils_ret_t (* dynamic_data_set_fixed_string_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - const char * value, size_t value_length, - size_t string_length); - - rcutils_ret_t (* dynamic_data_set_fixed_wstring_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - const char16_t * value, size_t value_length, - size_t wstring_length); - - rcutils_ret_t (* dynamic_data_set_bounded_string_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - const char * value, size_t value_length, - size_t string_bound); - - rcutils_ret_t (* dynamic_data_set_bounded_wstring_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - const char16_t * value, size_t value_length, - size_t wstring_bound); - - - // DYNAMIC DATA SEQUENCES - rcutils_ret_t (* dynamic_data_clear_sequence_data)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data); - - rcutils_ret_t (* dynamic_data_remove_sequence_data)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id); - - rcutils_ret_t (* dynamic_data_insert_sequence_data)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - - rcutils_ret_t (* dynamic_data_insert_bool_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - bool value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_byte_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - uint8_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_char_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - char value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_wchar_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - char16_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_float32_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - float value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_float64_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - double value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_int8_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - int8_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_uint8_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - uint8_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_int16_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - int16_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_uint16_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - uint16_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_int32_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - int32_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_uint32_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - uint32_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_int64_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - int64_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_uint64_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - uint64_t value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_string_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - const char * value, size_t value_length, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_wstring_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - const char16_t * value, size_t value_length, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_fixed_string_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - const char * value, size_t value_length, size_t string_length, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_fixed_wstring_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - const char16_t * value, size_t value_length, size_t wstring_length, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_bounded_string_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - const char * value, size_t value_length, size_t string_bound, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_bounded_wstring_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - const char16_t * value, size_t value_length, size_t wstring_bound, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - - // DYNAMIC DATA NESTED - rcutils_ret_t (* dynamic_data_get_complex_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - rcutils_allocator_t * allocator, - rosidl_dynamic_typesupport_dynamic_data_impl_t * value); // OUT (copies) - - rcutils_ret_t (* dynamic_data_set_complex_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_member_id_t id, - rosidl_dynamic_typesupport_dynamic_data_impl_t * value); - - - rcutils_ret_t (* dynamic_data_insert_complex_value_copy)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - const rosidl_dynamic_typesupport_dynamic_data_impl_t * value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT - - rcutils_ret_t (* dynamic_data_insert_complex_value)( - rosidl_dynamic_typesupport_serialization_support_impl_t * serialization_support, - rosidl_dynamic_typesupport_dynamic_data_impl_t * dynamic_data, - rosidl_dynamic_typesupport_dynamic_data_impl_t * value, - rosidl_dynamic_typesupport_member_id_t * out_id); // OUT -}; - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rosidl_dynamic_typesupport_serialization_support_interface_t -rosidl_dynamic_typesupport_get_zero_initialized_serialization_support_interface(void); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_DYNAMIC_TYPESUPPORT__API__SERIALIZATION_SUPPORT_INTERFACE_H_ diff --git a/src/rosidl_dynamic_typesupport/dynamic_message_type_support_struct.h b/src/rosidl_dynamic_typesupport/dynamic_message_type_support_struct.h deleted file mode 100755 index b4cc9780a..000000000 --- a/src/rosidl_dynamic_typesupport/dynamic_message_type_support_struct.h +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_DYNAMIC_TYPESUPPORT__DYNAMIC_MESSAGE_TYPE_SUPPORT_STRUCT_H_ -#define ROSIDL_DYNAMIC_TYPESUPPORT__DYNAMIC_MESSAGE_TYPE_SUPPORT_STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include -#include - -#include "rosidl_dynamic_typesupport/api/dynamic_type.h" -#include "rosidl_dynamic_typesupport/api/dynamic_data.h" -#include "rosidl_dynamic_typesupport/api/serialization_support.h" -#include "rosidl_dynamic_typesupport/identifier.h" -#include "rosidl_dynamic_typesupport/types.h" -#include "rosidl_dynamic_typesupport/visibility_control.h" - - -// RUNTIME INTERFACE REFLECTION TYPE SUPPORT ======================================================= -// Every field of this struct is expected to be populated. -// -// NOTE(methylDragon): There is an opportunity to defer the population of the members by waiting -// for discovery, but this path is currently not supported. -// -// Ownership: -// - The struct owns its `description` field. It is responsible for deallocating it. -// - The struct owns its `serialization_support` field. It is responsible for deallocating it. -// - The struct owns its `dynamic_message_type` field. It is responsible for deallocating it. -// - The struct owns its `dynamic_message` field. It is responsible for deallocating it. -// -// Downstream classes are expected to borrow the `serialization_support` field, and potentially the -// `dynamic_message_type` and `dynamic_message` fields. As such, it is important that this struct -// outlives those downstream classes. -typedef struct rosidl_dynamic_message_type_support_impl_s -{ - rcutils_allocator_t allocator; - - rosidl_type_hash_t type_hash; - rosidl_runtime_c__type_description__TypeDescription type_description; - - // Unused for now, but placed here just in case - rosidl_runtime_c__type_description__TypeSource__Sequence type_description_sources; - - rosidl_dynamic_typesupport_serialization_support_t serialization_support; - - // The dynamic_message_type allows us to do a one time alloc and reuse it for subscription - // creation and data creation - rosidl_dynamic_typesupport_dynamic_type_t * dynamic_message_type; - - // The dynamic_message allows us to either reuse it, or clone it, but it's technically redundant - // because data can be created from dynamic_message_type - rosidl_dynamic_typesupport_dynamic_data_t * dynamic_message; -} rosidl_dynamic_message_type_support_impl_t; - -/// Initialize a dynamic type message type support with encapsulated message description -/** - * Take note of the ownership rules for the returned struct and the `description` argument. - * - * The `rosidl_message_type_support_t *` returned from this function has different ownership rules - * compared to the statically allocated `rosidl_message_type_support_t` structs from code-generated - * types. - * - * The `type_hash`, `type_description`, `type_description_sources`, and `allocator` arguments are - * copied. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - */ -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_message_type_support_handle_init( - rosidl_dynamic_typesupport_serialization_support_t * serialization_support, - const rosidl_type_hash_t * type_hash, - const rosidl_runtime_c__type_description__TypeDescription * type_description, - const rosidl_runtime_c__type_description__TypeSource__Sequence * type_description_sources, - rcutils_allocator_t * allocator, - rosidl_message_type_support_t * ts); // OUT - -/// Finalize a rosidl_message_type_support_t obtained with -/// `rosidl_dynamic_message_type_support_handle_init()`, which has dynamically allocated members -/// -/// NOTE: Using this on a statically allocated typesupport will cause undefined behavior! -/// (Static memory will get freed in that case.) -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_message_type_support_handle_fini(rosidl_message_type_support_t * ts); - -/// Initialized a `rosidl_dynamic_message_type_support_impl_t` with encapsulated message description -/** - * The `type_hash`, `type_description`, `type_description_sources`, and `allocator` arguments are - * copied. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - */ -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_message_type_support_handle_impl_init( - rosidl_dynamic_typesupport_serialization_support_t * serialization_support, - const rosidl_type_hash_t * type_hash, - const rosidl_runtime_c__type_description__TypeDescription * type_description, - const rosidl_runtime_c__type_description__TypeSource__Sequence * type_description_sources, - rcutils_allocator_t * allocator, - rosidl_dynamic_message_type_support_impl_t * ts_impl); // OUT - -/// Finalize a `rosidl_dynamic_message_type_support_impl_t` -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -rcutils_ret_t -rosidl_dynamic_message_type_support_handle_impl_fini( - rosidl_dynamic_message_type_support_impl_t * ts_impl); - -/// Return type_hash member in rosidl_dynamic_message_type_support_impl_t -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -const rosidl_type_hash_t * -rosidl_get_dynamic_message_type_support_type_hash_function( - const rosidl_message_type_support_t * type_support); - -/// Return description member in rosidl_dynamic_message_type_support_impl_t -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -const rosidl_runtime_c__type_description__TypeDescription * -rosidl_get_dynamic_message_type_support_type_description_function( - const rosidl_message_type_support_t * type_support); - -/// Return type_description_sources member in rosidl_dynamic_message_type_support_impl_t -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rosidl_get_dynamic_message_type_support_type_description_sources_function( - const rosidl_message_type_support_t * type_support); - - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_DYNAMIC_TYPESUPPORT__DYNAMIC_MESSAGE_TYPE_SUPPORT_STRUCT_H_ diff --git a/src/rosidl_dynamic_typesupport/identifier.h b/src/rosidl_dynamic_typesupport/identifier.h deleted file mode 100755 index 1f4641753..000000000 --- a/src/rosidl_dynamic_typesupport/identifier.h +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2023 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_DYNAMIC_TYPESUPPORT__IDENTIFIER_H_ -#define ROSIDL_DYNAMIC_TYPESUPPORT__IDENTIFIER_H_ - -#include "rosidl_dynamic_typesupport/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -extern const char * const rosidl_dynamic_typesupport_c__identifier; - -/// Get the name of the rosidl_dynamic_typesupport_c identifier -/** - * \return Name of rosidl_dynamic_typesupport_c identifier - */ -ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC -const char * -rosidl_get_dynamic_typesupport_identifier(void); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_DYNAMIC_TYPESUPPORT__IDENTIFIER_H_ diff --git a/src/rosidl_dynamic_typesupport/macros.h b/src/rosidl_dynamic_typesupport/macros.h deleted file mode 100755 index 8f595bf2d..000000000 --- a/src/rosidl_dynamic_typesupport/macros.h +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2023 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_DYNAMIC_TYPESUPPORT__MACROS_H_ -#define ROSIDL_DYNAMIC_TYPESUPPORT__MACROS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - - -/// Check return code, and return it if not ok. -/** - * \param[in] statement_with_return_code The statement to test. - */ -#define ROSIDL_DYNAMIC_TYPESUPPORT_CHECK_RET_FOR_NOT_OK(statement_with_return_code) \ - do { \ - rcutils_ret_t macro_ret_ = statement_with_return_code; \ - if (macro_ret_ != RCUTILS_RET_OK) { \ - return macro_ret_; \ - } \ - } while (0) - - -/// Check return code, and if not ok, run a cleanup statement and return the return code. -/** - * \param[in] statement_with_return_code The statement to test. - * \param[in] cleanup_statement The statement to run before returning the non-ok return code. - */ -#define ROSIDL_DYNAMIC_TYPESUPPORT_CHECK_RET_FOR_NOT_OK_WITH_CLEANUP( \ - statement_with_return_code, cleanup_statement) \ - do { \ - rcutils_ret_t macro_ret_ = statement_with_return_code; \ - if (macro_ret_ != RCUTILS_RET_OK) { \ - cleanup_statement; \ - return macro_ret_; \ - } \ - } while (0) - -#define ROSIDL_DYNAMIC_TYPESUPPORT_STRINGIFY(x) ROSIDL_DYNAMIC_TYPESUPPORT_STRINGIFY2(x) -#define ROSIDL_DYNAMIC_TYPESUPPORT_STRINGIFY2(x) #x - -#define ROSIDL_DYNAMIC_TYPESUPPORT_EXPAND(x) ROSIDL_DYNAMIC_TYPESUPPORT_EXPAND2(x) -#define ROSIDL_DYNAMIC_TYPESUPPORT_EXPAND2(x) x - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_DYNAMIC_TYPESUPPORT__MACROS_H_ diff --git a/src/rosidl_dynamic_typesupport/types.h b/src/rosidl_dynamic_typesupport/types.h deleted file mode 100755 index 1a6e2293c..000000000 --- a/src/rosidl_dynamic_typesupport/types.h +++ /dev/null @@ -1,298 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_DYNAMIC_TYPESUPPORT__TYPES_H_ -#define ROSIDL_DYNAMIC_TYPESUPPORT__TYPES_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include -#include - -#include -#include -#include -#include -#include "rosidl_dynamic_typesupport/visibility_control.h" -#include "rosidl_dynamic_typesupport/uchar.h" - -#include "rcutils/allocator.h" -#include "rcutils/types/uint8_array.h" - -// ================================================================================================= -// DYNAMIC TYPESUPPORT -// ================================================================================================= -// ID for accessing specific members of dynamic type or dynamic data -typedef size_t rosidl_dynamic_typesupport_member_id_t; - -// Forward Declarations ============================================================================ -typedef struct \ - rosidl_dynamic_typesupport_serialization_support_s \ - rosidl_dynamic_typesupport_serialization_support_t; -typedef struct \ - rosidl_dynamic_typesupport_serialization_support_impl_s \ - rosidl_dynamic_typesupport_serialization_support_impl_t; -typedef struct \ - rosidl_dynamic_typesupport_serialization_support_interface_s \ - rosidl_dynamic_typesupport_serialization_support_interface_t; - -typedef struct \ - rosidl_dynamic_typesupport_dynamic_type_builder_s \ - rosidl_dynamic_typesupport_dynamic_type_builder_t; -typedef struct \ - rosidl_dynamic_typesupport_dynamic_type_builder_impl_s \ - rosidl_dynamic_typesupport_dynamic_type_builder_impl_t; - -typedef struct \ - rosidl_dynamic_typesupport_dynamic_type_s \ - rosidl_dynamic_typesupport_dynamic_type_t; -typedef struct \ - rosidl_dynamic_typesupport_dynamic_type_impl_s \ - rosidl_dynamic_typesupport_dynamic_type_impl_t; - -typedef struct \ - rosidl_dynamic_typesupport_dynamic_data_s \ - rosidl_dynamic_typesupport_dynamic_data_t; -typedef struct \ - rosidl_dynamic_typesupport_dynamic_data_impl_s \ - rosidl_dynamic_typesupport_dynamic_data_impl_t; - - -// ================================================================================================= -// FIELD TYPE INDICES -// ================================================================================================= -// This mapping must match the constants defined in type_description_interfaces/msgs/FieldType.msg - -// Layout of constants across the 0-255 decimal values in the uint8: -// -// - 000 : Reserved for "not set" -// - 001-048: Primitive types, strings, and reserved space for future primitive types -// - 049-096: Fixed sized array of primitive and string types -// - 097-144: Bounded Sequences of primitive and string types -// - 145-192: Unbounded Sequences of primitive and string types -// - 193-255: Reserved space for future array/sequence-like types - -// SPECIALS ======================================================================================== -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_NOT_SET \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_NOT_SET // 0 - -// Nested type defined in other .msg/.idl files. -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_NESTED_TYPE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_NESTED_TYPE // 1 - -// PRIMITIVES ====================================================================================== -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT8 \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT8 // 2 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT8 \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT8 // 3 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT16 \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT16 // 4 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT16 \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT16 // 5 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT32 \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT32 // 6 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT32 \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT32 // 7 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT64 \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT64 // 8 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT64 \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT64 // 9 - -// NOTE(methylDragon): Unsure how to implement these. Are each pair equivalent? -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FLOAT // 10 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT32 \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FLOAT // 10 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_DOUBLE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE // 11 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT64 \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE // 11 - -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_CHAR \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_CHAR // 13 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_WCHAR \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WCHAR // 14 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BOOLEAN \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOOLEAN // 15 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BYTE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BYTE // 16 - -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_STRING \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_STRING // 17 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_WSTRING \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WSTRING // 18 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FIXED_STRING \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_STRING // 19 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FIXED_WSTRING \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_WSTRING // 20 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BOUNDED_STRING \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_STRING // 21 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BOUNDED_WSTRING \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_WSTRING // 22 - -// SEQUENCES ======================================================================================= -#define ROSIDL_DYNAMIC_TYPESUPPORT_SEQUENCE_TYPE_DELIMITER 48 -#define ROSIDL_DYNAMIC_TYPESUPPORT_ARRAY_OFFSET 48 -#define ROSIDL_DYNAMIC_TYPESUPPORT_UNBOUNDED_SEQUENCE_OFFSET 96 -#define ROSIDL_DYNAMIC_TYPESUPPORT_BOUNDED_SEQUENCE_OFFSET 144 - -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_NESTED_TYPE_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_NESTED_TYPE_ARRAY // 49 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT8_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT8_ARRAY // 50 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT8_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT8_ARRAY // 51 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT16_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT16_ARRAY // 52 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT16_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT16_ARRAY // 53 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT32_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT32_ARRAY // 54 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT32_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT32_ARRAY // 55 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT64_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT64_ARRAY // 56 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT64_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT64_ARRAY // 57 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FLOAT_ARRAY // 58 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT32_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FLOAT_ARRAY // 58 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_DOUBLE_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_ARRAY // 59 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT64_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_ARRAY // 59 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_CHAR_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_CHAR_ARRAY // 61 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_WCHAR_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WCHAR_ARRAY // 62 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BOOLEAN_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOOLEAN_ARRAY // 63 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BYTE_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BYTE_ARRAY // 64 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_STRING_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_STRING_ARRAY // 65 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_WSTRING_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WSTRING_ARRAY // 66 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FIXED_STRING_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_STRING_ARRAY // 67 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FIXED_WSTRING_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_WSTRING_ARRAY // 68 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BOUNDED_STRING_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_STRING_ARRAY // 69 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BOUNDED_WSTRING_ARRAY \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_WSTRING_ARRAY // 70 - -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_NESTED_TYPE_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_NESTED_TYPE_BOUNDED_SEQUENCE // 97 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT8_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT8_BOUNDED_SEQUENCE // 98 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT8_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT8_BOUNDED_SEQUENCE // 99 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT16_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT16_BOUNDED_SEQUENCE // 100 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT16_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT16_BOUNDED_SEQUENCE // 101 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT32_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT32_BOUNDED_SEQUENCE // 102 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT32_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT32_BOUNDED_SEQUENCE // 103 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT64_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT64_BOUNDED_SEQUENCE // 104 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT64_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT64_BOUNDED_SEQUENCE // 105 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FLOAT_BOUNDED_SEQUENCE // 106 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT32_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FLOAT_BOUNDED_SEQUENCE // 106 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_DOUBLE_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_BOUNDED_SEQUENCE // 107 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT64_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_BOUNDED_SEQUENCE // 107 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_CHAR_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_CHAR_BOUNDED_SEQUENCE // 109 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_WCHAR_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WCHAR_BOUNDED_SEQUENCE // 110 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BOOLEAN_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOOLEAN_BOUNDED_SEQUENCE // 111 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BYTE_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BYTE_BOUNDED_SEQUENCE // 112 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_STRING_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_STRING_BOUNDED_SEQUENCE // 113 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_WSTRING_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WSTRING_BOUNDED_SEQUENCE // 114 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FIXED_STRING_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_STRING_BOUNDED_SEQUENCE // 115 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FIXED_WSTRING_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_WSTRING_BOUNDED_SEQUENCE // 116 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BOUNDED_STRING_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_STRING_BOUNDED_SEQUENCE // 117 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BOUNDED_WSTRING_BOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_WSTRING_BOUNDED_SEQUENCE // 118 - -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_NESTED_TYPE_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_NESTED_TYPE_UNBOUNDED_SEQUENCE // 145 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT8_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT8_UNBOUNDED_SEQUENCE // 146 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT8_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT8_UNBOUNDED_SEQUENCE // 147 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT16_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT16_UNBOUNDED_SEQUENCE // 148 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT16_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT16_UNBOUNDED_SEQUENCE // 149 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT32_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT32_UNBOUNDED_SEQUENCE // 150 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT32_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT32_UNBOUNDED_SEQUENCE // 151 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_INT64_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT64_UNBOUNDED_SEQUENCE // 152 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_UINT64_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT64_UNBOUNDED_SEQUENCE // 153 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FLOAT_UNBOUNDED_SEQUENCE // 154 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT32_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FLOAT_UNBOUNDED_SEQUENCE // 154 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_DOUBLE_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_UNBOUNDED_SEQUENCE // 155 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FLOAT64_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_UNBOUNDED_SEQUENCE // 155 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_CHAR_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_CHAR_UNBOUNDED_SEQUENCE // 157 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_WCHAR_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WCHAR_UNBOUNDED_SEQUENCE // 158 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BOOLEAN_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOOLEAN_UNBOUNDED_SEQUENCE // 159 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BYTE_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BYTE_UNBOUNDED_SEQUENCE // 160 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_STRING_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_STRING_UNBOUNDED_SEQUENCE // 161 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_WSTRING_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WSTRING_UNBOUNDED_SEQUENCE // 162 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FIXED_STRING_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_STRING_UNBOUNDED_SEQUENCE // 163 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_FIXED_WSTRING_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_WSTRING_UNBOUNDED_SEQUENCE // 164 -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BOUNDED_STRING_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_STRING_UNBOUNDED_SEQUENCE // 165 // NOLINT -#define ROSIDL_DYNAMIC_TYPESUPPORT_FIELD_TYPE_BOUNDED_WSTRING_UNBOUNDED_SEQUENCE \ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_WSTRING_UNBOUNDED_SEQUENCE // 166 // NOLINT - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_DYNAMIC_TYPESUPPORT__TYPES_H_ diff --git a/src/rosidl_dynamic_typesupport/uchar.h b/src/rosidl_dynamic_typesupport/uchar.h deleted file mode 100755 index 5979f90e0..000000000 --- a/src/rosidl_dynamic_typesupport/uchar.h +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2022 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_DYNAMIC_TYPESUPPORT__UCHAR_H_ -#define ROSIDL_DYNAMIC_TYPESUPPORT__UCHAR_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#if defined(__cplusplus) && __cplusplus >= 201103L -// Nothing to do here, C++11 and beyond have char16_t as a keyword: -// https://en.cppreference.com/w/cpp/keyword/char16_t -#else -// According to https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005finclude.html, -// short-circuit style use of __has_include is not supported, so split the conditional -# if defined(__has_include) -# if __has_include() -// If the compiler has __has_include, and uchar.h exists, include that as it will have char16_t -// as a typedef. -# include -# else -// Otherwise assume that char16_t isn't defined anywhere, and define it ourselves as uint_least16_t. -# define __ROSIDL_DYNAMIC_TYPESUPPORT__UCHAR_H__NEEDS_CHAR16_T_DECL -# endif -# else -# define __ROSIDL_DYNAMIC_TYPESUPPORT__UCHAR_H__NEEDS_CHAR16_T_DECL -# endif -#endif - -#if defined(__ROSIDL_DYNAMIC_TYPESUPPORT__UCHAR_H__NEEDS_CHAR16_T_DECL) -# undef __ROSIDL_DYNAMIC_TYPESUPPORT__UCHAR_H__NEEDS_CHAR16_T_DECL -# include -typedef uint_least16_t char16_t; -#endif - - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_DYNAMIC_TYPESUPPORT__UCHAR_H_ diff --git a/src/rosidl_dynamic_typesupport/visibility_control.h b/src/rosidl_dynamic_typesupport/visibility_control.h deleted file mode 100755 index 0ef079432..000000000 --- a/src/rosidl_dynamic_typesupport/visibility_control.h +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2023 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_DYNAMIC_TYPESUPPORT__VISIBILITY_CONTROL_H_ -#define ROSIDL_DYNAMIC_TYPESUPPORT__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_DYNAMIC_TYPESUPPORT_EXPORT __attribute__ ((dllexport)) - #define ROSIDL_DYNAMIC_TYPESUPPORT_IMPORT __attribute__ ((dllimport)) - #else - #define ROSIDL_DYNAMIC_TYPESUPPORT_EXPORT __declspec(dllexport) - #define ROSIDL_DYNAMIC_TYPESUPPORT_IMPORT __declspec(dllimport) - #endif - #ifdef ROSIDL_DYNAMIC_TYPESUPPORT_BUILDING_DLL - #define ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC ROSIDL_DYNAMIC_TYPESUPPORT_EXPORT - #else - #define ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC ROSIDL_DYNAMIC_TYPESUPPORT_IMPORT - #endif - #define ROSIDL_DYNAMIC_TYPESUPPORT_LOCAL -#else - #define ROSIDL_DYNAMIC_TYPESUPPORT_EXPORT __attribute__ ((visibility("default"))) - #define ROSIDL_DYNAMIC_TYPESUPPORT_IMPORT - #if __GNUC__ >= 4 - #define ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC __attribute__ ((visibility("default"))) - #define ROSIDL_DYNAMIC_TYPESUPPORT_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define ROSIDL_DYNAMIC_TYPESUPPORT_PUBLIC - #define ROSIDL_DYNAMIC_TYPESUPPORT_LOCAL - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_DYNAMIC_TYPESUPPORT__VISIBILITY_CONTROL_H_ diff --git a/src/rosidl_runtime_c/action_type_support_struct.h b/src/rosidl_runtime_c/action_type_support_struct.h deleted file mode 100755 index 007e098b0..000000000 --- a/src/rosidl_runtime_c/action_type_support_struct.h +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__ACTION_TYPE_SUPPORT_STRUCT_H_ -#define ROSIDL_RUNTIME_C__ACTION_TYPE_SUPPORT_STRUCT_H_ - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rosidl_typesupport_interface/macros.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -typedef struct rosidl_action_type_support_t rosidl_action_type_support_t; - -typedef const rosidl_type_hash_t * -(* rosidl_action_get_type_hash_function)(const rosidl_action_type_support_t *); - -typedef const rosidl_runtime_c__type_description__TypeDescription * -(* rosidl_action_get_type_description_function)(const rosidl_action_type_support_t *); - -typedef const rosidl_runtime_c__type_description__TypeSource__Sequence * -(* rosidl_action_get_type_description_sources_function)(const rosidl_action_type_support_t *); - -/// Contains rosidl action type support data. -/** - * Actions are built based on services(goal, result and cancel) and message (feedback and status). - */ -struct rosidl_action_type_support_t -{ - const rosidl_service_type_support_t * goal_service_type_support; - const rosidl_service_type_support_t * result_service_type_support; - const rosidl_service_type_support_t * cancel_service_type_support; - const rosidl_message_type_support_t * feedback_message_type_support; - const rosidl_message_type_support_t * status_message_type_support; - /// Pointer to function to get the hash of the action's description - rosidl_action_get_type_hash_function get_type_hash_func; - /// Pointer to function to get the description of the type - rosidl_action_get_type_description_function get_type_description_func; - /// Pointer to function to get the text of the sources that defined the description of the type - rosidl_action_get_type_description_sources_function get_type_description_sources_func; -}; - -/// Get the action type support given a provided action and package. -/** - * \param PkgName name of the package that contains the action - * \param Name action name - * \return a rosidl_action_type_support_t struct if found, otherwise NULL. - */ -#define ROSIDL_GET_ACTION_TYPE_SUPPORT(PkgName, Name) \ - ROSIDL_TYPESUPPORT_INTERFACE__ACTION_SYMBOL_NAME( \ - rosidl_typesupport_c, PkgName, action, Name)() - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__ACTION_TYPE_SUPPORT_STRUCT_H_ diff --git a/src/rosidl_runtime_c/message_initialization.h b/src/rosidl_runtime_c/message_initialization.h deleted file mode 100755 index 8778594a3..000000000 --- a/src/rosidl_runtime_c/message_initialization.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2017 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__MESSAGE_INITIALIZATION_H_ -#define ROSIDL_RUNTIME_C__MESSAGE_INITIALIZATION_H_ - -enum rosidl_runtime_c__message_initialization -{ - // Initialize all fields of the message, either with the default value - // (if the field has one), or with an empty value (generally 0 or an - // empty string). - ROSIDL_RUNTIME_C_MSG_INIT_ALL, - // Skip initialization of all fields of the message. It is up to the user to - // ensure that all fields are initialized before use. - ROSIDL_RUNTIME_C_MSG_INIT_SKIP, - // Initialize all fields of the message to an empty value (generally 0 or an - // empty string). - ROSIDL_RUNTIME_C_MSG_INIT_ZERO, - // Initialize all fields of the message that have defaults; all other fields - // are left untouched. - ROSIDL_RUNTIME_C_MSG_INIT_DEFAULTS_ONLY, -}; - -#endif // ROSIDL_RUNTIME_C__MESSAGE_INITIALIZATION_H_ diff --git a/src/rosidl_runtime_c/message_type_support_struct.h b/src/rosidl_runtime_c/message_type_support_struct.h deleted file mode 100755 index cec67a783..000000000 --- a/src/rosidl_runtime_c/message_type_support_struct.h +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright 2015-2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__MESSAGE_TYPE_SUPPORT_STRUCT_H_ -#define ROSIDL_RUNTIME_C__MESSAGE_TYPE_SUPPORT_STRUCT_H_ - -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "rosidl_typesupport_interface/macros.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -typedef struct rosidl_message_type_support_t rosidl_message_type_support_t; - -typedef const rosidl_message_type_support_t * (* rosidl_message_typesupport_handle_function)( - const rosidl_message_type_support_t *, const char *); - -typedef const rosidl_type_hash_t * -(* rosidl_message_get_type_hash_function)(const rosidl_message_type_support_t *); - -typedef const rosidl_runtime_c__type_description__TypeDescription * -(* rosidl_message_get_type_description_function)(const rosidl_message_type_support_t *); - -typedef const rosidl_runtime_c__type_description__TypeSource__Sequence * -(* rosidl_message_get_type_description_sources_function)(const rosidl_message_type_support_t *); - -/// Contains rosidl message type support data -struct rosidl_message_type_support_t -{ - /// String identifier for the type_support. - const char * typesupport_identifier; - /// Pointer to the message type support library - const void * data; - /// Pointer to the message type support handler function - rosidl_message_typesupport_handle_function func; - /// Pointer to function to get the hash of the message's description - rosidl_message_get_type_hash_function get_type_hash_func; - /// Pointer to function to get the description of the type - rosidl_message_get_type_description_function get_type_description_func; - /// Pointer to function to get the text of the sources that defined the description of the type - rosidl_message_get_type_description_sources_function get_type_description_sources_func; -}; - -/// Return a rosidl_message_type_support_t struct with members set to `NULL`. -ROSIDL_GENERATOR_C_PUBLIC -rosidl_message_type_support_t rosidl_get_zero_initialized_message_type_support_handle(void); - -/// Get the message type support handle specific to this identifier. -/** - * The handle's message typesupport identifier function is returned or if the parameters are NULL - * then an assert will happen. - * - * \param handle Handle to message type support - * \param identifier The typesupport identifier to get the handle function for - * \return The associated message typesupport handle function. - */ -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_message_type_support_t * get_message_typesupport_handle( - const rosidl_message_type_support_t * handle, const char * identifier); - -// Get the message type support handle function specific to this identifier. -/** - * If the identifier is the same as this handle's typesupport_identifier the handle is simply - * returned or if the parameters are NULL then an assert will happen. - * - * \param handle Handle to message type support - * \param identifier The typesupport identifier to get the handle function for - * \return if the identifier match's the handle's identifier then the handle's function - * is returned. - */ -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_message_type_support_t * get_message_typesupport_handle_function( - const rosidl_message_type_support_t * handle, const char * identifier); - -/// Get the message type support given a provided message and package. -/** - * \param PkgName Name of the package that contains the message - * \param MsgSubfolder name of the subfolder (for example: msg) - * \param MsgName message name - * \return a rosidl_message_type_support_t struct if founded, otherwise NULL. - */ -#define ROSIDL_GET_MSG_TYPE_SUPPORT(PkgName, MsgSubfolder, MsgName) \ - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( \ - rosidl_typesupport_c, PkgName, MsgSubfolder, MsgName)() - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__MESSAGE_TYPE_SUPPORT_STRUCT_H_ diff --git a/src/rosidl_runtime_c/primitives_sequence.h b/src/rosidl_runtime_c/primitives_sequence.h deleted file mode 100755 index 5c152a3c6..000000000 --- a/src/rosidl_runtime_c/primitives_sequence.h +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__PRIMITIVES_SEQUENCE_H_ -#define ROSIDL_RUNTIME_C__PRIMITIVES_SEQUENCE_H_ - -#include -#include -#include - -#define ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(STRUCT_NAME, TYPE_NAME) \ - typedef struct rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence \ - { \ - TYPE_NAME * data; /*!< The pointer to an array of STRUCT_NAME */ \ - size_t size; /*!< The number of valid items in data */ \ - size_t capacity; /*!< The number of allocated items in data */ \ - } rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence; - -// sequence types for all basic types -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(float, float) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(double, double) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(long_double, long double) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(char, signed char) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(wchar, uint16_t) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(boolean, bool) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(octet, uint8_t) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(uint8, uint8_t) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(int8, int8_t) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(uint16, uint16_t) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(int16, int16_t) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(uint32, uint32_t) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(int32, int32_t) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(uint64, uint64_t) -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(int64, int64_t) - -// emulate legacy API -typedef rosidl_runtime_c__boolean__Sequence - rosidl_runtime_c__bool__Sequence; -typedef rosidl_runtime_c__octet__Sequence - rosidl_runtime_c__byte__Sequence; -typedef rosidl_runtime_c__float__Sequence - rosidl_runtime_c__float32__Sequence; -typedef rosidl_runtime_c__double__Sequence - rosidl_runtime_c__float64__Sequence; - -#endif // ROSIDL_RUNTIME_C__PRIMITIVES_SEQUENCE_H_ diff --git a/src/rosidl_runtime_c/primitives_sequence_functions.h b/src/rosidl_runtime_c/primitives_sequence_functions.h deleted file mode 100755 index 4f8b1feaf..000000000 --- a/src/rosidl_runtime_c/primitives_sequence_functions.h +++ /dev/null @@ -1,216 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__PRIMITIVES_SEQUENCE_FUNCTIONS_H_ -#define ROSIDL_RUNTIME_C__PRIMITIVES_SEQUENCE_FUNCTIONS_H_ - -#include -#include - -#include "rosidl_runtime_c/primitives_sequence.h" -#include "rosidl_runtime_c/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/** - * \def ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT(STRUCT_NAME) - * - * \brief Allocate the memory for the sequence. - * - * Calling the function with an already allocated sequence will leak the - * previously allocated memory. - * - * param sequence a pointer to a sequence struct - * param size the number of items to allocate in the sequence, both sequence - * fields `size` and `capacity` are set to this parameter - * return true if successful, false if the passed sequence pointer is null - * or the memory allocation failed - */ -#define ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT(STRUCT_NAME) \ - /** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT(STRUCT_NAME) */ \ - ROSIDL_GENERATOR_C_PUBLIC \ - bool rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence__init( \ - rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence * sequence, size_t size); - -/** - * \def ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FINI(STRUCT_NAME) - * - * \brief Deallocate the memory of the sequence. - * - * Calling the function with an already deallocated sequence is a no-op. - * - * param sequence a pointer to a sequence struct - */ -#define ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FINI(STRUCT_NAME) \ - /** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FINI(STRUCT_NAME) */ \ - ROSIDL_GENERATOR_C_PUBLIC \ - void rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence__fini( \ - rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence * sequence); - -/** - * \def ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_EQ(STRUCT_NAME) - * - * \brief Check for sequence equality. - * - * param lhs a pointer to a sequence struct - * param rhs a pointer to another sequence struct - */ -#define ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_EQ(STRUCT_NAME) \ - /** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_EQ(STRUCT_NAME) */ \ - ROSIDL_GENERATOR_C_PUBLIC \ - bool rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence__are_equal( \ - const rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence * lhs, \ - const rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence * rhs); - -/** - * \def ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_COPY(STRUCT_NAME) - * - * \brief Copy the sequence. - * - * param input a pointer to the sequence to copy from - * param output a pointer to an initialized sequence to copy to - * return true if successful, false if either pointer is null or memory - * allocation fails. - */ -#define ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_COPY(STRUCT_NAME) \ - /** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_COPY(STRUCT_NAME) */ \ - ROSIDL_GENERATOR_C_PUBLIC \ - bool rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence__copy( \ - const rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence * input, \ - rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence * output); - -/** - * \def ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(STRUCT_NAME) - * - * \brief See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT(STRUCT_NAME), - * #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FINI(STRUCT_NAME), - * #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_EQ(STRUCT_NAME), and - * #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_COPY(STRUCT_NAME). - */ -#define ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(STRUCT_NAME) \ - ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT(STRUCT_NAME) \ - ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FINI(STRUCT_NAME) \ - ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_EQ(STRUCT_NAME) \ - ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_COPY(STRUCT_NAME) - -/** - * \defgroup primitives_sequence_functions__basic_types Sequence functions for all basic types. - */ -/**@{*/ -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(float) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(double) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(long_double) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(char) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(wchar) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(boolean) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(octet) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(uint8) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(int8) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(uint16) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(int16) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(uint32) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(int32) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(uint64) -ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(int64) -/**@}*/ - -/** - * \defgroup primitives_sequence_functions__legacy Sequence functions for legacy types for backward compatibility. - */ -/**@{*/ -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT(bool) */ -ROSIDL_GENERATOR_C_PUBLIC -bool rosidl_runtime_c__bool__Sequence__init( - rosidl_runtime_c__boolean__Sequence * sequence, size_t size); -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FINI(bool) */ -ROSIDL_GENERATOR_C_PUBLIC -void rosidl_runtime_c__bool__Sequence__fini( - rosidl_runtime_c__boolean__Sequence * sequence); -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_EQ(bool) */ -ROSIDL_GENERATOR_C_PUBLIC -bool rosidl_runtime_c__bool__Sequence__are_equal( - const rosidl_runtime_c__boolean__Sequence * lhs, - const rosidl_runtime_c__boolean__Sequence * rhs); -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_COPY(bool) */ -ROSIDL_GENERATOR_C_PUBLIC -bool rosidl_runtime_c__bool__Sequence__copy( - const rosidl_runtime_c__boolean__Sequence * input, - rosidl_runtime_c__boolean__Sequence * output); - -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT(byte) */ -ROSIDL_GENERATOR_C_PUBLIC -bool rosidl_runtime_c__byte__Sequence__init( - rosidl_runtime_c__octet__Sequence * sequence, size_t size); -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FINI(byte) */ -ROSIDL_GENERATOR_C_PUBLIC -void rosidl_runtime_c__byte__Sequence__fini( - rosidl_runtime_c__octet__Sequence * sequence); -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_EQ(byte) */ -ROSIDL_GENERATOR_C_PUBLIC -bool rosidl_runtime_c__byte__Sequence__are_equal( - const rosidl_runtime_c__octet__Sequence * lhs, - const rosidl_runtime_c__octet__Sequence * rhs); -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_COPY(byte) */ -ROSIDL_GENERATOR_C_PUBLIC -bool rosidl_runtime_c__byte__Sequence__copy( - const rosidl_runtime_c__octet__Sequence * input, - rosidl_runtime_c__octet__Sequence * output); - -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT(float32) */ -ROSIDL_GENERATOR_C_PUBLIC -bool rosidl_runtime_c__float32__Sequence__init( - rosidl_runtime_c__float__Sequence * sequence, size_t size); -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FINI(float32) */ -ROSIDL_GENERATOR_C_PUBLIC -void rosidl_runtime_c__float32__Sequence__fini( - rosidl_runtime_c__float__Sequence * sequence); -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_EQ(float32) */ -ROSIDL_GENERATOR_C_PUBLIC -bool rosidl_runtime_c__float32__Sequence__are_equal( - const rosidl_runtime_c__float__Sequence * lhs, - const rosidl_runtime_c__float__Sequence * rhs); -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_COPY(float32) */ -ROSIDL_GENERATOR_C_PUBLIC -bool rosidl_runtime_c__float32__Sequence__copy( - const rosidl_runtime_c__float__Sequence * input, - rosidl_runtime_c__float__Sequence * output); - -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT(float64) */ -ROSIDL_GENERATOR_C_PUBLIC -bool rosidl_runtime_c__float64__Sequence__init( - rosidl_runtime_c__double__Sequence * sequence, size_t size); -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FINI(float64) */ -ROSIDL_GENERATOR_C_PUBLIC -void rosidl_runtime_c__float64__Sequence__fini( - rosidl_runtime_c__double__Sequence * sequence); -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_EQ(float64) */ -ROSIDL_GENERATOR_C_PUBLIC -bool rosidl_runtime_c__float64__Sequence__are_equal( - const rosidl_runtime_c__double__Sequence * lhs, - const rosidl_runtime_c__double__Sequence * rhs); -/** See #ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_COPY(float64) */ -ROSIDL_GENERATOR_C_PUBLIC -bool rosidl_runtime_c__float64__Sequence__copy( - const rosidl_runtime_c__double__Sequence * input, - rosidl_runtime_c__double__Sequence * output); -/**@}*/ - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__PRIMITIVES_SEQUENCE_FUNCTIONS_H_ diff --git a/src/rosidl_runtime_c/sequence_bound.h b/src/rosidl_runtime_c/sequence_bound.h deleted file mode 100755 index 399b7487d..000000000 --- a/src/rosidl_runtime_c/sequence_bound.h +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2015-2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__SEQUENCE_BOUND_H_ -#define ROSIDL_RUNTIME_C__SEQUENCE_BOUND_H_ - -#include "rosidl_runtime_c/visibility_control.h" -#include "rosidl_typesupport_interface/macros.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -typedef struct rosidl_runtime_c__Sequence__bound rosidl_runtime_c__Sequence__bound; - -typedef const rosidl_runtime_c__Sequence__bound * (* rosidl_runtime_c__bound_handle_function)( - const rosidl_runtime_c__Sequence__bound *, const char *); - -struct rosidl_runtime_c__Sequence__bound -{ - /// String identifier for the type_support. - const char * typesupport_identifier; - /// Pointer to type support handle function - const void * data; - rosidl_runtime_c__bound_handle_function func; -}; - -/// Get the message bounds handle specific to this identifier. -/** - * The handle's sequence bound is simply returned or if the parameters are NULL then an assert - * will happen. - * - * \param handle Handle to service type support - * \param identifier The identifier to get the handle for - * \return The associated sequence bound handle function. - */ -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__Sequence__bound * get_sequence_bound_handle( - const rosidl_runtime_c__Sequence__bound * handle, const char * identifier); - -/// Get the message bounds handle function specific to this identifier. -/** - * If the identifier is the same as this handle function's identifier the handle is simply returned - * or if the parameters are NULL then an assert will happen. - * - * \param handle Handle to service type support - * \param identifier The identifier to get the handle function for - * \return if the identifier match's the handle's identifier then the handle's function - * is returned. - */ -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__Sequence__bound * get_sequence_bound_handle_function( - const rosidl_runtime_c__Sequence__bound * handle, const char * identifier); - -/// Get the sequence bounds given a provided message and package. -/** - * \param PkgName Name of the package that contains the message - * \param MsgSubfolder name of the subfolder (foe example: msg) - * \param MsgName message name - * \return a rosidl_message_bounds_t struct if founded, otherwise NULL. - */ -#define ROSIDL_GET_SEQUENCE_BOUNDS(PkgName, MsgSubfolder, MsgName) \ - ROSIDL_BOUNDS_INTERFACE__MESSAGE_SYMBOL_NAME( \ - rosidl_typesupport_c, PkgName, MsgSubfolder, MsgName)() - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__SEQUENCE_BOUND_H_ diff --git a/src/rosidl_runtime_c/service_type_support_struct.h b/src/rosidl_runtime_c/service_type_support_struct.h deleted file mode 100755 index 439cadf3c..000000000 --- a/src/rosidl_runtime_c/service_type_support_struct.h +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright 2015-2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__SERVICE_TYPE_SUPPORT_STRUCT_H_ -#define ROSIDL_RUNTIME_C__SERVICE_TYPE_SUPPORT_STRUCT_H_ - -#include - -#include "rcutils/allocator.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" - -#include "rosidl_typesupport_interface/macros.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -typedef struct rosidl_service_type_support_t rosidl_service_type_support_t; - -typedef const rosidl_service_type_support_t * (* rosidl_service_typesupport_handle_function)( - const rosidl_service_type_support_t *, const char *); - -typedef struct rosidl_service_introspection_info_s -{ - uint8_t event_type; - int32_t stamp_sec; - uint32_t stamp_nanosec; - uint8_t client_gid[16]; - int64_t sequence_number; -} rosidl_service_introspection_info_t; - -/// Creates a ServiceEvent message for the service. -/** - * Instantiates a ServiceEvent message with the given info and request/response message. - * The message is allocated using the given allocator and must be deallocated using - * the rosidl_service_introspection_destroy_handle - * - * \param[in] info POD fields of service_msgs/msg/ServiceEventInfo to be passed from rcl - * \param[in] allocator The allocator to use for allocating the ServiceEvent message - * \param[in] request_message type-erased handle to request message from rcl. Can be NULL. - * \param[in] response_message type-erased handle to request message from rcl. Can be NULL. - * \return The built ServiceEvent message. Will return NULL if the message could not be built. - **/ -typedef void * (* rosidl_event_message_create_handle_function_function)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -/// Destroys a ServiceEvent message -/** - * Destroys a ServiceEvent message returned by a rosidl_service_introspection_message_create_handle - * by calling the corresponding __fini function then deallocating - * - * \param[in] event_message The message to destroy. - * \param[in] allocator The allocator to use for deallocating the message. - */ -typedef bool (* rosidl_event_message_destroy_handle_function_function)( - void * event_message, - rcutils_allocator_t * allocator); - -typedef const rosidl_type_hash_t * -(* rosidl_service_get_type_hash_function)(const rosidl_service_type_support_t *); - -typedef const rosidl_runtime_c__type_description__TypeDescription * -(* rosidl_service_get_type_description_function)(const rosidl_service_type_support_t *); - -typedef const rosidl_runtime_c__type_description__TypeSource__Sequence * -(* rosidl_service_get_type_description_sources_function)(const rosidl_service_type_support_t *); - -/// Contains rosidl service type support data -struct rosidl_service_type_support_t -{ - /// String identifier for the type_support. - const char * typesupport_identifier; - /// Pointer to the service type support library - const void * data; - /// Pointer to the service type support handler function - rosidl_service_typesupport_handle_function func; - /// Service request message typesupport - const rosidl_message_type_support_t * request_typesupport; - /// Service response message typesupport - const rosidl_message_type_support_t * response_typesupport; - /// Service event message typesupport - const rosidl_message_type_support_t * event_typesupport; - /// Pointer to function to create the introspection message - rosidl_event_message_create_handle_function_function event_message_create_handle_function; - /// Pointer to function to finalize the introspection message - rosidl_event_message_destroy_handle_function_function event_message_destroy_handle_function; - /// Pointer to function to get the hash of the message's description - rosidl_service_get_type_hash_function get_type_hash_func; - /// Pointer to function to get the description of the type - rosidl_service_get_type_description_function get_type_description_func; - /// Pointer to function to get the text of the sources that defined the description of the type - rosidl_service_get_type_description_sources_function get_type_description_sources_func; -}; - -/// Get the service type support handle specific to this identifier. -/** - * The handle's message typesupport identifier function is returned or if the parameters are NULL - * then an assert will happen. - * - * \param handle Handle to service type support - * \param identifier The typesupport identifier to get the handle function for - * \return The associated service typesupport handle function. - */ -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_service_type_support_t * get_service_typesupport_handle( - const rosidl_service_type_support_t * handle, const char * identifier); - -/// Get the service type support handle function specific to this identifier. -/** -* If the identifier is the same as this handle's typesupport_identifier the handle is simply -* returned or if the parameters are NULL then an assert will happen. - * - * \param handle Handle to service type support - * \param identifier The typesupport identifier to get the handle function for - * \return if the identifier match's the handle's identifier then the handle's function - * is returned. - */ -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_service_type_support_t * get_service_typesupport_handle_function( - const rosidl_service_type_support_t * handle, const char * identifier); - -/// Get the service type support given a provided service and package. -/** - * \param PkgName Name of the package that contains the service - * \param SrvSubfolder name of the subfolder (for example: srv) - * \param SrvName service name - * \return a rosidl_service_type_support_t struct if founded, otherwise NULL. - */ -#define ROSIDL_GET_SRV_TYPE_SUPPORT(PkgName, SrvSubfolder, SrvName) \ - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( \ - rosidl_typesupport_c, PkgName, SrvSubfolder, SrvName)() - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__SERVICE_TYPE_SUPPORT_STRUCT_H_ diff --git a/src/rosidl_runtime_c/string.h b/src/rosidl_runtime_c/string.h deleted file mode 100755 index a37e7f6cc..000000000 --- a/src/rosidl_runtime_c/string.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__STRING_H_ -#define ROSIDL_RUNTIME_C__STRING_H_ - -#include - -#include "rosidl_runtime_c/primitives_sequence.h" - -/// An array of 8-bit characters terminated by a null byte. -typedef struct rosidl_runtime_c__String -{ - /// The pointer to the first character, the sequence ends with a null byte. - char * data; - /// The length of the string (excluding the null byte). - size_t size; - /// The capacity represents the number of allocated bytes (including the null byte). - size_t capacity; -} rosidl_runtime_c__String; - -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(String, rosidl_runtime_c__String) - -#endif // ROSIDL_RUNTIME_C__STRING_H_ diff --git a/src/rosidl_runtime_c/string_bound.h b/src/rosidl_runtime_c/string_bound.h deleted file mode 100755 index a58e26d9f..000000000 --- a/src/rosidl_runtime_c/string_bound.h +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__STRING_BOUND_H_ -#define ROSIDL_RUNTIME_C__STRING_BOUND_H_ - -#include - -/// Upper boundary for #rosidl_runtime_c__String or #rosidl_runtime_c__U16String. -typedef struct rosidl_runtime_c__String__bound -{ - /// The number of characters in the string (excluding the null character). - size_t bound; -} rosidl_runtime_c__String__bound; - -#endif // ROSIDL_RUNTIME_C__STRING_BOUND_H_ diff --git a/src/rosidl_runtime_c/string_functions.h b/src/rosidl_runtime_c/string_functions.h deleted file mode 100755 index 6f233944e..000000000 --- a/src/rosidl_runtime_c/string_functions.h +++ /dev/null @@ -1,223 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__STRING_FUNCTIONS_H_ -#define ROSIDL_RUNTIME_C__STRING_FUNCTIONS_H_ - -#include - -#include "rosidl_runtime_c/string.h" -#include "rosidl_runtime_c/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Initialize a rosidl_runtime_c__String structure. -/** - * The contents of rosidl_runtime_c__String are initialized to a single null character ('\0'). - * The string initially has size 0 and capacity 1. - * Size represents the size of the contents of the string, while capacity represents the overall - * storage of the string (counting the null terminator). - * All strings must be null-terminated. - * The rosidl_runtime_c__String structure should be deallocated using the given function - * rosidl_runtime_c__String__fini() when it is no longer needed. - * Calling this function with an already initialized U16 string sequence structure will leak - * memory. - * - * \param[inout] str a pointer to a rosidl_runtime_c__String structure - * \return true if successful, false if the passed string pointer is null - * or the memory allocation failed - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__String__init(rosidl_runtime_c__String * str); - -/// Deallocate the memory of the rosidl_runtime_c__String structure. -/** -* Calling the function with an already deallocated sequence is a no-op. -* -* \param[inout] str a pointer to a rosidl_runtime_c__String structure to be finalized -*/ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__String__fini(rosidl_runtime_c__String * str); - -/// Copy rosidl_runtime_c__String structure content. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input a pointer to a rosidl_runtime_c__String structure - * to copy from. - * \param[out] output a pointer to an initialized rosidl_runtime_c__String - * structure to copy into. - * \return true if successful, false if either pointer is null or memory - * allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__String__copy( - const rosidl_runtime_c__String * input, - rosidl_runtime_c__String * output); - -/// Check for rosidl_runtime_c__String structure equality. -/** - * \param[in] lhs a pointer to the left hand side of the equality operator. - * \param[in] lhs a pointer to the right hand side of the equality operator. - * \return true if rosidl_runtime_c__String structures are equal in size and content, - * otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__String__are_equal( - const rosidl_runtime_c__String * lhs, const rosidl_runtime_c__String * rhs); - -/// Assign the c string pointer of n characters to the rosidl_runtime_c__String structure. -/** - * \param[inout] str a pointer to a string structure - * \param[in] value c string pointer to be assigned - * \param[in] n size of the value string - * \return true if successful, false if the passed string pointer is null - * or if the passed value pointer is null or if the size is higher than SIZE_MAX - * or if the memory reallocation failed. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__String__assignn( - rosidl_runtime_c__String * str, const char * value, size_t n); - -/// Assign the c string pointer to the rosidl_runtime_c__String structure. -/** - * This function is identical to rosidl_runtime_c__String__assignn() except the length of the - * c string does not have to be given and therefore the c string must be null terminated. - * - * \see rosidl_runtime_c__String__assignn() - * - * \param[inout] str a pointer to a rosidl_runtime_c__String structure - * \param[in] value c string pointer to be assigned - * \return true if successful, false if the passed string pointer is null - * or if the passed value pointer is null or if the size is higher than SIZE_MAX - * or if the memory reallocation failed. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__String__assign( - rosidl_runtime_c__String * str, const char * value); - -/// Resize the char pointer. -/** - * This function resize the input value pointer. - * - * \param[inout] str a pointer to a rosidl_runtime_c__String structure - * \param[in] n the new size of the internal buffer - * \return true if successful, false if the passed string pointer is null - * or if the size is higher than SIZE_MAX or if the memory reallocation failed. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__String__resize( - rosidl_runtime_c__String * str, size_t n); - -/// Initialize a rosidl_runtime_c__String__Sequence__init structure. -/** - * The rosidl_runtime_c__String__Sequence is initialized with the size passed to the function. - * The rosidl_runtime_c__String__Sequence structure should be deallocated using the given function - * rosidl_runtime_c__String__Sequence__fini() when it is no longer needed. - * Calling this function with an already initialized U16 string sequence structure will leak - * memory. - * - * \param[inout] sequence a pointer to a string sequence - * \param[in] size represents the size of the string sequence - * \return true if successful, false if the passed string pointer is null - * or the memory allocation failed - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__String__Sequence__init( - rosidl_runtime_c__String__Sequence * sequence, size_t size); - -/// Deallocate the memory of the string sequence structure. -/** - * Calling the function with an already deallocated sequence is a no-op. - * - * \param[inout] sequence a pointer to a string sequence to be finalized - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__String__Sequence__fini( - rosidl_runtime_c__String__Sequence * sequence); - -/// Check for rosidl_runtime_c__String__Sequence structure equality. -/** - * \param[in] lhs a pointer to the left hand side of the equality operator. - * \param[in] lhs a pointer to the right hand side of the equality operator. - * \return true if rosidl_runtime_c__String__Sequence structures are equal - * in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__String__Sequence__are_equal( - const rosidl_runtime_c__String__Sequence * lhs, - const rosidl_runtime_c__String__Sequence * rhs); - -/// Copy rosidl_runtime_c__String__Sequence structure content. -/** - * This functions performs a deep copy, as opposed to the shallow copy - * that plain assignment yields. - * - * \param[in] input a pointer to a rosidl_runtime_c__String__Sequence - * structure to copy from. - * \param[out] output a pointer to an initialized rosidl_runtime_c__String__Sequence - * structure to copy into. - * \return true if successful, false if either pointer is null or memory - * allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__String__Sequence__copy( - const rosidl_runtime_c__String__Sequence * input, - rosidl_runtime_c__String__Sequence * output); - -/// Create a rosidl_runtime_c__String__Sequence structure with a specific size. -/** - * The string sequence initially has size and capacity equal to the size argument passed to the - * function. - * The rosidl_runtime_c__String__Sequence structure should be deallocated using the given function - * rosidl_runtime_c__String__Sequence__destroy() when it is no longer needed. - * - * \param[in] size of the desired string sequence - * \return a string sequence if initialization was successfully, otherwise NULL. - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__String__Sequence * -rosidl_runtime_c__String__Sequence__create(size_t size); - -/// Destroy a rosidl_runtime_c__String__Sequence structure. -/** - * Calling the function with an already deallocated sequence is a no-op. - * - * \param[inout] sequence a pointer to a string sequence to be finalized - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__String__Sequence__destroy( - rosidl_runtime_c__String__Sequence * sequence); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__STRING_FUNCTIONS_H_ diff --git a/src/rosidl_runtime_c/type_description/field__functions.h b/src/rosidl_runtime_c/type_description/field__functions.h deleted file mode 100755 index 4ae248dd6..000000000 --- a/src/rosidl_runtime_c/type_description/field__functions.h +++ /dev/null @@ -1,205 +0,0 @@ -// DO NOT EDIT MANUALLY - this copied file managed by copy_type_description_generated_sources.bash -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from type_description_interfaces:msg/Field.idl -// generated code does not contain a copyright notice - -#ifndef ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__FIELD__FUNCTIONS_H_ -#define ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__FIELD__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" - -#include "rosidl_runtime_c/type_description/field__struct.h" - -/// Initialize msg/Field message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rosidl_runtime_c__type_description__Field - * )) before or use - * rosidl_runtime_c__type_description__Field__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__Field__init(rosidl_runtime_c__type_description__Field * msg); - -/// Finalize msg/Field message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__Field__fini(rosidl_runtime_c__type_description__Field * msg); - -/// Create msg/Field message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rosidl_runtime_c__type_description__Field__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__type_description__Field * -rosidl_runtime_c__type_description__Field__create(); - -/// Destroy msg/Field message. -/** - * It calls - * rosidl_runtime_c__type_description__Field__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__Field__destroy(rosidl_runtime_c__type_description__Field * msg); - -/// Check for msg/Field message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__Field__are_equal(const rosidl_runtime_c__type_description__Field * lhs, const rosidl_runtime_c__type_description__Field * rhs); - -/// Copy a msg/Field message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__Field__copy( - const rosidl_runtime_c__type_description__Field * input, - rosidl_runtime_c__type_description__Field * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_type_hash_t * -rosidl_runtime_c__type_description__Field__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeDescription * -rosidl_runtime_c__type_description__Field__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeSource * -rosidl_runtime_c__type_description__Field__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rosidl_runtime_c__type_description__Field__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Field messages. -/** - * It allocates the memory for the number of elements and calls - * rosidl_runtime_c__type_description__Field__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__Field__Sequence__init(rosidl_runtime_c__type_description__Field__Sequence * array, size_t size); - -/// Finalize array of msg/Field messages. -/** - * It calls - * rosidl_runtime_c__type_description__Field__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__Field__Sequence__fini(rosidl_runtime_c__type_description__Field__Sequence * array); - -/// Create array of msg/Field messages. -/** - * It allocates the memory for the array and calls - * rosidl_runtime_c__type_description__Field__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__type_description__Field__Sequence * -rosidl_runtime_c__type_description__Field__Sequence__create(size_t size); - -/// Destroy array of msg/Field messages. -/** - * It calls - * rosidl_runtime_c__type_description__Field__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__Field__Sequence__destroy(rosidl_runtime_c__type_description__Field__Sequence * array); - -/// Check for msg/Field message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__Field__Sequence__are_equal(const rosidl_runtime_c__type_description__Field__Sequence * lhs, const rosidl_runtime_c__type_description__Field__Sequence * rhs); - -/// Copy an array of msg/Field messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__Field__Sequence__copy( - const rosidl_runtime_c__type_description__Field__Sequence * input, - rosidl_runtime_c__type_description__Field__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__FIELD__FUNCTIONS_H_ diff --git a/src/rosidl_runtime_c/type_description/field__struct.h b/src/rosidl_runtime_c/type_description/field__struct.h deleted file mode 100755 index 418468f3b..000000000 --- a/src/rosidl_runtime_c/type_description/field__struct.h +++ /dev/null @@ -1,56 +0,0 @@ -// DO NOT EDIT MANUALLY - this copied file managed by copy_type_description_generated_sources.bash -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from type_description_interfaces:msg/Field.idl -// generated code does not contain a copyright notice - -#ifndef ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__FIELD__STRUCT_H_ -#define ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__FIELD__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'name' -// Member 'default_value' -#include "rosidl_runtime_c/string.h" -// Member 'type' -#include "rosidl_runtime_c/type_description/field_type__struct.h" - -/// Struct defined in msg/Field in the package type_description_interfaces. -/** - * Represents a single field in a type. - */ -typedef struct rosidl_runtime_c__type_description__Field -{ - /// Name of the field. - rosidl_runtime_c__String name; - /// Type of the field, including details about the type like length, nested name, etc. - rosidl_runtime_c__type_description__FieldType type; - /// Literal default value of the field as a string, as it appeared in the original - /// message description file, whether that be .msg/.srv/.action or .idl. - rosidl_runtime_c__String default_value; -} rosidl_runtime_c__type_description__Field; - -// Struct for a sequence of rosidl_runtime_c__type_description__Field. -typedef struct rosidl_runtime_c__type_description__Field__Sequence -{ - rosidl_runtime_c__type_description__Field * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rosidl_runtime_c__type_description__Field__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__FIELD__STRUCT_H_ diff --git a/src/rosidl_runtime_c/type_description/field_type__functions.h b/src/rosidl_runtime_c/type_description/field_type__functions.h deleted file mode 100755 index 8b05af417..000000000 --- a/src/rosidl_runtime_c/type_description/field_type__functions.h +++ /dev/null @@ -1,205 +0,0 @@ -// DO NOT EDIT MANUALLY - this copied file managed by copy_type_description_generated_sources.bash -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from type_description_interfaces:msg/FieldType.idl -// generated code does not contain a copyright notice - -#ifndef ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__FIELD_TYPE__FUNCTIONS_H_ -#define ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__FIELD_TYPE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" - -#include "rosidl_runtime_c/type_description/field_type__struct.h" - -/// Initialize msg/FieldType message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rosidl_runtime_c__type_description__FieldType - * )) before or use - * rosidl_runtime_c__type_description__FieldType__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__FieldType__init(rosidl_runtime_c__type_description__FieldType * msg); - -/// Finalize msg/FieldType message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__FieldType__fini(rosidl_runtime_c__type_description__FieldType * msg); - -/// Create msg/FieldType message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rosidl_runtime_c__type_description__FieldType__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__type_description__FieldType * -rosidl_runtime_c__type_description__FieldType__create(); - -/// Destroy msg/FieldType message. -/** - * It calls - * rosidl_runtime_c__type_description__FieldType__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__FieldType__destroy(rosidl_runtime_c__type_description__FieldType * msg); - -/// Check for msg/FieldType message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__FieldType__are_equal(const rosidl_runtime_c__type_description__FieldType * lhs, const rosidl_runtime_c__type_description__FieldType * rhs); - -/// Copy a msg/FieldType message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__FieldType__copy( - const rosidl_runtime_c__type_description__FieldType * input, - rosidl_runtime_c__type_description__FieldType * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_type_hash_t * -rosidl_runtime_c__type_description__FieldType__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeDescription * -rosidl_runtime_c__type_description__FieldType__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeSource * -rosidl_runtime_c__type_description__FieldType__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rosidl_runtime_c__type_description__FieldType__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/FieldType messages. -/** - * It allocates the memory for the number of elements and calls - * rosidl_runtime_c__type_description__FieldType__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__FieldType__Sequence__init(rosidl_runtime_c__type_description__FieldType__Sequence * array, size_t size); - -/// Finalize array of msg/FieldType messages. -/** - * It calls - * rosidl_runtime_c__type_description__FieldType__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__FieldType__Sequence__fini(rosidl_runtime_c__type_description__FieldType__Sequence * array); - -/// Create array of msg/FieldType messages. -/** - * It allocates the memory for the array and calls - * rosidl_runtime_c__type_description__FieldType__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__type_description__FieldType__Sequence * -rosidl_runtime_c__type_description__FieldType__Sequence__create(size_t size); - -/// Destroy array of msg/FieldType messages. -/** - * It calls - * rosidl_runtime_c__type_description__FieldType__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__FieldType__Sequence__destroy(rosidl_runtime_c__type_description__FieldType__Sequence * array); - -/// Check for msg/FieldType message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__FieldType__Sequence__are_equal(const rosidl_runtime_c__type_description__FieldType__Sequence * lhs, const rosidl_runtime_c__type_description__FieldType__Sequence * rhs); - -/// Copy an array of msg/FieldType messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__FieldType__Sequence__copy( - const rosidl_runtime_c__type_description__FieldType__Sequence * input, - rosidl_runtime_c__type_description__FieldType__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__FIELD_TYPE__FUNCTIONS_H_ diff --git a/src/rosidl_runtime_c/type_description/field_type__struct.h b/src/rosidl_runtime_c/type_description/field_type__struct.h deleted file mode 100755 index 012340fb4..000000000 --- a/src/rosidl_runtime_c/type_description/field_type__struct.h +++ /dev/null @@ -1,660 +0,0 @@ -// DO NOT EDIT MANUALLY - this copied file managed by copy_type_description_generated_sources.bash -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from type_description_interfaces:msg/FieldType.idl -// generated code does not contain a copyright notice - -#ifndef ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__FIELD_TYPE__STRUCT_H_ -#define ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__FIELD_TYPE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'FIELD_TYPE_NOT_SET'. -/** - * A constant for each type supported according to: - * http://design.ros2.org/articles/legacy_interface_definition.html - * and: - * http://design.ros2.org/articles/idl_interface_definition.html - * Order is loosely coupled to the order of appearance in the IDL 4.2 spec: - * https://www.omg.org/spec/IDL/4.2 - * Layout of constants across the 0-255 decimal values in the uint8: - * - * - 000 : Reserved for "not set" - * - 001-048: Primitive types, strings, and reserved space for future primitive types - * - 049-096: Fixed sized array of primitive and string types - * - 097-144: Bounded Sequences of primitive and string types - * - 145-192: Unbounded Sequences of primitive and string types - * - 193-255: Reserved space for future array/sequence-like types - */ -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_NOT_SET = 0 -}; - -/// Constant 'FIELD_TYPE_NESTED_TYPE'. -/** - * Nested type defined in other .msg/.idl files. - */ -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_NESTED_TYPE = 1 -}; - -/// Constant 'FIELD_TYPE_INT8'. -/** - * Integer Types - */ -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT8 = 2 -}; - -/// Constant 'FIELD_TYPE_UINT8'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT8 = 3 -}; - -/// Constant 'FIELD_TYPE_INT16'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT16 = 4 -}; - -/// Constant 'FIELD_TYPE_UINT16'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT16 = 5 -}; - -/// Constant 'FIELD_TYPE_INT32'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT32 = 6 -}; - -/// Constant 'FIELD_TYPE_UINT32'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT32 = 7 -}; - -/// Constant 'FIELD_TYPE_INT64'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT64 = 8 -}; - -/// Constant 'FIELD_TYPE_UINT64'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT64 = 9 -}; - -/// Constant 'FIELD_TYPE_FLOAT'. -/** - * Floating-Point Types - */ -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FLOAT = 10 -}; - -/// Constant 'FIELD_TYPE_DOUBLE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE = 11 -}; - -/// Constant 'FIELD_TYPE_LONG_DOUBLE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_LONG_DOUBLE = 12 -}; - -/// Constant 'FIELD_TYPE_CHAR'. -/** - * Char and WChar Types - */ -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_CHAR = 13 -}; - -/// Constant 'FIELD_TYPE_WCHAR'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WCHAR = 14 -}; - -/// Constant 'FIELD_TYPE_BOOLEAN'. -/** - * Boolean Type - */ -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOOLEAN = 15 -}; - -/// Constant 'FIELD_TYPE_BYTE'. -/** - * Byte/Octet Type - */ -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BYTE = 16 -}; - -/// Constant 'FIELD_TYPE_STRING'. -/** - * String Types - */ -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_STRING = 17 -}; - -/// Constant 'FIELD_TYPE_WSTRING'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WSTRING = 18 -}; - -/// Constant 'FIELD_TYPE_FIXED_STRING'. -/** - * Fixed String Types - */ -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_STRING = 19 -}; - -/// Constant 'FIELD_TYPE_FIXED_WSTRING'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_WSTRING = 20 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_STRING'. -/** - * Bounded String Types - */ -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_STRING = 21 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_WSTRING'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_WSTRING = 22 -}; - -/// Constant 'FIELD_TYPE_NESTED_TYPE_ARRAY'. -/** - * Fixed Sized Array Types - */ -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_NESTED_TYPE_ARRAY = 49 -}; - -/// Constant 'FIELD_TYPE_INT8_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT8_ARRAY = 50 -}; - -/// Constant 'FIELD_TYPE_UINT8_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT8_ARRAY = 51 -}; - -/// Constant 'FIELD_TYPE_INT16_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT16_ARRAY = 52 -}; - -/// Constant 'FIELD_TYPE_UINT16_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT16_ARRAY = 53 -}; - -/// Constant 'FIELD_TYPE_INT32_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT32_ARRAY = 54 -}; - -/// Constant 'FIELD_TYPE_UINT32_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT32_ARRAY = 55 -}; - -/// Constant 'FIELD_TYPE_INT64_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT64_ARRAY = 56 -}; - -/// Constant 'FIELD_TYPE_UINT64_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT64_ARRAY = 57 -}; - -/// Constant 'FIELD_TYPE_FLOAT_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FLOAT_ARRAY = 58 -}; - -/// Constant 'FIELD_TYPE_DOUBLE_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_ARRAY = 59 -}; - -/// Constant 'FIELD_TYPE_LONG_DOUBLE_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_LONG_DOUBLE_ARRAY = 60 -}; - -/// Constant 'FIELD_TYPE_CHAR_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_CHAR_ARRAY = 61 -}; - -/// Constant 'FIELD_TYPE_WCHAR_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WCHAR_ARRAY = 62 -}; - -/// Constant 'FIELD_TYPE_BOOLEAN_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOOLEAN_ARRAY = 63 -}; - -/// Constant 'FIELD_TYPE_BYTE_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BYTE_ARRAY = 64 -}; - -/// Constant 'FIELD_TYPE_STRING_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_STRING_ARRAY = 65 -}; - -/// Constant 'FIELD_TYPE_WSTRING_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WSTRING_ARRAY = 66 -}; - -/// Constant 'FIELD_TYPE_FIXED_STRING_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_STRING_ARRAY = 67 -}; - -/// Constant 'FIELD_TYPE_FIXED_WSTRING_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_WSTRING_ARRAY = 68 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_STRING_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_STRING_ARRAY = 69 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_WSTRING_ARRAY'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_WSTRING_ARRAY = 70 -}; - -/// Constant 'FIELD_TYPE_NESTED_TYPE_BOUNDED_SEQUENCE'. -/** - * Bounded Sequence Types - */ -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_NESTED_TYPE_BOUNDED_SEQUENCE = 97 -}; - -/// Constant 'FIELD_TYPE_INT8_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT8_BOUNDED_SEQUENCE = 98 -}; - -/// Constant 'FIELD_TYPE_UINT8_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT8_BOUNDED_SEQUENCE = 99 -}; - -/// Constant 'FIELD_TYPE_INT16_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT16_BOUNDED_SEQUENCE = 100 -}; - -/// Constant 'FIELD_TYPE_UINT16_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT16_BOUNDED_SEQUENCE = 101 -}; - -/// Constant 'FIELD_TYPE_INT32_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT32_BOUNDED_SEQUENCE = 102 -}; - -/// Constant 'FIELD_TYPE_UINT32_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT32_BOUNDED_SEQUENCE = 103 -}; - -/// Constant 'FIELD_TYPE_INT64_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT64_BOUNDED_SEQUENCE = 104 -}; - -/// Constant 'FIELD_TYPE_UINT64_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT64_BOUNDED_SEQUENCE = 105 -}; - -/// Constant 'FIELD_TYPE_FLOAT_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FLOAT_BOUNDED_SEQUENCE = 106 -}; - -/// Constant 'FIELD_TYPE_DOUBLE_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_BOUNDED_SEQUENCE = 107 -}; - -/// Constant 'FIELD_TYPE_LONG_DOUBLE_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_LONG_DOUBLE_BOUNDED_SEQUENCE = 108 -}; - -/// Constant 'FIELD_TYPE_CHAR_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_CHAR_BOUNDED_SEQUENCE = 109 -}; - -/// Constant 'FIELD_TYPE_WCHAR_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WCHAR_BOUNDED_SEQUENCE = 110 -}; - -/// Constant 'FIELD_TYPE_BOOLEAN_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOOLEAN_BOUNDED_SEQUENCE = 111 -}; - -/// Constant 'FIELD_TYPE_BYTE_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BYTE_BOUNDED_SEQUENCE = 112 -}; - -/// Constant 'FIELD_TYPE_STRING_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_STRING_BOUNDED_SEQUENCE = 113 -}; - -/// Constant 'FIELD_TYPE_WSTRING_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WSTRING_BOUNDED_SEQUENCE = 114 -}; - -/// Constant 'FIELD_TYPE_FIXED_STRING_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_STRING_BOUNDED_SEQUENCE = 115 -}; - -/// Constant 'FIELD_TYPE_FIXED_WSTRING_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_WSTRING_BOUNDED_SEQUENCE = 116 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_STRING_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_STRING_BOUNDED_SEQUENCE = 117 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_WSTRING_BOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_WSTRING_BOUNDED_SEQUENCE = 118 -}; - -/// Constant 'FIELD_TYPE_NESTED_TYPE_UNBOUNDED_SEQUENCE'. -/** - * Unbounded Sequence Types - */ -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_NESTED_TYPE_UNBOUNDED_SEQUENCE = 145 -}; - -/// Constant 'FIELD_TYPE_INT8_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT8_UNBOUNDED_SEQUENCE = 146 -}; - -/// Constant 'FIELD_TYPE_UINT8_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT8_UNBOUNDED_SEQUENCE = 147 -}; - -/// Constant 'FIELD_TYPE_INT16_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT16_UNBOUNDED_SEQUENCE = 148 -}; - -/// Constant 'FIELD_TYPE_UINT16_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT16_UNBOUNDED_SEQUENCE = 149 -}; - -/// Constant 'FIELD_TYPE_INT32_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT32_UNBOUNDED_SEQUENCE = 150 -}; - -/// Constant 'FIELD_TYPE_UINT32_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT32_UNBOUNDED_SEQUENCE = 151 -}; - -/// Constant 'FIELD_TYPE_INT64_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_INT64_UNBOUNDED_SEQUENCE = 152 -}; - -/// Constant 'FIELD_TYPE_UINT64_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_UINT64_UNBOUNDED_SEQUENCE = 153 -}; - -/// Constant 'FIELD_TYPE_FLOAT_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FLOAT_UNBOUNDED_SEQUENCE = 154 -}; - -/// Constant 'FIELD_TYPE_DOUBLE_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_DOUBLE_UNBOUNDED_SEQUENCE = 155 -}; - -/// Constant 'FIELD_TYPE_LONG_DOUBLE_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_LONG_DOUBLE_UNBOUNDED_SEQUENCE = 156 -}; - -/// Constant 'FIELD_TYPE_CHAR_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_CHAR_UNBOUNDED_SEQUENCE = 157 -}; - -/// Constant 'FIELD_TYPE_WCHAR_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WCHAR_UNBOUNDED_SEQUENCE = 158 -}; - -/// Constant 'FIELD_TYPE_BOOLEAN_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOOLEAN_UNBOUNDED_SEQUENCE = 159 -}; - -/// Constant 'FIELD_TYPE_BYTE_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BYTE_UNBOUNDED_SEQUENCE = 160 -}; - -/// Constant 'FIELD_TYPE_STRING_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_STRING_UNBOUNDED_SEQUENCE = 161 -}; - -/// Constant 'FIELD_TYPE_WSTRING_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_WSTRING_UNBOUNDED_SEQUENCE = 162 -}; - -/// Constant 'FIELD_TYPE_FIXED_STRING_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_STRING_UNBOUNDED_SEQUENCE = 163 -}; - -/// Constant 'FIELD_TYPE_FIXED_WSTRING_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_FIXED_WSTRING_UNBOUNDED_SEQUENCE = 164 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_STRING_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_STRING_UNBOUNDED_SEQUENCE = 165 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_WSTRING_UNBOUNDED_SEQUENCE'. -enum -{ - rosidl_runtime_c__type_description__FieldType__FIELD_TYPE_BOUNDED_WSTRING_UNBOUNDED_SEQUENCE = 166 -}; - -// Include directives for member types -// Member 'nested_type_name' -#include "rosidl_runtime_c/string.h" - -// constants for array fields with an upper bound -// nested_type_name -enum -{ - rosidl_runtime_c__type_description__FieldType__nested_type_name__MAX_STRING_SIZE = 255 -}; - -/// Struct defined in msg/FieldType in the package type_description_interfaces. -/** - * Represents the type of a field and related meta-data. - */ -typedef struct rosidl_runtime_c__type_description__FieldType -{ - /// Identifying number for the type of the field, using one of the above constants. - uint8_t type_id; - /// Only used when the type is an array or a bounded sequence. - /// In the case of an array, this is the fixed capacity of the array. - /// In the case of a bounded sequence, this is the maximum capacity of the sequence. - /// In all other cases this field is unused. - uint64_t capacity; - /// Only used when the type is a fixed or bounded string/wstring, or a array/sequence of those. - /// In the case of a fixed string/wstring, it is the fixed length of the string. - /// In the case of a bounded string/wstring, it is the maximum capacity of the string. - /// In the case of an array/sequence of fixed string/wstring, it is the fixed length of the strings. - /// In the case of an array/sequence of bounded string/wstring, it is the maximum capacity of the strings. - /// It is not currently possible to have different string capacities per element in the array/sequence. - uint64_t string_capacity; - /// Only used when the type is a nested type or array/sequence of nested types. - /// This is limited to 255 characters. - /// TODO(wjwwood): this 255 character limit was chosen due to this being the limit - /// for DDSI-RTPS based middlewares, which is the most commonly used right now. - /// We lack a ROS 2 specific limit in our design documents, but we should update - /// this and/or link to the design doc when that is available. - rosidl_runtime_c__String nested_type_name; -} rosidl_runtime_c__type_description__FieldType; - -// Struct for a sequence of rosidl_runtime_c__type_description__FieldType. -typedef struct rosidl_runtime_c__type_description__FieldType__Sequence -{ - rosidl_runtime_c__type_description__FieldType * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rosidl_runtime_c__type_description__FieldType__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__FIELD_TYPE__STRUCT_H_ diff --git a/src/rosidl_runtime_c/type_description/individual_type_description__functions.h b/src/rosidl_runtime_c/type_description/individual_type_description__functions.h deleted file mode 100755 index eb297b611..000000000 --- a/src/rosidl_runtime_c/type_description/individual_type_description__functions.h +++ /dev/null @@ -1,205 +0,0 @@ -// DO NOT EDIT MANUALLY - this copied file managed by copy_type_description_generated_sources.bash -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from type_description_interfaces:msg/IndividualTypeDescription.idl -// generated code does not contain a copyright notice - -#ifndef ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__INDIVIDUAL_TYPE_DESCRIPTION__FUNCTIONS_H_ -#define ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__INDIVIDUAL_TYPE_DESCRIPTION__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" - -#include "rosidl_runtime_c/type_description/individual_type_description__struct.h" - -/// Initialize msg/IndividualTypeDescription message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rosidl_runtime_c__type_description__IndividualTypeDescription - * )) before or use - * rosidl_runtime_c__type_description__IndividualTypeDescription__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__IndividualTypeDescription__init(rosidl_runtime_c__type_description__IndividualTypeDescription * msg); - -/// Finalize msg/IndividualTypeDescription message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__IndividualTypeDescription__fini(rosidl_runtime_c__type_description__IndividualTypeDescription * msg); - -/// Create msg/IndividualTypeDescription message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rosidl_runtime_c__type_description__IndividualTypeDescription__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__type_description__IndividualTypeDescription * -rosidl_runtime_c__type_description__IndividualTypeDescription__create(); - -/// Destroy msg/IndividualTypeDescription message. -/** - * It calls - * rosidl_runtime_c__type_description__IndividualTypeDescription__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__IndividualTypeDescription__destroy(rosidl_runtime_c__type_description__IndividualTypeDescription * msg); - -/// Check for msg/IndividualTypeDescription message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__IndividualTypeDescription__are_equal(const rosidl_runtime_c__type_description__IndividualTypeDescription * lhs, const rosidl_runtime_c__type_description__IndividualTypeDescription * rhs); - -/// Copy a msg/IndividualTypeDescription message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__IndividualTypeDescription__copy( - const rosidl_runtime_c__type_description__IndividualTypeDescription * input, - rosidl_runtime_c__type_description__IndividualTypeDescription * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_type_hash_t * -rosidl_runtime_c__type_description__IndividualTypeDescription__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeDescription * -rosidl_runtime_c__type_description__IndividualTypeDescription__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeSource * -rosidl_runtime_c__type_description__IndividualTypeDescription__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rosidl_runtime_c__type_description__IndividualTypeDescription__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/IndividualTypeDescription messages. -/** - * It allocates the memory for the number of elements and calls - * rosidl_runtime_c__type_description__IndividualTypeDescription__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence__init(rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * array, size_t size); - -/// Finalize array of msg/IndividualTypeDescription messages. -/** - * It calls - * rosidl_runtime_c__type_description__IndividualTypeDescription__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence__fini(rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * array); - -/// Create array of msg/IndividualTypeDescription messages. -/** - * It allocates the memory for the array and calls - * rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * -rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence__create(size_t size); - -/// Destroy array of msg/IndividualTypeDescription messages. -/** - * It calls - * rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence__destroy(rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * array); - -/// Check for msg/IndividualTypeDescription message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence__are_equal(const rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * lhs, const rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * rhs); - -/// Copy an array of msg/IndividualTypeDescription messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence__copy( - const rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * input, - rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__INDIVIDUAL_TYPE_DESCRIPTION__FUNCTIONS_H_ diff --git a/src/rosidl_runtime_c/type_description/individual_type_description__struct.h b/src/rosidl_runtime_c/type_description/individual_type_description__struct.h deleted file mode 100755 index 247f22e01..000000000 --- a/src/rosidl_runtime_c/type_description/individual_type_description__struct.h +++ /dev/null @@ -1,64 +0,0 @@ -// DO NOT EDIT MANUALLY - this copied file managed by copy_type_description_generated_sources.bash -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from type_description_interfaces:msg/IndividualTypeDescription.idl -// generated code does not contain a copyright notice - -#ifndef ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__INDIVIDUAL_TYPE_DESCRIPTION__STRUCT_H_ -#define ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__INDIVIDUAL_TYPE_DESCRIPTION__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'type_name' -#include "rosidl_runtime_c/string.h" -// Member 'fields' -#include "rosidl_runtime_c/type_description/field__struct.h" - -// constants for array fields with an upper bound -// type_name -enum -{ - rosidl_runtime_c__type_description__IndividualTypeDescription__type_name__MAX_STRING_SIZE = 255 -}; - -/// Struct defined in msg/IndividualTypeDescription in the package type_description_interfaces. -/** - * Represents a single type, without the types it references, if any. - */ -typedef struct rosidl_runtime_c__type_description__IndividualTypeDescription -{ - /// Name of the type. - /// This is limited to 255 characters. - /// TODO(wjwwood): this 255 character limit was chosen due to this being the limit - /// for DDSI-RTPS based middlewares, which is the most commonly used right now. - /// We lack a ROS 2 specific limit in our design documents, but we should update - /// this and/or link to the design doc when that is available. - rosidl_runtime_c__String type_name; - /// Fields of the type. - rosidl_runtime_c__type_description__Field__Sequence fields; -} rosidl_runtime_c__type_description__IndividualTypeDescription; - -// Struct for a sequence of rosidl_runtime_c__type_description__IndividualTypeDescription. -typedef struct rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence -{ - rosidl_runtime_c__type_description__IndividualTypeDescription * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__INDIVIDUAL_TYPE_DESCRIPTION__STRUCT_H_ diff --git a/src/rosidl_runtime_c/type_description/key_value__functions.h b/src/rosidl_runtime_c/type_description/key_value__functions.h deleted file mode 100755 index 61503b9d2..000000000 --- a/src/rosidl_runtime_c/type_description/key_value__functions.h +++ /dev/null @@ -1,205 +0,0 @@ -// DO NOT EDIT MANUALLY - this copied file managed by copy_type_description_generated_sources.bash -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from type_description_interfaces:msg/KeyValue.idl -// generated code does not contain a copyright notice - -#ifndef ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__KEY_VALUE__FUNCTIONS_H_ -#define ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__KEY_VALUE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" - -#include "rosidl_runtime_c/type_description/key_value__struct.h" - -/// Initialize msg/KeyValue message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rosidl_runtime_c__type_description__KeyValue - * )) before or use - * rosidl_runtime_c__type_description__KeyValue__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__KeyValue__init(rosidl_runtime_c__type_description__KeyValue * msg); - -/// Finalize msg/KeyValue message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__KeyValue__fini(rosidl_runtime_c__type_description__KeyValue * msg); - -/// Create msg/KeyValue message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rosidl_runtime_c__type_description__KeyValue__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__type_description__KeyValue * -rosidl_runtime_c__type_description__KeyValue__create(); - -/// Destroy msg/KeyValue message. -/** - * It calls - * rosidl_runtime_c__type_description__KeyValue__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__KeyValue__destroy(rosidl_runtime_c__type_description__KeyValue * msg); - -/// Check for msg/KeyValue message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__KeyValue__are_equal(const rosidl_runtime_c__type_description__KeyValue * lhs, const rosidl_runtime_c__type_description__KeyValue * rhs); - -/// Copy a msg/KeyValue message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__KeyValue__copy( - const rosidl_runtime_c__type_description__KeyValue * input, - rosidl_runtime_c__type_description__KeyValue * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_type_hash_t * -rosidl_runtime_c__type_description__KeyValue__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeDescription * -rosidl_runtime_c__type_description__KeyValue__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeSource * -rosidl_runtime_c__type_description__KeyValue__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rosidl_runtime_c__type_description__KeyValue__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/KeyValue messages. -/** - * It allocates the memory for the number of elements and calls - * rosidl_runtime_c__type_description__KeyValue__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__KeyValue__Sequence__init(rosidl_runtime_c__type_description__KeyValue__Sequence * array, size_t size); - -/// Finalize array of msg/KeyValue messages. -/** - * It calls - * rosidl_runtime_c__type_description__KeyValue__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__KeyValue__Sequence__fini(rosidl_runtime_c__type_description__KeyValue__Sequence * array); - -/// Create array of msg/KeyValue messages. -/** - * It allocates the memory for the array and calls - * rosidl_runtime_c__type_description__KeyValue__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__type_description__KeyValue__Sequence * -rosidl_runtime_c__type_description__KeyValue__Sequence__create(size_t size); - -/// Destroy array of msg/KeyValue messages. -/** - * It calls - * rosidl_runtime_c__type_description__KeyValue__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__KeyValue__Sequence__destroy(rosidl_runtime_c__type_description__KeyValue__Sequence * array); - -/// Check for msg/KeyValue message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__KeyValue__Sequence__are_equal(const rosidl_runtime_c__type_description__KeyValue__Sequence * lhs, const rosidl_runtime_c__type_description__KeyValue__Sequence * rhs); - -/// Copy an array of msg/KeyValue messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__KeyValue__Sequence__copy( - const rosidl_runtime_c__type_description__KeyValue__Sequence * input, - rosidl_runtime_c__type_description__KeyValue__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__KEY_VALUE__FUNCTIONS_H_ diff --git a/src/rosidl_runtime_c/type_description/key_value__struct.h b/src/rosidl_runtime_c/type_description/key_value__struct.h deleted file mode 100755 index 7ce5dc83d..000000000 --- a/src/rosidl_runtime_c/type_description/key_value__struct.h +++ /dev/null @@ -1,49 +0,0 @@ -// DO NOT EDIT MANUALLY - this copied file managed by copy_type_description_generated_sources.bash -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from type_description_interfaces:msg/KeyValue.idl -// generated code does not contain a copyright notice - -#ifndef ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__KEY_VALUE__STRUCT_H_ -#define ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__KEY_VALUE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'key' -// Member 'value' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/KeyValue in the package type_description_interfaces. -/** - * Represents an arbitrary key-value pair for application-specific information. - */ -typedef struct rosidl_runtime_c__type_description__KeyValue -{ - rosidl_runtime_c__String key; - rosidl_runtime_c__String value; -} rosidl_runtime_c__type_description__KeyValue; - -// Struct for a sequence of rosidl_runtime_c__type_description__KeyValue. -typedef struct rosidl_runtime_c__type_description__KeyValue__Sequence -{ - rosidl_runtime_c__type_description__KeyValue * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rosidl_runtime_c__type_description__KeyValue__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__KEY_VALUE__STRUCT_H_ diff --git a/src/rosidl_runtime_c/type_description/type_description__functions.h b/src/rosidl_runtime_c/type_description/type_description__functions.h deleted file mode 100755 index 384a0ab10..000000000 --- a/src/rosidl_runtime_c/type_description/type_description__functions.h +++ /dev/null @@ -1,205 +0,0 @@ -// DO NOT EDIT MANUALLY - this copied file managed by copy_type_description_generated_sources.bash -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from type_description_interfaces:msg/TypeDescription.idl -// generated code does not contain a copyright notice - -#ifndef ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__TYPE_DESCRIPTION__FUNCTIONS_H_ -#define ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__TYPE_DESCRIPTION__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" - -#include "rosidl_runtime_c/type_description/type_description__struct.h" - -/// Initialize msg/TypeDescription message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rosidl_runtime_c__type_description__TypeDescription - * )) before or use - * rosidl_runtime_c__type_description__TypeDescription__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__TypeDescription__init(rosidl_runtime_c__type_description__TypeDescription * msg); - -/// Finalize msg/TypeDescription message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__TypeDescription__fini(rosidl_runtime_c__type_description__TypeDescription * msg); - -/// Create msg/TypeDescription message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rosidl_runtime_c__type_description__TypeDescription__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__type_description__TypeDescription * -rosidl_runtime_c__type_description__TypeDescription__create(); - -/// Destroy msg/TypeDescription message. -/** - * It calls - * rosidl_runtime_c__type_description__TypeDescription__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__TypeDescription__destroy(rosidl_runtime_c__type_description__TypeDescription * msg); - -/// Check for msg/TypeDescription message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__TypeDescription__are_equal(const rosidl_runtime_c__type_description__TypeDescription * lhs, const rosidl_runtime_c__type_description__TypeDescription * rhs); - -/// Copy a msg/TypeDescription message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__TypeDescription__copy( - const rosidl_runtime_c__type_description__TypeDescription * input, - rosidl_runtime_c__type_description__TypeDescription * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_type_hash_t * -rosidl_runtime_c__type_description__TypeDescription__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeDescription * -rosidl_runtime_c__type_description__TypeDescription__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeSource * -rosidl_runtime_c__type_description__TypeDescription__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rosidl_runtime_c__type_description__TypeDescription__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/TypeDescription messages. -/** - * It allocates the memory for the number of elements and calls - * rosidl_runtime_c__type_description__TypeDescription__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__TypeDescription__Sequence__init(rosidl_runtime_c__type_description__TypeDescription__Sequence * array, size_t size); - -/// Finalize array of msg/TypeDescription messages. -/** - * It calls - * rosidl_runtime_c__type_description__TypeDescription__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__TypeDescription__Sequence__fini(rosidl_runtime_c__type_description__TypeDescription__Sequence * array); - -/// Create array of msg/TypeDescription messages. -/** - * It allocates the memory for the array and calls - * rosidl_runtime_c__type_description__TypeDescription__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__type_description__TypeDescription__Sequence * -rosidl_runtime_c__type_description__TypeDescription__Sequence__create(size_t size); - -/// Destroy array of msg/TypeDescription messages. -/** - * It calls - * rosidl_runtime_c__type_description__TypeDescription__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__TypeDescription__Sequence__destroy(rosidl_runtime_c__type_description__TypeDescription__Sequence * array); - -/// Check for msg/TypeDescription message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__TypeDescription__Sequence__are_equal(const rosidl_runtime_c__type_description__TypeDescription__Sequence * lhs, const rosidl_runtime_c__type_description__TypeDescription__Sequence * rhs); - -/// Copy an array of msg/TypeDescription messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__TypeDescription__Sequence__copy( - const rosidl_runtime_c__type_description__TypeDescription__Sequence * input, - rosidl_runtime_c__type_description__TypeDescription__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__TYPE_DESCRIPTION__FUNCTIONS_H_ diff --git a/src/rosidl_runtime_c/type_description/type_description__struct.h b/src/rosidl_runtime_c/type_description/type_description__struct.h deleted file mode 100755 index 49c72939a..000000000 --- a/src/rosidl_runtime_c/type_description/type_description__struct.h +++ /dev/null @@ -1,51 +0,0 @@ -// DO NOT EDIT MANUALLY - this copied file managed by copy_type_description_generated_sources.bash -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from type_description_interfaces:msg/TypeDescription.idl -// generated code does not contain a copyright notice - -#ifndef ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__TYPE_DESCRIPTION__STRUCT_H_ -#define ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__TYPE_DESCRIPTION__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'type_description' -// Member 'referenced_type_descriptions' -#include "rosidl_runtime_c/type_description/individual_type_description__struct.h" - -/// Struct defined in msg/TypeDescription in the package type_description_interfaces. -/** - * Represents a complete type description, including the type itself as well as the types it references. - */ -typedef struct rosidl_runtime_c__type_description__TypeDescription -{ - /// Description of the type. - rosidl_runtime_c__type_description__IndividualTypeDescription type_description; - /// Descriptions of all referenced types, recursively. - rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence referenced_type_descriptions; -} rosidl_runtime_c__type_description__TypeDescription; - -// Struct for a sequence of rosidl_runtime_c__type_description__TypeDescription. -typedef struct rosidl_runtime_c__type_description__TypeDescription__Sequence -{ - rosidl_runtime_c__type_description__TypeDescription * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rosidl_runtime_c__type_description__TypeDescription__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__TYPE_DESCRIPTION__STRUCT_H_ diff --git a/src/rosidl_runtime_c/type_description/type_source__functions.h b/src/rosidl_runtime_c/type_description/type_source__functions.h deleted file mode 100755 index 49fcfffe8..000000000 --- a/src/rosidl_runtime_c/type_description/type_source__functions.h +++ /dev/null @@ -1,205 +0,0 @@ -// DO NOT EDIT MANUALLY - this copied file managed by copy_type_description_generated_sources.bash -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from type_description_interfaces:msg/TypeSource.idl -// generated code does not contain a copyright notice - -#ifndef ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__TYPE_SOURCE__FUNCTIONS_H_ -#define ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__TYPE_SOURCE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" - -#include "rosidl_runtime_c/type_description/type_source__struct.h" - -/// Initialize msg/TypeSource message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * rosidl_runtime_c__type_description__TypeSource - * )) before or use - * rosidl_runtime_c__type_description__TypeSource__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__TypeSource__init(rosidl_runtime_c__type_description__TypeSource * msg); - -/// Finalize msg/TypeSource message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__TypeSource__fini(rosidl_runtime_c__type_description__TypeSource * msg); - -/// Create msg/TypeSource message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * rosidl_runtime_c__type_description__TypeSource__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__type_description__TypeSource * -rosidl_runtime_c__type_description__TypeSource__create(); - -/// Destroy msg/TypeSource message. -/** - * It calls - * rosidl_runtime_c__type_description__TypeSource__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__TypeSource__destroy(rosidl_runtime_c__type_description__TypeSource * msg); - -/// Check for msg/TypeSource message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__TypeSource__are_equal(const rosidl_runtime_c__type_description__TypeSource * lhs, const rosidl_runtime_c__type_description__TypeSource * rhs); - -/// Copy a msg/TypeSource message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__TypeSource__copy( - const rosidl_runtime_c__type_description__TypeSource * input, - rosidl_runtime_c__type_description__TypeSource * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_type_hash_t * -rosidl_runtime_c__type_description__TypeSource__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeDescription * -rosidl_runtime_c__type_description__TypeSource__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeSource * -rosidl_runtime_c__type_description__TypeSource__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC -const rosidl_runtime_c__type_description__TypeSource__Sequence * -rosidl_runtime_c__type_description__TypeSource__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/TypeSource messages. -/** - * It allocates the memory for the number of elements and calls - * rosidl_runtime_c__type_description__TypeSource__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__TypeSource__Sequence__init(rosidl_runtime_c__type_description__TypeSource__Sequence * array, size_t size); - -/// Finalize array of msg/TypeSource messages. -/** - * It calls - * rosidl_runtime_c__type_description__TypeSource__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__TypeSource__Sequence__fini(rosidl_runtime_c__type_description__TypeSource__Sequence * array); - -/// Create array of msg/TypeSource messages. -/** - * It allocates the memory for the array and calls - * rosidl_runtime_c__type_description__TypeSource__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__type_description__TypeSource__Sequence * -rosidl_runtime_c__type_description__TypeSource__Sequence__create(size_t size); - -/// Destroy array of msg/TypeSource messages. -/** - * It calls - * rosidl_runtime_c__type_description__TypeSource__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__type_description__TypeSource__Sequence__destroy(rosidl_runtime_c__type_description__TypeSource__Sequence * array); - -/// Check for msg/TypeSource message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__TypeSource__Sequence__are_equal(const rosidl_runtime_c__type_description__TypeSource__Sequence * lhs, const rosidl_runtime_c__type_description__TypeSource__Sequence * rhs); - -/// Copy an array of msg/TypeSource messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__type_description__TypeSource__Sequence__copy( - const rosidl_runtime_c__type_description__TypeSource__Sequence * input, - rosidl_runtime_c__type_description__TypeSource__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__TYPE_SOURCE__FUNCTIONS_H_ diff --git a/src/rosidl_runtime_c/type_description/type_source__struct.h b/src/rosidl_runtime_c/type_description/type_source__struct.h deleted file mode 100755 index d1e2bc585..000000000 --- a/src/rosidl_runtime_c/type_description/type_source__struct.h +++ /dev/null @@ -1,60 +0,0 @@ -// DO NOT EDIT MANUALLY - this copied file managed by copy_type_description_generated_sources.bash -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from type_description_interfaces:msg/TypeSource.idl -// generated code does not contain a copyright notice - -#ifndef ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__TYPE_SOURCE__STRUCT_H_ -#define ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__TYPE_SOURCE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'type_name' -// Member 'encoding' -// Member 'raw_file_contents' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/TypeSource in the package type_description_interfaces. -/** - * Represents the original source of a ROS 2 interface definition. - */ -typedef struct rosidl_runtime_c__type_description__TypeSource -{ - /// ROS interface type name, in PACKAGE/NAMESPACE/TYPENAME format. - rosidl_runtime_c__String type_name; - /// The type of the original source file, typically matching the file extension. - /// Well-known encodings: "idl", "msg", "srv", "action", "dynamic", "implicit". - /// "dynamic" specifies a type created programmatically by a user, thus having no source. - /// "implicit" specifies a type created automatically as a subtype of a - /// complex type (service or action) - such as the request message for a service. - /// Implicit types will have no contents, the full source will be available on the parent srv/action. - rosidl_runtime_c__String encoding; - /// Dumped contents of the interface definition source file. - /// If `encoding` is "dynamic" or "implicit", this field will be empty. - rosidl_runtime_c__String raw_file_contents; -} rosidl_runtime_c__type_description__TypeSource; - -// Struct for a sequence of rosidl_runtime_c__type_description__TypeSource. -typedef struct rosidl_runtime_c__type_description__TypeSource__Sequence -{ - rosidl_runtime_c__type_description__TypeSource * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} rosidl_runtime_c__type_description__TypeSource__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_DESCRIPTION__TYPE_SOURCE__STRUCT_H_ diff --git a/src/rosidl_runtime_c/type_description_utils.h b/src/rosidl_runtime_c/type_description_utils.h deleted file mode 100755 index b190a9330..000000000 --- a/src/rosidl_runtime_c/type_description_utils.h +++ /dev/null @@ -1,656 +0,0 @@ -// Copyright 2023 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * \file Utilities for manipulating type_description_interfaces C message structs. - * - * Every instance of a non-message struct (e.g. hash map) borrows, whereas the message structs copy. - * Hence, lifetime should be managed by the message structs. - */ - -#ifndef ROSIDL_RUNTIME_C__TYPE_DESCRIPTION_UTILS_H_ -#define ROSIDL_RUNTIME_C__TYPE_DESCRIPTION_UTILS_H_ - -#include -#include -#include - -#include - -#include -#include - -#include "rosidl_runtime_c/type_description/field__functions.h" -#include "rosidl_runtime_c/type_description/field__struct.h" -#include "rosidl_runtime_c/type_description/individual_type_description__functions.h" -#include "rosidl_runtime_c/type_description/individual_type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_description__functions.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -static const uint8_t ROSIDL_RUNTIME_C_TYPE_DESCRIPTION_UTILS_SEQUENCE_TYPE_ID_MASK = 48; - -// ================================================================================================= -// GET BY NAME -// ================================================================================================= - -/// Get the first Field, matching by name. -/** - * The `field` output arg must be passed in pointing to `NULL`. - * It will remain pointing to `NULL` if no matching `Field` is found. - * - * Ownership: - * - The output `Field` borrows the `fields` arg's `Field` element. It is not authorized to - * deallocate it and cannot outlive the owner it borrows from. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] fields array of fields to search through - * \param[in] name field name of the field to look for - * \param[out] field the first field with field name that matches the name arg. - * Must point to `NULL`, outputs pointing to `NULL` if not found. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_NOT_FOUND if no `Field` with a matching name is found, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_find_field( - const rosidl_runtime_c__type_description__Field__Sequence * fields, - const char * name, - rosidl_runtime_c__type_description__Field ** field); - -/// Get the first referenced IndividualTypeDescription, matching by type name. -/** - * The `referenced_type` output arg must be passed in pointing `NULL`. - * It will remain pointing to `NULL` if no matching `IndividualTypeDescription` is found. - * - * Ownership: - * - The output `IndividualTypeDescription` borrows the `referenced_types` arg's - * `IndividualTypeDescription` element. - * It is not authorized to deallocate it and it cannot outlive the `referenced_types` it borrows - * from. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | No - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] referenced_types array of referenced individual type descriptions to search through - * \param[in] type_name name of the referenced referenced individual type description to look for - * \param[out] referenced_type the first individual type description with type name that matches the - * type_name arg. Must point to `NULL`, outputs pointing to `NULL` if not found. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_NOT_FOUND if no `IndividualTypeDescription` with matching name is found, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_find_referenced_type_description( - const rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * referenced_types, - const char * type_name, - rosidl_runtime_c__type_description__IndividualTypeDescription ** referenced_type); - - -// ================================================================================================= -// HASH MAPS -// ================================================================================================= - -/// Construct a hash map of an `IndividualTypeDescription`'s `Field` objects, keyed by field name. -/** - * NOTE: The `hash_map` output arg must be passed in pointing to `NULL`. - * - * Ownership: - * - The caller assumes ownership of the output `rcutils_hash_map_t` and must free it and its - * elements, but NOT finalize its values. - * - The output `rcutils_hash_map_t` has values that borrows the `individual_description` arg's - * `Field` objects. It is not authorized to deallocate them and it cannot outlive the owner it - * borrows from. - * - Finalizing the `rcutils_hash_map_t` should not result in the map's values getting finalized. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] individual_description the individual type description to get the fields from - * \param[in] allocator the allocator to use through out the lifetime of the hash_map - * \param[out] hash_map `rcutils_hash_map_t` to be initialized, containing `Field` objects keyed by - * their field names. Must point to `NULL`, outputs pointing to `NULL` if error. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_get_field_map( - const rosidl_runtime_c__type_description__IndividualTypeDescription * individual_description, - const rcutils_allocator_t * allocator, - rcutils_hash_map_t ** hash_map); - -/// Construct a hash map of an `IndividualTypeDescription__Sequence`'s `IndividualTypeDescription` -/// objects, keyed by type name. -/** - * The `hash_map` output arg must be passed in pointing to `NULL`. - * Furthermore, if the input `referenced_types` sequence has types with identical names but - * differing structures, this function will return `RCUTILS_RET_INVALID_ARGUMENT` and fail. - * - * Ownership: - * - The caller assumes ownership of the output `rcutils_hash_map_t` and must free it and its - * elements, but NOT finalize its values. - * - The output `rcutils_hash_map_t` has values that borrows the `referenced_types` arg's - * `IndividualTypeDescription` elements. It is not authorized to deallocate them and it cannot - * outlive the `referenced_types` it borrows from. - * - Finalizing the output `rcutils_hash_map_t` should not result in its values getting finalized. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] referenced_types the referenced individual type descriptions to get the referenced - * types from - * \param[in] allocator the allocator to use through out the lifetime of the hash_map - * \param[out] hash_map `rcutils_hash_map_t` to be initialized, containing - * `IndividualTypeDescription` objects keyed by their type names. - * Must point to `NULL`, outputs pointing to `NULL` if error. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_get_referenced_type_description_map( - const rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * referenced_types, - const rcutils_allocator_t * allocator, - rcutils_hash_map_t ** hash_map); - - -// ================================================================================================= -// DESCRIPTION VALIDITY -// ================================================================================================= - -/// Return a map of only the referenced type descriptions that are recursively necessary. -/** - * The `seen_map` output arg must be passed in pointing to `NULL`. - * It's a parameter so it can be passed into subsequent recursive calls to traverse nested types. - * - * A referenced type description is recursively necessary if it is either: - * - Needed by a field of the main IndividualTypeDescription - * - Needed by a field of any prior necessary referenced type descriptions (hence recursive) - * - * For more clarity, an unnecessary referenced type description will not be - * referenced when parsing a TypeDescription, and hence can be excluded. - * - * Ownership: - * - The caller assumes ownership of the output `rcutils_hash_map_t` and must free it and its - * elements, but NOT finalize its values. - * - The output `rcutils_hash_map_t` has values that borrows the `referenced_types_map` arg's - * `IndividualTypeDescription` values. It is not authorized to deallocate them and it cannot - * outlive owner it borrows from. - * - Finalizing the output `rcutils_hash_map_t` should not result in its values getting finalized. - * - * Procedure: - * 1. Create seen map - * 2. [Iterate through fields]: - * 3. If field is not nested type or field's nested type is seen in the seen map: - * - Continue - * 4. If nested type is missing in referenced types or nested type name is empty: - * - Throw error - * 5. Else: - * - Add to seen map - * - Recurse on referenced type - * 6. Output seen map - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] main_type_description the main individual type description to check the fields of - * \param[in] referenced_types_map a map of referenced `IndividualTypeDescription` objects from the - * main individual type description's parent `TypeDescription` object, keyed by their type names. - * \param[in] allocator the allocator to use through out the lifetime of the hash_map. - * \param[in,out] seen_map `rcutils_hash_map_t` of seen necessary `IndividualTypeDescription` - * objects keyed by their type names. Used in recursive calls. Must point to - * `NULL` for user's top level call, outputs pointing to `NULL` if error. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_NOT_FOUND if passed referenced types are missing necessary types, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_get_necessary_referenced_type_descriptions_map( - const rosidl_runtime_c__type_description__IndividualTypeDescription * main_type_description, - const rcutils_hash_map_t * referenced_types_map, - const rcutils_allocator_t * allocator, - rcutils_hash_map_t ** seen_map); - -/// Deep copy a map of individual type descriptions into a new IndividualTypeDescription__Sequence. -/** - * The `sequence` output arg must be passed in pointing to `NULL`. - * - * This method also validates that each IndividualTypeDescription in the map has a type name that - * matches the key it was indexed by. - * - * Ownership: - * - The caller assumes ownership of the output `IndividualTypeDescription__Sequence` and must free - * it. - * - The output `IndividualTypeDescription__Sequence` deep copies the values from the `hash_map` arg - * and so has a separate lifetime from the `hash_map`. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] hash_map the referenced type descriptions map to convert (via deep copy) to a sequence - * \param[out] sequence the `IndividualTypeDescription__Sequence` containing copies of the - * `IndividualTypeDescription` objects stored in the values of the input `hash_map` arg. - * Must point to `NULL`, outputs pointing to `NULL` if error. - * \param[in] sort sorts the referenced type descriptions if true, best effort - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_copy_init_sequence_from_referenced_type_descriptions_map( - const rcutils_hash_map_t * hash_map, - rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence ** sequence, - bool sort); - -/// Helper comparison function for the sorting function -ROSIDL_GENERATOR_C_PUBLIC -int -rosidl_runtime_c_type_description_utils_referenced_type_description_sequence_sort_compare( - const void * lhs, const void * rhs); - -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_sort_referenced_type_descriptions_in_place( - rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * sequence); - -/// Remove unnecessary referenced type descriptions from a sequence of referenced types. -/** - * IndividualTypeDescription elements are COPY ASSIGNED in-place, and the original sequence is - * shrunken afterwards. - * - * DOES NOT SORT AFTER PRUNING! Call sort separately. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_prune_referenced_type_descriptions_in_place( - const rosidl_runtime_c__type_description__IndividualTypeDescription * main_type_description, - rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * referenced_types); - -/// Check if field is valid -/** - * A field is valid if: - * - Its name is not empty - * - Note this does not check for valid chars/double underscores - * - Its field type: - * - Is set - * - Has a non-empty nested type name if nested - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_field_is_valid( - const rosidl_runtime_c__type_description__Field * field); - -/// Check if individual type description is valid -/** - * An individual type description is valid if: - * - Its type name is not empty - * - Note this does not check for valid chars etc. - * - All of its fields are valid - * - It does not have duplicate fields - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_individual_type_description_is_valid( - const rosidl_runtime_c__type_description__IndividualTypeDescription * description); - -/// Check if type description is valid -/** - * An type description is valid if: - * - Its main individual type description is valid - * - Its referenced type descriptions are: - * - Not duplicated - * - Not missing necessary type descriptions - * - Have no unnecessary type descriptions - * - Individually valid - * - Sorted - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_type_description_is_valid( - const rosidl_runtime_c__type_description__TypeDescription * description); - -/// This is on a best effort basis, it won't work if the fields of the main or necessary referenced -/// types are invalid. It prunes then sorts. -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_coerce_to_valid_type_description_in_place( - rosidl_runtime_c__type_description__TypeDescription * type_description); - - -// ================================================================================================= -// DESCRIPTION CONSTRUCTION -// ================================================================================================= - -/// Construct a new populated `Field` object. -/** - * NOTE: The `field` output arg must be passed in pointing to `NULL`. - * - * Ownership: - * - The caller assumes ownership of the output `Field` and must free it and its members. - * - The char * members are copied. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] name the name of the field - * \param[in] name_length the string length of `name` (not counting the null terminator) - * \param[in] type_id the type id of the field (follows the type_description_interfaces definition) - * \param[in] capacity capacity of the field (if it is an array or sequence) - * \param[in] string_capacity capacity of string elements (if the field is an array or sequence of - * strings) - * \param[in] nested_type_name the nested type name of the field (if it is a nested type) - * \param[in] nested_type_name_length the string length of `nested_type_name` (not counting the null - * terminator) - * \param[in] default_value literal default value of the field as a string, as it appeared in the - * original message definition - * \param[in] default_value_length the string length of `default_value` (not counting the null - * terminator) - * \param[out] field `Field` to be initialized. Must point to `NULL`, outputs pointing to `NULL` if - * error. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_create_field( - const char * name, size_t name_length, - uint8_t type_id, uint64_t capacity, uint64_t string_capacity, - const char * nested_type_name, size_t nested_type_name_length, - const char * default_value, size_t default_value_length, - rosidl_runtime_c__type_description__Field ** field); - -/// Construct a new populated `IndividualTypeDescription` object, with fields sequence of size 0. -/** - * NOTE: The `individual_description` output arg must be passed in pointing to `NULL`. - * - * Ownership: - * - The caller assumes ownership of the output `IndividualTypeDescription` and must free it and its - * members. - * - The char * members are copied. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] type_name the name of the individual type description - * \param[in] type_name_length the string length of `type_name` (not counting the null terminator) - * \param[out] individual_description `IndividualTypeDescription` to be initialized. Must point to - * `NULL`, outputs pointing to `NULL` if error. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_create_individual_type_description( - const char * type_name, size_t type_name_length, - rosidl_runtime_c__type_description__IndividualTypeDescription ** individual_description); - -/// Construct a new populated `TypeDescription` object, with fields and referenced types sequences -/// of size 0. -/** - * NOTE: The `description` output arg must be passed in pointing to `NULL`. - * - * Ownership: - * - The caller assumes ownership of the output `TypeDescription` and must free it and its - * members. - * - The char * members are copied. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in] type_name the name of the type description's main individual type - * \param[in] type_name_length the string length of `type_name` (not counting the null terminator) - * \param[out] type_description `TypeDescription` to be initialized. Must point to `NULL`, - * outputs pointing to `NULL` if error. - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_create_type_description( - const char * type_name, size_t type_name_length, - rosidl_runtime_c__type_description__TypeDescription ** type_description); - -/// Append a `Field` to an `IndividualTypeDescription`, extending the sequence. -/** - * - * Ownership: - * - A deep-copy of the `field` is appended to `individual_type_description` on success, the - * `individual_type_description` is then responsible for freeing the copied `field`. - * - The ownership of the input `field` is not transferred, it must still be freed. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in,out] individual_type_description the individual type description to append to, noop on - * failure - * \param[in,out] field the field to append - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_append_field( - rosidl_runtime_c__type_description__IndividualTypeDescription * individual_type_description, - rosidl_runtime_c__type_description__Field * field); - -/// Append a referenced `IndividualTypeDescription` to a `TypeDescription`, extending it. -/** - * - * Ownership: - * - A deep-copy of the `referenced_type_description` is appended to `type_description` on success, - * the `type_description` is then responsible for freeing the copied - * `referenced_type_description`. - * - The ownership of the input `referenced_type_description` is not transferred, it must still be - * freed. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in,out] type_description the type description to append to, noop on failure - * \param[in,out] individual_type_description the individual type description to append - * \param[in] sort sorts the referenced type descriptions if true, best effort - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_append_referenced_individual_type_description( - rosidl_runtime_c__type_description__TypeDescription * type_description, - rosidl_runtime_c__type_description__IndividualTypeDescription * referenced_type_description, - bool sort); - -/// Append a referenced `TypeDescription` to a `TypeDescription`, extending it with recursive types. -/** - * - * Ownership: - * - A deep-copy of the `type_description_to_append` object's main individual type description is - * appended to `type_description` on success, the `type_description` is then responsible for - * freeing the copied individual type descriptions. - * - Deep-copies of the `type_description_to_append` object's referenced individual type - * descriptions are appended to `type_description` on success, the `type_description` is then - * responsible for freeing the copied individual type descriptions (or the remaining ones if - * they are pruned). - * - The ownership of the input `type_description` is not transferred, it must still be - * freed. - * - *
- * Attribute | Adherence - * ------------------ | ------------- - * Allocates Memory | Yes - * Thread-Safe | No - * Uses Atomics | No - * Lock-Free | Yes - * - * \param[in,out] type_description the type description to append to, noop on failure - * \param[in,out] type_description the type description to append - * \param[in] coerce_to_valid coerces input type_description to valid before output if true - * (pruning and sorting), best effort - * \return #RCUTILS_RET_OK if successful, or - * \return #RCUTILS_RET_BAD_ALLOC if memory allocation fails, or - * \return #RCUTILS_RET_INVALID_ARGUMENT for invalid arguments, or - * \return #RCUTILS_RET_ERROR if an unknown error occurs. - */ -// This adds the type description's main description as a referenced type, and all necessary -// referenced types. Then it prunes and sorts the resulting referenced types sequence. -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_append_referenced_type_description( - rosidl_runtime_c__type_description__TypeDescription * type_description, - rosidl_runtime_c__type_description__TypeDescription * type_description_to_append, - bool coerce_to_valid); - -// Create a type description from a referenced description, then validate if coerce_to_valid is true -// This is done by copy!! This allocates memory and the caller is responsible for deallocating the -// output -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_get_referenced_type_description_as_type_description( - const rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * - referenced_descriptions, - const rosidl_runtime_c__type_description__IndividualTypeDescription * referenced_description, - rosidl_runtime_c__type_description__TypeDescription ** output_description, - bool coerce_to_valid); - -// Create a type description from a referenced description, then validate if coerce_to_valid is true -// This is done by copy!! This allocates memory and the caller is responsible for deallocating the -// output -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_get_referenced_type_description_as_type_description( - const rosidl_runtime_c__type_description__IndividualTypeDescription__Sequence * - referenced_descriptions, - const rosidl_runtime_c__type_description__IndividualTypeDescription * referenced_description, - rosidl_runtime_c__type_description__TypeDescription ** output_description, - bool coerce_to_valid); - -/// In-place replace substrings in an individual description's type name and nested names in fields -/** - * This means the `IndividualTypeDescription`'s' type_name will get replaced and all references - * to any nested_type_names in the description's fields. - * - * NOTE(methylDragon): This method is pretty inefficient because it doesn't do checking and will - * re-copy all names. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_repl_individual_type_description_type_names_in_place( - rosidl_runtime_c__type_description__IndividualTypeDescription * individual_type_description, - const char * from, - const char * to); - -/// In-place replace substrings across all type names (and references to those names) -/** - * This means all `IndividualTypeDescription` type_names will get replaced, in the main description - * and referenced type descriptions, and also all references to those names (nested_type_name.) - * - * NOTE(methylDragon): This method is pretty inefficient because it doesn't do checking and will - * re-copy all names. - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_runtime_c_type_description_utils_repl_all_type_description_type_names_in_place( - rosidl_runtime_c__type_description__TypeDescription * type_description, - const char * from, - const char * to); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_DESCRIPTION_UTILS_H_ diff --git a/src/rosidl_runtime_c/type_hash.h b/src/rosidl_runtime_c/type_hash.h deleted file mode 100755 index dfe4c516e..000000000 --- a/src/rosidl_runtime_c/type_hash.h +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright 2023 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__TYPE_HASH_H_ -#define ROSIDL_RUNTIME_C__TYPE_HASH_H_ - -#include - -#include "rcutils/allocator.h" -#include "rcutils/sha256.h" - -#include "rosidl_runtime_c/visibility_control.h" - -#define ROSIDL_TYPE_HASH_VERSION_UNSET 0 -#define ROSIDL_TYPE_HASH_SIZE RCUTILS_SHA256_BLOCK_SIZE - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// A ROS 2 interface type hash per REP-2011 RIHS standard. -typedef struct rosidl_type_hash_s -{ - uint8_t version; - uint8_t value[ROSIDL_TYPE_HASH_SIZE]; -} rosidl_type_hash_t; - -/// Get a new zero-initialized type hash structure. -/** - * Note that the version equals ROSIDL_TYPE_HASH_VERSION_UNSET. - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_type_hash_t -rosidl_get_zero_initialized_type_hash(void); - -/// Convert type hash to a standardized string representation. -/** - * Follows format RIHS{version}_{value}. - * - * \param[in] type_hash Type hash to convert to string - * \param[in] allocator Allocator to use for allocating string space - * \param[out] output_string Handle to a pointer that will be set - * to the newly allocated null-terminated string representation. - * \return RCUTILS_RET_INVALID_ARGUMENT if any pointer arguments are null or allocator invalid - * \return RCUTILS_RET_BAD_ALLOC if space could not be allocated for resulting string - * \return RCUTILS_RET_OK otherwise - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_stringify_type_hash( - const rosidl_type_hash_t * type_hash, - rcutils_allocator_t allocator, - char ** output_string); - -/// Parse a stringified type hash to a struct. -/** - * \param[in] type_hash_string Null-terminated string with the hash representation - * \param[out] hash_out Preallocated structure to be filled with parsed hash information. - * hash_out->version will be 0 if no version could be parsed, - * but if a version could be determined this field will be set even if an error is returned - * \return RCTUILS_RET_INVALID_ARGUMENT on any null pointer argumunts, or malformed hash string. - * \return RCUTILS_RET_OK otherwise - */ -ROSIDL_GENERATOR_C_PUBLIC -rcutils_ret_t -rosidl_parse_type_hash_string( - const char * type_hash_string, - rosidl_type_hash_t * hash_out); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__TYPE_HASH_H_ diff --git a/src/rosidl_runtime_c/u16string.h b/src/rosidl_runtime_c/u16string.h deleted file mode 100755 index 6e1172a3b..000000000 --- a/src/rosidl_runtime_c/u16string.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2015-2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__U16STRING_H_ -#define ROSIDL_RUNTIME_C__U16STRING_H_ - -#include - -#include "rosidl_runtime_c/primitives_sequence.h" - -/// An array of 16-bit characters terminated by a null character. -typedef struct rosidl_runtime_c__U16String -{ - /// The pointer to the first character, the sequence ends with a null character. - uint_least16_t * data; // using uint_least16_t to match a C++ std::u16string - /// The length of the u16string (excluding the null character). - size_t size; - /// The capacity represents the number of allocated characters (including the null character). - size_t capacity; -} rosidl_runtime_c__U16String; - -ROSIDL_RUNTIME_C__PRIMITIVE_SEQUENCE(U16String, rosidl_runtime_c__U16String) - -#endif // ROSIDL_RUNTIME_C__U16STRING_H_ diff --git a/src/rosidl_runtime_c/u16string_functions.h b/src/rosidl_runtime_c/u16string_functions.h deleted file mode 100755 index 90a886ba1..000000000 --- a/src/rosidl_runtime_c/u16string_functions.h +++ /dev/null @@ -1,260 +0,0 @@ -// Copyright 2015-2018 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__U16STRING_FUNCTIONS_H_ -#define ROSIDL_RUNTIME_C__U16STRING_FUNCTIONS_H_ - -#include - -#include "rosidl_runtime_c/u16string.h" -#include "rosidl_runtime_c/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Initialize a rosidl_runtime_c__U16String structure. -/** - * The contents of rosidl_runtime_c__U16String are initialized to a single null character. - * The string initially has size 0 and capacity 1. - * Size represents the size of the contents of the string, while capacity represents the overall - * storage of the string (counting the null terminator). - * All strings must be null-terminated. - * The rosidl_runtime_c__U16String structure should be deallocated using the given function - * rosidl_runtime_c__U16String__fini() when it is no longer needed. - * Calling this function with an already initialized U16 string sequence structure will leak - * memory. - * - * \param[inout] str a pointer to a U16 string structure - * \return true if successful, false if the passed string pointer is null - * or the memory allocation failed - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__U16String__init(rosidl_runtime_c__U16String * str); - -/// Deallocate the memory of the rosidl_runtime_c__U16String structure. -/** -* Calling the function with an already deallocated sequence is a no-op. -* -* \param[inout] str a pointer to a U16 string structure to be finalized -*/ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__U16String__fini(rosidl_runtime_c__U16String * str); - -/// Check for rosidl_runtime_c__U16String structure equality. -/** - * \param[in] lhs a pointer to the left hand side of the equality operator. - * \param[in] lhs a pointer to the right hand side of the equality operator. - * \return true if rosidl_runtime_c__U16String structures are equal - * in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__U16String__are_equal( - const rosidl_runtime_c__U16String * lhs, - const rosidl_runtime_c__U16String * rhs); - -/// Copy rosidl_runtime_c__U16String structure content. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input a pointer to a rosidl_runtime_c__U16String structure - * to copy from. - * \param[out] output a pointer to an initialized rosidl_runtime_c__U16String - * structure to copy into. - * \return true if successful, false if either pointer is null or memory - * allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__U16String__copy( - const rosidl_runtime_c__U16String * input, - rosidl_runtime_c__U16String * output); - -/// Assign the uint16_t value of n characters to the rosidl_runtime_c__U16String structure. -/** - * This function returns `false` if memory cannot be allocated, - * if the input uint16_t pointer is null or if the size is higher than SIZE_MAX. - * In both cases no error message is set. - * - * \param[inout] str a pointer to a U16 string structure - * \param[in] value points to a sequence of 16 bit chars - * \param[in] n size of the value string - * \return true if successful, false if the passed string pointer is null - * or if the passed value pointer is null or if the size is higher than SIZE_MAX - * or if the memory reallocation failed. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__U16String__assignn( - rosidl_runtime_c__U16String * str, const uint16_t * value, size_t n); - -/// Assign the c string pointer value of n characters to the rosidl_runtime_c__U16String structure. -/** - * This function is identical to rosidl_runtime_c__U16String__assignn() except the type of the - * value is a c string pointer. - * - * \see rosidl_runtime_c__U16String__assignn() - * - * \param[inout] str a pointer to a U16 string structure - * \param[in] value c string pointer to be assigned - * \param[in] n size of the value string as the number of 8 bit chars - * \return true if successful, false if the passed string pointer is null - * or if the passed value pointer is null - * or if the size is not even or is higher than SIZE_MAX - * or if the memory reallocation failed. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__U16String__assignn_from_char( - rosidl_runtime_c__U16String * str, const char * value, size_t n); - -/// Assign the uint16_t pointer to the rosidl_runtime_c__U16String structure. -/** - * This function is identical to rosidl_runtime_c__U16String__assignn() except the length of the - * uint16_t does not have to be given. - * rosidl_runtime_c__U16String__len() is being used to determine the length of the passed string. - * - * \see rosidl_runtime_c__U16String__assignn() - * - * \param[inout] str a pointer to a rosidl_runtime_c__U16String structure - * \param[in] value points to a sequence of 16 bit chars - * \return true if successful, false if the passed string pointer is null - * or if the passed value pointer is null or if the size is higher than SIZE_MAX - * or if the memory reallocation failed. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__U16String__assign( - rosidl_runtime_c__U16String * str, const uint16_t * value); - -/// Get the length of the uint16_t pointer. -/** - * This function returns the length of the input value pointer. - * - * \param[in] value points to a sequence of 16 bit chars for which the first null char is - * determined - * \return the size of the input value pointer or zero if the pointer is NULL - */ -ROSIDL_GENERATOR_C_PUBLIC -size_t -rosidl_runtime_c__U16String__len(const uint16_t * value); - -/// Resize the uint16_t pointer. -/** - * This function resize the input value pointer. - * - * \param[in] n the new size of the internal buffer - * \return true if successful, false if the passed string pointer is null - * or if the size is higher than SIZE_MAX or if the memory reallocation failed. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__U16String__resize( - rosidl_runtime_c__U16String * str, size_t n); - -/// Initialize a U16 string sequence structure. -/** - * The rosidl_runtime_c__U16String__Sequence is initialized to the size passed to the function. - * The U16 string sequence structure should be deallocated using the given - * function rosidl_runtime_c__U16String__Sequence__fini() when it is no longer needed. - * Calling this function with an already initialized U16 string sequence structure will leak - * memory. - * - * \param[inout] sequence a pointer to a U16 string sequence structure - * \param[in] size represents the size of the U16 string sequence - * \return true if successful, false if the passed string pointer is null - * or the memory allocation failed - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__U16String__Sequence__init( - rosidl_runtime_c__U16String__Sequence * sequence, size_t size); - -/// Deallocate the memory of the string sequence structure. -/** - * Calling the function with an already deallocated sequence is a no-op. - * - * \param[inout] sequence a pointer to a U16 string to be finalized - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__U16String__Sequence__fini( - rosidl_runtime_c__U16String__Sequence * sequence); - -/// Check for rosidl_runtime_c__U16String__Sequence structure equality. -/** - * \param[in] lhs a pointer to the left hand side of the equality operator. - * \param[in] lhs a pointer to the right hand side of the equality operator. - * \return true if rosidl_runtime_c__U16String__Sequence structures are equal - * in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__U16String__Sequence__are_equal( - const rosidl_runtime_c__U16String__Sequence * lhs, - const rosidl_runtime_c__U16String__Sequence * rhs); - -/// Copy a U16 string sequence content. -/** - * This functions performs a deep copy, as opposed to the shallow copy - * that plain assignment yields. - * - * \param[in] input a pointer to a rosidl_runtime_c__String__Sequence - * structure to copy from. - * \param[out] output a pointer to an initialized rosidl_runtime_c__String__Sequence - * structure to copy into. - * \return true if successful, false if either pointer is null or memory - * allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC -bool -rosidl_runtime_c__U16String__Sequence__copy( - const rosidl_runtime_c__U16String__Sequence * input, - rosidl_runtime_c__U16String__Sequence * output); - -/// Create a U16 string sequence structure with a specific size. -/** - * The U16 string sequence initially has size and capacity equal to the size - * argument. - * The U16 string sequence structure should be deallocated using the given - * function rosidl_runtime_c__U16String__Sequence__destroy() when it is no longer needed. - * - * \param[in] size of the desired U16 string sequence - * \return a U16 string sequence if initialization was successfully, otherwise NULL. - */ -ROSIDL_GENERATOR_C_PUBLIC -rosidl_runtime_c__U16String__Sequence * -rosidl_runtime_c__U16String__Sequence__create(size_t size); - -/// Destroy a U16 string sequence structure. -/** - * Calling the function with an already deallocated sequence is a no-op. - * - * \param[inout] sequence a pointer to a U16 string sequence to be finalized - */ -ROSIDL_GENERATOR_C_PUBLIC -void -rosidl_runtime_c__U16String__Sequence__destroy( - rosidl_runtime_c__U16String__Sequence * sequence); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__U16STRING_FUNCTIONS_H_ diff --git a/src/rosidl_runtime_c/visibility_control.h b/src/rosidl_runtime_c/visibility_control.h deleted file mode 100755 index 05c95bff0..000000000 --- a/src/rosidl_runtime_c/visibility_control.h +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_RUNTIME_C__VISIBILITY_CONTROL_H_ -#define ROSIDL_RUNTIME_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL - #define ROSIDL_GENERATOR_C_PUBLIC ROSIDL_GENERATOR_C_EXPORT - #else - #define ROSIDL_GENERATOR_C_PUBLIC ROSIDL_GENERATOR_C_IMPORT - #endif - #define ROSIDL_GENERATOR_C_PUBLIC_TYPE ROSIDL_GENERATOR_C_PUBLIC - #define ROSIDL_GENERATOR_C_LOCAL -#else - #define ROSIDL_GENERATOR_C_EXPORT __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC - #define ROSIDL_GENERATOR_C_LOCAL - #endif - #define ROSIDL_GENERATOR_C_PUBLIC_TYPE -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_RUNTIME_C__VISIBILITY_CONTROL_H_ diff --git a/src/rosidl_typesupport_c/identifier.h b/src/rosidl_typesupport_c/identifier.h deleted file mode 100755 index 1140b4d65..000000000 --- a/src/rosidl_typesupport_c/identifier.h +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_C__IDENTIFIER_H_ -#define ROSIDL_TYPESUPPORT_C__IDENTIFIER_H_ - -#include "rosidl_typesupport_c/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// String identifier specific to rosidl_typesupport_c. -ROSIDL_TYPESUPPORT_C_PUBLIC -extern const char * rosidl_typesupport_c__typesupport_identifier; - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_TYPESUPPORT_C__IDENTIFIER_H_ diff --git a/src/rosidl_typesupport_c/message_type_support_dispatch.h b/src/rosidl_typesupport_c/message_type_support_dispatch.h deleted file mode 100755 index 46e25e1ee..000000000 --- a/src/rosidl_typesupport_c/message_type_support_dispatch.h +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_C__MESSAGE_TYPE_SUPPORT_DISPATCH_H_ -#define ROSIDL_TYPESUPPORT_C__MESSAGE_TYPE_SUPPORT_DISPATCH_H_ - -#include "rosidl_runtime_c/message_type_support_struct.h" - -#include "rosidl_typesupport_c/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Get the message type support handle specific to this identifier. -/** - * If the identifier is the same as this handle's typesupport_identifier, then the handle is - * simply returned, otherwise it's loaded from a shared library. - * - * \param handle Handle to message type support - * \param identifier The typesupport identifier to get the handle function for - * \return The associated message typesupport handle if found, otherwise NULL - */ -ROSIDL_TYPESUPPORT_C_PUBLIC -const rosidl_message_type_support_t * -rosidl_typesupport_c__get_message_typesupport_handle_function( - const rosidl_message_type_support_t * handle, const char * identifier); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_TYPESUPPORT_C__MESSAGE_TYPE_SUPPORT_DISPATCH_H_ diff --git a/src/rosidl_typesupport_c/service_type_support_dispatch.h b/src/rosidl_typesupport_c/service_type_support_dispatch.h deleted file mode 100755 index d36553fe5..000000000 --- a/src/rosidl_typesupport_c/service_type_support_dispatch.h +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_C__SERVICE_TYPE_SUPPORT_DISPATCH_H_ -#define ROSIDL_TYPESUPPORT_C__SERVICE_TYPE_SUPPORT_DISPATCH_H_ - -#include "rosidl_runtime_c/service_type_support_struct.h" - -#include "rosidl_typesupport_c/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Get the service type support handle specific to this identifier. -/** - * If the identifier is the same as this handle's typesupport_identifier, then the handle is - * simply returned, otherwise it's loaded from a shared library. - * - * \param handle Handle to message type support - * \param identifier The typesupport identifier to get the handle function for - * \return The associated service typesupport handle if found, otherwise NULL - */ -ROSIDL_TYPESUPPORT_C_PUBLIC -const rosidl_service_type_support_t * -rosidl_typesupport_c__get_service_typesupport_handle_function( - const rosidl_service_type_support_t * handle, const char * identifier); - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_TYPESUPPORT_C__SERVICE_TYPE_SUPPORT_DISPATCH_H_ diff --git a/src/rosidl_typesupport_c/type_support_map.h b/src/rosidl_typesupport_c/type_support_map.h deleted file mode 100755 index e2808b0c1..000000000 --- a/src/rosidl_typesupport_c/type_support_map.h +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_C__TYPE_SUPPORT_MAP_H_ -#define ROSIDL_TYPESUPPORT_C__TYPE_SUPPORT_MAP_H_ - -#include - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Contains all available C typesupport handles to choose from. -typedef struct type_support_map_t -{ - // TODO(dirk-thomas) const should not be defined for the fields - // but should be set for the struct when it is being used - // same for rosidl_message_type_support_t et al - - /// Length of the `typesupport_identifier`, `symbol_name` and `data` arrays. - const size_t size; - - /// The ROS 2 package this is generated from. - const char * package_name; - - /// Array of identifiers for the type_supports. - const char * const * typesupport_identifier; - - /// Array of symbol names to get the typesupports. - const char * const * symbol_name; - - /// Array of pointers to type support handle functions that were successfully found. - void ** data; -} type_support_map_t; - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_TYPESUPPORT_C__TYPE_SUPPORT_MAP_H_ diff --git a/src/rosidl_typesupport_c/visibility_control.h b/src/rosidl_typesupport_c/visibility_control.h deleted file mode 100755 index 96b28de78..000000000 --- a/src/rosidl_typesupport_c/visibility_control.h +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_C__VISIBILITY_CONTROL_H_ -#define ROSIDL_TYPESUPPORT_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_C_EXPORT __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_C_IMPORT __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_C_EXPORT __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_C_IMPORT __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_C_BUILDING_DLL - #define ROSIDL_TYPESUPPORT_C_PUBLIC ROSIDL_TYPESUPPORT_C_EXPORT - #else - #define ROSIDL_TYPESUPPORT_C_PUBLIC ROSIDL_TYPESUPPORT_C_IMPORT - #endif - #define ROSIDL_TYPESUPPORT_C_LOCAL -#else - #define ROSIDL_TYPESUPPORT_C_EXPORT __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_C_IMPORT - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_C_PUBLIC __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_C_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define ROSIDL_TYPESUPPORT_C_PUBLIC - #define ROSIDL_TYPESUPPORT_C_LOCAL - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_TYPESUPPORT_C__VISIBILITY_CONTROL_H_ diff --git a/src/rosidl_typesupport_interface/macros.h b/src/rosidl_typesupport_interface/macros.h deleted file mode 100755 index de3fbef41..000000000 --- a/src/rosidl_typesupport_interface/macros.h +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2016 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_INTERFACE__MACROS_H_ -#define ROSIDL_TYPESUPPORT_INTERFACE__MACROS_H_ - -/// Declare the typesupport library name. -#define ROSIDL_TYPESUPPORT_INTERFACE__LIBRARY_NAME( \ - typesupport_name, package_name) \ - package_name ## __ ## typesupport_name - -/// Declare the typesupport symbol name. Note: this should not be called directly. -#define ROSIDL_TYPESUPPORT_INTERFACE__SYMBOL_NAME( \ - typesupport_name, function_name, package_name, interface_type, interface_name) \ - typesupport_name ## __ ## function_name ## __ ## \ - package_name ## __ ## interface_type ## __ ## interface_name - -/// Declare a typesupport symbol name for a rosidl message definition. -#define ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( \ - typesupport_name, package_name, interface_type, message_name) \ - ROSIDL_TYPESUPPORT_INTERFACE__SYMBOL_NAME( \ - typesupport_name, get_message_type_support_handle, \ - package_name, interface_type, message_name) - -/// Declare a typesupport symbol name for a rosidl service definition. -#define ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( \ - typesupport_name, package_name, interface_type, service_name) \ - ROSIDL_TYPESUPPORT_INTERFACE__SYMBOL_NAME( \ - typesupport_name, get_service_type_support_handle, \ - package_name, interface_type, service_name) - -/// Declare a typesupport symbol name for a rosidl action definition. -#define ROSIDL_TYPESUPPORT_INTERFACE__ACTION_SYMBOL_NAME( \ - typesupport_name, package_name, interface_type, action_name) \ - ROSIDL_TYPESUPPORT_INTERFACE__SYMBOL_NAME( \ - typesupport_name, get_action_type_support_handle, \ - package_name, interface_type, action_name) - -#define ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( \ - typesupport_name, package_name, interface_type, service_name) \ - ROSIDL_TYPESUPPORT_INTERFACE__SYMBOL_NAME( \ - typesupport_name, create_service_event_message, \ - package_name, interface_type, service_name) - -#define ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( \ - typesupport_name, package_name, interface_type, service_name) \ - ROSIDL_TYPESUPPORT_INTERFACE__SYMBOL_NAME( \ - typesupport_name, destroy_service_event_message, \ - package_name, interface_type, service_name) - -#endif // ROSIDL_TYPESUPPORT_INTERFACE__MACROS_H_ diff --git a/src/rosidl_typesupport_introspection_c/field_types.h b/src/rosidl_typesupport_introspection_c/field_types.h deleted file mode 100755 index cd336cd3b..000000000 --- a/src/rosidl_typesupport_introspection_c/field_types.h +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2014-2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_INTROSPECTION_C__FIELD_TYPES_H_ -#define ROSIDL_TYPESUPPORT_INTROSPECTION_C__FIELD_TYPES_H_ - -#include - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Possible types for message fields on a ROS message -/// The equivalent OMG IDL and C types of the different fields can be found -/// at http://design.ros2.org/articles/idl_interface_definition.html#type-mapping -enum rosidl_typesupport_introspection_c_field_types -{ - /// Equivalent to float in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_FLOAT = 1, - /// Equivalent to double in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_DOUBLE = 2, - /// Equivalent to long double in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_LONG_DOUBLE = 3, - /// Equivalent to unsigned char in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_CHAR = 4, - /// Equivalent to char16_t in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_WCHAR = 5, - /// Equivalent to _Bool in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_BOOLEAN = 6, - /// Equivalent to unsigned char in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_OCTET = 7, - /// Equivalent to uint8_t in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_UINT8 = 8, - /// Equivalent to int8_t in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_INT8 = 9, - /// Equivalent to uint16_t in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_UINT16 = 10, - /// Equivalent to int16_t in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_INT16 = 11, - /// Equivalent to uint32_t in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_UINT32 = 12, - /// Equivalent to int32_t in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_INT32 = 13, - /// Equivalent to uint64_t in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_UINT64 = 14, - /// Equivalent to int64_t in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_INT64 = 15, - /// Equivalent to char * in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_STRING = 16, - /// Equivalent to char16_t * in C types. - rosidl_typesupport_introspection_c__ROS_TYPE_WSTRING = 17, - - /// An embedded message type. - rosidl_typesupport_introspection_c__ROS_TYPE_MESSAGE = 18, - - /// For backward compatibility only. - rosidl_typesupport_introspection_c__ROS_TYPE_FLOAT32 = 1, - /// For backward compatibility only. - rosidl_typesupport_introspection_c__ROS_TYPE_FLOAT64 = 2, - /// For backward compatibility only. - rosidl_typesupport_introspection_c__ROS_TYPE_BOOL = 6, - /// For backward compatibility only. - rosidl_typesupport_introspection_c__ROS_TYPE_BYTE = 7 -}; - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_TYPESUPPORT_INTROSPECTION_C__FIELD_TYPES_H_ diff --git a/src/rosidl_typesupport_introspection_c/identifier.h b/src/rosidl_typesupport_introspection_c/identifier.h deleted file mode 100755 index 32f545536..000000000 --- a/src/rosidl_typesupport_introspection_c/identifier.h +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2014-2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_INTROSPECTION_C__IDENTIFIER_H_ -#define ROSIDL_TYPESUPPORT_INTROSPECTION_C__IDENTIFIER_H_ - -#include "rosidl_typesupport_introspection_c/visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// String identifying the typesupport introspection implementation in use. -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC -extern const char * rosidl_typesupport_introspection_c__identifier; - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_TYPESUPPORT_INTROSPECTION_C__IDENTIFIER_H_ diff --git a/src/rosidl_typesupport_introspection_c/message_introspection.h b/src/rosidl_typesupport_introspection_c/message_introspection.h deleted file mode 100755 index 63f3467d4..000000000 --- a/src/rosidl_typesupport_introspection_c/message_introspection.h +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2014-2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_INTROSPECTION_C__MESSAGE_INTROSPECTION_H_ -#define ROSIDL_TYPESUPPORT_INTROSPECTION_C__MESSAGE_INTROSPECTION_H_ - -#include -#include -#include - -#include "rosidl_runtime_c/message_initialization.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/type_hash.h" - -#include "rosidl_typesupport_introspection_c/visibility_control.h" - -/// Structure used to describe a single field of an interface type. -typedef struct rosidl_typesupport_introspection_c__MessageMember_s -{ - /// The name of the field. - const char * name_; - /// The type of the field as a value of the field types enum - /// rosidl_typesupport_introspection_c_field_types. - /// e.g. rosidl_typesupport_introspection_c__ROS_TYPE_FLOAT - uint8_t type_id_; - /// If the field is a string, the upper bound on the length of the string. - size_t string_upper_bound_; - /// If the type_id_ value is rosidl_typesupport_introspection_c__ROS_TYPE_MESSAGE, - /// this points to an array describing the fields of the sub-interface. - const rosidl_message_type_support_t * members_; - /// True if this field is annotated as `@key`, false otherwise. - bool is_key_; - /// True if this field is an array type, false if it is any other type. An - /// array has the same value for / type_id_. - bool is_array_; - /// If is_array_ is true, this contains the number of members in the array. - size_t array_size_; - /// If is_array_ is true, this specifies if the array has a maximum size. If it is true, the - /// value in array_size_ is the maximum size. - bool is_upper_bound_; - /// The bytes into the interface's in-memory representation that this field can be found at. - uint32_t offset_; - /// If the interface has a default value, this points to it. - const void * default_value_; - /// If is_array_ is true, a pointer to a function that gives the size of one member of the array. - size_t (* size_function)(const void *); - /// If is_array_ is true, a pointer to a function that gives a const pointer to the member of the - /// array indicated by index. - const void * (*get_const_function)(const void *, size_t index); - /// If is_array_ is true, a pointer to a function that gives a pointer to the member of the - /// array indicated by index. - void * (*get_function)(void *, size_t index); - /// Pointer to a function that fetches (i.e. copies) an item from - /// an array or sequence member. It takes a pointer to the member, - /// an index (which is assumed to be valid), and a pointer to a - /// pre-allocated value (which is assumed to be of the correct type). - /// - /// Available for array and sequence members. - void (* fetch_function)(const void *, size_t index, void *); - /// Pointer to a function that assigns (i.e. copies) a value to an - /// item in an array or sequence member. It takes a pointer to the - /// member, an index (which is assumed to be valid), and a pointer - /// to an initialized value (which is assumed to be of the correct - /// type). - /// - /// Available for array and sequence members. - void (* assign_function)(void *, size_t index, const void *); - /// If is_array_ is true, a pointer to a function that resizes the array. - bool (* resize_function)(void *, size_t size); -} rosidl_typesupport_introspection_c__MessageMember; - -/// Structure used to describe all fields of a single interface type. -typedef struct rosidl_typesupport_introspection_c__MessageMembers_s -{ - /// The namespace in which the interface resides, e.g. "example_messages__msg" for - /// example_messages/msg - const char * message_namespace_; - /// The name of the interface, e.g. "Int16" - const char * message_name_; - /// The number of fields in the interface - uint32_t member_count_; - /// The size of the interface structure in memory - size_t size_of_; - /// A boolean value indicating if there are any members annotated as `@key` in the structure. - bool has_any_key_member_; - /// A pointer to the array that describes each field of the interface - const rosidl_typesupport_introspection_c__MessageMember * members_; - /// The function used to initialise the interface's in-memory representation - void (* init_function)(void *, enum rosidl_runtime_c__message_initialization); - /// The function used to clean up the interface's in-memory representation - void (* fini_function)(void *); -} rosidl_typesupport_introspection_c__MessageMembers; - -#endif // ROSIDL_TYPESUPPORT_INTROSPECTION_C__MESSAGE_INTROSPECTION_H_ diff --git a/src/rosidl_typesupport_introspection_c/service_introspection.h b/src/rosidl_typesupport_introspection_c/service_introspection.h deleted file mode 100755 index ea57dffd6..000000000 --- a/src/rosidl_typesupport_introspection_c/service_introspection.h +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_INTROSPECTION_C__SERVICE_INTROSPECTION_H_ -#define ROSIDL_TYPESUPPORT_INTROSPECTION_C__SERVICE_INTROSPECTION_H_ - -#include -#include - -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/visibility_control.h" - -#include "rosidl_typesupport_introspection_c/message_introspection.h" - -/// This struct provides introspection information for one service definition. -/// A service is comprised of two interfaces: the request and the response. -typedef struct rosidl_typesupport_introspection_c__ServiceMembers_s -{ - /// The namespace in which the service resides, e.g. "example_messages__srv" for - /// example_messages/srv - const char * service_namespace_; - /// The name of the service, e.g. "AddTwoInts" - const char * service_name_; - /// A pointer to the introspection information structure for the request interface. - const rosidl_typesupport_introspection_c__MessageMembers * request_members_; - /// A pointer to the introspection information structure for the response interface. - const rosidl_typesupport_introspection_c__MessageMembers * response_members_; - /// A pointer to the introspection information structure for the event interface. - const rosidl_typesupport_introspection_c__MessageMembers * event_members_; -} rosidl_typesupport_introspection_c__ServiceMembers; - -#endif // ROSIDL_TYPESUPPORT_INTROSPECTION_C__SERVICE_INTROSPECTION_H_ diff --git a/src/rosidl_typesupport_introspection_c/visibility_control.h b/src/rosidl_typesupport_introspection_c/visibility_control.h deleted file mode 100755 index c0a3ae094..000000000 --- a/src/rosidl_typesupport_introspection_c/visibility_control.h +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT - #endif - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_LOCAL -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_LOCAL - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/rosidl_typesupport_microxrcedds_c/identifier.h b/src/rosidl_typesupport_microxrcedds_c/identifier.h deleted file mode 100755 index 3c3d3a97f..000000000 --- a/src/rosidl_typesupport_microxrcedds_c/identifier.h +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__IDENTIFIER_H_ -#define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__IDENTIFIER_H_ - -#include "rosidl_typesupport_microxrcedds_c/visibility_control.h" - -#define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__IDENTIFIER_VALUE "rosidl_typesupport_microxrcedds_c" - -extern ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC -const char * rosidl_typesupport_microxrcedds_c__identifier; - - -#endif // ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__IDENTIFIER_H_ diff --git a/src/rosidl_typesupport_microxrcedds_c/message_type_support.h b/src/rosidl_typesupport_microxrcedds_c/message_type_support.h deleted file mode 100755 index d9f7bb268..000000000 --- a/src/rosidl_typesupport_microxrcedds_c/message_type_support.h +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__MESSAGE_TYPE_SUPPORT_H_ -#define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__MESSAGE_TYPE_SUPPORT_H_ - -#include "rosidl_runtime_c/message_type_support_struct.h" - -#include - -typedef struct message_type_support_callbacks_t -{ - const char * message_namespace_; - const char * message_name_; - - // Function for message serialization - bool (* cdr_serialize)( - const void * untyped_ros_message, - ucdrBuffer * cdr); - - // Function for message deserialization - bool (* cdr_deserialize)( - ucdrBuffer * cdr, - void * untyped_ros_message); - - // Function to get size of data - uint32_t (* get_serialized_size)( - const void *); - - // Function to get size of data with initial alignment - size_t (* get_serialized_size_with_initial_alignment)( - const void *, - size_t); - - // Function for type support initialization - size_t (* max_serialized_size)(); - -} message_type_support_callbacks_t; - -#endif // ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__MESSAGE_TYPE_SUPPORT_H_ diff --git a/src/rosidl_typesupport_microxrcedds_c/service_type_support.h b/src/rosidl_typesupport_microxrcedds_c/service_type_support.h deleted file mode 100755 index b9fc303f4..000000000 --- a/src/rosidl_typesupport_microxrcedds_c/service_type_support.h +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__SERVICE_TYPE_SUPPORT_H_ -#define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__SERVICE_TYPE_SUPPORT_H_ - -#include -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "./message_type_support.h" - -typedef struct service_type_support_callbacks_t -{ - const char * package_name_; - const char * service_name_; - - const rosidl_message_type_support_t * (* request_members_)(); - const rosidl_message_type_support_t * (* response_members_)(); - -} service_type_support_callbacks_t; - -#endif // ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__SERVICE_TYPE_SUPPORT_H_ diff --git a/src/rosidl_typesupport_microxrcedds_c/visibility_control.h b/src/rosidl_typesupport_microxrcedds_c/visibility_control.h deleted file mode 100755 index add675009..000000000 --- a/src/rosidl_typesupport_microxrcedds_c/visibility_control.h +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT - #endif - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_LOCAL -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_LOCAL - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/sensor_msgs/msg/battery_state.h b/src/sensor_msgs/msg/battery_state.h deleted file mode 100755 index 8e07af6dd..000000000 --- a/src/sensor_msgs/msg/battery_state.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/BatteryState.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__BATTERY_STATE_H_ -#define SENSOR_MSGS__MSG__BATTERY_STATE_H_ - -#include "sensor_msgs/msg/detail/battery_state__struct.h" -#include "sensor_msgs/msg/detail/battery_state__functions.h" -#include "sensor_msgs/msg/detail/battery_state__type_support.h" - -#endif // SENSOR_MSGS__MSG__BATTERY_STATE_H_ diff --git a/src/sensor_msgs/msg/camera_info.h b/src/sensor_msgs/msg/camera_info.h deleted file mode 100755 index 34cbcf4dd..000000000 --- a/src/sensor_msgs/msg/camera_info.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/CameraInfo.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__CAMERA_INFO_H_ -#define SENSOR_MSGS__MSG__CAMERA_INFO_H_ - -#include "sensor_msgs/msg/detail/camera_info__struct.h" -#include "sensor_msgs/msg/detail/camera_info__functions.h" -#include "sensor_msgs/msg/detail/camera_info__type_support.h" - -#endif // SENSOR_MSGS__MSG__CAMERA_INFO_H_ diff --git a/src/sensor_msgs/msg/channel_float32.h b/src/sensor_msgs/msg/channel_float32.h deleted file mode 100755 index 012537dbb..000000000 --- a/src/sensor_msgs/msg/channel_float32.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/ChannelFloat32.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__CHANNEL_FLOAT32_H_ -#define SENSOR_MSGS__MSG__CHANNEL_FLOAT32_H_ - -#include "sensor_msgs/msg/detail/channel_float32__struct.h" -#include "sensor_msgs/msg/detail/channel_float32__functions.h" -#include "sensor_msgs/msg/detail/channel_float32__type_support.h" - -#endif // SENSOR_MSGS__MSG__CHANNEL_FLOAT32_H_ diff --git a/src/sensor_msgs/msg/compressed_image.h b/src/sensor_msgs/msg/compressed_image.h deleted file mode 100755 index ae86f3ad4..000000000 --- a/src/sensor_msgs/msg/compressed_image.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/CompressedImage.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__COMPRESSED_IMAGE_H_ -#define SENSOR_MSGS__MSG__COMPRESSED_IMAGE_H_ - -#include "sensor_msgs/msg/detail/compressed_image__struct.h" -#include "sensor_msgs/msg/detail/compressed_image__functions.h" -#include "sensor_msgs/msg/detail/compressed_image__type_support.h" - -#endif // SENSOR_MSGS__MSG__COMPRESSED_IMAGE_H_ diff --git a/src/sensor_msgs/msg/detail/battery_state__functions.h b/src/sensor_msgs/msg/detail/battery_state__functions.h deleted file mode 100755 index 5824f3934..000000000 --- a/src/sensor_msgs/msg/detail/battery_state__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/BatteryState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/battery_state.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__BATTERY_STATE__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__BATTERY_STATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/battery_state__struct.h" - -/// Initialize msg/BatteryState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__BatteryState - * )) before or use - * sensor_msgs__msg__BatteryState__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__BatteryState__init(sensor_msgs__msg__BatteryState * msg); - -/// Finalize msg/BatteryState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__BatteryState__fini(sensor_msgs__msg__BatteryState * msg); - -/// Create msg/BatteryState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__BatteryState__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__BatteryState * -sensor_msgs__msg__BatteryState__create(void); - -/// Destroy msg/BatteryState message. -/** - * It calls - * sensor_msgs__msg__BatteryState__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__BatteryState__destroy(sensor_msgs__msg__BatteryState * msg); - -/// Check for msg/BatteryState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__BatteryState__are_equal(const sensor_msgs__msg__BatteryState * lhs, const sensor_msgs__msg__BatteryState * rhs); - -/// Copy a msg/BatteryState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__BatteryState__copy( - const sensor_msgs__msg__BatteryState * input, - sensor_msgs__msg__BatteryState * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__BatteryState__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__BatteryState__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__BatteryState__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__BatteryState__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/BatteryState messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__BatteryState__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__BatteryState__Sequence__init(sensor_msgs__msg__BatteryState__Sequence * array, size_t size); - -/// Finalize array of msg/BatteryState messages. -/** - * It calls - * sensor_msgs__msg__BatteryState__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__BatteryState__Sequence__fini(sensor_msgs__msg__BatteryState__Sequence * array); - -/// Create array of msg/BatteryState messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__BatteryState__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__BatteryState__Sequence * -sensor_msgs__msg__BatteryState__Sequence__create(size_t size); - -/// Destroy array of msg/BatteryState messages. -/** - * It calls - * sensor_msgs__msg__BatteryState__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__BatteryState__Sequence__destroy(sensor_msgs__msg__BatteryState__Sequence * array); - -/// Check for msg/BatteryState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__BatteryState__Sequence__are_equal(const sensor_msgs__msg__BatteryState__Sequence * lhs, const sensor_msgs__msg__BatteryState__Sequence * rhs); - -/// Copy an array of msg/BatteryState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__BatteryState__Sequence__copy( - const sensor_msgs__msg__BatteryState__Sequence * input, - sensor_msgs__msg__BatteryState__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__BATTERY_STATE__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/battery_state__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/battery_state__rosidl_typesupport_introspection_c.h deleted file mode 100755 index e6896b83b..000000000 --- a/src/sensor_msgs/msg/detail/battery_state__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/BatteryState.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__BATTERY_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__BATTERY_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, BatteryState)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__BATTERY_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/battery_state__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/battery_state__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index d08f45071..000000000 --- a/src/sensor_msgs/msg/detail/battery_state__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/BatteryState.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__BATTERY_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__BATTERY_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__BatteryState( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__BatteryState( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, BatteryState)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__BATTERY_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/battery_state__struct.h b/src/sensor_msgs/msg/detail/battery_state__struct.h deleted file mode 100755 index fc4016ccf..000000000 --- a/src/sensor_msgs/msg/detail/battery_state__struct.h +++ /dev/null @@ -1,260 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/BatteryState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/battery_state.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__BATTERY_STATE__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__BATTERY_STATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'POWER_SUPPLY_STATUS_UNKNOWN'. -/** - * Constants are chosen to match the enums in the linux kernel - * defined in include/linux/power_supply.h as of version 3.7 - * The one difference is for style reasons the constants are - * all uppercase not mixed case. - * Power supply status constants - */ -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_STATUS_UNKNOWN = 0 -}; - -/// Constant 'POWER_SUPPLY_STATUS_CHARGING'. -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_STATUS_CHARGING = 1 -}; - -/// Constant 'POWER_SUPPLY_STATUS_DISCHARGING'. -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_STATUS_DISCHARGING = 2 -}; - -/// Constant 'POWER_SUPPLY_STATUS_NOT_CHARGING'. -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_STATUS_NOT_CHARGING = 3 -}; - -/// Constant 'POWER_SUPPLY_STATUS_FULL'. -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_STATUS_FULL = 4 -}; - -/// Constant 'POWER_SUPPLY_HEALTH_UNKNOWN'. -/** - * Power supply health constants - */ -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_HEALTH_UNKNOWN = 0 -}; - -/// Constant 'POWER_SUPPLY_HEALTH_GOOD'. -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_HEALTH_GOOD = 1 -}; - -/// Constant 'POWER_SUPPLY_HEALTH_OVERHEAT'. -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_HEALTH_OVERHEAT = 2 -}; - -/// Constant 'POWER_SUPPLY_HEALTH_DEAD'. -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_HEALTH_DEAD = 3 -}; - -/// Constant 'POWER_SUPPLY_HEALTH_OVERVOLTAGE'. -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_HEALTH_OVERVOLTAGE = 4 -}; - -/// Constant 'POWER_SUPPLY_HEALTH_UNSPEC_FAILURE'. -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_HEALTH_UNSPEC_FAILURE = 5 -}; - -/// Constant 'POWER_SUPPLY_HEALTH_COLD'. -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_HEALTH_COLD = 6 -}; - -/// Constant 'POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE'. -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE = 7 -}; - -/// Constant 'POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE'. -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE = 8 -}; - -/// Constant 'POWER_SUPPLY_TECHNOLOGY_UNKNOWN'. -/** - * Power supply technology (chemistry) constants - * Unknown battery technology - */ -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_TECHNOLOGY_UNKNOWN = 0 -}; - -/// Constant 'POWER_SUPPLY_TECHNOLOGY_NIMH'. -/** - * Nickel-Metal Hydride battery - */ -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_TECHNOLOGY_NIMH = 1 -}; - -/// Constant 'POWER_SUPPLY_TECHNOLOGY_LION'. -/** - * Lithium-ion battery - */ -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_TECHNOLOGY_LION = 2 -}; - -/// Constant 'POWER_SUPPLY_TECHNOLOGY_LIPO'. -/** - * Lithium Polymer battery - */ -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_TECHNOLOGY_LIPO = 3 -}; - -/// Constant 'POWER_SUPPLY_TECHNOLOGY_LIFE'. -/** - * Lithium Iron Phosphate battery - */ -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_TECHNOLOGY_LIFE = 4 -}; - -/// Constant 'POWER_SUPPLY_TECHNOLOGY_NICD'. -/** - * Nickel-Cadmium battery - */ -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_TECHNOLOGY_NICD = 5 -}; - -/// Constant 'POWER_SUPPLY_TECHNOLOGY_LIMN'. -/** - * Lithium Manganese Dioxide battery - */ -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_TECHNOLOGY_LIMN = 6 -}; - -/// Constant 'POWER_SUPPLY_TECHNOLOGY_TERNARY'. -/** - * Ternary Lithium battery - */ -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_TECHNOLOGY_TERNARY = 7 -}; - -/// Constant 'POWER_SUPPLY_TECHNOLOGY_VRLA'. -/** - * Valve Regulated Lead-Acid battery - */ -enum -{ - sensor_msgs__msg__BatteryState__POWER_SUPPLY_TECHNOLOGY_VRLA = 8 -}; - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'cell_voltage' -// Member 'cell_temperature' -#include "rosidl_runtime_c/primitives_sequence.h" -// Member 'location' -// Member 'serial_number' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/BatteryState in the package sensor_msgs. -typedef struct sensor_msgs__msg__BatteryState -{ - std_msgs__msg__Header header; - /// Voltage in Volts (Mandatory) - float voltage; - /// Temperature in Degrees Celsius (If unmeasured NaN) - float temperature; - /// Negative when discharging (A) (If unmeasured NaN) - float current; - /// Current charge in Ah (If unmeasured NaN) - float charge; - /// Capacity in Ah (last full capacity) (If unmeasured NaN) - float capacity; - /// Capacity in Ah (design capacity) (If unmeasured NaN) - float design_capacity; - /// Charge percentage on 0 to 1 range (If unmeasured NaN) - float percentage; - /// The charging status as reported. Values defined above - uint8_t power_supply_status; - /// The battery health metric. Values defined above - uint8_t power_supply_health; - /// The battery chemistry. Values defined above - uint8_t power_supply_technology; - /// True if the battery is present - bool present; - /// An array of individual cell voltages for each cell in the pack - /// If individual voltages unknown but number of cells known set each to NaN - rosidl_runtime_c__float__Sequence cell_voltage; - /// An array of individual cell temperatures for each cell in the pack - /// If individual temperatures unknown but number of cells known set each to NaN - rosidl_runtime_c__float__Sequence cell_temperature; - /// The location into which the battery is inserted. (slot number or plug) - rosidl_runtime_c__String location; - /// The best approximation of the battery serial number - rosidl_runtime_c__String serial_number; -} sensor_msgs__msg__BatteryState; - -// Struct for a sequence of sensor_msgs__msg__BatteryState. -typedef struct sensor_msgs__msg__BatteryState__Sequence -{ - sensor_msgs__msg__BatteryState * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__BatteryState__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__BATTERY_STATE__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/battery_state__type_support.h b/src/sensor_msgs/msg/detail/battery_state__type_support.h deleted file mode 100755 index 99df8c9ae..000000000 --- a/src/sensor_msgs/msg/detail/battery_state__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/BatteryState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/battery_state.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__BATTERY_STATE__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__BATTERY_STATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - BatteryState -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__BATTERY_STATE__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/camera_info__functions.h b/src/sensor_msgs/msg/detail/camera_info__functions.h deleted file mode 100755 index bb2b4a303..000000000 --- a/src/sensor_msgs/msg/detail/camera_info__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/CameraInfo.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/camera_info.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__CAMERA_INFO__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__CAMERA_INFO__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/camera_info__struct.h" - -/// Initialize msg/CameraInfo message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__CameraInfo - * )) before or use - * sensor_msgs__msg__CameraInfo__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__CameraInfo__init(sensor_msgs__msg__CameraInfo * msg); - -/// Finalize msg/CameraInfo message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__CameraInfo__fini(sensor_msgs__msg__CameraInfo * msg); - -/// Create msg/CameraInfo message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__CameraInfo__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__CameraInfo * -sensor_msgs__msg__CameraInfo__create(void); - -/// Destroy msg/CameraInfo message. -/** - * It calls - * sensor_msgs__msg__CameraInfo__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__CameraInfo__destroy(sensor_msgs__msg__CameraInfo * msg); - -/// Check for msg/CameraInfo message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__CameraInfo__are_equal(const sensor_msgs__msg__CameraInfo * lhs, const sensor_msgs__msg__CameraInfo * rhs); - -/// Copy a msg/CameraInfo message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__CameraInfo__copy( - const sensor_msgs__msg__CameraInfo * input, - sensor_msgs__msg__CameraInfo * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__CameraInfo__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__CameraInfo__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__CameraInfo__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__CameraInfo__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/CameraInfo messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__CameraInfo__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__CameraInfo__Sequence__init(sensor_msgs__msg__CameraInfo__Sequence * array, size_t size); - -/// Finalize array of msg/CameraInfo messages. -/** - * It calls - * sensor_msgs__msg__CameraInfo__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__CameraInfo__Sequence__fini(sensor_msgs__msg__CameraInfo__Sequence * array); - -/// Create array of msg/CameraInfo messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__CameraInfo__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__CameraInfo__Sequence * -sensor_msgs__msg__CameraInfo__Sequence__create(size_t size); - -/// Destroy array of msg/CameraInfo messages. -/** - * It calls - * sensor_msgs__msg__CameraInfo__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__CameraInfo__Sequence__destroy(sensor_msgs__msg__CameraInfo__Sequence * array); - -/// Check for msg/CameraInfo message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__CameraInfo__Sequence__are_equal(const sensor_msgs__msg__CameraInfo__Sequence * lhs, const sensor_msgs__msg__CameraInfo__Sequence * rhs); - -/// Copy an array of msg/CameraInfo messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__CameraInfo__Sequence__copy( - const sensor_msgs__msg__CameraInfo__Sequence * input, - sensor_msgs__msg__CameraInfo__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__CAMERA_INFO__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/camera_info__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/camera_info__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 80266d473..000000000 --- a/src/sensor_msgs/msg/detail/camera_info__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/CameraInfo.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__CAMERA_INFO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__CAMERA_INFO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, CameraInfo)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__CAMERA_INFO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/camera_info__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/camera_info__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 3ceffc3c3..000000000 --- a/src/sensor_msgs/msg/detail/camera_info__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/CameraInfo.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__CAMERA_INFO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__CAMERA_INFO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__CameraInfo( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__CameraInfo( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, CameraInfo)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__CAMERA_INFO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/camera_info__struct.h b/src/sensor_msgs/msg/detail/camera_info__struct.h deleted file mode 100755 index cb5023838..000000000 --- a/src/sensor_msgs/msg/detail/camera_info__struct.h +++ /dev/null @@ -1,171 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/CameraInfo.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/camera_info.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__CAMERA_INFO__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__CAMERA_INFO__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'distortion_model' -#include "rosidl_runtime_c/string.h" -// Member 'd' -#include "rosidl_runtime_c/primitives_sequence.h" -// Member 'roi' -#include "sensor_msgs/msg/detail/region_of_interest__struct.h" - -/// Struct defined in msg/CameraInfo in the package sensor_msgs. -/** - * This message defines meta information for a camera. It should be in a - * camera namespace on topic "camera_info" and accompanied by up to five - * image topics named: - * - * image_raw - raw data from the camera driver, possibly Bayer encoded - * image - monochrome, distorted - * image_color - color, distorted - * image_rect - monochrome, rectified - * image_rect_color - color, rectified - * - * The image_pipeline contains packages (image_proc, stereo_image_proc) - * for producing the four processed image topics from image_raw and - * camera_info. The meaning of the camera parameters are described in - * detail at http://www.ros.org/wiki/image_pipeline/CameraInfo. - * - * The image_geometry package provides a user-friendly interface to - * common operations using this meta information. If you want to, e.g., - * project a 3d point into image coordinates, we strongly recommend - * using image_geometry. - * - * If the camera is uncalibrated, the matrices D, K, R, P should be left - * zeroed out. In particular, clients may assume that K == 0.0 - * indicates an uncalibrated camera. - */ -typedef struct sensor_msgs__msg__CameraInfo -{ - /// Image acquisition info # - /// - /// Time of image acquisition, camera coordinate frame ID - /// Header timestamp should be acquisition time of image - /// Header frame_id should be optical frame of camera - /// origin of frame should be optical center of camera - /// +x should point to the right in the image - /// +y should point down in the image - /// +z should point into the plane of the image - std_msgs__msg__Header header; - /// Calibration Parameters # - /// - /// These are fixed during camera calibration. Their values will be the # - /// same in all messages until the camera is recalibrated. Note that # - /// self-calibrating systems may "recalibrate" frequently. # - /// # - /// The internal parameters can be used to warp a raw (distorted) image # - /// to: # - /// 1. An undistorted image (requires D and K) # - /// 2. A rectified image (requires D, K, R) # - /// The projection matrix P projects 3D points into the rectified image.# - /// - /// The image dimensions with which the camera was calibrated. - /// Normally this will be the full camera resolution in pixels. - uint32_t height; - uint32_t width; - /// The distortion model used. Supported models are listed in - /// sensor_msgs/distortion_models.hpp. For most cameras, "plumb_bob" - a - /// simple model of radial and tangential distortion - is sufficent. - rosidl_runtime_c__String distortion_model; - /// The distortion parameters, size depending on the distortion model. - /// For "plumb_bob", the 5 parameters are: (k1, k2, t1, t2, k3). - rosidl_runtime_c__double__Sequence d; - /// Intrinsic camera matrix for the raw (distorted) images. - /// [fx 0 cx] - /// K = [ 0 fy cy] - /// [ 0 0 1] - /// Projects 3D points in the camera coordinate frame to 2D pixel - /// coordinates using the focal lengths (fx, fy) and principal point - /// (cx, cy). - /// 3x3 row-major matrix - double k[9]; - /// Rectification matrix (stereo cameras only) - /// A rotation matrix aligning the camera coordinate system to the ideal - /// stereo image plane so that epipolar lines in both stereo images are - /// parallel. - /// 3x3 row-major matrix - double r[9]; - /// Projection/camera matrix - /// [fx' 0 cx' Tx] - /// P = [ 0 fy' cy' Ty] - /// [ 0 0 1 0] - /// By convention, this matrix specifies the intrinsic (camera) matrix - /// of the processed (rectified) image. That is, the left 3x3 portion - /// is the normal camera intrinsic matrix for the rectified image. - /// It projects 3D points in the camera coordinate frame to 2D pixel - /// coordinates using the focal lengths (fx', fy') and principal point - /// (cx', cy') - these may differ from the values in K. - /// For monocular cameras, Tx = Ty = 0. Normally, monocular cameras will - /// also have R = the identity and P[1:3,1:3] = K. - /// For a stereo pair, the fourth column [Tx Ty 0]' is related to the - /// position of the optical center of the second camera in the first - /// camera's frame. We assume Tz = 0 so both cameras are in the same - /// stereo image plane. The first camera always has Tx = Ty = 0. For - /// the right (second) camera of a horizontal stereo pair, Ty = 0 and - /// Tx = -fx' * B, where B is the baseline between the cameras. - /// Given a 3D point [X Y Z]', the projection (x, y) of the point onto - /// the rectified image is given by: - /// [u v w]' = P * [X Y Z 1]' - /// x = u / w - /// y = v / w - /// This holds for both images of a stereo pair. - /// 3x4 row-major matrix - double p[12]; - /// Operational Parameters # - /// - /// These define the image region actually captured by the camera # - /// driver. Although they affect the geometry of the output image, they # - /// may be changed freely without recalibrating the camera. # - /// - /// Binning refers here to any camera setting which combines rectangular - /// neighborhoods of pixels into larger "super-pixels." It reduces the - /// resolution of the output image to - /// (width / binning_x) x (height / binning_y). - /// The default values binning_x = binning_y = 0 is considered the same - /// as binning_x = binning_y = 1 (no subsampling). - uint32_t binning_x; - uint32_t binning_y; - /// Region of interest (subwindow of full camera resolution), given in - /// full resolution (unbinned) image coordinates. A particular ROI - /// always denotes the same window of pixels on the camera sensor, - /// regardless of binning settings. - /// The default setting of roi (all values 0) is considered the same as - /// full resolution (roi.width = width, roi.height = height). - sensor_msgs__msg__RegionOfInterest roi; -} sensor_msgs__msg__CameraInfo; - -// Struct for a sequence of sensor_msgs__msg__CameraInfo. -typedef struct sensor_msgs__msg__CameraInfo__Sequence -{ - sensor_msgs__msg__CameraInfo * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__CameraInfo__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__CAMERA_INFO__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/camera_info__type_support.h b/src/sensor_msgs/msg/detail/camera_info__type_support.h deleted file mode 100755 index 88e6c5e4c..000000000 --- a/src/sensor_msgs/msg/detail/camera_info__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/CameraInfo.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/camera_info.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__CAMERA_INFO__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__CAMERA_INFO__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - CameraInfo -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__CAMERA_INFO__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/channel_float32__functions.h b/src/sensor_msgs/msg/detail/channel_float32__functions.h deleted file mode 100755 index e4d37b15b..000000000 --- a/src/sensor_msgs/msg/detail/channel_float32__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/ChannelFloat32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/channel_float32.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__CHANNEL_FLOAT32__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__CHANNEL_FLOAT32__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/channel_float32__struct.h" - -/// Initialize msg/ChannelFloat32 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__ChannelFloat32 - * )) before or use - * sensor_msgs__msg__ChannelFloat32__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__ChannelFloat32__init(sensor_msgs__msg__ChannelFloat32 * msg); - -/// Finalize msg/ChannelFloat32 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__ChannelFloat32__fini(sensor_msgs__msg__ChannelFloat32 * msg); - -/// Create msg/ChannelFloat32 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__ChannelFloat32__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__ChannelFloat32 * -sensor_msgs__msg__ChannelFloat32__create(void); - -/// Destroy msg/ChannelFloat32 message. -/** - * It calls - * sensor_msgs__msg__ChannelFloat32__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__ChannelFloat32__destroy(sensor_msgs__msg__ChannelFloat32 * msg); - -/// Check for msg/ChannelFloat32 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__ChannelFloat32__are_equal(const sensor_msgs__msg__ChannelFloat32 * lhs, const sensor_msgs__msg__ChannelFloat32 * rhs); - -/// Copy a msg/ChannelFloat32 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__ChannelFloat32__copy( - const sensor_msgs__msg__ChannelFloat32 * input, - sensor_msgs__msg__ChannelFloat32 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__ChannelFloat32__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__ChannelFloat32__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__ChannelFloat32__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__ChannelFloat32__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/ChannelFloat32 messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__ChannelFloat32__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__ChannelFloat32__Sequence__init(sensor_msgs__msg__ChannelFloat32__Sequence * array, size_t size); - -/// Finalize array of msg/ChannelFloat32 messages. -/** - * It calls - * sensor_msgs__msg__ChannelFloat32__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__ChannelFloat32__Sequence__fini(sensor_msgs__msg__ChannelFloat32__Sequence * array); - -/// Create array of msg/ChannelFloat32 messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__ChannelFloat32__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__ChannelFloat32__Sequence * -sensor_msgs__msg__ChannelFloat32__Sequence__create(size_t size); - -/// Destroy array of msg/ChannelFloat32 messages. -/** - * It calls - * sensor_msgs__msg__ChannelFloat32__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__ChannelFloat32__Sequence__destroy(sensor_msgs__msg__ChannelFloat32__Sequence * array); - -/// Check for msg/ChannelFloat32 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__ChannelFloat32__Sequence__are_equal(const sensor_msgs__msg__ChannelFloat32__Sequence * lhs, const sensor_msgs__msg__ChannelFloat32__Sequence * rhs); - -/// Copy an array of msg/ChannelFloat32 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__ChannelFloat32__Sequence__copy( - const sensor_msgs__msg__ChannelFloat32__Sequence * input, - sensor_msgs__msg__ChannelFloat32__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__CHANNEL_FLOAT32__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/channel_float32__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/channel_float32__rosidl_typesupport_introspection_c.h deleted file mode 100755 index f42b58978..000000000 --- a/src/sensor_msgs/msg/detail/channel_float32__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/ChannelFloat32.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__CHANNEL_FLOAT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__CHANNEL_FLOAT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, ChannelFloat32)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__CHANNEL_FLOAT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/channel_float32__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/channel_float32__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 0c2b78b6d..000000000 --- a/src/sensor_msgs/msg/detail/channel_float32__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/ChannelFloat32.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__CHANNEL_FLOAT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__CHANNEL_FLOAT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__ChannelFloat32( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__ChannelFloat32( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, ChannelFloat32)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__CHANNEL_FLOAT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/channel_float32__struct.h b/src/sensor_msgs/msg/detail/channel_float32__struct.h deleted file mode 100755 index 78f21b337..000000000 --- a/src/sensor_msgs/msg/detail/channel_float32__struct.h +++ /dev/null @@ -1,71 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/ChannelFloat32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/channel_float32.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__CHANNEL_FLOAT32__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__CHANNEL_FLOAT32__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'name' -#include "rosidl_runtime_c/string.h" -// Member 'values' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/ChannelFloat32 in the package sensor_msgs. -/** - * This message is used by the PointCloud message to hold optional data - * associated with each point in the cloud. The length of the values - * array should be the same as the length of the points array in the - * PointCloud, and each value should be associated with the corresponding - * point. - * - * Channel names in existing practice include: - * "u", "v" - row and column (respectively) in the left stereo image. - * This is opposite to usual conventions but remains for - * historical reasons. The newer PointCloud2 message has no - * such problem. - * "rgb" - For point clouds produced by color stereo cameras. uint8 - * (R,G,B) values packed into the least significant 24 bits, - * in order. - * "intensity" - laser or pixel intensity. - * "distance" - */ -typedef struct sensor_msgs__msg__ChannelFloat32 -{ - /// The channel name should give semantics of the channel (e.g. - /// "intensity" instead of "value"). - rosidl_runtime_c__String name; - /// The values array should be 1-1 with the elements of the associated - /// PointCloud. - rosidl_runtime_c__float__Sequence values; -} sensor_msgs__msg__ChannelFloat32; - -// Struct for a sequence of sensor_msgs__msg__ChannelFloat32. -typedef struct sensor_msgs__msg__ChannelFloat32__Sequence -{ - sensor_msgs__msg__ChannelFloat32 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__ChannelFloat32__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__CHANNEL_FLOAT32__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/channel_float32__type_support.h b/src/sensor_msgs/msg/detail/channel_float32__type_support.h deleted file mode 100755 index 4ca683712..000000000 --- a/src/sensor_msgs/msg/detail/channel_float32__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/ChannelFloat32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/channel_float32.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__CHANNEL_FLOAT32__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__CHANNEL_FLOAT32__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - ChannelFloat32 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__CHANNEL_FLOAT32__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/compressed_image__functions.h b/src/sensor_msgs/msg/detail/compressed_image__functions.h deleted file mode 100755 index 53c5961ea..000000000 --- a/src/sensor_msgs/msg/detail/compressed_image__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/CompressedImage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/compressed_image.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__COMPRESSED_IMAGE__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__COMPRESSED_IMAGE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/compressed_image__struct.h" - -/// Initialize msg/CompressedImage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__CompressedImage - * )) before or use - * sensor_msgs__msg__CompressedImage__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__CompressedImage__init(sensor_msgs__msg__CompressedImage * msg); - -/// Finalize msg/CompressedImage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__CompressedImage__fini(sensor_msgs__msg__CompressedImage * msg); - -/// Create msg/CompressedImage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__CompressedImage__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__CompressedImage * -sensor_msgs__msg__CompressedImage__create(void); - -/// Destroy msg/CompressedImage message. -/** - * It calls - * sensor_msgs__msg__CompressedImage__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__CompressedImage__destroy(sensor_msgs__msg__CompressedImage * msg); - -/// Check for msg/CompressedImage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__CompressedImage__are_equal(const sensor_msgs__msg__CompressedImage * lhs, const sensor_msgs__msg__CompressedImage * rhs); - -/// Copy a msg/CompressedImage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__CompressedImage__copy( - const sensor_msgs__msg__CompressedImage * input, - sensor_msgs__msg__CompressedImage * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__CompressedImage__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__CompressedImage__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__CompressedImage__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__CompressedImage__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/CompressedImage messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__CompressedImage__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__CompressedImage__Sequence__init(sensor_msgs__msg__CompressedImage__Sequence * array, size_t size); - -/// Finalize array of msg/CompressedImage messages. -/** - * It calls - * sensor_msgs__msg__CompressedImage__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__CompressedImage__Sequence__fini(sensor_msgs__msg__CompressedImage__Sequence * array); - -/// Create array of msg/CompressedImage messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__CompressedImage__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__CompressedImage__Sequence * -sensor_msgs__msg__CompressedImage__Sequence__create(size_t size); - -/// Destroy array of msg/CompressedImage messages. -/** - * It calls - * sensor_msgs__msg__CompressedImage__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__CompressedImage__Sequence__destroy(sensor_msgs__msg__CompressedImage__Sequence * array); - -/// Check for msg/CompressedImage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__CompressedImage__Sequence__are_equal(const sensor_msgs__msg__CompressedImage__Sequence * lhs, const sensor_msgs__msg__CompressedImage__Sequence * rhs); - -/// Copy an array of msg/CompressedImage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__CompressedImage__Sequence__copy( - const sensor_msgs__msg__CompressedImage__Sequence * input, - sensor_msgs__msg__CompressedImage__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__COMPRESSED_IMAGE__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/compressed_image__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/compressed_image__rosidl_typesupport_introspection_c.h deleted file mode 100755 index f8988dd07..000000000 --- a/src/sensor_msgs/msg/detail/compressed_image__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/CompressedImage.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__COMPRESSED_IMAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__COMPRESSED_IMAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, CompressedImage)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__COMPRESSED_IMAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/compressed_image__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/compressed_image__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 030a2b296..000000000 --- a/src/sensor_msgs/msg/detail/compressed_image__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/CompressedImage.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__COMPRESSED_IMAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__COMPRESSED_IMAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__CompressedImage( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__CompressedImage( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, CompressedImage)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__COMPRESSED_IMAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/compressed_image__struct.h b/src/sensor_msgs/msg/detail/compressed_image__struct.h deleted file mode 100755 index f6b9c9dc5..000000000 --- a/src/sensor_msgs/msg/detail/compressed_image__struct.h +++ /dev/null @@ -1,92 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/CompressedImage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/compressed_image.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__COMPRESSED_IMAGE__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__COMPRESSED_IMAGE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'format' -#include "rosidl_runtime_c/string.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/CompressedImage in the package sensor_msgs. -/** - * This message contains a compressed image. - */ -typedef struct sensor_msgs__msg__CompressedImage -{ - /// Header timestamp should be acquisition time of image - /// Header frame_id should be optical frame of camera - /// origin of frame should be optical center of cameara - /// +x should point to the right in the image - /// +y should point down in the image - /// +z should point into to plane of the image - std_msgs__msg__Header header; - /// Specifies the format of the data - /// Acceptable values differ by the image transport used: - /// - compressed_image_transport: - /// ORIG_PIXFMT; CODEC compressed - /// where: - /// - ORIG_PIXFMT is pixel format of the raw image, i.e. - /// the content of sensor_msgs/Image/encoding with - /// values from include/sensor_msgs/image_encodings.h - /// - CODEC is one of [jpeg, png, tiff] - /// - COMPRESSED_PIXFMT is only appended for color images - /// and is the pixel format used by the compression - /// algorithm. Valid values for jpeg encoding are: - /// [bgr8, rgb8]. Valid values for png encoding are: - /// [bgr8, rgb8, bgr16, rgb16]. - /// If the field is empty or does not correspond to the - /// above pattern, the image is treated as bgr8 or mono8 - /// jpeg image (depending on the number of channels). - /// - compressed_depth_image_transport: - /// ORIG_PIXFMT; compressedDepth CODEC - /// where: - /// - ORIG_PIXFMT is pixel format of the raw image, i.e. - /// the content of sensor_msgs/Image/encoding with - /// values from include/sensor_msgs/image_encodings.h - /// It is usually one of [16UC1, 32FC1]. - /// - CODEC is one of [png, rvl] - /// If the field is empty or does not correspond to the - /// above pattern, the image is treated as png image. - /// - Other image transports can store whatever values they - /// need for successful decoding of the image. Refer to - /// documentation of the other transports for details. - rosidl_runtime_c__String format; - /// Compressed image buffer - rosidl_runtime_c__uint8__Sequence data; -} sensor_msgs__msg__CompressedImage; - -// Struct for a sequence of sensor_msgs__msg__CompressedImage. -typedef struct sensor_msgs__msg__CompressedImage__Sequence -{ - sensor_msgs__msg__CompressedImage * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__CompressedImage__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__COMPRESSED_IMAGE__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/compressed_image__type_support.h b/src/sensor_msgs/msg/detail/compressed_image__type_support.h deleted file mode 100755 index 41185f31c..000000000 --- a/src/sensor_msgs/msg/detail/compressed_image__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/CompressedImage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/compressed_image.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__COMPRESSED_IMAGE__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__COMPRESSED_IMAGE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - CompressedImage -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__COMPRESSED_IMAGE__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/fluid_pressure__functions.h b/src/sensor_msgs/msg/detail/fluid_pressure__functions.h deleted file mode 100755 index bdfa459e7..000000000 --- a/src/sensor_msgs/msg/detail/fluid_pressure__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/FluidPressure.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/fluid_pressure.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__FLUID_PRESSURE__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__FLUID_PRESSURE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/fluid_pressure__struct.h" - -/// Initialize msg/FluidPressure message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__FluidPressure - * )) before or use - * sensor_msgs__msg__FluidPressure__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__FluidPressure__init(sensor_msgs__msg__FluidPressure * msg); - -/// Finalize msg/FluidPressure message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__FluidPressure__fini(sensor_msgs__msg__FluidPressure * msg); - -/// Create msg/FluidPressure message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__FluidPressure__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__FluidPressure * -sensor_msgs__msg__FluidPressure__create(void); - -/// Destroy msg/FluidPressure message. -/** - * It calls - * sensor_msgs__msg__FluidPressure__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__FluidPressure__destroy(sensor_msgs__msg__FluidPressure * msg); - -/// Check for msg/FluidPressure message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__FluidPressure__are_equal(const sensor_msgs__msg__FluidPressure * lhs, const sensor_msgs__msg__FluidPressure * rhs); - -/// Copy a msg/FluidPressure message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__FluidPressure__copy( - const sensor_msgs__msg__FluidPressure * input, - sensor_msgs__msg__FluidPressure * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__FluidPressure__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__FluidPressure__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__FluidPressure__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__FluidPressure__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/FluidPressure messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__FluidPressure__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__FluidPressure__Sequence__init(sensor_msgs__msg__FluidPressure__Sequence * array, size_t size); - -/// Finalize array of msg/FluidPressure messages. -/** - * It calls - * sensor_msgs__msg__FluidPressure__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__FluidPressure__Sequence__fini(sensor_msgs__msg__FluidPressure__Sequence * array); - -/// Create array of msg/FluidPressure messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__FluidPressure__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__FluidPressure__Sequence * -sensor_msgs__msg__FluidPressure__Sequence__create(size_t size); - -/// Destroy array of msg/FluidPressure messages. -/** - * It calls - * sensor_msgs__msg__FluidPressure__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__FluidPressure__Sequence__destroy(sensor_msgs__msg__FluidPressure__Sequence * array); - -/// Check for msg/FluidPressure message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__FluidPressure__Sequence__are_equal(const sensor_msgs__msg__FluidPressure__Sequence * lhs, const sensor_msgs__msg__FluidPressure__Sequence * rhs); - -/// Copy an array of msg/FluidPressure messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__FluidPressure__Sequence__copy( - const sensor_msgs__msg__FluidPressure__Sequence * input, - sensor_msgs__msg__FluidPressure__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__FLUID_PRESSURE__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/fluid_pressure__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/fluid_pressure__rosidl_typesupport_introspection_c.h deleted file mode 100755 index ba52fa3e0..000000000 --- a/src/sensor_msgs/msg/detail/fluid_pressure__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/FluidPressure.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__FLUID_PRESSURE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__FLUID_PRESSURE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, FluidPressure)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__FLUID_PRESSURE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/fluid_pressure__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/fluid_pressure__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 6a44b450a..000000000 --- a/src/sensor_msgs/msg/detail/fluid_pressure__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/FluidPressure.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__FLUID_PRESSURE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__FLUID_PRESSURE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__FluidPressure( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__FluidPressure( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, FluidPressure)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__FLUID_PRESSURE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/fluid_pressure__struct.h b/src/sensor_msgs/msg/detail/fluid_pressure__struct.h deleted file mode 100755 index b97bb8bae..000000000 --- a/src/sensor_msgs/msg/detail/fluid_pressure__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/FluidPressure.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/fluid_pressure.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__FLUID_PRESSURE__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__FLUID_PRESSURE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" - -/// Struct defined in msg/FluidPressure in the package sensor_msgs. -/** - * Single pressure reading. This message is appropriate for measuring the - * pressure inside of a fluid (air, water, etc). This also includes - * atmospheric or barometric pressure. - * - * This message is not appropriate for force/pressure contact sensors. - */ -typedef struct sensor_msgs__msg__FluidPressure -{ - /// timestamp of the measurement - /// frame_id is the location of the pressure sensor - std_msgs__msg__Header header; - /// Absolute pressure reading in Pascals. - double fluid_pressure; - /// 0 is interpreted as variance unknown - double variance; -} sensor_msgs__msg__FluidPressure; - -// Struct for a sequence of sensor_msgs__msg__FluidPressure. -typedef struct sensor_msgs__msg__FluidPressure__Sequence -{ - sensor_msgs__msg__FluidPressure * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__FluidPressure__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__FLUID_PRESSURE__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/fluid_pressure__type_support.h b/src/sensor_msgs/msg/detail/fluid_pressure__type_support.h deleted file mode 100755 index f9cd01c9e..000000000 --- a/src/sensor_msgs/msg/detail/fluid_pressure__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/FluidPressure.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/fluid_pressure.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__FLUID_PRESSURE__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__FLUID_PRESSURE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - FluidPressure -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__FLUID_PRESSURE__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/illuminance__functions.h b/src/sensor_msgs/msg/detail/illuminance__functions.h deleted file mode 100755 index df2f8fc99..000000000 --- a/src/sensor_msgs/msg/detail/illuminance__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/Illuminance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/illuminance.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__ILLUMINANCE__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__ILLUMINANCE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/illuminance__struct.h" - -/// Initialize msg/Illuminance message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__Illuminance - * )) before or use - * sensor_msgs__msg__Illuminance__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Illuminance__init(sensor_msgs__msg__Illuminance * msg); - -/// Finalize msg/Illuminance message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Illuminance__fini(sensor_msgs__msg__Illuminance * msg); - -/// Create msg/Illuminance message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__Illuminance__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__Illuminance * -sensor_msgs__msg__Illuminance__create(void); - -/// Destroy msg/Illuminance message. -/** - * It calls - * sensor_msgs__msg__Illuminance__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Illuminance__destroy(sensor_msgs__msg__Illuminance * msg); - -/// Check for msg/Illuminance message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Illuminance__are_equal(const sensor_msgs__msg__Illuminance * lhs, const sensor_msgs__msg__Illuminance * rhs); - -/// Copy a msg/Illuminance message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Illuminance__copy( - const sensor_msgs__msg__Illuminance * input, - sensor_msgs__msg__Illuminance * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__Illuminance__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__Illuminance__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__Illuminance__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__Illuminance__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Illuminance messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__Illuminance__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Illuminance__Sequence__init(sensor_msgs__msg__Illuminance__Sequence * array, size_t size); - -/// Finalize array of msg/Illuminance messages. -/** - * It calls - * sensor_msgs__msg__Illuminance__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Illuminance__Sequence__fini(sensor_msgs__msg__Illuminance__Sequence * array); - -/// Create array of msg/Illuminance messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__Illuminance__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__Illuminance__Sequence * -sensor_msgs__msg__Illuminance__Sequence__create(size_t size); - -/// Destroy array of msg/Illuminance messages. -/** - * It calls - * sensor_msgs__msg__Illuminance__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Illuminance__Sequence__destroy(sensor_msgs__msg__Illuminance__Sequence * array); - -/// Check for msg/Illuminance message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Illuminance__Sequence__are_equal(const sensor_msgs__msg__Illuminance__Sequence * lhs, const sensor_msgs__msg__Illuminance__Sequence * rhs); - -/// Copy an array of msg/Illuminance messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Illuminance__Sequence__copy( - const sensor_msgs__msg__Illuminance__Sequence * input, - sensor_msgs__msg__Illuminance__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__ILLUMINANCE__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/illuminance__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/illuminance__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 3d9bb8dde..000000000 --- a/src/sensor_msgs/msg/detail/illuminance__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/Illuminance.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__ILLUMINANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__ILLUMINANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, Illuminance)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__ILLUMINANCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/illuminance__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/illuminance__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 2c43d6788..000000000 --- a/src/sensor_msgs/msg/detail/illuminance__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/Illuminance.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__ILLUMINANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__ILLUMINANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__Illuminance( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__Illuminance( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, Illuminance)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__ILLUMINANCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/illuminance__struct.h b/src/sensor_msgs/msg/detail/illuminance__struct.h deleted file mode 100755 index bea543893..000000000 --- a/src/sensor_msgs/msg/detail/illuminance__struct.h +++ /dev/null @@ -1,67 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/Illuminance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/illuminance.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__ILLUMINANCE__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__ILLUMINANCE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" - -/// Struct defined in msg/Illuminance in the package sensor_msgs. -/** - * Single photometric illuminance measurement. Light should be assumed to be - * measured along the sensor's x-axis (the area of detection is the y-z plane). - * The illuminance should have a 0 or positive value and be received with - * the sensor's +X axis pointing toward the light source. - * - * Photometric illuminance is the measure of the human eye's sensitivity of the - * intensity of light encountering or passing through a surface. - * - * All other Photometric and Radiometric measurements should not use this message. - * This message cannot represent: - * - Luminous intensity (candela/light source output) - * - Luminance (nits/light output per area) - * - Irradiance (watt/area), etc. - */ -typedef struct sensor_msgs__msg__Illuminance -{ - /// timestamp is the time the illuminance was measured - /// frame_id is the location and direction of the reading - std_msgs__msg__Header header; - /// Measurement of the Photometric Illuminance in Lux. - double illuminance; - /// 0 is interpreted as variance unknown - double variance; -} sensor_msgs__msg__Illuminance; - -// Struct for a sequence of sensor_msgs__msg__Illuminance. -typedef struct sensor_msgs__msg__Illuminance__Sequence -{ - sensor_msgs__msg__Illuminance * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__Illuminance__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__ILLUMINANCE__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/illuminance__type_support.h b/src/sensor_msgs/msg/detail/illuminance__type_support.h deleted file mode 100755 index 73ec9f456..000000000 --- a/src/sensor_msgs/msg/detail/illuminance__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/Illuminance.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/illuminance.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__ILLUMINANCE__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__ILLUMINANCE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - Illuminance -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__ILLUMINANCE__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/image__functions.h b/src/sensor_msgs/msg/detail/image__functions.h deleted file mode 100755 index 5ee4e56da..000000000 --- a/src/sensor_msgs/msg/detail/image__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/Image.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/image.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__IMAGE__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__IMAGE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/image__struct.h" - -/// Initialize msg/Image message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__Image - * )) before or use - * sensor_msgs__msg__Image__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Image__init(sensor_msgs__msg__Image * msg); - -/// Finalize msg/Image message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Image__fini(sensor_msgs__msg__Image * msg); - -/// Create msg/Image message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__Image__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__Image * -sensor_msgs__msg__Image__create(void); - -/// Destroy msg/Image message. -/** - * It calls - * sensor_msgs__msg__Image__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Image__destroy(sensor_msgs__msg__Image * msg); - -/// Check for msg/Image message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Image__are_equal(const sensor_msgs__msg__Image * lhs, const sensor_msgs__msg__Image * rhs); - -/// Copy a msg/Image message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Image__copy( - const sensor_msgs__msg__Image * input, - sensor_msgs__msg__Image * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__Image__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__Image__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__Image__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__Image__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Image messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__Image__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Image__Sequence__init(sensor_msgs__msg__Image__Sequence * array, size_t size); - -/// Finalize array of msg/Image messages. -/** - * It calls - * sensor_msgs__msg__Image__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Image__Sequence__fini(sensor_msgs__msg__Image__Sequence * array); - -/// Create array of msg/Image messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__Image__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__Image__Sequence * -sensor_msgs__msg__Image__Sequence__create(size_t size); - -/// Destroy array of msg/Image messages. -/** - * It calls - * sensor_msgs__msg__Image__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Image__Sequence__destroy(sensor_msgs__msg__Image__Sequence * array); - -/// Check for msg/Image message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Image__Sequence__are_equal(const sensor_msgs__msg__Image__Sequence * lhs, const sensor_msgs__msg__Image__Sequence * rhs); - -/// Copy an array of msg/Image messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Image__Sequence__copy( - const sensor_msgs__msg__Image__Sequence * input, - sensor_msgs__msg__Image__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__IMAGE__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/image__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/image__rosidl_typesupport_introspection_c.h deleted file mode 100755 index bb78e3df0..000000000 --- a/src/sensor_msgs/msg/detail/image__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/Image.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__IMAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__IMAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, Image)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__IMAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/image__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/image__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 413216a90..000000000 --- a/src/sensor_msgs/msg/detail/image__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/Image.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__IMAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__IMAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__Image( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__Image( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, Image)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__IMAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/image__struct.h b/src/sensor_msgs/msg/detail/image__struct.h deleted file mode 100755 index 2ec9dc5b0..000000000 --- a/src/sensor_msgs/msg/detail/image__struct.h +++ /dev/null @@ -1,79 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/Image.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/image.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__IMAGE__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__IMAGE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'encoding' -#include "rosidl_runtime_c/string.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Image in the package sensor_msgs. -/** - * This message contains an uncompressed image - * (0, 0) is at top-left corner of image - */ -typedef struct sensor_msgs__msg__Image -{ - /// Header timestamp should be acquisition time of image - /// Header frame_id should be optical frame of camera - /// origin of frame should be optical center of cameara - /// +x should point to the right in the image - /// +y should point down in the image - /// +z should point into to plane of the image - /// If the frame_id here and the frame_id of the CameraInfo - /// message associated with the image conflict - /// the behavior is undefined - std_msgs__msg__Header header; - /// image height, that is, number of rows - uint32_t height; - /// image width, that is, number of columns - uint32_t width; - /// The legal values for encoding are in file include/sensor_msgs/image_encodings.hpp - /// If you want to standardize a new string format, join - /// ros-users@lists.ros.org and send an email proposing a new encoding. - /// Encoding of pixels -- channel meaning, ordering, size - /// taken from the list of strings in include/sensor_msgs/image_encodings.hpp - rosidl_runtime_c__String encoding; - /// is this data bigendian? - uint8_t is_bigendian; - /// Full row length in bytes - uint32_t step; - /// actual matrix data, size is (step * rows) - rosidl_runtime_c__uint8__Sequence data; -} sensor_msgs__msg__Image; - -// Struct for a sequence of sensor_msgs__msg__Image. -typedef struct sensor_msgs__msg__Image__Sequence -{ - sensor_msgs__msg__Image * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__Image__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__IMAGE__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/image__type_support.h b/src/sensor_msgs/msg/detail/image__type_support.h deleted file mode 100755 index 52a9da0ab..000000000 --- a/src/sensor_msgs/msg/detail/image__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/Image.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/image.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__IMAGE__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__IMAGE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - Image -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__IMAGE__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/imu__functions.h b/src/sensor_msgs/msg/detail/imu__functions.h deleted file mode 100755 index 1695ab1e4..000000000 --- a/src/sensor_msgs/msg/detail/imu__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/Imu.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/imu.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__IMU__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__IMU__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/imu__struct.h" - -/// Initialize msg/Imu message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__Imu - * )) before or use - * sensor_msgs__msg__Imu__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Imu__init(sensor_msgs__msg__Imu * msg); - -/// Finalize msg/Imu message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Imu__fini(sensor_msgs__msg__Imu * msg); - -/// Create msg/Imu message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__Imu__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__Imu * -sensor_msgs__msg__Imu__create(void); - -/// Destroy msg/Imu message. -/** - * It calls - * sensor_msgs__msg__Imu__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Imu__destroy(sensor_msgs__msg__Imu * msg); - -/// Check for msg/Imu message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Imu__are_equal(const sensor_msgs__msg__Imu * lhs, const sensor_msgs__msg__Imu * rhs); - -/// Copy a msg/Imu message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Imu__copy( - const sensor_msgs__msg__Imu * input, - sensor_msgs__msg__Imu * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__Imu__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__Imu__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__Imu__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__Imu__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Imu messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__Imu__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Imu__Sequence__init(sensor_msgs__msg__Imu__Sequence * array, size_t size); - -/// Finalize array of msg/Imu messages. -/** - * It calls - * sensor_msgs__msg__Imu__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Imu__Sequence__fini(sensor_msgs__msg__Imu__Sequence * array); - -/// Create array of msg/Imu messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__Imu__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__Imu__Sequence * -sensor_msgs__msg__Imu__Sequence__create(size_t size); - -/// Destroy array of msg/Imu messages. -/** - * It calls - * sensor_msgs__msg__Imu__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Imu__Sequence__destroy(sensor_msgs__msg__Imu__Sequence * array); - -/// Check for msg/Imu message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Imu__Sequence__are_equal(const sensor_msgs__msg__Imu__Sequence * lhs, const sensor_msgs__msg__Imu__Sequence * rhs); - -/// Copy an array of msg/Imu messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Imu__Sequence__copy( - const sensor_msgs__msg__Imu__Sequence * input, - sensor_msgs__msg__Imu__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__IMU__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/imu__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/imu__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c5aa75065..000000000 --- a/src/sensor_msgs/msg/detail/imu__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/Imu.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__IMU__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__IMU__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, Imu)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__IMU__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/imu__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/imu__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index cc3a3e0ac..000000000 --- a/src/sensor_msgs/msg/detail/imu__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/Imu.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__IMU__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__IMU__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__Imu( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__Imu( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, Imu)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__IMU__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/imu__struct.h b/src/sensor_msgs/msg/detail/imu__struct.h deleted file mode 100755 index 4f729f22c..000000000 --- a/src/sensor_msgs/msg/detail/imu__struct.h +++ /dev/null @@ -1,75 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/Imu.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/imu.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__IMU__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__IMU__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'orientation' -#include "geometry_msgs/msg/detail/quaternion__struct.h" -// Member 'angular_velocity' -// Member 'linear_acceleration' -#include "geometry_msgs/msg/detail/vector3__struct.h" - -/// Struct defined in msg/Imu in the package sensor_msgs. -/** - * This is a message to hold data from an IMU (Inertial Measurement Unit) - * - * Accelerations should be in m/s^2 (not in g's), and rotational velocity should be in rad/sec - * - * If the covariance of the measurement is known, it should be filled in (if all you know is the - * variance of each measurement, e.g. from the datasheet, just put those along the diagonal) - * A covariance matrix of all zeros will be interpreted as "covariance unknown", and to use the - * data a covariance will have to be assumed or gotten from some other source - * - * If you have no estimate for one of the data elements (e.g. your IMU doesn't produce an - * orientation estimate), please set element 0 of the associated covariance matrix to -1 - * If you are interpreting this message, please check for a value of -1 in the first element of each - * covariance matrix, and disregard the associated estimate. - */ -typedef struct sensor_msgs__msg__Imu -{ - std_msgs__msg__Header header; - geometry_msgs__msg__Quaternion orientation; - /// Row major about x, y, z axes - double orientation_covariance[9]; - geometry_msgs__msg__Vector3 angular_velocity; - /// Row major about x, y, z axes - double angular_velocity_covariance[9]; - geometry_msgs__msg__Vector3 linear_acceleration; - /// Row major x, y z - double linear_acceleration_covariance[9]; -} sensor_msgs__msg__Imu; - -// Struct for a sequence of sensor_msgs__msg__Imu. -typedef struct sensor_msgs__msg__Imu__Sequence -{ - sensor_msgs__msg__Imu * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__Imu__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__IMU__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/imu__type_support.h b/src/sensor_msgs/msg/detail/imu__type_support.h deleted file mode 100755 index 42bf91e37..000000000 --- a/src/sensor_msgs/msg/detail/imu__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/Imu.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/imu.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__IMU__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__IMU__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - Imu -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__IMU__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/joint_state__functions.h b/src/sensor_msgs/msg/detail/joint_state__functions.h deleted file mode 100755 index ae285f6bc..000000000 --- a/src/sensor_msgs/msg/detail/joint_state__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/JointState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/joint_state.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOINT_STATE__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOINT_STATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/joint_state__struct.h" - -/// Initialize msg/JointState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__JointState - * )) before or use - * sensor_msgs__msg__JointState__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JointState__init(sensor_msgs__msg__JointState * msg); - -/// Finalize msg/JointState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__JointState__fini(sensor_msgs__msg__JointState * msg); - -/// Create msg/JointState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__JointState__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__JointState * -sensor_msgs__msg__JointState__create(void); - -/// Destroy msg/JointState message. -/** - * It calls - * sensor_msgs__msg__JointState__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__JointState__destroy(sensor_msgs__msg__JointState * msg); - -/// Check for msg/JointState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JointState__are_equal(const sensor_msgs__msg__JointState * lhs, const sensor_msgs__msg__JointState * rhs); - -/// Copy a msg/JointState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JointState__copy( - const sensor_msgs__msg__JointState * input, - sensor_msgs__msg__JointState * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__JointState__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__JointState__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__JointState__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__JointState__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/JointState messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__JointState__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JointState__Sequence__init(sensor_msgs__msg__JointState__Sequence * array, size_t size); - -/// Finalize array of msg/JointState messages. -/** - * It calls - * sensor_msgs__msg__JointState__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__JointState__Sequence__fini(sensor_msgs__msg__JointState__Sequence * array); - -/// Create array of msg/JointState messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__JointState__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__JointState__Sequence * -sensor_msgs__msg__JointState__Sequence__create(size_t size); - -/// Destroy array of msg/JointState messages. -/** - * It calls - * sensor_msgs__msg__JointState__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__JointState__Sequence__destroy(sensor_msgs__msg__JointState__Sequence * array); - -/// Check for msg/JointState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JointState__Sequence__are_equal(const sensor_msgs__msg__JointState__Sequence * lhs, const sensor_msgs__msg__JointState__Sequence * rhs); - -/// Copy an array of msg/JointState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JointState__Sequence__copy( - const sensor_msgs__msg__JointState__Sequence * input, - sensor_msgs__msg__JointState__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOINT_STATE__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/joint_state__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/joint_state__rosidl_typesupport_introspection_c.h deleted file mode 100755 index ba4ed646b..000000000 --- a/src/sensor_msgs/msg/detail/joint_state__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/JointState.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOINT_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOINT_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, JointState)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOINT_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/joint_state__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/joint_state__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a6c2fe9ca..000000000 --- a/src/sensor_msgs/msg/detail/joint_state__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/JointState.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__JOINT_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__JOINT_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__JointState( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__JointState( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, JointState)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__JOINT_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/joint_state__struct.h b/src/sensor_msgs/msg/detail/joint_state__struct.h deleted file mode 100755 index b865e5f5f..000000000 --- a/src/sensor_msgs/msg/detail/joint_state__struct.h +++ /dev/null @@ -1,76 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/JointState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/joint_state.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOINT_STATE__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOINT_STATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'name' -#include "rosidl_runtime_c/string.h" -// Member 'position' -// Member 'velocity' -// Member 'effort' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/JointState in the package sensor_msgs. -/** - * This is a message that holds data to describe the state of a set of torque controlled joints. - * - * The state of each joint (revolute or prismatic) is defined by: - * * the position of the joint (rad or m), - * * the velocity of the joint (rad/s or m/s) and - * * the effort that is applied in the joint (Nm or N). - * - * Each joint is uniquely identified by its name - * The header specifies the time at which the joint states were recorded. All the joint states - * in one message have to be recorded at the same time. - * - * This message consists of a multiple arrays, one for each part of the joint state. - * The goal is to make each of the fields optional. When e.g. your joints have no - * effort associated with them, you can leave the effort array empty. - * - * All arrays in this message should have the same size, or be empty. - * This is the only way to uniquely associate the joint name with the correct - * states. - */ -typedef struct sensor_msgs__msg__JointState -{ - std_msgs__msg__Header header; - rosidl_runtime_c__String__Sequence name; - rosidl_runtime_c__double__Sequence position; - rosidl_runtime_c__double__Sequence velocity; - rosidl_runtime_c__double__Sequence effort; -} sensor_msgs__msg__JointState; - -// Struct for a sequence of sensor_msgs__msg__JointState. -typedef struct sensor_msgs__msg__JointState__Sequence -{ - sensor_msgs__msg__JointState * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__JointState__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOINT_STATE__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/joint_state__type_support.h b/src/sensor_msgs/msg/detail/joint_state__type_support.h deleted file mode 100755 index 6ff958fd7..000000000 --- a/src/sensor_msgs/msg/detail/joint_state__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/JointState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/joint_state.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOINT_STATE__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOINT_STATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - JointState -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOINT_STATE__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/joy__functions.h b/src/sensor_msgs/msg/detail/joy__functions.h deleted file mode 100755 index 7fcdf2353..000000000 --- a/src/sensor_msgs/msg/detail/joy__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/Joy.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/joy.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOY__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/joy__struct.h" - -/// Initialize msg/Joy message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__Joy - * )) before or use - * sensor_msgs__msg__Joy__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Joy__init(sensor_msgs__msg__Joy * msg); - -/// Finalize msg/Joy message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Joy__fini(sensor_msgs__msg__Joy * msg); - -/// Create msg/Joy message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__Joy__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__Joy * -sensor_msgs__msg__Joy__create(void); - -/// Destroy msg/Joy message. -/** - * It calls - * sensor_msgs__msg__Joy__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Joy__destroy(sensor_msgs__msg__Joy * msg); - -/// Check for msg/Joy message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Joy__are_equal(const sensor_msgs__msg__Joy * lhs, const sensor_msgs__msg__Joy * rhs); - -/// Copy a msg/Joy message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Joy__copy( - const sensor_msgs__msg__Joy * input, - sensor_msgs__msg__Joy * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__Joy__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__Joy__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__Joy__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__Joy__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Joy messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__Joy__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Joy__Sequence__init(sensor_msgs__msg__Joy__Sequence * array, size_t size); - -/// Finalize array of msg/Joy messages. -/** - * It calls - * sensor_msgs__msg__Joy__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Joy__Sequence__fini(sensor_msgs__msg__Joy__Sequence * array); - -/// Create array of msg/Joy messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__Joy__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__Joy__Sequence * -sensor_msgs__msg__Joy__Sequence__create(size_t size); - -/// Destroy array of msg/Joy messages. -/** - * It calls - * sensor_msgs__msg__Joy__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Joy__Sequence__destroy(sensor_msgs__msg__Joy__Sequence * array); - -/// Check for msg/Joy message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Joy__Sequence__are_equal(const sensor_msgs__msg__Joy__Sequence * lhs, const sensor_msgs__msg__Joy__Sequence * rhs); - -/// Copy an array of msg/Joy messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Joy__Sequence__copy( - const sensor_msgs__msg__Joy__Sequence * input, - sensor_msgs__msg__Joy__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOY__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/joy__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/joy__rosidl_typesupport_introspection_c.h deleted file mode 100755 index e79c92cd1..000000000 --- a/src/sensor_msgs/msg/detail/joy__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/Joy.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, Joy)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/joy__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/joy__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index fcf745295..000000000 --- a/src/sensor_msgs/msg/detail/joy__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/Joy.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__JOY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__JOY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__Joy( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__Joy( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, Joy)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__JOY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/joy__struct.h b/src/sensor_msgs/msg/detail/joy__struct.h deleted file mode 100755 index 3d593aa94..000000000 --- a/src/sensor_msgs/msg/detail/joy__struct.h +++ /dev/null @@ -1,57 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/Joy.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/joy.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOY__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'axes' -// Member 'buttons' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Joy in the package sensor_msgs. -/** - * Reports the state of a joystick's axes and buttons. - */ -typedef struct sensor_msgs__msg__Joy -{ - /// The timestamp is the time at which data is received from the joystick. - std_msgs__msg__Header header; - /// The axes measurements from a joystick. - rosidl_runtime_c__float__Sequence axes; - /// The buttons measurements from a joystick. - rosidl_runtime_c__int32__Sequence buttons; -} sensor_msgs__msg__Joy; - -// Struct for a sequence of sensor_msgs__msg__Joy. -typedef struct sensor_msgs__msg__Joy__Sequence -{ - sensor_msgs__msg__Joy * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__Joy__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOY__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/joy__type_support.h b/src/sensor_msgs/msg/detail/joy__type_support.h deleted file mode 100755 index b184c314a..000000000 --- a/src/sensor_msgs/msg/detail/joy__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/Joy.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/joy.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOY__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - Joy -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOY__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/joy_feedback__functions.h b/src/sensor_msgs/msg/detail/joy_feedback__functions.h deleted file mode 100755 index 908c734e2..000000000 --- a/src/sensor_msgs/msg/detail/joy_feedback__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/JoyFeedback.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/joy_feedback.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/joy_feedback__struct.h" - -/// Initialize msg/JoyFeedback message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__JoyFeedback - * )) before or use - * sensor_msgs__msg__JoyFeedback__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JoyFeedback__init(sensor_msgs__msg__JoyFeedback * msg); - -/// Finalize msg/JoyFeedback message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__JoyFeedback__fini(sensor_msgs__msg__JoyFeedback * msg); - -/// Create msg/JoyFeedback message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__JoyFeedback__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__JoyFeedback * -sensor_msgs__msg__JoyFeedback__create(void); - -/// Destroy msg/JoyFeedback message. -/** - * It calls - * sensor_msgs__msg__JoyFeedback__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__JoyFeedback__destroy(sensor_msgs__msg__JoyFeedback * msg); - -/// Check for msg/JoyFeedback message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JoyFeedback__are_equal(const sensor_msgs__msg__JoyFeedback * lhs, const sensor_msgs__msg__JoyFeedback * rhs); - -/// Copy a msg/JoyFeedback message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JoyFeedback__copy( - const sensor_msgs__msg__JoyFeedback * input, - sensor_msgs__msg__JoyFeedback * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__JoyFeedback__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__JoyFeedback__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__JoyFeedback__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__JoyFeedback__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/JoyFeedback messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__JoyFeedback__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JoyFeedback__Sequence__init(sensor_msgs__msg__JoyFeedback__Sequence * array, size_t size); - -/// Finalize array of msg/JoyFeedback messages. -/** - * It calls - * sensor_msgs__msg__JoyFeedback__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__JoyFeedback__Sequence__fini(sensor_msgs__msg__JoyFeedback__Sequence * array); - -/// Create array of msg/JoyFeedback messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__JoyFeedback__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__JoyFeedback__Sequence * -sensor_msgs__msg__JoyFeedback__Sequence__create(size_t size); - -/// Destroy array of msg/JoyFeedback messages. -/** - * It calls - * sensor_msgs__msg__JoyFeedback__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__JoyFeedback__Sequence__destroy(sensor_msgs__msg__JoyFeedback__Sequence * array); - -/// Check for msg/JoyFeedback message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JoyFeedback__Sequence__are_equal(const sensor_msgs__msg__JoyFeedback__Sequence * lhs, const sensor_msgs__msg__JoyFeedback__Sequence * rhs); - -/// Copy an array of msg/JoyFeedback messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JoyFeedback__Sequence__copy( - const sensor_msgs__msg__JoyFeedback__Sequence * input, - sensor_msgs__msg__JoyFeedback__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/joy_feedback__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/joy_feedback__rosidl_typesupport_introspection_c.h deleted file mode 100755 index b5eca218b..000000000 --- a/src/sensor_msgs/msg/detail/joy_feedback__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/JoyFeedback.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, JoyFeedback)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/joy_feedback__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/joy_feedback__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 0d9834051..000000000 --- a/src/sensor_msgs/msg/detail/joy_feedback__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/JoyFeedback.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__JOY_FEEDBACK__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__JOY_FEEDBACK__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__JoyFeedback( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__JoyFeedback( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, JoyFeedback)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__JOY_FEEDBACK__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/joy_feedback__struct.h b/src/sensor_msgs/msg/detail/joy_feedback__struct.h deleted file mode 100755 index 507a31334..000000000 --- a/src/sensor_msgs/msg/detail/joy_feedback__struct.h +++ /dev/null @@ -1,69 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/JoyFeedback.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/joy_feedback.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'TYPE_LED'. -enum -{ - sensor_msgs__msg__JoyFeedback__TYPE_LED = 0 -}; - -/// Constant 'TYPE_RUMBLE'. -enum -{ - sensor_msgs__msg__JoyFeedback__TYPE_RUMBLE = 1 -}; - -/// Constant 'TYPE_BUZZER'. -enum -{ - sensor_msgs__msg__JoyFeedback__TYPE_BUZZER = 2 -}; - -/// Struct defined in msg/JoyFeedback in the package sensor_msgs. -/** - * Declare of the type of feedback - */ -typedef struct sensor_msgs__msg__JoyFeedback -{ - uint8_t type; - /// This will hold an id number for each type of each feedback. - /// Example, the first led would be id=0, the second would be id=1 - uint8_t id; - /// Intensity of the feedback, from 0.0 to 1.0, inclusive. If device is - /// actually binary, driver should treat 0<=x<0.5 as off, 0.5<=x<=1 as on. - float intensity; -} sensor_msgs__msg__JoyFeedback; - -// Struct for a sequence of sensor_msgs__msg__JoyFeedback. -typedef struct sensor_msgs__msg__JoyFeedback__Sequence -{ - sensor_msgs__msg__JoyFeedback * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__JoyFeedback__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/joy_feedback__type_support.h b/src/sensor_msgs/msg/detail/joy_feedback__type_support.h deleted file mode 100755 index ba14b1831..000000000 --- a/src/sensor_msgs/msg/detail/joy_feedback__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/JoyFeedback.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/joy_feedback.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - JoyFeedback -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/joy_feedback_array__functions.h b/src/sensor_msgs/msg/detail/joy_feedback_array__functions.h deleted file mode 100755 index d8a857f05..000000000 --- a/src/sensor_msgs/msg/detail/joy_feedback_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/JoyFeedbackArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/joy_feedback_array.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK_ARRAY__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/joy_feedback_array__struct.h" - -/// Initialize msg/JoyFeedbackArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__JoyFeedbackArray - * )) before or use - * sensor_msgs__msg__JoyFeedbackArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JoyFeedbackArray__init(sensor_msgs__msg__JoyFeedbackArray * msg); - -/// Finalize msg/JoyFeedbackArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__JoyFeedbackArray__fini(sensor_msgs__msg__JoyFeedbackArray * msg); - -/// Create msg/JoyFeedbackArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__JoyFeedbackArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__JoyFeedbackArray * -sensor_msgs__msg__JoyFeedbackArray__create(void); - -/// Destroy msg/JoyFeedbackArray message. -/** - * It calls - * sensor_msgs__msg__JoyFeedbackArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__JoyFeedbackArray__destroy(sensor_msgs__msg__JoyFeedbackArray * msg); - -/// Check for msg/JoyFeedbackArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JoyFeedbackArray__are_equal(const sensor_msgs__msg__JoyFeedbackArray * lhs, const sensor_msgs__msg__JoyFeedbackArray * rhs); - -/// Copy a msg/JoyFeedbackArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JoyFeedbackArray__copy( - const sensor_msgs__msg__JoyFeedbackArray * input, - sensor_msgs__msg__JoyFeedbackArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__JoyFeedbackArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__JoyFeedbackArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__JoyFeedbackArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__JoyFeedbackArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/JoyFeedbackArray messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__JoyFeedbackArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JoyFeedbackArray__Sequence__init(sensor_msgs__msg__JoyFeedbackArray__Sequence * array, size_t size); - -/// Finalize array of msg/JoyFeedbackArray messages. -/** - * It calls - * sensor_msgs__msg__JoyFeedbackArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__JoyFeedbackArray__Sequence__fini(sensor_msgs__msg__JoyFeedbackArray__Sequence * array); - -/// Create array of msg/JoyFeedbackArray messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__JoyFeedbackArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__JoyFeedbackArray__Sequence * -sensor_msgs__msg__JoyFeedbackArray__Sequence__create(size_t size); - -/// Destroy array of msg/JoyFeedbackArray messages. -/** - * It calls - * sensor_msgs__msg__JoyFeedbackArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__JoyFeedbackArray__Sequence__destroy(sensor_msgs__msg__JoyFeedbackArray__Sequence * array); - -/// Check for msg/JoyFeedbackArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JoyFeedbackArray__Sequence__are_equal(const sensor_msgs__msg__JoyFeedbackArray__Sequence * lhs, const sensor_msgs__msg__JoyFeedbackArray__Sequence * rhs); - -/// Copy an array of msg/JoyFeedbackArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__JoyFeedbackArray__Sequence__copy( - const sensor_msgs__msg__JoyFeedbackArray__Sequence * input, - sensor_msgs__msg__JoyFeedbackArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK_ARRAY__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/joy_feedback_array__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/joy_feedback_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index ca3c64df4..000000000 --- a/src/sensor_msgs/msg/detail/joy_feedback_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/JoyFeedbackArray.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, JoyFeedbackArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/joy_feedback_array__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/joy_feedback_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index fa2654102..000000000 --- a/src/sensor_msgs/msg/detail/joy_feedback_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/JoyFeedbackArray.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__JOY_FEEDBACK_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__JOY_FEEDBACK_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__JoyFeedbackArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__JoyFeedbackArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, JoyFeedbackArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__JOY_FEEDBACK_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/joy_feedback_array__struct.h b/src/sensor_msgs/msg/detail/joy_feedback_array__struct.h deleted file mode 100755 index b083fbdcf..000000000 --- a/src/sensor_msgs/msg/detail/joy_feedback_array__struct.h +++ /dev/null @@ -1,49 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/JoyFeedbackArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/joy_feedback_array.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK_ARRAY__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'array' -#include "sensor_msgs/msg/detail/joy_feedback__struct.h" - -/// Struct defined in msg/JoyFeedbackArray in the package sensor_msgs. -/** - * This message publishes values for multiple feedback at once. - */ -typedef struct sensor_msgs__msg__JoyFeedbackArray -{ - sensor_msgs__msg__JoyFeedback__Sequence array; -} sensor_msgs__msg__JoyFeedbackArray; - -// Struct for a sequence of sensor_msgs__msg__JoyFeedbackArray. -typedef struct sensor_msgs__msg__JoyFeedbackArray__Sequence -{ - sensor_msgs__msg__JoyFeedbackArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__JoyFeedbackArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK_ARRAY__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/joy_feedback_array__type_support.h b/src/sensor_msgs/msg/detail/joy_feedback_array__type_support.h deleted file mode 100755 index d7dc79ace..000000000 --- a/src/sensor_msgs/msg/detail/joy_feedback_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/JoyFeedbackArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/joy_feedback_array.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK_ARRAY__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - JoyFeedbackArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__JOY_FEEDBACK_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/laser_echo__functions.h b/src/sensor_msgs/msg/detail/laser_echo__functions.h deleted file mode 100755 index ee0ebad9d..000000000 --- a/src/sensor_msgs/msg/detail/laser_echo__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/LaserEcho.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/laser_echo.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__LASER_ECHO__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__LASER_ECHO__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/laser_echo__struct.h" - -/// Initialize msg/LaserEcho message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__LaserEcho - * )) before or use - * sensor_msgs__msg__LaserEcho__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__LaserEcho__init(sensor_msgs__msg__LaserEcho * msg); - -/// Finalize msg/LaserEcho message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__LaserEcho__fini(sensor_msgs__msg__LaserEcho * msg); - -/// Create msg/LaserEcho message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__LaserEcho__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__LaserEcho * -sensor_msgs__msg__LaserEcho__create(void); - -/// Destroy msg/LaserEcho message. -/** - * It calls - * sensor_msgs__msg__LaserEcho__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__LaserEcho__destroy(sensor_msgs__msg__LaserEcho * msg); - -/// Check for msg/LaserEcho message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__LaserEcho__are_equal(const sensor_msgs__msg__LaserEcho * lhs, const sensor_msgs__msg__LaserEcho * rhs); - -/// Copy a msg/LaserEcho message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__LaserEcho__copy( - const sensor_msgs__msg__LaserEcho * input, - sensor_msgs__msg__LaserEcho * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__LaserEcho__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__LaserEcho__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__LaserEcho__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__LaserEcho__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/LaserEcho messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__LaserEcho__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__LaserEcho__Sequence__init(sensor_msgs__msg__LaserEcho__Sequence * array, size_t size); - -/// Finalize array of msg/LaserEcho messages. -/** - * It calls - * sensor_msgs__msg__LaserEcho__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__LaserEcho__Sequence__fini(sensor_msgs__msg__LaserEcho__Sequence * array); - -/// Create array of msg/LaserEcho messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__LaserEcho__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__LaserEcho__Sequence * -sensor_msgs__msg__LaserEcho__Sequence__create(size_t size); - -/// Destroy array of msg/LaserEcho messages. -/** - * It calls - * sensor_msgs__msg__LaserEcho__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__LaserEcho__Sequence__destroy(sensor_msgs__msg__LaserEcho__Sequence * array); - -/// Check for msg/LaserEcho message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__LaserEcho__Sequence__are_equal(const sensor_msgs__msg__LaserEcho__Sequence * lhs, const sensor_msgs__msg__LaserEcho__Sequence * rhs); - -/// Copy an array of msg/LaserEcho messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__LaserEcho__Sequence__copy( - const sensor_msgs__msg__LaserEcho__Sequence * input, - sensor_msgs__msg__LaserEcho__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__LASER_ECHO__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/laser_echo__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/laser_echo__rosidl_typesupport_introspection_c.h deleted file mode 100755 index dc89ec6cb..000000000 --- a/src/sensor_msgs/msg/detail/laser_echo__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/LaserEcho.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__LASER_ECHO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__LASER_ECHO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, LaserEcho)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__LASER_ECHO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/laser_echo__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/laser_echo__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 392521325..000000000 --- a/src/sensor_msgs/msg/detail/laser_echo__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/LaserEcho.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__LASER_ECHO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__LASER_ECHO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__LaserEcho( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__LaserEcho( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, LaserEcho)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__LASER_ECHO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/laser_echo__struct.h b/src/sensor_msgs/msg/detail/laser_echo__struct.h deleted file mode 100755 index dd81ddd0c..000000000 --- a/src/sensor_msgs/msg/detail/laser_echo__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/LaserEcho.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/laser_echo.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__LASER_ECHO__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__LASER_ECHO__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'echoes' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/LaserEcho in the package sensor_msgs. -/** - * This message is a submessage of MultiEchoLaserScan and is not intended - * to be used separately. - */ -typedef struct sensor_msgs__msg__LaserEcho -{ - /// Multiple values of ranges or intensities. - /// Each array represents data from the same angle increment. - rosidl_runtime_c__float__Sequence echoes; -} sensor_msgs__msg__LaserEcho; - -// Struct for a sequence of sensor_msgs__msg__LaserEcho. -typedef struct sensor_msgs__msg__LaserEcho__Sequence -{ - sensor_msgs__msg__LaserEcho * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__LaserEcho__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__LASER_ECHO__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/laser_echo__type_support.h b/src/sensor_msgs/msg/detail/laser_echo__type_support.h deleted file mode 100755 index 43d21c4e3..000000000 --- a/src/sensor_msgs/msg/detail/laser_echo__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/LaserEcho.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/laser_echo.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__LASER_ECHO__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__LASER_ECHO__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - LaserEcho -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__LASER_ECHO__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/laser_scan__functions.h b/src/sensor_msgs/msg/detail/laser_scan__functions.h deleted file mode 100755 index 05c74e0df..000000000 --- a/src/sensor_msgs/msg/detail/laser_scan__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/LaserScan.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/laser_scan.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__LASER_SCAN__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__LASER_SCAN__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/laser_scan__struct.h" - -/// Initialize msg/LaserScan message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__LaserScan - * )) before or use - * sensor_msgs__msg__LaserScan__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__LaserScan__init(sensor_msgs__msg__LaserScan * msg); - -/// Finalize msg/LaserScan message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__LaserScan__fini(sensor_msgs__msg__LaserScan * msg); - -/// Create msg/LaserScan message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__LaserScan__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__LaserScan * -sensor_msgs__msg__LaserScan__create(void); - -/// Destroy msg/LaserScan message. -/** - * It calls - * sensor_msgs__msg__LaserScan__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__LaserScan__destroy(sensor_msgs__msg__LaserScan * msg); - -/// Check for msg/LaserScan message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__LaserScan__are_equal(const sensor_msgs__msg__LaserScan * lhs, const sensor_msgs__msg__LaserScan * rhs); - -/// Copy a msg/LaserScan message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__LaserScan__copy( - const sensor_msgs__msg__LaserScan * input, - sensor_msgs__msg__LaserScan * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__LaserScan__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__LaserScan__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__LaserScan__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__LaserScan__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/LaserScan messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__LaserScan__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__LaserScan__Sequence__init(sensor_msgs__msg__LaserScan__Sequence * array, size_t size); - -/// Finalize array of msg/LaserScan messages. -/** - * It calls - * sensor_msgs__msg__LaserScan__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__LaserScan__Sequence__fini(sensor_msgs__msg__LaserScan__Sequence * array); - -/// Create array of msg/LaserScan messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__LaserScan__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__LaserScan__Sequence * -sensor_msgs__msg__LaserScan__Sequence__create(size_t size); - -/// Destroy array of msg/LaserScan messages. -/** - * It calls - * sensor_msgs__msg__LaserScan__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__LaserScan__Sequence__destroy(sensor_msgs__msg__LaserScan__Sequence * array); - -/// Check for msg/LaserScan message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__LaserScan__Sequence__are_equal(const sensor_msgs__msg__LaserScan__Sequence * lhs, const sensor_msgs__msg__LaserScan__Sequence * rhs); - -/// Copy an array of msg/LaserScan messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__LaserScan__Sequence__copy( - const sensor_msgs__msg__LaserScan__Sequence * input, - sensor_msgs__msg__LaserScan__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__LASER_SCAN__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/laser_scan__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/laser_scan__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c478ffd5f..000000000 --- a/src/sensor_msgs/msg/detail/laser_scan__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/LaserScan.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__LASER_SCAN__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__LASER_SCAN__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, LaserScan)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__LASER_SCAN__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/laser_scan__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/laser_scan__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a01d4b914..000000000 --- a/src/sensor_msgs/msg/detail/laser_scan__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/LaserScan.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__LASER_SCAN__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__LASER_SCAN__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__LaserScan( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__LaserScan( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, LaserScan)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__LASER_SCAN__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/laser_scan__struct.h b/src/sensor_msgs/msg/detail/laser_scan__struct.h deleted file mode 100755 index 77827e53c..000000000 --- a/src/sensor_msgs/msg/detail/laser_scan__struct.h +++ /dev/null @@ -1,85 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/LaserScan.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/laser_scan.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__LASER_SCAN__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__LASER_SCAN__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'ranges' -// Member 'intensities' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/LaserScan in the package sensor_msgs. -/** - * Single scan from a planar laser range-finder - * - * If you have another ranging device with different behavior (e.g. a sonar - * array), please find or create a different message, since applications - * will make fairly laser-specific assumptions about this data - */ -typedef struct sensor_msgs__msg__LaserScan -{ - /// timestamp in the header is the acquisition time of - /// the first ray in the scan. - /// - /// in frame frame_id, angles are measured around - /// the positive Z axis (counterclockwise, if Z is up) - /// with zero angle being forward along the x axis - std_msgs__msg__Header header; - /// start angle of the scan - float angle_min; - /// end angle of the scan - float angle_max; - /// angular distance between measurements - float angle_increment; - /// time between measurements - if your scanner - /// is moving, this will be used in interpolating position - /// of 3d points - float time_increment; - /// time between scans - float scan_time; - /// minimum range value - float range_min; - /// maximum range value - float range_max; - /// range data - /// (Note: values < range_min or > range_max should be discarded) - rosidl_runtime_c__float__Sequence ranges; - /// intensity data. If your - /// device does not provide intensities, please leave - /// the array empty. - rosidl_runtime_c__float__Sequence intensities; -} sensor_msgs__msg__LaserScan; - -// Struct for a sequence of sensor_msgs__msg__LaserScan. -typedef struct sensor_msgs__msg__LaserScan__Sequence -{ - sensor_msgs__msg__LaserScan * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__LaserScan__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__LASER_SCAN__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/laser_scan__type_support.h b/src/sensor_msgs/msg/detail/laser_scan__type_support.h deleted file mode 100755 index a1127a439..000000000 --- a/src/sensor_msgs/msg/detail/laser_scan__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/LaserScan.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/laser_scan.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__LASER_SCAN__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__LASER_SCAN__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - LaserScan -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__LASER_SCAN__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/magnetic_field__functions.h b/src/sensor_msgs/msg/detail/magnetic_field__functions.h deleted file mode 100755 index 956f5ec5e..000000000 --- a/src/sensor_msgs/msg/detail/magnetic_field__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/MagneticField.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/magnetic_field.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__MAGNETIC_FIELD__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__MAGNETIC_FIELD__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/magnetic_field__struct.h" - -/// Initialize msg/MagneticField message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__MagneticField - * )) before or use - * sensor_msgs__msg__MagneticField__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MagneticField__init(sensor_msgs__msg__MagneticField * msg); - -/// Finalize msg/MagneticField message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__MagneticField__fini(sensor_msgs__msg__MagneticField * msg); - -/// Create msg/MagneticField message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__MagneticField__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__MagneticField * -sensor_msgs__msg__MagneticField__create(void); - -/// Destroy msg/MagneticField message. -/** - * It calls - * sensor_msgs__msg__MagneticField__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__MagneticField__destroy(sensor_msgs__msg__MagneticField * msg); - -/// Check for msg/MagneticField message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MagneticField__are_equal(const sensor_msgs__msg__MagneticField * lhs, const sensor_msgs__msg__MagneticField * rhs); - -/// Copy a msg/MagneticField message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MagneticField__copy( - const sensor_msgs__msg__MagneticField * input, - sensor_msgs__msg__MagneticField * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__MagneticField__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__MagneticField__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__MagneticField__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__MagneticField__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MagneticField messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__MagneticField__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MagneticField__Sequence__init(sensor_msgs__msg__MagneticField__Sequence * array, size_t size); - -/// Finalize array of msg/MagneticField messages. -/** - * It calls - * sensor_msgs__msg__MagneticField__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__MagneticField__Sequence__fini(sensor_msgs__msg__MagneticField__Sequence * array); - -/// Create array of msg/MagneticField messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__MagneticField__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__MagneticField__Sequence * -sensor_msgs__msg__MagneticField__Sequence__create(size_t size); - -/// Destroy array of msg/MagneticField messages. -/** - * It calls - * sensor_msgs__msg__MagneticField__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__MagneticField__Sequence__destroy(sensor_msgs__msg__MagneticField__Sequence * array); - -/// Check for msg/MagneticField message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MagneticField__Sequence__are_equal(const sensor_msgs__msg__MagneticField__Sequence * lhs, const sensor_msgs__msg__MagneticField__Sequence * rhs); - -/// Copy an array of msg/MagneticField messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MagneticField__Sequence__copy( - const sensor_msgs__msg__MagneticField__Sequence * input, - sensor_msgs__msg__MagneticField__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__MAGNETIC_FIELD__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/magnetic_field__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/magnetic_field__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 47819e978..000000000 --- a/src/sensor_msgs/msg/detail/magnetic_field__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/MagneticField.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__MAGNETIC_FIELD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__MAGNETIC_FIELD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, MagneticField)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__MAGNETIC_FIELD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/magnetic_field__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/magnetic_field__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a076d5567..000000000 --- a/src/sensor_msgs/msg/detail/magnetic_field__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/MagneticField.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__MAGNETIC_FIELD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__MAGNETIC_FIELD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__MagneticField( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__MagneticField( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, MagneticField)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__MAGNETIC_FIELD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/magnetic_field__struct.h b/src/sensor_msgs/msg/detail/magnetic_field__struct.h deleted file mode 100755 index 4f9ea9d28..000000000 --- a/src/sensor_msgs/msg/detail/magnetic_field__struct.h +++ /dev/null @@ -1,70 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/MagneticField.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/magnetic_field.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__MAGNETIC_FIELD__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__MAGNETIC_FIELD__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'magnetic_field' -#include "geometry_msgs/msg/detail/vector3__struct.h" - -/// Struct defined in msg/MagneticField in the package sensor_msgs. -/** - * Measurement of the Magnetic Field vector at a specific location. - * - * If the covariance of the measurement is known, it should be filled in. - * If all you know is the variance of each measurement, e.g. from the datasheet, - * just put those along the diagonal. - * A covariance matrix of all zeros will be interpreted as "covariance unknown", - * and to use the data a covariance will have to be assumed or gotten from some - * other source. - */ -typedef struct sensor_msgs__msg__MagneticField -{ - /// timestamp is the time the - /// field was measured - /// frame_id is the location and orientation - /// of the field measurement - std_msgs__msg__Header header; - /// x, y, and z components of the - /// field vector in Tesla - /// If your sensor does not output 3 axes, - /// put NaNs in the components not reported. - geometry_msgs__msg__Vector3 magnetic_field; - /// Row major about x, y, z axes - /// 0 is interpreted as variance unknown - double magnetic_field_covariance[9]; -} sensor_msgs__msg__MagneticField; - -// Struct for a sequence of sensor_msgs__msg__MagneticField. -typedef struct sensor_msgs__msg__MagneticField__Sequence -{ - sensor_msgs__msg__MagneticField * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__MagneticField__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__MAGNETIC_FIELD__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/magnetic_field__type_support.h b/src/sensor_msgs/msg/detail/magnetic_field__type_support.h deleted file mode 100755 index 0c4543561..000000000 --- a/src/sensor_msgs/msg/detail/magnetic_field__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/MagneticField.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/magnetic_field.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__MAGNETIC_FIELD__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__MAGNETIC_FIELD__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - MagneticField -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__MAGNETIC_FIELD__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/multi_dof_joint_state__functions.h b/src/sensor_msgs/msg/detail/multi_dof_joint_state__functions.h deleted file mode 100755 index ba64f97f1..000000000 --- a/src/sensor_msgs/msg/detail/multi_dof_joint_state__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/MultiDOFJointState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/multi_dof_joint_state.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_STATE__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_STATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/multi_dof_joint_state__struct.h" - -/// Initialize msg/MultiDOFJointState message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__MultiDOFJointState - * )) before or use - * sensor_msgs__msg__MultiDOFJointState__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MultiDOFJointState__init(sensor_msgs__msg__MultiDOFJointState * msg); - -/// Finalize msg/MultiDOFJointState message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__MultiDOFJointState__fini(sensor_msgs__msg__MultiDOFJointState * msg); - -/// Create msg/MultiDOFJointState message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__MultiDOFJointState__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__MultiDOFJointState * -sensor_msgs__msg__MultiDOFJointState__create(void); - -/// Destroy msg/MultiDOFJointState message. -/** - * It calls - * sensor_msgs__msg__MultiDOFJointState__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__MultiDOFJointState__destroy(sensor_msgs__msg__MultiDOFJointState * msg); - -/// Check for msg/MultiDOFJointState message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MultiDOFJointState__are_equal(const sensor_msgs__msg__MultiDOFJointState * lhs, const sensor_msgs__msg__MultiDOFJointState * rhs); - -/// Copy a msg/MultiDOFJointState message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MultiDOFJointState__copy( - const sensor_msgs__msg__MultiDOFJointState * input, - sensor_msgs__msg__MultiDOFJointState * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__MultiDOFJointState__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__MultiDOFJointState__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__MultiDOFJointState__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__MultiDOFJointState__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MultiDOFJointState messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__MultiDOFJointState__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MultiDOFJointState__Sequence__init(sensor_msgs__msg__MultiDOFJointState__Sequence * array, size_t size); - -/// Finalize array of msg/MultiDOFJointState messages. -/** - * It calls - * sensor_msgs__msg__MultiDOFJointState__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__MultiDOFJointState__Sequence__fini(sensor_msgs__msg__MultiDOFJointState__Sequence * array); - -/// Create array of msg/MultiDOFJointState messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__MultiDOFJointState__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__MultiDOFJointState__Sequence * -sensor_msgs__msg__MultiDOFJointState__Sequence__create(size_t size); - -/// Destroy array of msg/MultiDOFJointState messages. -/** - * It calls - * sensor_msgs__msg__MultiDOFJointState__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__MultiDOFJointState__Sequence__destroy(sensor_msgs__msg__MultiDOFJointState__Sequence * array); - -/// Check for msg/MultiDOFJointState message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MultiDOFJointState__Sequence__are_equal(const sensor_msgs__msg__MultiDOFJointState__Sequence * lhs, const sensor_msgs__msg__MultiDOFJointState__Sequence * rhs); - -/// Copy an array of msg/MultiDOFJointState messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MultiDOFJointState__Sequence__copy( - const sensor_msgs__msg__MultiDOFJointState__Sequence * input, - sensor_msgs__msg__MultiDOFJointState__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_STATE__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/multi_dof_joint_state__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/multi_dof_joint_state__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c7b2451e4..000000000 --- a/src/sensor_msgs/msg/detail/multi_dof_joint_state__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/MultiDOFJointState.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, MultiDOFJointState)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_STATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/multi_dof_joint_state__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/multi_dof_joint_state__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 7f4ffb1e7..000000000 --- a/src/sensor_msgs/msg/detail/multi_dof_joint_state__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/MultiDOFJointState.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__MULTI_DOF_JOINT_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__MULTI_DOF_JOINT_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__MultiDOFJointState( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__MultiDOFJointState( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, MultiDOFJointState)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__MULTI_DOF_JOINT_STATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/multi_dof_joint_state__struct.h b/src/sensor_msgs/msg/detail/multi_dof_joint_state__struct.h deleted file mode 100755 index 081835090..000000000 --- a/src/sensor_msgs/msg/detail/multi_dof_joint_state__struct.h +++ /dev/null @@ -1,79 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/MultiDOFJointState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/multi_dof_joint_state.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_STATE__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_STATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'joint_names' -#include "rosidl_runtime_c/string.h" -// Member 'transforms' -#include "geometry_msgs/msg/detail/transform__struct.h" -// Member 'twist' -#include "geometry_msgs/msg/detail/twist__struct.h" -// Member 'wrench' -#include "geometry_msgs/msg/detail/wrench__struct.h" - -/// Struct defined in msg/MultiDOFJointState in the package sensor_msgs. -/** - * Representation of state for joints with multiple degrees of freedom, - * following the structure of JointState which can only represent a single degree of freedom. - * - * It is assumed that a joint in a system corresponds to a transform that gets applied - * along the kinematic chain. For example, a planar joint (as in URDF) is 3DOF (x, y, yaw) - * and those 3DOF can be expressed as a transformation matrix, and that transformation - * matrix can be converted back to (x, y, yaw) - * - * Each joint is uniquely identified by its name - * The header specifies the time at which the joint states were recorded. All the joint states - * in one message have to be recorded at the same time. - * - * This message consists of a multiple arrays, one for each part of the joint state. - * The goal is to make each of the fields optional. When e.g. your joints have no - * wrench associated with them, you can leave the wrench array empty. - * - * All arrays in this message should have the same size, or be empty. - * This is the only way to uniquely associate the joint name with the correct - * states. - */ -typedef struct sensor_msgs__msg__MultiDOFJointState -{ - std_msgs__msg__Header header; - rosidl_runtime_c__String__Sequence joint_names; - geometry_msgs__msg__Transform__Sequence transforms; - geometry_msgs__msg__Twist__Sequence twist; - geometry_msgs__msg__Wrench__Sequence wrench; -} sensor_msgs__msg__MultiDOFJointState; - -// Struct for a sequence of sensor_msgs__msg__MultiDOFJointState. -typedef struct sensor_msgs__msg__MultiDOFJointState__Sequence -{ - sensor_msgs__msg__MultiDOFJointState * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__MultiDOFJointState__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_STATE__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/multi_dof_joint_state__type_support.h b/src/sensor_msgs/msg/detail/multi_dof_joint_state__type_support.h deleted file mode 100755 index 0da9c7429..000000000 --- a/src/sensor_msgs/msg/detail/multi_dof_joint_state__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/MultiDOFJointState.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/multi_dof_joint_state.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_STATE__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_STATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - MultiDOFJointState -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_STATE__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/multi_echo_laser_scan__functions.h b/src/sensor_msgs/msg/detail/multi_echo_laser_scan__functions.h deleted file mode 100755 index aa1884fd7..000000000 --- a/src/sensor_msgs/msg/detail/multi_echo_laser_scan__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/MultiEchoLaserScan.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/multi_echo_laser_scan.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__MULTI_ECHO_LASER_SCAN__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__MULTI_ECHO_LASER_SCAN__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/multi_echo_laser_scan__struct.h" - -/// Initialize msg/MultiEchoLaserScan message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__MultiEchoLaserScan - * )) before or use - * sensor_msgs__msg__MultiEchoLaserScan__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MultiEchoLaserScan__init(sensor_msgs__msg__MultiEchoLaserScan * msg); - -/// Finalize msg/MultiEchoLaserScan message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__MultiEchoLaserScan__fini(sensor_msgs__msg__MultiEchoLaserScan * msg); - -/// Create msg/MultiEchoLaserScan message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__MultiEchoLaserScan__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__MultiEchoLaserScan * -sensor_msgs__msg__MultiEchoLaserScan__create(void); - -/// Destroy msg/MultiEchoLaserScan message. -/** - * It calls - * sensor_msgs__msg__MultiEchoLaserScan__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__MultiEchoLaserScan__destroy(sensor_msgs__msg__MultiEchoLaserScan * msg); - -/// Check for msg/MultiEchoLaserScan message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MultiEchoLaserScan__are_equal(const sensor_msgs__msg__MultiEchoLaserScan * lhs, const sensor_msgs__msg__MultiEchoLaserScan * rhs); - -/// Copy a msg/MultiEchoLaserScan message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MultiEchoLaserScan__copy( - const sensor_msgs__msg__MultiEchoLaserScan * input, - sensor_msgs__msg__MultiEchoLaserScan * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__MultiEchoLaserScan__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__MultiEchoLaserScan__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__MultiEchoLaserScan__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__MultiEchoLaserScan__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MultiEchoLaserScan messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__MultiEchoLaserScan__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MultiEchoLaserScan__Sequence__init(sensor_msgs__msg__MultiEchoLaserScan__Sequence * array, size_t size); - -/// Finalize array of msg/MultiEchoLaserScan messages. -/** - * It calls - * sensor_msgs__msg__MultiEchoLaserScan__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__MultiEchoLaserScan__Sequence__fini(sensor_msgs__msg__MultiEchoLaserScan__Sequence * array); - -/// Create array of msg/MultiEchoLaserScan messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__MultiEchoLaserScan__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__MultiEchoLaserScan__Sequence * -sensor_msgs__msg__MultiEchoLaserScan__Sequence__create(size_t size); - -/// Destroy array of msg/MultiEchoLaserScan messages. -/** - * It calls - * sensor_msgs__msg__MultiEchoLaserScan__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__MultiEchoLaserScan__Sequence__destroy(sensor_msgs__msg__MultiEchoLaserScan__Sequence * array); - -/// Check for msg/MultiEchoLaserScan message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MultiEchoLaserScan__Sequence__are_equal(const sensor_msgs__msg__MultiEchoLaserScan__Sequence * lhs, const sensor_msgs__msg__MultiEchoLaserScan__Sequence * rhs); - -/// Copy an array of msg/MultiEchoLaserScan messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__MultiEchoLaserScan__Sequence__copy( - const sensor_msgs__msg__MultiEchoLaserScan__Sequence * input, - sensor_msgs__msg__MultiEchoLaserScan__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__MULTI_ECHO_LASER_SCAN__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/multi_echo_laser_scan__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/multi_echo_laser_scan__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 8784ee1fc..000000000 --- a/src/sensor_msgs/msg/detail/multi_echo_laser_scan__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/MultiEchoLaserScan.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__MULTI_ECHO_LASER_SCAN__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__MULTI_ECHO_LASER_SCAN__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, MultiEchoLaserScan)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__MULTI_ECHO_LASER_SCAN__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/multi_echo_laser_scan__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/multi_echo_laser_scan__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 7a984ce37..000000000 --- a/src/sensor_msgs/msg/detail/multi_echo_laser_scan__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/MultiEchoLaserScan.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__MULTI_ECHO_LASER_SCAN__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__MULTI_ECHO_LASER_SCAN__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__MultiEchoLaserScan( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__MultiEchoLaserScan( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, MultiEchoLaserScan)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__MULTI_ECHO_LASER_SCAN__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/multi_echo_laser_scan__struct.h b/src/sensor_msgs/msg/detail/multi_echo_laser_scan__struct.h deleted file mode 100755 index 1e6e3da34..000000000 --- a/src/sensor_msgs/msg/detail/multi_echo_laser_scan__struct.h +++ /dev/null @@ -1,87 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/MultiEchoLaserScan.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/multi_echo_laser_scan.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__MULTI_ECHO_LASER_SCAN__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__MULTI_ECHO_LASER_SCAN__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'ranges' -// Member 'intensities' -#include "sensor_msgs/msg/detail/laser_echo__struct.h" - -/// Struct defined in msg/MultiEchoLaserScan in the package sensor_msgs. -/** - * Single scan from a multi-echo planar laser range-finder - * - * If you have another ranging device with different behavior (e.g. a sonar - * array), please find or create a different message, since applications - * will make fairly laser-specific assumptions about this data - */ -typedef struct sensor_msgs__msg__MultiEchoLaserScan -{ - /// timestamp in the header is the acquisition time of - /// the first ray in the scan. - /// - /// in frame frame_id, angles are measured around - /// the positive Z axis (counterclockwise, if Z is up) - /// with zero angle being forward along the x axis - std_msgs__msg__Header header; - /// start angle of the scan - float angle_min; - /// end angle of the scan - float angle_max; - /// angular distance between measurements - float angle_increment; - /// time between measurements - if your scanner - /// is moving, this will be used in interpolating position - /// of 3d points - float time_increment; - /// time between scans - float scan_time; - /// minimum range value - float range_min; - /// maximum range value - float range_max; - /// range data - /// (Note: NaNs, values < range_min or > range_max should be discarded) - /// +Inf measurements are out of range - /// -Inf measurements are too close to determine exact distance. - sensor_msgs__msg__LaserEcho__Sequence ranges; - /// intensity data. If your - /// device does not provide intensities, please leave - /// the array empty. - sensor_msgs__msg__LaserEcho__Sequence intensities; -} sensor_msgs__msg__MultiEchoLaserScan; - -// Struct for a sequence of sensor_msgs__msg__MultiEchoLaserScan. -typedef struct sensor_msgs__msg__MultiEchoLaserScan__Sequence -{ - sensor_msgs__msg__MultiEchoLaserScan * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__MultiEchoLaserScan__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__MULTI_ECHO_LASER_SCAN__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/multi_echo_laser_scan__type_support.h b/src/sensor_msgs/msg/detail/multi_echo_laser_scan__type_support.h deleted file mode 100755 index 01c0b6368..000000000 --- a/src/sensor_msgs/msg/detail/multi_echo_laser_scan__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/MultiEchoLaserScan.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/multi_echo_laser_scan.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__MULTI_ECHO_LASER_SCAN__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__MULTI_ECHO_LASER_SCAN__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - MultiEchoLaserScan -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__MULTI_ECHO_LASER_SCAN__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/nav_sat_fix__functions.h b/src/sensor_msgs/msg/detail/nav_sat_fix__functions.h deleted file mode 100755 index 73c8142af..000000000 --- a/src/sensor_msgs/msg/detail/nav_sat_fix__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/NavSatFix.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/nav_sat_fix.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__NAV_SAT_FIX__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__NAV_SAT_FIX__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/nav_sat_fix__struct.h" - -/// Initialize msg/NavSatFix message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__NavSatFix - * )) before or use - * sensor_msgs__msg__NavSatFix__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__NavSatFix__init(sensor_msgs__msg__NavSatFix * msg); - -/// Finalize msg/NavSatFix message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__NavSatFix__fini(sensor_msgs__msg__NavSatFix * msg); - -/// Create msg/NavSatFix message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__NavSatFix__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__NavSatFix * -sensor_msgs__msg__NavSatFix__create(void); - -/// Destroy msg/NavSatFix message. -/** - * It calls - * sensor_msgs__msg__NavSatFix__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__NavSatFix__destroy(sensor_msgs__msg__NavSatFix * msg); - -/// Check for msg/NavSatFix message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__NavSatFix__are_equal(const sensor_msgs__msg__NavSatFix * lhs, const sensor_msgs__msg__NavSatFix * rhs); - -/// Copy a msg/NavSatFix message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__NavSatFix__copy( - const sensor_msgs__msg__NavSatFix * input, - sensor_msgs__msg__NavSatFix * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__NavSatFix__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__NavSatFix__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__NavSatFix__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__NavSatFix__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/NavSatFix messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__NavSatFix__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__NavSatFix__Sequence__init(sensor_msgs__msg__NavSatFix__Sequence * array, size_t size); - -/// Finalize array of msg/NavSatFix messages. -/** - * It calls - * sensor_msgs__msg__NavSatFix__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__NavSatFix__Sequence__fini(sensor_msgs__msg__NavSatFix__Sequence * array); - -/// Create array of msg/NavSatFix messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__NavSatFix__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__NavSatFix__Sequence * -sensor_msgs__msg__NavSatFix__Sequence__create(size_t size); - -/// Destroy array of msg/NavSatFix messages. -/** - * It calls - * sensor_msgs__msg__NavSatFix__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__NavSatFix__Sequence__destroy(sensor_msgs__msg__NavSatFix__Sequence * array); - -/// Check for msg/NavSatFix message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__NavSatFix__Sequence__are_equal(const sensor_msgs__msg__NavSatFix__Sequence * lhs, const sensor_msgs__msg__NavSatFix__Sequence * rhs); - -/// Copy an array of msg/NavSatFix messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__NavSatFix__Sequence__copy( - const sensor_msgs__msg__NavSatFix__Sequence * input, - sensor_msgs__msg__NavSatFix__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__NAV_SAT_FIX__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/nav_sat_fix__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/nav_sat_fix__rosidl_typesupport_introspection_c.h deleted file mode 100755 index fd07582a9..000000000 --- a/src/sensor_msgs/msg/detail/nav_sat_fix__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/NavSatFix.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__NAV_SAT_FIX__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__NAV_SAT_FIX__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, NavSatFix)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__NAV_SAT_FIX__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/nav_sat_fix__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/nav_sat_fix__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 22bb1fcf4..000000000 --- a/src/sensor_msgs/msg/detail/nav_sat_fix__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/NavSatFix.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__NAV_SAT_FIX__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__NAV_SAT_FIX__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__NavSatFix( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__NavSatFix( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, NavSatFix)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__NAV_SAT_FIX__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/nav_sat_fix__struct.h b/src/sensor_msgs/msg/detail/nav_sat_fix__struct.h deleted file mode 100755 index 8f7d5f1d8..000000000 --- a/src/sensor_msgs/msg/detail/nav_sat_fix__struct.h +++ /dev/null @@ -1,107 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/NavSatFix.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/nav_sat_fix.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__NAV_SAT_FIX__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__NAV_SAT_FIX__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'COVARIANCE_TYPE_UNKNOWN'. -/** - * If the covariance of the fix is known, fill it in completely. If the - * GPS receiver provides the variance of each measurement, put them - * along the diagonal. If only Dilution of Precision is available, - * estimate an approximate covariance from that. - */ -enum -{ - sensor_msgs__msg__NavSatFix__COVARIANCE_TYPE_UNKNOWN = 0 -}; - -/// Constant 'COVARIANCE_TYPE_APPROXIMATED'. -enum -{ - sensor_msgs__msg__NavSatFix__COVARIANCE_TYPE_APPROXIMATED = 1 -}; - -/// Constant 'COVARIANCE_TYPE_DIAGONAL_KNOWN'. -enum -{ - sensor_msgs__msg__NavSatFix__COVARIANCE_TYPE_DIAGONAL_KNOWN = 2 -}; - -/// Constant 'COVARIANCE_TYPE_KNOWN'. -enum -{ - sensor_msgs__msg__NavSatFix__COVARIANCE_TYPE_KNOWN = 3 -}; - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'status' -#include "sensor_msgs/msg/detail/nav_sat_status__struct.h" - -/// Struct defined in msg/NavSatFix in the package sensor_msgs. -/** - * Navigation Satellite fix for any Global Navigation Satellite System - * - * Specified using the WGS 84 reference ellipsoid - */ -typedef struct sensor_msgs__msg__NavSatFix -{ - /// header.stamp specifies the ROS time for this measurement (the - /// corresponding satellite time may be reported using the - /// sensor_msgs/TimeReference message). - /// - /// header.frame_id is the frame of reference reported by the satellite - /// receiver, usually the location of the antenna. This is a - /// Euclidean frame relative to the vehicle, not a reference - /// ellipsoid. - std_msgs__msg__Header header; - /// Satellite fix status information. - sensor_msgs__msg__NavSatStatus status; - /// Latitude. Positive is north of equator; negative is south. - double latitude; - /// Longitude. Positive is east of prime meridian; negative is west. - double longitude; - /// Altitude. Positive is above the WGS 84 ellipsoid - /// (quiet NaN if no altitude is available). - double altitude; - /// Position covariance defined relative to a tangential plane - /// through the reported position. The components are East, North, and - /// Up (ENU), in row-major order. - /// - /// Beware: this coordinate system exhibits singularities at the poles. - double position_covariance[9]; - uint8_t position_covariance_type; -} sensor_msgs__msg__NavSatFix; - -// Struct for a sequence of sensor_msgs__msg__NavSatFix. -typedef struct sensor_msgs__msg__NavSatFix__Sequence -{ - sensor_msgs__msg__NavSatFix * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__NavSatFix__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__NAV_SAT_FIX__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/nav_sat_fix__type_support.h b/src/sensor_msgs/msg/detail/nav_sat_fix__type_support.h deleted file mode 100755 index 0e16bfbfe..000000000 --- a/src/sensor_msgs/msg/detail/nav_sat_fix__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/NavSatFix.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/nav_sat_fix.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__NAV_SAT_FIX__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__NAV_SAT_FIX__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - NavSatFix -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__NAV_SAT_FIX__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/nav_sat_status__functions.h b/src/sensor_msgs/msg/detail/nav_sat_status__functions.h deleted file mode 100755 index 7ae741ad5..000000000 --- a/src/sensor_msgs/msg/detail/nav_sat_status__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/NavSatStatus.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/nav_sat_status.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__NAV_SAT_STATUS__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__NAV_SAT_STATUS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/nav_sat_status__struct.h" - -/// Initialize msg/NavSatStatus message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__NavSatStatus - * )) before or use - * sensor_msgs__msg__NavSatStatus__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__NavSatStatus__init(sensor_msgs__msg__NavSatStatus * msg); - -/// Finalize msg/NavSatStatus message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__NavSatStatus__fini(sensor_msgs__msg__NavSatStatus * msg); - -/// Create msg/NavSatStatus message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__NavSatStatus__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__NavSatStatus * -sensor_msgs__msg__NavSatStatus__create(void); - -/// Destroy msg/NavSatStatus message. -/** - * It calls - * sensor_msgs__msg__NavSatStatus__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__NavSatStatus__destroy(sensor_msgs__msg__NavSatStatus * msg); - -/// Check for msg/NavSatStatus message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__NavSatStatus__are_equal(const sensor_msgs__msg__NavSatStatus * lhs, const sensor_msgs__msg__NavSatStatus * rhs); - -/// Copy a msg/NavSatStatus message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__NavSatStatus__copy( - const sensor_msgs__msg__NavSatStatus * input, - sensor_msgs__msg__NavSatStatus * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__NavSatStatus__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__NavSatStatus__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__NavSatStatus__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__NavSatStatus__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/NavSatStatus messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__NavSatStatus__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__NavSatStatus__Sequence__init(sensor_msgs__msg__NavSatStatus__Sequence * array, size_t size); - -/// Finalize array of msg/NavSatStatus messages. -/** - * It calls - * sensor_msgs__msg__NavSatStatus__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__NavSatStatus__Sequence__fini(sensor_msgs__msg__NavSatStatus__Sequence * array); - -/// Create array of msg/NavSatStatus messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__NavSatStatus__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__NavSatStatus__Sequence * -sensor_msgs__msg__NavSatStatus__Sequence__create(size_t size); - -/// Destroy array of msg/NavSatStatus messages. -/** - * It calls - * sensor_msgs__msg__NavSatStatus__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__NavSatStatus__Sequence__destroy(sensor_msgs__msg__NavSatStatus__Sequence * array); - -/// Check for msg/NavSatStatus message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__NavSatStatus__Sequence__are_equal(const sensor_msgs__msg__NavSatStatus__Sequence * lhs, const sensor_msgs__msg__NavSatStatus__Sequence * rhs); - -/// Copy an array of msg/NavSatStatus messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__NavSatStatus__Sequence__copy( - const sensor_msgs__msg__NavSatStatus__Sequence * input, - sensor_msgs__msg__NavSatStatus__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__NAV_SAT_STATUS__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/nav_sat_status__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/nav_sat_status__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 222fd5957..000000000 --- a/src/sensor_msgs/msg/detail/nav_sat_status__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/NavSatStatus.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__NAV_SAT_STATUS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__NAV_SAT_STATUS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, NavSatStatus)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__NAV_SAT_STATUS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/nav_sat_status__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/nav_sat_status__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 6c5518ec7..000000000 --- a/src/sensor_msgs/msg/detail/nav_sat_status__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/NavSatStatus.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__NAV_SAT_STATUS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__NAV_SAT_STATUS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__NavSatStatus( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__NavSatStatus( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, NavSatStatus)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__NAV_SAT_STATUS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/nav_sat_status__struct.h b/src/sensor_msgs/msg/detail/nav_sat_status__struct.h deleted file mode 100755 index d45b6614b..000000000 --- a/src/sensor_msgs/msg/detail/nav_sat_status__struct.h +++ /dev/null @@ -1,134 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/NavSatStatus.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/nav_sat_status.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__NAV_SAT_STATUS__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__NAV_SAT_STATUS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'STATUS_UNKNOWN'. -/** - * status is not yet set - */ -enum -{ - sensor_msgs__msg__NavSatStatus__STATUS_UNKNOWN = -2 -}; - -/// Constant 'STATUS_NO_FIX'. -/** - * unable to fix position - */ -enum -{ - sensor_msgs__msg__NavSatStatus__STATUS_NO_FIX = -1 -}; - -/// Constant 'STATUS_FIX'. -/** - * unaugmented fix - */ -enum -{ - sensor_msgs__msg__NavSatStatus__STATUS_FIX = 0 -}; - -/// Constant 'STATUS_SBAS_FIX'. -/** - * with satellite-based augmentation - */ -enum -{ - sensor_msgs__msg__NavSatStatus__STATUS_SBAS_FIX = 1 -}; - -/// Constant 'STATUS_GBAS_FIX'. -/** - * with ground-based augmentation - */ -enum -{ - sensor_msgs__msg__NavSatStatus__STATUS_GBAS_FIX = 2 -}; - -/// Constant 'SERVICE_UNKNOWN'. -/** - * Bits defining which Global Navigation Satellite System signals were - * used by the receiver. - * Remember service is a bitfield, so checking (service & SERVICE_UNKNOWN) will not work. Use == instead. - */ -enum -{ - sensor_msgs__msg__NavSatStatus__SERVICE_UNKNOWN = 0 -}; - -/// Constant 'SERVICE_GPS'. -enum -{ - sensor_msgs__msg__NavSatStatus__SERVICE_GPS = 1 -}; - -/// Constant 'SERVICE_GLONASS'. -enum -{ - sensor_msgs__msg__NavSatStatus__SERVICE_GLONASS = 2 -}; - -/// Constant 'SERVICE_COMPASS'. -/** - * includes BeiDou. - */ -enum -{ - sensor_msgs__msg__NavSatStatus__SERVICE_COMPASS = 4 -}; - -/// Constant 'SERVICE_GALILEO'. -enum -{ - sensor_msgs__msg__NavSatStatus__SERVICE_GALILEO = 8 -}; - -/// Struct defined in msg/NavSatStatus in the package sensor_msgs. -/** - * Navigation Satellite fix status for any Global Navigation Satellite System. - * - * Whether to output an augmented fix is determined by both the fix - * type and the last time differential corrections were received. A - * fix is valid when status >= STATUS_FIX. - */ -typedef struct sensor_msgs__msg__NavSatStatus -{ - /// STATUS_UNKNOWN - int8_t status; - uint16_t service; -} sensor_msgs__msg__NavSatStatus; - -// Struct for a sequence of sensor_msgs__msg__NavSatStatus. -typedef struct sensor_msgs__msg__NavSatStatus__Sequence -{ - sensor_msgs__msg__NavSatStatus * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__NavSatStatus__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__NAV_SAT_STATUS__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/nav_sat_status__type_support.h b/src/sensor_msgs/msg/detail/nav_sat_status__type_support.h deleted file mode 100755 index f092a78e9..000000000 --- a/src/sensor_msgs/msg/detail/nav_sat_status__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/NavSatStatus.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/nav_sat_status.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__NAV_SAT_STATUS__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__NAV_SAT_STATUS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - NavSatStatus -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__NAV_SAT_STATUS__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/point_cloud2__functions.h b/src/sensor_msgs/msg/detail/point_cloud2__functions.h deleted file mode 100755 index 0e1d31b7d..000000000 --- a/src/sensor_msgs/msg/detail/point_cloud2__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/PointCloud2.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/point_cloud2.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD2__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD2__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/point_cloud2__struct.h" - -/// Initialize msg/PointCloud2 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__PointCloud2 - * )) before or use - * sensor_msgs__msg__PointCloud2__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointCloud2__init(sensor_msgs__msg__PointCloud2 * msg); - -/// Finalize msg/PointCloud2 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__PointCloud2__fini(sensor_msgs__msg__PointCloud2 * msg); - -/// Create msg/PointCloud2 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__PointCloud2__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__PointCloud2 * -sensor_msgs__msg__PointCloud2__create(void); - -/// Destroy msg/PointCloud2 message. -/** - * It calls - * sensor_msgs__msg__PointCloud2__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__PointCloud2__destroy(sensor_msgs__msg__PointCloud2 * msg); - -/// Check for msg/PointCloud2 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointCloud2__are_equal(const sensor_msgs__msg__PointCloud2 * lhs, const sensor_msgs__msg__PointCloud2 * rhs); - -/// Copy a msg/PointCloud2 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointCloud2__copy( - const sensor_msgs__msg__PointCloud2 * input, - sensor_msgs__msg__PointCloud2 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__PointCloud2__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__PointCloud2__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__PointCloud2__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__PointCloud2__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/PointCloud2 messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__PointCloud2__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointCloud2__Sequence__init(sensor_msgs__msg__PointCloud2__Sequence * array, size_t size); - -/// Finalize array of msg/PointCloud2 messages. -/** - * It calls - * sensor_msgs__msg__PointCloud2__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__PointCloud2__Sequence__fini(sensor_msgs__msg__PointCloud2__Sequence * array); - -/// Create array of msg/PointCloud2 messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__PointCloud2__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__PointCloud2__Sequence * -sensor_msgs__msg__PointCloud2__Sequence__create(size_t size); - -/// Destroy array of msg/PointCloud2 messages. -/** - * It calls - * sensor_msgs__msg__PointCloud2__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__PointCloud2__Sequence__destroy(sensor_msgs__msg__PointCloud2__Sequence * array); - -/// Check for msg/PointCloud2 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointCloud2__Sequence__are_equal(const sensor_msgs__msg__PointCloud2__Sequence * lhs, const sensor_msgs__msg__PointCloud2__Sequence * rhs); - -/// Copy an array of msg/PointCloud2 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointCloud2__Sequence__copy( - const sensor_msgs__msg__PointCloud2__Sequence * input, - sensor_msgs__msg__PointCloud2__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD2__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/point_cloud2__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/point_cloud2__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 3111742c6..000000000 --- a/src/sensor_msgs/msg/detail/point_cloud2__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/PointCloud2.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD2__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD2__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, PointCloud2)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD2__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/point_cloud2__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/point_cloud2__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index f46c6d7b9..000000000 --- a/src/sensor_msgs/msg/detail/point_cloud2__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/PointCloud2.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__POINT_CLOUD2__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__POINT_CLOUD2__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__PointCloud2( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__PointCloud2( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, PointCloud2)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__POINT_CLOUD2__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/point_cloud2__struct.h b/src/sensor_msgs/msg/detail/point_cloud2__struct.h deleted file mode 100755 index 88ea5beb0..000000000 --- a/src/sensor_msgs/msg/detail/point_cloud2__struct.h +++ /dev/null @@ -1,77 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/PointCloud2.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/point_cloud2.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD2__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD2__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'fields' -#include "sensor_msgs/msg/detail/point_field__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/PointCloud2 in the package sensor_msgs. -/** - * This message holds a collection of N-dimensional points, which may - * contain additional information such as normals, intensity, etc. The - * point data is stored as a binary blob, its layout described by the - * contents of the "fields" array. - * - * The point cloud data may be organized 2d (image-like) or 1d (unordered). - * Point clouds organized as 2d images may be produced by camera depth sensors - * such as stereo or time-of-flight. - */ -typedef struct sensor_msgs__msg__PointCloud2 -{ - /// Time of sensor data acquisition, and the coordinate frame ID (for 3d points). - std_msgs__msg__Header header; - /// 2D structure of the point cloud. If the cloud is unordered, height is - /// 1 and width is the length of the point cloud. - uint32_t height; - uint32_t width; - /// Describes the channels and their layout in the binary data blob. - sensor_msgs__msg__PointField__Sequence fields; - /// Is this data bigendian? - bool is_bigendian; - /// Length of a point in bytes - uint32_t point_step; - /// Length of a row in bytes - uint32_t row_step; - /// Actual point data, size is (row_step*height) - rosidl_runtime_c__uint8__Sequence data; - /// True if there are no invalid points - bool is_dense; -} sensor_msgs__msg__PointCloud2; - -// Struct for a sequence of sensor_msgs__msg__PointCloud2. -typedef struct sensor_msgs__msg__PointCloud2__Sequence -{ - sensor_msgs__msg__PointCloud2 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__PointCloud2__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD2__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/point_cloud2__type_support.h b/src/sensor_msgs/msg/detail/point_cloud2__type_support.h deleted file mode 100755 index 1f69d56f6..000000000 --- a/src/sensor_msgs/msg/detail/point_cloud2__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/PointCloud2.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/point_cloud2.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD2__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD2__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - PointCloud2 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD2__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/point_cloud__functions.h b/src/sensor_msgs/msg/detail/point_cloud__functions.h deleted file mode 100755 index 842caf32f..000000000 --- a/src/sensor_msgs/msg/detail/point_cloud__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/PointCloud.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/point_cloud.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/point_cloud__struct.h" - -/// Initialize msg/PointCloud message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__PointCloud - * )) before or use - * sensor_msgs__msg__PointCloud__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointCloud__init(sensor_msgs__msg__PointCloud * msg); - -/// Finalize msg/PointCloud message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__PointCloud__fini(sensor_msgs__msg__PointCloud * msg); - -/// Create msg/PointCloud message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__PointCloud__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__PointCloud * -sensor_msgs__msg__PointCloud__create(void); - -/// Destroy msg/PointCloud message. -/** - * It calls - * sensor_msgs__msg__PointCloud__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__PointCloud__destroy(sensor_msgs__msg__PointCloud * msg); - -/// Check for msg/PointCloud message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointCloud__are_equal(const sensor_msgs__msg__PointCloud * lhs, const sensor_msgs__msg__PointCloud * rhs); - -/// Copy a msg/PointCloud message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointCloud__copy( - const sensor_msgs__msg__PointCloud * input, - sensor_msgs__msg__PointCloud * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__PointCloud__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__PointCloud__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__PointCloud__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__PointCloud__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/PointCloud messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__PointCloud__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointCloud__Sequence__init(sensor_msgs__msg__PointCloud__Sequence * array, size_t size); - -/// Finalize array of msg/PointCloud messages. -/** - * It calls - * sensor_msgs__msg__PointCloud__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__PointCloud__Sequence__fini(sensor_msgs__msg__PointCloud__Sequence * array); - -/// Create array of msg/PointCloud messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__PointCloud__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__PointCloud__Sequence * -sensor_msgs__msg__PointCloud__Sequence__create(size_t size); - -/// Destroy array of msg/PointCloud messages. -/** - * It calls - * sensor_msgs__msg__PointCloud__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__PointCloud__Sequence__destroy(sensor_msgs__msg__PointCloud__Sequence * array); - -/// Check for msg/PointCloud message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointCloud__Sequence__are_equal(const sensor_msgs__msg__PointCloud__Sequence * lhs, const sensor_msgs__msg__PointCloud__Sequence * rhs); - -/// Copy an array of msg/PointCloud messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointCloud__Sequence__copy( - const sensor_msgs__msg__PointCloud__Sequence * input, - sensor_msgs__msg__PointCloud__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/point_cloud__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/point_cloud__rosidl_typesupport_introspection_c.h deleted file mode 100755 index dcdc69ca3..000000000 --- a/src/sensor_msgs/msg/detail/point_cloud__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/PointCloud.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, PointCloud)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/point_cloud__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/point_cloud__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index de0791200..000000000 --- a/src/sensor_msgs/msg/detail/point_cloud__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/PointCloud.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__POINT_CLOUD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__POINT_CLOUD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__PointCloud( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__PointCloud( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, PointCloud)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__POINT_CLOUD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/point_cloud__struct.h b/src/sensor_msgs/msg/detail/point_cloud__struct.h deleted file mode 100755 index a362a26db..000000000 --- a/src/sensor_msgs/msg/detail/point_cloud__struct.h +++ /dev/null @@ -1,64 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/PointCloud.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/point_cloud.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'points' -#include "geometry_msgs/msg/detail/point32__struct.h" -// Member 'channels' -#include "sensor_msgs/msg/detail/channel_float32__struct.h" - -/// Struct defined in msg/PointCloud in the package sensor_msgs. -/** - * THIS MESSAGE IS DEPRECATED AS OF FOXY - * Please use sensor_msgs/PointCloud2 - */ -typedef struct sensor_msgs__msg__PointCloud -{ - /// This message holds a collection of 3d points, plus optional additional - /// information about each point. - /// Time of sensor data acquisition, coordinate frame ID. - std_msgs__msg__Header header; - /// Array of 3d points. Each Point32 should be interpreted as a 3d point - /// in the frame given in the header. - geometry_msgs__msg__Point32__Sequence points; - /// Each channel should have the same number of elements as points array, - /// and the data in each channel should correspond 1:1 with each point. - /// Channel names in common practice are listed in ChannelFloat32.msg. - sensor_msgs__msg__ChannelFloat32__Sequence channels; -} sensor_msgs__msg__PointCloud; - -// Struct for a sequence of sensor_msgs__msg__PointCloud. -typedef struct sensor_msgs__msg__PointCloud__Sequence -{ - sensor_msgs__msg__PointCloud * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__PointCloud__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/point_cloud__type_support.h b/src/sensor_msgs/msg/detail/point_cloud__type_support.h deleted file mode 100755 index 58b500e9e..000000000 --- a/src/sensor_msgs/msg/detail/point_cloud__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/PointCloud.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/point_cloud.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - PointCloud -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__POINT_CLOUD__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/point_field__functions.h b/src/sensor_msgs/msg/detail/point_field__functions.h deleted file mode 100755 index 199b8cb98..000000000 --- a/src/sensor_msgs/msg/detail/point_field__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/PointField.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/point_field.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__POINT_FIELD__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__POINT_FIELD__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/point_field__struct.h" - -/// Initialize msg/PointField message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__PointField - * )) before or use - * sensor_msgs__msg__PointField__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointField__init(sensor_msgs__msg__PointField * msg); - -/// Finalize msg/PointField message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__PointField__fini(sensor_msgs__msg__PointField * msg); - -/// Create msg/PointField message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__PointField__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__PointField * -sensor_msgs__msg__PointField__create(void); - -/// Destroy msg/PointField message. -/** - * It calls - * sensor_msgs__msg__PointField__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__PointField__destroy(sensor_msgs__msg__PointField * msg); - -/// Check for msg/PointField message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointField__are_equal(const sensor_msgs__msg__PointField * lhs, const sensor_msgs__msg__PointField * rhs); - -/// Copy a msg/PointField message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointField__copy( - const sensor_msgs__msg__PointField * input, - sensor_msgs__msg__PointField * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__PointField__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__PointField__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__PointField__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__PointField__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/PointField messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__PointField__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointField__Sequence__init(sensor_msgs__msg__PointField__Sequence * array, size_t size); - -/// Finalize array of msg/PointField messages. -/** - * It calls - * sensor_msgs__msg__PointField__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__PointField__Sequence__fini(sensor_msgs__msg__PointField__Sequence * array); - -/// Create array of msg/PointField messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__PointField__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__PointField__Sequence * -sensor_msgs__msg__PointField__Sequence__create(size_t size); - -/// Destroy array of msg/PointField messages. -/** - * It calls - * sensor_msgs__msg__PointField__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__PointField__Sequence__destroy(sensor_msgs__msg__PointField__Sequence * array); - -/// Check for msg/PointField message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointField__Sequence__are_equal(const sensor_msgs__msg__PointField__Sequence * lhs, const sensor_msgs__msg__PointField__Sequence * rhs); - -/// Copy an array of msg/PointField messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__PointField__Sequence__copy( - const sensor_msgs__msg__PointField__Sequence * input, - sensor_msgs__msg__PointField__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__POINT_FIELD__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/point_field__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/point_field__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 51079047d..000000000 --- a/src/sensor_msgs/msg/detail/point_field__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/PointField.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__POINT_FIELD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__POINT_FIELD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, PointField)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__POINT_FIELD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/point_field__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/point_field__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index b1dca3677..000000000 --- a/src/sensor_msgs/msg/detail/point_field__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/PointField.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__POINT_FIELD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__POINT_FIELD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__PointField( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__PointField( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, PointField)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__POINT_FIELD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/point_field__struct.h b/src/sensor_msgs/msg/detail/point_field__struct.h deleted file mode 100755 index 4d028db59..000000000 --- a/src/sensor_msgs/msg/detail/point_field__struct.h +++ /dev/null @@ -1,106 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/PointField.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/point_field.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__POINT_FIELD__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__POINT_FIELD__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'INT8'. -enum -{ - sensor_msgs__msg__PointField__INT8 = 1 -}; - -/// Constant 'UINT8'. -enum -{ - sensor_msgs__msg__PointField__UINT8 = 2 -}; - -/// Constant 'INT16'. -enum -{ - sensor_msgs__msg__PointField__INT16 = 3 -}; - -/// Constant 'UINT16'. -enum -{ - sensor_msgs__msg__PointField__UINT16 = 4 -}; - -/// Constant 'INT32'. -enum -{ - sensor_msgs__msg__PointField__INT32 = 5 -}; - -/// Constant 'UINT32'. -enum -{ - sensor_msgs__msg__PointField__UINT32 = 6 -}; - -/// Constant 'FLOAT32'. -enum -{ - sensor_msgs__msg__PointField__FLOAT32 = 7 -}; - -/// Constant 'FLOAT64'. -enum -{ - sensor_msgs__msg__PointField__FLOAT64 = 8 -}; - -// Include directives for member types -// Member 'name' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/PointField in the package sensor_msgs. -/** - * This message holds the description of one point entry in the - * PointCloud2 message format. - */ -typedef struct sensor_msgs__msg__PointField -{ - /// Common PointField names are x, y, z, intensity, rgb, rgba - /// Name of field - rosidl_runtime_c__String name; - /// Offset from start of point struct - uint32_t offset; - /// Datatype enumeration, see above - uint8_t datatype; - /// How many elements in the field - uint32_t count; -} sensor_msgs__msg__PointField; - -// Struct for a sequence of sensor_msgs__msg__PointField. -typedef struct sensor_msgs__msg__PointField__Sequence -{ - sensor_msgs__msg__PointField * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__PointField__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__POINT_FIELD__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/point_field__type_support.h b/src/sensor_msgs/msg/detail/point_field__type_support.h deleted file mode 100755 index f5c724ffd..000000000 --- a/src/sensor_msgs/msg/detail/point_field__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/PointField.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/point_field.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__POINT_FIELD__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__POINT_FIELD__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - PointField -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__POINT_FIELD__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/range__functions.h b/src/sensor_msgs/msg/detail/range__functions.h deleted file mode 100755 index d9fac90ee..000000000 --- a/src/sensor_msgs/msg/detail/range__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/Range.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/range.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__RANGE__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__RANGE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/range__struct.h" - -/// Initialize msg/Range message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__Range - * )) before or use - * sensor_msgs__msg__Range__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Range__init(sensor_msgs__msg__Range * msg); - -/// Finalize msg/Range message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Range__fini(sensor_msgs__msg__Range * msg); - -/// Create msg/Range message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__Range__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__Range * -sensor_msgs__msg__Range__create(void); - -/// Destroy msg/Range message. -/** - * It calls - * sensor_msgs__msg__Range__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Range__destroy(sensor_msgs__msg__Range * msg); - -/// Check for msg/Range message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Range__are_equal(const sensor_msgs__msg__Range * lhs, const sensor_msgs__msg__Range * rhs); - -/// Copy a msg/Range message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Range__copy( - const sensor_msgs__msg__Range * input, - sensor_msgs__msg__Range * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__Range__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__Range__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__Range__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__Range__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Range messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__Range__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Range__Sequence__init(sensor_msgs__msg__Range__Sequence * array, size_t size); - -/// Finalize array of msg/Range messages. -/** - * It calls - * sensor_msgs__msg__Range__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Range__Sequence__fini(sensor_msgs__msg__Range__Sequence * array); - -/// Create array of msg/Range messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__Range__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__Range__Sequence * -sensor_msgs__msg__Range__Sequence__create(size_t size); - -/// Destroy array of msg/Range messages. -/** - * It calls - * sensor_msgs__msg__Range__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Range__Sequence__destroy(sensor_msgs__msg__Range__Sequence * array); - -/// Check for msg/Range message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Range__Sequence__are_equal(const sensor_msgs__msg__Range__Sequence * lhs, const sensor_msgs__msg__Range__Sequence * rhs); - -/// Copy an array of msg/Range messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Range__Sequence__copy( - const sensor_msgs__msg__Range__Sequence * input, - sensor_msgs__msg__Range__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__RANGE__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/range__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/range__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 61f0850d2..000000000 --- a/src/sensor_msgs/msg/detail/range__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/Range.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__RANGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__RANGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, Range)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__RANGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/range__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/range__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ac4a2a150..000000000 --- a/src/sensor_msgs/msg/detail/range__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/Range.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__RANGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__RANGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__Range( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__Range( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, Range)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__RANGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/range__struct.h b/src/sensor_msgs/msg/detail/range__struct.h deleted file mode 100755 index 2ea0b1aae..000000000 --- a/src/sensor_msgs/msg/detail/range__struct.h +++ /dev/null @@ -1,101 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/Range.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/range.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__RANGE__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__RANGE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'ULTRASOUND'. -/** - * Radiation type enums - * If you want a value added to this list, send an email to the ros-users list - */ -enum -{ - sensor_msgs__msg__Range__ULTRASOUND = 0 -}; - -/// Constant 'INFRARED'. -enum -{ - sensor_msgs__msg__Range__INFRARED = 1 -}; - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" - -/// Struct defined in msg/Range in the package sensor_msgs. -/** - * Single range reading from an active ranger that emits energy and reports - * one range reading that is valid along an arc at the distance measured. - * This message is not appropriate for laser scanners. See the LaserScan - * message if you are working with a laser scanner. - * - * This message also can represent a fixed-distance (binary) ranger. This - * sensor will have min_range===max_range===distance of detection. - * These sensors follow REP 117 and will output -Inf if the object is detected - * and +Inf if the object is outside of the detection range. - */ -typedef struct sensor_msgs__msg__Range -{ - /// timestamp in the header is the time the ranger - /// returned the distance reading - std_msgs__msg__Header header; - /// the type of radiation used by the sensor - /// (sound, IR, etc) - uint8_t radiation_type; - /// the size of the arc that the distance reading is - /// valid for - /// the object causing the range reading may have - /// been anywhere within -field_of_view/2 and - /// field_of_view/2 at the measured range. - /// 0 angle corresponds to the x-axis of the sensor. - float field_of_view; - /// minimum range value - float min_range; - /// maximum range value - /// Fixed distance rangers require min_range==max_range - float max_range; - /// range data - /// (Note: values < range_min or > range_max should be discarded) - /// Fixed distance rangers only output -Inf or +Inf. - /// -Inf represents a detection within fixed distance. - /// (Detection too close to the sensor to quantify) - /// +Inf represents no detection within the fixed distance. - /// (Object out of range) - float range; - /// variance of the range sensor - /// 0 is interpreted as variance unknown - float variance; -} sensor_msgs__msg__Range; - -// Struct for a sequence of sensor_msgs__msg__Range. -typedef struct sensor_msgs__msg__Range__Sequence -{ - sensor_msgs__msg__Range * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__Range__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__RANGE__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/range__type_support.h b/src/sensor_msgs/msg/detail/range__type_support.h deleted file mode 100755 index be0b94dbf..000000000 --- a/src/sensor_msgs/msg/detail/range__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/Range.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/range.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__RANGE__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__RANGE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - Range -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__RANGE__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/region_of_interest__functions.h b/src/sensor_msgs/msg/detail/region_of_interest__functions.h deleted file mode 100755 index 34e053c94..000000000 --- a/src/sensor_msgs/msg/detail/region_of_interest__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/RegionOfInterest.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/region_of_interest.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__REGION_OF_INTEREST__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__REGION_OF_INTEREST__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/region_of_interest__struct.h" - -/// Initialize msg/RegionOfInterest message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__RegionOfInterest - * )) before or use - * sensor_msgs__msg__RegionOfInterest__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__RegionOfInterest__init(sensor_msgs__msg__RegionOfInterest * msg); - -/// Finalize msg/RegionOfInterest message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__RegionOfInterest__fini(sensor_msgs__msg__RegionOfInterest * msg); - -/// Create msg/RegionOfInterest message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__RegionOfInterest__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__RegionOfInterest * -sensor_msgs__msg__RegionOfInterest__create(void); - -/// Destroy msg/RegionOfInterest message. -/** - * It calls - * sensor_msgs__msg__RegionOfInterest__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__RegionOfInterest__destroy(sensor_msgs__msg__RegionOfInterest * msg); - -/// Check for msg/RegionOfInterest message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__RegionOfInterest__are_equal(const sensor_msgs__msg__RegionOfInterest * lhs, const sensor_msgs__msg__RegionOfInterest * rhs); - -/// Copy a msg/RegionOfInterest message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__RegionOfInterest__copy( - const sensor_msgs__msg__RegionOfInterest * input, - sensor_msgs__msg__RegionOfInterest * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__RegionOfInterest__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__RegionOfInterest__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__RegionOfInterest__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__RegionOfInterest__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/RegionOfInterest messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__RegionOfInterest__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__RegionOfInterest__Sequence__init(sensor_msgs__msg__RegionOfInterest__Sequence * array, size_t size); - -/// Finalize array of msg/RegionOfInterest messages. -/** - * It calls - * sensor_msgs__msg__RegionOfInterest__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__RegionOfInterest__Sequence__fini(sensor_msgs__msg__RegionOfInterest__Sequence * array); - -/// Create array of msg/RegionOfInterest messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__RegionOfInterest__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__RegionOfInterest__Sequence * -sensor_msgs__msg__RegionOfInterest__Sequence__create(size_t size); - -/// Destroy array of msg/RegionOfInterest messages. -/** - * It calls - * sensor_msgs__msg__RegionOfInterest__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__RegionOfInterest__Sequence__destroy(sensor_msgs__msg__RegionOfInterest__Sequence * array); - -/// Check for msg/RegionOfInterest message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__RegionOfInterest__Sequence__are_equal(const sensor_msgs__msg__RegionOfInterest__Sequence * lhs, const sensor_msgs__msg__RegionOfInterest__Sequence * rhs); - -/// Copy an array of msg/RegionOfInterest messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__RegionOfInterest__Sequence__copy( - const sensor_msgs__msg__RegionOfInterest__Sequence * input, - sensor_msgs__msg__RegionOfInterest__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__REGION_OF_INTEREST__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/region_of_interest__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/region_of_interest__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 3788b5c04..000000000 --- a/src/sensor_msgs/msg/detail/region_of_interest__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/RegionOfInterest.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__REGION_OF_INTEREST__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__REGION_OF_INTEREST__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, RegionOfInterest)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__REGION_OF_INTEREST__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/region_of_interest__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/region_of_interest__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index e4a02860e..000000000 --- a/src/sensor_msgs/msg/detail/region_of_interest__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/RegionOfInterest.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__REGION_OF_INTEREST__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__REGION_OF_INTEREST__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__RegionOfInterest( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__RegionOfInterest( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, RegionOfInterest)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__REGION_OF_INTEREST__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/region_of_interest__struct.h b/src/sensor_msgs/msg/detail/region_of_interest__struct.h deleted file mode 100755 index 3479b4265..000000000 --- a/src/sensor_msgs/msg/detail/region_of_interest__struct.h +++ /dev/null @@ -1,64 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/RegionOfInterest.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/region_of_interest.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__REGION_OF_INTEREST__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__REGION_OF_INTEREST__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/RegionOfInterest in the package sensor_msgs. -/** - * This message is used to specify a region of interest within an image. - * - * When used to specify the ROI setting of the camera when the image was - * taken, the height and width fields should either match the height and - * width fields for the associated image; or height = width = 0 - * indicates that the full resolution image was captured. - */ -typedef struct sensor_msgs__msg__RegionOfInterest -{ - /// Leftmost pixel of the ROI - /// (0 if the ROI includes the left edge of the image) - uint32_t x_offset; - /// Topmost pixel of the ROI - /// (0 if the ROI includes the top edge of the image) - uint32_t y_offset; - /// Height of ROI - uint32_t height; - /// Width of ROI - uint32_t width; - /// True if a distinct rectified ROI should be calculated from the "raw" - /// ROI in this message. Typically this should be False if the full image - /// is captured (ROI not used), and True if a subwindow is captured (ROI - /// used). - bool do_rectify; -} sensor_msgs__msg__RegionOfInterest; - -// Struct for a sequence of sensor_msgs__msg__RegionOfInterest. -typedef struct sensor_msgs__msg__RegionOfInterest__Sequence -{ - sensor_msgs__msg__RegionOfInterest * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__RegionOfInterest__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__REGION_OF_INTEREST__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/region_of_interest__type_support.h b/src/sensor_msgs/msg/detail/region_of_interest__type_support.h deleted file mode 100755 index 9bff650bd..000000000 --- a/src/sensor_msgs/msg/detail/region_of_interest__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/RegionOfInterest.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/region_of_interest.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__REGION_OF_INTEREST__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__REGION_OF_INTEREST__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - RegionOfInterest -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__REGION_OF_INTEREST__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/relative_humidity__functions.h b/src/sensor_msgs/msg/detail/relative_humidity__functions.h deleted file mode 100755 index f60ac9b58..000000000 --- a/src/sensor_msgs/msg/detail/relative_humidity__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/RelativeHumidity.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/relative_humidity.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__RELATIVE_HUMIDITY__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__RELATIVE_HUMIDITY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/relative_humidity__struct.h" - -/// Initialize msg/RelativeHumidity message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__RelativeHumidity - * )) before or use - * sensor_msgs__msg__RelativeHumidity__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__RelativeHumidity__init(sensor_msgs__msg__RelativeHumidity * msg); - -/// Finalize msg/RelativeHumidity message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__RelativeHumidity__fini(sensor_msgs__msg__RelativeHumidity * msg); - -/// Create msg/RelativeHumidity message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__RelativeHumidity__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__RelativeHumidity * -sensor_msgs__msg__RelativeHumidity__create(void); - -/// Destroy msg/RelativeHumidity message. -/** - * It calls - * sensor_msgs__msg__RelativeHumidity__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__RelativeHumidity__destroy(sensor_msgs__msg__RelativeHumidity * msg); - -/// Check for msg/RelativeHumidity message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__RelativeHumidity__are_equal(const sensor_msgs__msg__RelativeHumidity * lhs, const sensor_msgs__msg__RelativeHumidity * rhs); - -/// Copy a msg/RelativeHumidity message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__RelativeHumidity__copy( - const sensor_msgs__msg__RelativeHumidity * input, - sensor_msgs__msg__RelativeHumidity * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__RelativeHumidity__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__RelativeHumidity__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__RelativeHumidity__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__RelativeHumidity__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/RelativeHumidity messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__RelativeHumidity__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__RelativeHumidity__Sequence__init(sensor_msgs__msg__RelativeHumidity__Sequence * array, size_t size); - -/// Finalize array of msg/RelativeHumidity messages. -/** - * It calls - * sensor_msgs__msg__RelativeHumidity__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__RelativeHumidity__Sequence__fini(sensor_msgs__msg__RelativeHumidity__Sequence * array); - -/// Create array of msg/RelativeHumidity messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__RelativeHumidity__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__RelativeHumidity__Sequence * -sensor_msgs__msg__RelativeHumidity__Sequence__create(size_t size); - -/// Destroy array of msg/RelativeHumidity messages. -/** - * It calls - * sensor_msgs__msg__RelativeHumidity__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__RelativeHumidity__Sequence__destroy(sensor_msgs__msg__RelativeHumidity__Sequence * array); - -/// Check for msg/RelativeHumidity message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__RelativeHumidity__Sequence__are_equal(const sensor_msgs__msg__RelativeHumidity__Sequence * lhs, const sensor_msgs__msg__RelativeHumidity__Sequence * rhs); - -/// Copy an array of msg/RelativeHumidity messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__RelativeHumidity__Sequence__copy( - const sensor_msgs__msg__RelativeHumidity__Sequence * input, - sensor_msgs__msg__RelativeHumidity__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__RELATIVE_HUMIDITY__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/relative_humidity__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/relative_humidity__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 751cd6f63..000000000 --- a/src/sensor_msgs/msg/detail/relative_humidity__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/RelativeHumidity.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__RELATIVE_HUMIDITY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__RELATIVE_HUMIDITY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, RelativeHumidity)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__RELATIVE_HUMIDITY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/relative_humidity__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/relative_humidity__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 6390c0cdc..000000000 --- a/src/sensor_msgs/msg/detail/relative_humidity__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/RelativeHumidity.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__RELATIVE_HUMIDITY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__RELATIVE_HUMIDITY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__RelativeHumidity( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__RelativeHumidity( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, RelativeHumidity)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__RELATIVE_HUMIDITY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/relative_humidity__struct.h b/src/sensor_msgs/msg/detail/relative_humidity__struct.h deleted file mode 100755 index 27e28228d..000000000 --- a/src/sensor_msgs/msg/detail/relative_humidity__struct.h +++ /dev/null @@ -1,60 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/RelativeHumidity.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/relative_humidity.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__RELATIVE_HUMIDITY__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__RELATIVE_HUMIDITY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" - -/// Struct defined in msg/RelativeHumidity in the package sensor_msgs. -/** - * Single reading from a relative humidity sensor. - * Defines the ratio of partial pressure of water vapor to the saturated vapor - * pressure at a temperature. - */ -typedef struct sensor_msgs__msg__RelativeHumidity -{ - /// timestamp of the measurement - /// frame_id is the location of the humidity sensor - std_msgs__msg__Header header; - /// Expression of the relative humidity - /// from 0.0 to 1.0. - /// 0.0 is no partial pressure of water vapor - /// 1.0 represents partial pressure of saturation - double relative_humidity; - /// 0 is interpreted as variance unknown - double variance; -} sensor_msgs__msg__RelativeHumidity; - -// Struct for a sequence of sensor_msgs__msg__RelativeHumidity. -typedef struct sensor_msgs__msg__RelativeHumidity__Sequence -{ - sensor_msgs__msg__RelativeHumidity * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__RelativeHumidity__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__RELATIVE_HUMIDITY__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/relative_humidity__type_support.h b/src/sensor_msgs/msg/detail/relative_humidity__type_support.h deleted file mode 100755 index 36dcbb7da..000000000 --- a/src/sensor_msgs/msg/detail/relative_humidity__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/RelativeHumidity.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/relative_humidity.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__RELATIVE_HUMIDITY__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__RELATIVE_HUMIDITY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - RelativeHumidity -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__RELATIVE_HUMIDITY__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/temperature__functions.h b/src/sensor_msgs/msg/detail/temperature__functions.h deleted file mode 100755 index b8e40aae7..000000000 --- a/src/sensor_msgs/msg/detail/temperature__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/Temperature.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/temperature.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__TEMPERATURE__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__TEMPERATURE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/temperature__struct.h" - -/// Initialize msg/Temperature message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__Temperature - * )) before or use - * sensor_msgs__msg__Temperature__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Temperature__init(sensor_msgs__msg__Temperature * msg); - -/// Finalize msg/Temperature message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Temperature__fini(sensor_msgs__msg__Temperature * msg); - -/// Create msg/Temperature message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__Temperature__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__Temperature * -sensor_msgs__msg__Temperature__create(void); - -/// Destroy msg/Temperature message. -/** - * It calls - * sensor_msgs__msg__Temperature__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Temperature__destroy(sensor_msgs__msg__Temperature * msg); - -/// Check for msg/Temperature message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Temperature__are_equal(const sensor_msgs__msg__Temperature * lhs, const sensor_msgs__msg__Temperature * rhs); - -/// Copy a msg/Temperature message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Temperature__copy( - const sensor_msgs__msg__Temperature * input, - sensor_msgs__msg__Temperature * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__Temperature__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__Temperature__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__Temperature__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__Temperature__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Temperature messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__Temperature__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Temperature__Sequence__init(sensor_msgs__msg__Temperature__Sequence * array, size_t size); - -/// Finalize array of msg/Temperature messages. -/** - * It calls - * sensor_msgs__msg__Temperature__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Temperature__Sequence__fini(sensor_msgs__msg__Temperature__Sequence * array); - -/// Create array of msg/Temperature messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__Temperature__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__Temperature__Sequence * -sensor_msgs__msg__Temperature__Sequence__create(size_t size); - -/// Destroy array of msg/Temperature messages. -/** - * It calls - * sensor_msgs__msg__Temperature__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__Temperature__Sequence__destroy(sensor_msgs__msg__Temperature__Sequence * array); - -/// Check for msg/Temperature message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Temperature__Sequence__are_equal(const sensor_msgs__msg__Temperature__Sequence * lhs, const sensor_msgs__msg__Temperature__Sequence * rhs); - -/// Copy an array of msg/Temperature messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__Temperature__Sequence__copy( - const sensor_msgs__msg__Temperature__Sequence * input, - sensor_msgs__msg__Temperature__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__TEMPERATURE__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/temperature__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/temperature__rosidl_typesupport_introspection_c.h deleted file mode 100755 index dacae776e..000000000 --- a/src/sensor_msgs/msg/detail/temperature__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/Temperature.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__TEMPERATURE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__TEMPERATURE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, Temperature)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__TEMPERATURE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/temperature__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/temperature__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 900a9e7fb..000000000 --- a/src/sensor_msgs/msg/detail/temperature__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/Temperature.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__TEMPERATURE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__TEMPERATURE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__Temperature( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__Temperature( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, Temperature)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__TEMPERATURE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/temperature__struct.h b/src/sensor_msgs/msg/detail/temperature__struct.h deleted file mode 100755 index 483d1fda7..000000000 --- a/src/sensor_msgs/msg/detail/temperature__struct.h +++ /dev/null @@ -1,55 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/Temperature.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/temperature.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__TEMPERATURE__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__TEMPERATURE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" - -/// Struct defined in msg/Temperature in the package sensor_msgs. -/** - * Single temperature reading. - */ -typedef struct sensor_msgs__msg__Temperature -{ - /// timestamp is the time the temperature was measured - /// frame_id is the location of the temperature reading - std_msgs__msg__Header header; - /// Measurement of the Temperature in Degrees Celsius. - double temperature; - /// 0 is interpreted as variance unknown. - double variance; -} sensor_msgs__msg__Temperature; - -// Struct for a sequence of sensor_msgs__msg__Temperature. -typedef struct sensor_msgs__msg__Temperature__Sequence -{ - sensor_msgs__msg__Temperature * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__Temperature__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__TEMPERATURE__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/temperature__type_support.h b/src/sensor_msgs/msg/detail/temperature__type_support.h deleted file mode 100755 index 4130e33d5..000000000 --- a/src/sensor_msgs/msg/detail/temperature__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/Temperature.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/temperature.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__TEMPERATURE__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__TEMPERATURE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - Temperature -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__TEMPERATURE__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/detail/time_reference__functions.h b/src/sensor_msgs/msg/detail/time_reference__functions.h deleted file mode 100755 index df4b44170..000000000 --- a/src/sensor_msgs/msg/detail/time_reference__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:msg/TimeReference.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/time_reference.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__TIME_REFERENCE__FUNCTIONS_H_ -#define SENSOR_MSGS__MSG__DETAIL__TIME_REFERENCE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/msg/detail/time_reference__struct.h" - -/// Initialize msg/TimeReference message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__msg__TimeReference - * )) before or use - * sensor_msgs__msg__TimeReference__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__TimeReference__init(sensor_msgs__msg__TimeReference * msg); - -/// Finalize msg/TimeReference message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__TimeReference__fini(sensor_msgs__msg__TimeReference * msg); - -/// Create msg/TimeReference message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__msg__TimeReference__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__TimeReference * -sensor_msgs__msg__TimeReference__create(void); - -/// Destroy msg/TimeReference message. -/** - * It calls - * sensor_msgs__msg__TimeReference__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__TimeReference__destroy(sensor_msgs__msg__TimeReference * msg); - -/// Check for msg/TimeReference message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__TimeReference__are_equal(const sensor_msgs__msg__TimeReference * lhs, const sensor_msgs__msg__TimeReference * rhs); - -/// Copy a msg/TimeReference message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__TimeReference__copy( - const sensor_msgs__msg__TimeReference * input, - sensor_msgs__msg__TimeReference * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__msg__TimeReference__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__msg__TimeReference__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__msg__TimeReference__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__msg__TimeReference__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/TimeReference messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__msg__TimeReference__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__TimeReference__Sequence__init(sensor_msgs__msg__TimeReference__Sequence * array, size_t size); - -/// Finalize array of msg/TimeReference messages. -/** - * It calls - * sensor_msgs__msg__TimeReference__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__TimeReference__Sequence__fini(sensor_msgs__msg__TimeReference__Sequence * array); - -/// Create array of msg/TimeReference messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__msg__TimeReference__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__msg__TimeReference__Sequence * -sensor_msgs__msg__TimeReference__Sequence__create(size_t size); - -/// Destroy array of msg/TimeReference messages. -/** - * It calls - * sensor_msgs__msg__TimeReference__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__msg__TimeReference__Sequence__destroy(sensor_msgs__msg__TimeReference__Sequence * array); - -/// Check for msg/TimeReference message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__TimeReference__Sequence__are_equal(const sensor_msgs__msg__TimeReference__Sequence * lhs, const sensor_msgs__msg__TimeReference__Sequence * rhs); - -/// Copy an array of msg/TimeReference messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__msg__TimeReference__Sequence__copy( - const sensor_msgs__msg__TimeReference__Sequence * input, - sensor_msgs__msg__TimeReference__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__TIME_REFERENCE__FUNCTIONS_H_ diff --git a/src/sensor_msgs/msg/detail/time_reference__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/msg/detail/time_reference__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 64ca1a323..000000000 --- a/src/sensor_msgs/msg/detail/time_reference__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:msg/TimeReference.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__DETAIL__TIME_REFERENCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__MSG__DETAIL__TIME_REFERENCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, msg, TimeReference)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__TIME_REFERENCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/msg/detail/time_reference__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/msg/detail/time_reference__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 0ba8e09fa..000000000 --- a/src/sensor_msgs/msg/detail/time_reference__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:msg/TimeReference.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__MSG__TIME_REFERENCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__MSG__TIME_REFERENCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__msg__TimeReference( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__msg__TimeReference( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, msg, TimeReference)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SENSOR_MSGS__MSG__TIME_REFERENCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/msg/detail/time_reference__struct.h b/src/sensor_msgs/msg/detail/time_reference__struct.h deleted file mode 100755 index 0a9f2e519..000000000 --- a/src/sensor_msgs/msg/detail/time_reference__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:msg/TimeReference.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/time_reference.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__TIME_REFERENCE__STRUCT_H_ -#define SENSOR_MSGS__MSG__DETAIL__TIME_REFERENCE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'time_ref' -#include "builtin_interfaces/msg/detail/time__struct.h" -// Member 'source' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/TimeReference in the package sensor_msgs. -/** - * Measurement from an external time source not actively synchronized with the system clock. - */ -typedef struct sensor_msgs__msg__TimeReference -{ - /// stamp is system time for which measurement was valid - /// frame_id is not used - std_msgs__msg__Header header; - /// corresponding time from this external source - builtin_interfaces__msg__Time time_ref; - /// (optional) name of time source - rosidl_runtime_c__String source; -} sensor_msgs__msg__TimeReference; - -// Struct for a sequence of sensor_msgs__msg__TimeReference. -typedef struct sensor_msgs__msg__TimeReference__Sequence -{ - sensor_msgs__msg__TimeReference * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__msg__TimeReference__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__TIME_REFERENCE__STRUCT_H_ diff --git a/src/sensor_msgs/msg/detail/time_reference__type_support.h b/src/sensor_msgs/msg/detail/time_reference__type_support.h deleted file mode 100755 index 634d8886b..000000000 --- a/src/sensor_msgs/msg/detail/time_reference__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:msg/TimeReference.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/msg/time_reference.h" - - -#ifndef SENSOR_MSGS__MSG__DETAIL__TIME_REFERENCE__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__MSG__DETAIL__TIME_REFERENCE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - msg, - TimeReference -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__DETAIL__TIME_REFERENCE__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/msg/fluid_pressure.h b/src/sensor_msgs/msg/fluid_pressure.h deleted file mode 100755 index 04de05ebf..000000000 --- a/src/sensor_msgs/msg/fluid_pressure.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/FluidPressure.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__FLUID_PRESSURE_H_ -#define SENSOR_MSGS__MSG__FLUID_PRESSURE_H_ - -#include "sensor_msgs/msg/detail/fluid_pressure__struct.h" -#include "sensor_msgs/msg/detail/fluid_pressure__functions.h" -#include "sensor_msgs/msg/detail/fluid_pressure__type_support.h" - -#endif // SENSOR_MSGS__MSG__FLUID_PRESSURE_H_ diff --git a/src/sensor_msgs/msg/illuminance.h b/src/sensor_msgs/msg/illuminance.h deleted file mode 100755 index cb78290ef..000000000 --- a/src/sensor_msgs/msg/illuminance.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/Illuminance.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__ILLUMINANCE_H_ -#define SENSOR_MSGS__MSG__ILLUMINANCE_H_ - -#include "sensor_msgs/msg/detail/illuminance__struct.h" -#include "sensor_msgs/msg/detail/illuminance__functions.h" -#include "sensor_msgs/msg/detail/illuminance__type_support.h" - -#endif // SENSOR_MSGS__MSG__ILLUMINANCE_H_ diff --git a/src/sensor_msgs/msg/image.h b/src/sensor_msgs/msg/image.h deleted file mode 100755 index bb9e2b5f3..000000000 --- a/src/sensor_msgs/msg/image.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/Image.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__IMAGE_H_ -#define SENSOR_MSGS__MSG__IMAGE_H_ - -#include "sensor_msgs/msg/detail/image__struct.h" -#include "sensor_msgs/msg/detail/image__functions.h" -#include "sensor_msgs/msg/detail/image__type_support.h" - -#endif // SENSOR_MSGS__MSG__IMAGE_H_ diff --git a/src/sensor_msgs/msg/imu.h b/src/sensor_msgs/msg/imu.h deleted file mode 100755 index 0b7e806d1..000000000 --- a/src/sensor_msgs/msg/imu.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/Imu.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__IMU_H_ -#define SENSOR_MSGS__MSG__IMU_H_ - -#include "sensor_msgs/msg/detail/imu__struct.h" -#include "sensor_msgs/msg/detail/imu__functions.h" -#include "sensor_msgs/msg/detail/imu__type_support.h" - -#endif // SENSOR_MSGS__MSG__IMU_H_ diff --git a/src/sensor_msgs/msg/joint_state.h b/src/sensor_msgs/msg/joint_state.h deleted file mode 100755 index af0df70e3..000000000 --- a/src/sensor_msgs/msg/joint_state.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/JointState.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__JOINT_STATE_H_ -#define SENSOR_MSGS__MSG__JOINT_STATE_H_ - -#include "sensor_msgs/msg/detail/joint_state__struct.h" -#include "sensor_msgs/msg/detail/joint_state__functions.h" -#include "sensor_msgs/msg/detail/joint_state__type_support.h" - -#endif // SENSOR_MSGS__MSG__JOINT_STATE_H_ diff --git a/src/sensor_msgs/msg/joy.h b/src/sensor_msgs/msg/joy.h deleted file mode 100755 index da79857a0..000000000 --- a/src/sensor_msgs/msg/joy.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/Joy.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__JOY_H_ -#define SENSOR_MSGS__MSG__JOY_H_ - -#include "sensor_msgs/msg/detail/joy__struct.h" -#include "sensor_msgs/msg/detail/joy__functions.h" -#include "sensor_msgs/msg/detail/joy__type_support.h" - -#endif // SENSOR_MSGS__MSG__JOY_H_ diff --git a/src/sensor_msgs/msg/joy_feedback.h b/src/sensor_msgs/msg/joy_feedback.h deleted file mode 100755 index 628e35cb3..000000000 --- a/src/sensor_msgs/msg/joy_feedback.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/JoyFeedback.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__JOY_FEEDBACK_H_ -#define SENSOR_MSGS__MSG__JOY_FEEDBACK_H_ - -#include "sensor_msgs/msg/detail/joy_feedback__struct.h" -#include "sensor_msgs/msg/detail/joy_feedback__functions.h" -#include "sensor_msgs/msg/detail/joy_feedback__type_support.h" - -#endif // SENSOR_MSGS__MSG__JOY_FEEDBACK_H_ diff --git a/src/sensor_msgs/msg/joy_feedback_array.h b/src/sensor_msgs/msg/joy_feedback_array.h deleted file mode 100755 index 3a5e8dd2a..000000000 --- a/src/sensor_msgs/msg/joy_feedback_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/JoyFeedbackArray.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__JOY_FEEDBACK_ARRAY_H_ -#define SENSOR_MSGS__MSG__JOY_FEEDBACK_ARRAY_H_ - -#include "sensor_msgs/msg/detail/joy_feedback_array__struct.h" -#include "sensor_msgs/msg/detail/joy_feedback_array__functions.h" -#include "sensor_msgs/msg/detail/joy_feedback_array__type_support.h" - -#endif // SENSOR_MSGS__MSG__JOY_FEEDBACK_ARRAY_H_ diff --git a/src/sensor_msgs/msg/laser_echo.h b/src/sensor_msgs/msg/laser_echo.h deleted file mode 100755 index 04aa38aa8..000000000 --- a/src/sensor_msgs/msg/laser_echo.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/LaserEcho.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__LASER_ECHO_H_ -#define SENSOR_MSGS__MSG__LASER_ECHO_H_ - -#include "sensor_msgs/msg/detail/laser_echo__struct.h" -#include "sensor_msgs/msg/detail/laser_echo__functions.h" -#include "sensor_msgs/msg/detail/laser_echo__type_support.h" - -#endif // SENSOR_MSGS__MSG__LASER_ECHO_H_ diff --git a/src/sensor_msgs/msg/laser_scan.h b/src/sensor_msgs/msg/laser_scan.h deleted file mode 100755 index 1464318cc..000000000 --- a/src/sensor_msgs/msg/laser_scan.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/LaserScan.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__LASER_SCAN_H_ -#define SENSOR_MSGS__MSG__LASER_SCAN_H_ - -#include "sensor_msgs/msg/detail/laser_scan__struct.h" -#include "sensor_msgs/msg/detail/laser_scan__functions.h" -#include "sensor_msgs/msg/detail/laser_scan__type_support.h" - -#endif // SENSOR_MSGS__MSG__LASER_SCAN_H_ diff --git a/src/sensor_msgs/msg/magnetic_field.h b/src/sensor_msgs/msg/magnetic_field.h deleted file mode 100755 index cc12b66a0..000000000 --- a/src/sensor_msgs/msg/magnetic_field.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/MagneticField.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__MAGNETIC_FIELD_H_ -#define SENSOR_MSGS__MSG__MAGNETIC_FIELD_H_ - -#include "sensor_msgs/msg/detail/magnetic_field__struct.h" -#include "sensor_msgs/msg/detail/magnetic_field__functions.h" -#include "sensor_msgs/msg/detail/magnetic_field__type_support.h" - -#endif // SENSOR_MSGS__MSG__MAGNETIC_FIELD_H_ diff --git a/src/sensor_msgs/msg/multi_dof_joint_state.h b/src/sensor_msgs/msg/multi_dof_joint_state.h deleted file mode 100755 index b08e9b159..000000000 --- a/src/sensor_msgs/msg/multi_dof_joint_state.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/MultiDOFJointState.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__MULTI_DOF_JOINT_STATE_H_ -#define SENSOR_MSGS__MSG__MULTI_DOF_JOINT_STATE_H_ - -#include "sensor_msgs/msg/detail/multi_dof_joint_state__struct.h" -#include "sensor_msgs/msg/detail/multi_dof_joint_state__functions.h" -#include "sensor_msgs/msg/detail/multi_dof_joint_state__type_support.h" - -#endif // SENSOR_MSGS__MSG__MULTI_DOF_JOINT_STATE_H_ diff --git a/src/sensor_msgs/msg/multi_echo_laser_scan.h b/src/sensor_msgs/msg/multi_echo_laser_scan.h deleted file mode 100755 index e72f6cee5..000000000 --- a/src/sensor_msgs/msg/multi_echo_laser_scan.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/MultiEchoLaserScan.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__MULTI_ECHO_LASER_SCAN_H_ -#define SENSOR_MSGS__MSG__MULTI_ECHO_LASER_SCAN_H_ - -#include "sensor_msgs/msg/detail/multi_echo_laser_scan__struct.h" -#include "sensor_msgs/msg/detail/multi_echo_laser_scan__functions.h" -#include "sensor_msgs/msg/detail/multi_echo_laser_scan__type_support.h" - -#endif // SENSOR_MSGS__MSG__MULTI_ECHO_LASER_SCAN_H_ diff --git a/src/sensor_msgs/msg/nav_sat_fix.h b/src/sensor_msgs/msg/nav_sat_fix.h deleted file mode 100755 index 3079423ab..000000000 --- a/src/sensor_msgs/msg/nav_sat_fix.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/NavSatFix.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__NAV_SAT_FIX_H_ -#define SENSOR_MSGS__MSG__NAV_SAT_FIX_H_ - -#include "sensor_msgs/msg/detail/nav_sat_fix__struct.h" -#include "sensor_msgs/msg/detail/nav_sat_fix__functions.h" -#include "sensor_msgs/msg/detail/nav_sat_fix__type_support.h" - -#endif // SENSOR_MSGS__MSG__NAV_SAT_FIX_H_ diff --git a/src/sensor_msgs/msg/nav_sat_status.h b/src/sensor_msgs/msg/nav_sat_status.h deleted file mode 100755 index 46b904924..000000000 --- a/src/sensor_msgs/msg/nav_sat_status.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/NavSatStatus.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__NAV_SAT_STATUS_H_ -#define SENSOR_MSGS__MSG__NAV_SAT_STATUS_H_ - -#include "sensor_msgs/msg/detail/nav_sat_status__struct.h" -#include "sensor_msgs/msg/detail/nav_sat_status__functions.h" -#include "sensor_msgs/msg/detail/nav_sat_status__type_support.h" - -#endif // SENSOR_MSGS__MSG__NAV_SAT_STATUS_H_ diff --git a/src/sensor_msgs/msg/point_cloud.h b/src/sensor_msgs/msg/point_cloud.h deleted file mode 100755 index 5d4156870..000000000 --- a/src/sensor_msgs/msg/point_cloud.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/PointCloud.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__POINT_CLOUD_H_ -#define SENSOR_MSGS__MSG__POINT_CLOUD_H_ - -#include "sensor_msgs/msg/detail/point_cloud__struct.h" -#include "sensor_msgs/msg/detail/point_cloud__functions.h" -#include "sensor_msgs/msg/detail/point_cloud__type_support.h" - -#endif // SENSOR_MSGS__MSG__POINT_CLOUD_H_ diff --git a/src/sensor_msgs/msg/point_cloud2.h b/src/sensor_msgs/msg/point_cloud2.h deleted file mode 100755 index 7adb77841..000000000 --- a/src/sensor_msgs/msg/point_cloud2.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/PointCloud2.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__POINT_CLOUD2_H_ -#define SENSOR_MSGS__MSG__POINT_CLOUD2_H_ - -#include "sensor_msgs/msg/detail/point_cloud2__struct.h" -#include "sensor_msgs/msg/detail/point_cloud2__functions.h" -#include "sensor_msgs/msg/detail/point_cloud2__type_support.h" - -#endif // SENSOR_MSGS__MSG__POINT_CLOUD2_H_ diff --git a/src/sensor_msgs/msg/point_field.h b/src/sensor_msgs/msg/point_field.h deleted file mode 100755 index c9498bbf9..000000000 --- a/src/sensor_msgs/msg/point_field.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/PointField.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__POINT_FIELD_H_ -#define SENSOR_MSGS__MSG__POINT_FIELD_H_ - -#include "sensor_msgs/msg/detail/point_field__struct.h" -#include "sensor_msgs/msg/detail/point_field__functions.h" -#include "sensor_msgs/msg/detail/point_field__type_support.h" - -#endif // SENSOR_MSGS__MSG__POINT_FIELD_H_ diff --git a/src/sensor_msgs/msg/range.h b/src/sensor_msgs/msg/range.h deleted file mode 100755 index 2bdb2acc9..000000000 --- a/src/sensor_msgs/msg/range.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/Range.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__RANGE_H_ -#define SENSOR_MSGS__MSG__RANGE_H_ - -#include "sensor_msgs/msg/detail/range__struct.h" -#include "sensor_msgs/msg/detail/range__functions.h" -#include "sensor_msgs/msg/detail/range__type_support.h" - -#endif // SENSOR_MSGS__MSG__RANGE_H_ diff --git a/src/sensor_msgs/msg/region_of_interest.h b/src/sensor_msgs/msg/region_of_interest.h deleted file mode 100755 index 4977af001..000000000 --- a/src/sensor_msgs/msg/region_of_interest.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/RegionOfInterest.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__REGION_OF_INTEREST_H_ -#define SENSOR_MSGS__MSG__REGION_OF_INTEREST_H_ - -#include "sensor_msgs/msg/detail/region_of_interest__struct.h" -#include "sensor_msgs/msg/detail/region_of_interest__functions.h" -#include "sensor_msgs/msg/detail/region_of_interest__type_support.h" - -#endif // SENSOR_MSGS__MSG__REGION_OF_INTEREST_H_ diff --git a/src/sensor_msgs/msg/relative_humidity.h b/src/sensor_msgs/msg/relative_humidity.h deleted file mode 100755 index 5ab445373..000000000 --- a/src/sensor_msgs/msg/relative_humidity.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/RelativeHumidity.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__RELATIVE_HUMIDITY_H_ -#define SENSOR_MSGS__MSG__RELATIVE_HUMIDITY_H_ - -#include "sensor_msgs/msg/detail/relative_humidity__struct.h" -#include "sensor_msgs/msg/detail/relative_humidity__functions.h" -#include "sensor_msgs/msg/detail/relative_humidity__type_support.h" - -#endif // SENSOR_MSGS__MSG__RELATIVE_HUMIDITY_H_ diff --git a/src/sensor_msgs/msg/rosidl_generator_c__visibility_control.h b/src/sensor_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 8635144b9..000000000 --- a/src/sensor_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define SENSOR_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_sensor_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_sensor_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_sensor_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_sensor_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_sensor_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs ROSIDL_GENERATOR_C_EXPORT_sensor_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs ROSIDL_GENERATOR_C_IMPORT_sensor_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_sensor_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_sensor_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index e7bc72253..000000000 --- a/src/sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define SENSOR_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_sensor_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_sensor_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_sensor_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_sensor_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_sensor_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_sensor_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_sensor_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_sensor_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_sensor_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 34c1de76c..000000000 --- a/src/sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define SENSOR_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_sensor_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_sensor_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_sensor_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_sensor_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_sensor_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_sensor_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_sensor_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_sensor_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_sensor_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/sensor_msgs/msg/temperature.h b/src/sensor_msgs/msg/temperature.h deleted file mode 100755 index db40015a2..000000000 --- a/src/sensor_msgs/msg/temperature.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/Temperature.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__TEMPERATURE_H_ -#define SENSOR_MSGS__MSG__TEMPERATURE_H_ - -#include "sensor_msgs/msg/detail/temperature__struct.h" -#include "sensor_msgs/msg/detail/temperature__functions.h" -#include "sensor_msgs/msg/detail/temperature__type_support.h" - -#endif // SENSOR_MSGS__MSG__TEMPERATURE_H_ diff --git a/src/sensor_msgs/msg/time_reference.h b/src/sensor_msgs/msg/time_reference.h deleted file mode 100755 index e601ce014..000000000 --- a/src/sensor_msgs/msg/time_reference.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:msg/TimeReference.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__MSG__TIME_REFERENCE_H_ -#define SENSOR_MSGS__MSG__TIME_REFERENCE_H_ - -#include "sensor_msgs/msg/detail/time_reference__struct.h" -#include "sensor_msgs/msg/detail/time_reference__functions.h" -#include "sensor_msgs/msg/detail/time_reference__type_support.h" - -#endif // SENSOR_MSGS__MSG__TIME_REFERENCE_H_ diff --git a/src/sensor_msgs/srv/detail/set_camera_info__functions.h b/src/sensor_msgs/srv/detail/set_camera_info__functions.h deleted file mode 100755 index eaa3fe75d..000000000 --- a/src/sensor_msgs/srv/detail/set_camera_info__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from sensor_msgs:srv/SetCameraInfo.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/srv/set_camera_info.h" - - -#ifndef SENSOR_MSGS__SRV__DETAIL__SET_CAMERA_INFO__FUNCTIONS_H_ -#define SENSOR_MSGS__SRV__DETAIL__SET_CAMERA_INFO__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "sensor_msgs/srv/detail/set_camera_info__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__srv__SetCameraInfo__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__srv__SetCameraInfo__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__srv__SetCameraInfo__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__srv__SetCameraInfo__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/SetCameraInfo message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__srv__SetCameraInfo_Request - * )) before or use - * sensor_msgs__srv__SetCameraInfo_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Request__init(sensor_msgs__srv__SetCameraInfo_Request * msg); - -/// Finalize srv/SetCameraInfo message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__srv__SetCameraInfo_Request__fini(sensor_msgs__srv__SetCameraInfo_Request * msg); - -/// Create srv/SetCameraInfo message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__srv__SetCameraInfo_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__srv__SetCameraInfo_Request * -sensor_msgs__srv__SetCameraInfo_Request__create(void); - -/// Destroy srv/SetCameraInfo message. -/** - * It calls - * sensor_msgs__srv__SetCameraInfo_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__srv__SetCameraInfo_Request__destroy(sensor_msgs__srv__SetCameraInfo_Request * msg); - -/// Check for srv/SetCameraInfo message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Request__are_equal(const sensor_msgs__srv__SetCameraInfo_Request * lhs, const sensor_msgs__srv__SetCameraInfo_Request * rhs); - -/// Copy a srv/SetCameraInfo message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Request__copy( - const sensor_msgs__srv__SetCameraInfo_Request * input, - sensor_msgs__srv__SetCameraInfo_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__srv__SetCameraInfo_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__srv__SetCameraInfo_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__srv__SetCameraInfo_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__srv__SetCameraInfo_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetCameraInfo messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__srv__SetCameraInfo_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Request__Sequence__init(sensor_msgs__srv__SetCameraInfo_Request__Sequence * array, size_t size); - -/// Finalize array of srv/SetCameraInfo messages. -/** - * It calls - * sensor_msgs__srv__SetCameraInfo_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__srv__SetCameraInfo_Request__Sequence__fini(sensor_msgs__srv__SetCameraInfo_Request__Sequence * array); - -/// Create array of srv/SetCameraInfo messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__srv__SetCameraInfo_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__srv__SetCameraInfo_Request__Sequence * -sensor_msgs__srv__SetCameraInfo_Request__Sequence__create(size_t size); - -/// Destroy array of srv/SetCameraInfo messages. -/** - * It calls - * sensor_msgs__srv__SetCameraInfo_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__srv__SetCameraInfo_Request__Sequence__destroy(sensor_msgs__srv__SetCameraInfo_Request__Sequence * array); - -/// Check for srv/SetCameraInfo message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Request__Sequence__are_equal(const sensor_msgs__srv__SetCameraInfo_Request__Sequence * lhs, const sensor_msgs__srv__SetCameraInfo_Request__Sequence * rhs); - -/// Copy an array of srv/SetCameraInfo messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Request__Sequence__copy( - const sensor_msgs__srv__SetCameraInfo_Request__Sequence * input, - sensor_msgs__srv__SetCameraInfo_Request__Sequence * output); - -/// Initialize srv/SetCameraInfo message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__srv__SetCameraInfo_Response - * )) before or use - * sensor_msgs__srv__SetCameraInfo_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Response__init(sensor_msgs__srv__SetCameraInfo_Response * msg); - -/// Finalize srv/SetCameraInfo message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__srv__SetCameraInfo_Response__fini(sensor_msgs__srv__SetCameraInfo_Response * msg); - -/// Create srv/SetCameraInfo message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__srv__SetCameraInfo_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__srv__SetCameraInfo_Response * -sensor_msgs__srv__SetCameraInfo_Response__create(void); - -/// Destroy srv/SetCameraInfo message. -/** - * It calls - * sensor_msgs__srv__SetCameraInfo_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__srv__SetCameraInfo_Response__destroy(sensor_msgs__srv__SetCameraInfo_Response * msg); - -/// Check for srv/SetCameraInfo message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Response__are_equal(const sensor_msgs__srv__SetCameraInfo_Response * lhs, const sensor_msgs__srv__SetCameraInfo_Response * rhs); - -/// Copy a srv/SetCameraInfo message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Response__copy( - const sensor_msgs__srv__SetCameraInfo_Response * input, - sensor_msgs__srv__SetCameraInfo_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__srv__SetCameraInfo_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__srv__SetCameraInfo_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__srv__SetCameraInfo_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__srv__SetCameraInfo_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetCameraInfo messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__srv__SetCameraInfo_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Response__Sequence__init(sensor_msgs__srv__SetCameraInfo_Response__Sequence * array, size_t size); - -/// Finalize array of srv/SetCameraInfo messages. -/** - * It calls - * sensor_msgs__srv__SetCameraInfo_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__srv__SetCameraInfo_Response__Sequence__fini(sensor_msgs__srv__SetCameraInfo_Response__Sequence * array); - -/// Create array of srv/SetCameraInfo messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__srv__SetCameraInfo_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__srv__SetCameraInfo_Response__Sequence * -sensor_msgs__srv__SetCameraInfo_Response__Sequence__create(size_t size); - -/// Destroy array of srv/SetCameraInfo messages. -/** - * It calls - * sensor_msgs__srv__SetCameraInfo_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__srv__SetCameraInfo_Response__Sequence__destroy(sensor_msgs__srv__SetCameraInfo_Response__Sequence * array); - -/// Check for srv/SetCameraInfo message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Response__Sequence__are_equal(const sensor_msgs__srv__SetCameraInfo_Response__Sequence * lhs, const sensor_msgs__srv__SetCameraInfo_Response__Sequence * rhs); - -/// Copy an array of srv/SetCameraInfo messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Response__Sequence__copy( - const sensor_msgs__srv__SetCameraInfo_Response__Sequence * input, - sensor_msgs__srv__SetCameraInfo_Response__Sequence * output); - -/// Initialize srv/SetCameraInfo message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * sensor_msgs__srv__SetCameraInfo_Event - * )) before or use - * sensor_msgs__srv__SetCameraInfo_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Event__init(sensor_msgs__srv__SetCameraInfo_Event * msg); - -/// Finalize srv/SetCameraInfo message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__srv__SetCameraInfo_Event__fini(sensor_msgs__srv__SetCameraInfo_Event * msg); - -/// Create srv/SetCameraInfo message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * sensor_msgs__srv__SetCameraInfo_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__srv__SetCameraInfo_Event * -sensor_msgs__srv__SetCameraInfo_Event__create(void); - -/// Destroy srv/SetCameraInfo message. -/** - * It calls - * sensor_msgs__srv__SetCameraInfo_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__srv__SetCameraInfo_Event__destroy(sensor_msgs__srv__SetCameraInfo_Event * msg); - -/// Check for srv/SetCameraInfo message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Event__are_equal(const sensor_msgs__srv__SetCameraInfo_Event * lhs, const sensor_msgs__srv__SetCameraInfo_Event * rhs); - -/// Copy a srv/SetCameraInfo message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Event__copy( - const sensor_msgs__srv__SetCameraInfo_Event * input, - sensor_msgs__srv__SetCameraInfo_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_type_hash_t * -sensor_msgs__srv__SetCameraInfo_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeDescription * -sensor_msgs__srv__SetCameraInfo_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource * -sensor_msgs__srv__SetCameraInfo_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -sensor_msgs__srv__SetCameraInfo_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetCameraInfo messages. -/** - * It allocates the memory for the number of elements and calls - * sensor_msgs__srv__SetCameraInfo_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Event__Sequence__init(sensor_msgs__srv__SetCameraInfo_Event__Sequence * array, size_t size); - -/// Finalize array of srv/SetCameraInfo messages. -/** - * It calls - * sensor_msgs__srv__SetCameraInfo_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__srv__SetCameraInfo_Event__Sequence__fini(sensor_msgs__srv__SetCameraInfo_Event__Sequence * array); - -/// Create array of srv/SetCameraInfo messages. -/** - * It allocates the memory for the array and calls - * sensor_msgs__srv__SetCameraInfo_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -sensor_msgs__srv__SetCameraInfo_Event__Sequence * -sensor_msgs__srv__SetCameraInfo_Event__Sequence__create(size_t size); - -/// Destroy array of srv/SetCameraInfo messages. -/** - * It calls - * sensor_msgs__srv__SetCameraInfo_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void -sensor_msgs__srv__SetCameraInfo_Event__Sequence__destroy(sensor_msgs__srv__SetCameraInfo_Event__Sequence * array); - -/// Check for srv/SetCameraInfo message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Event__Sequence__are_equal(const sensor_msgs__srv__SetCameraInfo_Event__Sequence * lhs, const sensor_msgs__srv__SetCameraInfo_Event__Sequence * rhs); - -/// Copy an array of srv/SetCameraInfo messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -sensor_msgs__srv__SetCameraInfo_Event__Sequence__copy( - const sensor_msgs__srv__SetCameraInfo_Event__Sequence * input, - sensor_msgs__srv__SetCameraInfo_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__SRV__DETAIL__SET_CAMERA_INFO__FUNCTIONS_H_ diff --git a/src/sensor_msgs/srv/detail/set_camera_info__rosidl_typesupport_introspection_c.h b/src/sensor_msgs/srv/detail/set_camera_info__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5f2e5d227..000000000 --- a/src/sensor_msgs/srv/detail/set_camera_info__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from sensor_msgs:srv/SetCameraInfo.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__SRV__DETAIL__SET_CAMERA_INFO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SENSOR_MSGS__SRV__DETAIL__SET_CAMERA_INFO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, srv, SetCameraInfo_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, srv, SetCameraInfo_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, srv, SetCameraInfo_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "sensor_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_sensor_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, sensor_msgs, srv, SetCameraInfo)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__SRV__DETAIL__SET_CAMERA_INFO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/sensor_msgs/srv/detail/set_camera_info__rosidl_typesupport_microxrcedds_c.h b/src/sensor_msgs/srv/detail/set_camera_info__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index eaeb5a344..000000000 --- a/src/sensor_msgs/srv/detail/set_camera_info__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from sensor_msgs:srv/SetCameraInfo.idl -// generated code does not contain a copyright notice -#ifndef SENSOR_MSGS__SRV__SET_CAMERA_INFO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SENSOR_MSGS__SRV__SET_CAMERA_INFO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__srv__SetCameraInfo_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__srv__SetCameraInfo_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, srv, SetCameraInfo_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__srv__SetCameraInfo_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__srv__SetCameraInfo_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, srv, SetCameraInfo_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t get_serialized_size_sensor_msgs__srv__SetCameraInfo_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -size_t max_serialized_size_sensor_msgs__srv__SetCameraInfo_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, srv, SetCameraInfo_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "sensor_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_sensor_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, sensor_msgs, srv, SetCameraInfo)(); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__SRV__SET_CAMERA_INFO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/sensor_msgs/srv/detail/set_camera_info__struct.h b/src/sensor_msgs/srv/detail/set_camera_info__struct.h deleted file mode 100755 index 3182b2d1c..000000000 --- a/src/sensor_msgs/srv/detail/set_camera_info__struct.h +++ /dev/null @@ -1,109 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from sensor_msgs:srv/SetCameraInfo.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/srv/set_camera_info.h" - - -#ifndef SENSOR_MSGS__SRV__DETAIL__SET_CAMERA_INFO__STRUCT_H_ -#define SENSOR_MSGS__SRV__DETAIL__SET_CAMERA_INFO__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'camera_info' -#include "sensor_msgs/msg/detail/camera_info__struct.h" - -/// Struct defined in srv/SetCameraInfo in the package sensor_msgs. -typedef struct sensor_msgs__srv__SetCameraInfo_Request -{ - /// The camera_info to store - sensor_msgs__msg__CameraInfo camera_info; -} sensor_msgs__srv__SetCameraInfo_Request; - -// Struct for a sequence of sensor_msgs__srv__SetCameraInfo_Request. -typedef struct sensor_msgs__srv__SetCameraInfo_Request__Sequence -{ - sensor_msgs__srv__SetCameraInfo_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__srv__SetCameraInfo_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'status_message' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/SetCameraInfo in the package sensor_msgs. -typedef struct sensor_msgs__srv__SetCameraInfo_Response -{ - /// True if the call succeeded - bool success; - /// Used to give details about success - rosidl_runtime_c__String status_message; -} sensor_msgs__srv__SetCameraInfo_Response; - -// Struct for a sequence of sensor_msgs__srv__SetCameraInfo_Response. -typedef struct sensor_msgs__srv__SetCameraInfo_Response__Sequence -{ - sensor_msgs__srv__SetCameraInfo_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__srv__SetCameraInfo_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - sensor_msgs__srv__SetCameraInfo_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - sensor_msgs__srv__SetCameraInfo_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/SetCameraInfo in the package sensor_msgs. -typedef struct sensor_msgs__srv__SetCameraInfo_Event -{ - service_msgs__msg__ServiceEventInfo info; - sensor_msgs__srv__SetCameraInfo_Request__Sequence request; - sensor_msgs__srv__SetCameraInfo_Response__Sequence response; -} sensor_msgs__srv__SetCameraInfo_Event; - -// Struct for a sequence of sensor_msgs__srv__SetCameraInfo_Event. -typedef struct sensor_msgs__srv__SetCameraInfo_Event__Sequence -{ - sensor_msgs__srv__SetCameraInfo_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} sensor_msgs__srv__SetCameraInfo_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__SRV__DETAIL__SET_CAMERA_INFO__STRUCT_H_ diff --git a/src/sensor_msgs/srv/detail/set_camera_info__type_support.h b/src/sensor_msgs/srv/detail/set_camera_info__type_support.h deleted file mode 100755 index 4f87bfe06..000000000 --- a/src/sensor_msgs/srv/detail/set_camera_info__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from sensor_msgs:srv/SetCameraInfo.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "sensor_msgs/srv/set_camera_info.h" - - -#ifndef SENSOR_MSGS__SRV__DETAIL__SET_CAMERA_INFO__TYPE_SUPPORT_H_ -#define SENSOR_MSGS__SRV__DETAIL__SET_CAMERA_INFO__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "sensor_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - srv, - SetCameraInfo_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - srv, - SetCameraInfo_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - srv, - SetCameraInfo_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - srv, - SetCameraInfo -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - srv, - SetCameraInfo -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_sensor_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - sensor_msgs, - srv, - SetCameraInfo -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // SENSOR_MSGS__SRV__DETAIL__SET_CAMERA_INFO__TYPE_SUPPORT_H_ diff --git a/src/sensor_msgs/srv/set_camera_info.h b/src/sensor_msgs/srv/set_camera_info.h deleted file mode 100755 index 85acbedb0..000000000 --- a/src/sensor_msgs/srv/set_camera_info.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from sensor_msgs:srv/SetCameraInfo.idl -// generated code does not contain a copyright notice - -#ifndef SENSOR_MSGS__SRV__SET_CAMERA_INFO_H_ -#define SENSOR_MSGS__SRV__SET_CAMERA_INFO_H_ - -#include "sensor_msgs/srv/detail/set_camera_info__struct.h" -#include "sensor_msgs/srv/detail/set_camera_info__functions.h" -#include "sensor_msgs/srv/detail/set_camera_info__type_support.h" - -#endif // SENSOR_MSGS__SRV__SET_CAMERA_INFO_H_ diff --git a/src/service_msgs/msg/detail/service_event_info__functions.h b/src/service_msgs/msg/detail/service_event_info__functions.h deleted file mode 100755 index 1bff5b977..000000000 --- a/src/service_msgs/msg/detail/service_event_info__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from service_msgs:msg/ServiceEventInfo.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "service_msgs/msg/service_event_info.h" - - -#ifndef SERVICE_MSGS__MSG__DETAIL__SERVICE_EVENT_INFO__FUNCTIONS_H_ -#define SERVICE_MSGS__MSG__DETAIL__SERVICE_EVENT_INFO__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "service_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "service_msgs/msg/detail/service_event_info__struct.h" - -/// Initialize msg/ServiceEventInfo message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * service_msgs__msg__ServiceEventInfo - * )) before or use - * service_msgs__msg__ServiceEventInfo__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -bool -service_msgs__msg__ServiceEventInfo__init(service_msgs__msg__ServiceEventInfo * msg); - -/// Finalize msg/ServiceEventInfo message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -void -service_msgs__msg__ServiceEventInfo__fini(service_msgs__msg__ServiceEventInfo * msg); - -/// Create msg/ServiceEventInfo message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * service_msgs__msg__ServiceEventInfo__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -service_msgs__msg__ServiceEventInfo * -service_msgs__msg__ServiceEventInfo__create(void); - -/// Destroy msg/ServiceEventInfo message. -/** - * It calls - * service_msgs__msg__ServiceEventInfo__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -void -service_msgs__msg__ServiceEventInfo__destroy(service_msgs__msg__ServiceEventInfo * msg); - -/// Check for msg/ServiceEventInfo message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -bool -service_msgs__msg__ServiceEventInfo__are_equal(const service_msgs__msg__ServiceEventInfo * lhs, const service_msgs__msg__ServiceEventInfo * rhs); - -/// Copy a msg/ServiceEventInfo message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -bool -service_msgs__msg__ServiceEventInfo__copy( - const service_msgs__msg__ServiceEventInfo * input, - service_msgs__msg__ServiceEventInfo * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -const rosidl_type_hash_t * -service_msgs__msg__ServiceEventInfo__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -const rosidl_runtime_c__type_description__TypeDescription * -service_msgs__msg__ServiceEventInfo__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -const rosidl_runtime_c__type_description__TypeSource * -service_msgs__msg__ServiceEventInfo__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -service_msgs__msg__ServiceEventInfo__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/ServiceEventInfo messages. -/** - * It allocates the memory for the number of elements and calls - * service_msgs__msg__ServiceEventInfo__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -bool -service_msgs__msg__ServiceEventInfo__Sequence__init(service_msgs__msg__ServiceEventInfo__Sequence * array, size_t size); - -/// Finalize array of msg/ServiceEventInfo messages. -/** - * It calls - * service_msgs__msg__ServiceEventInfo__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -void -service_msgs__msg__ServiceEventInfo__Sequence__fini(service_msgs__msg__ServiceEventInfo__Sequence * array); - -/// Create array of msg/ServiceEventInfo messages. -/** - * It allocates the memory for the array and calls - * service_msgs__msg__ServiceEventInfo__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -service_msgs__msg__ServiceEventInfo__Sequence * -service_msgs__msg__ServiceEventInfo__Sequence__create(size_t size); - -/// Destroy array of msg/ServiceEventInfo messages. -/** - * It calls - * service_msgs__msg__ServiceEventInfo__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -void -service_msgs__msg__ServiceEventInfo__Sequence__destroy(service_msgs__msg__ServiceEventInfo__Sequence * array); - -/// Check for msg/ServiceEventInfo message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -bool -service_msgs__msg__ServiceEventInfo__Sequence__are_equal(const service_msgs__msg__ServiceEventInfo__Sequence * lhs, const service_msgs__msg__ServiceEventInfo__Sequence * rhs); - -/// Copy an array of msg/ServiceEventInfo messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -bool -service_msgs__msg__ServiceEventInfo__Sequence__copy( - const service_msgs__msg__ServiceEventInfo__Sequence * input, - service_msgs__msg__ServiceEventInfo__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SERVICE_MSGS__MSG__DETAIL__SERVICE_EVENT_INFO__FUNCTIONS_H_ diff --git a/src/service_msgs/msg/detail/service_event_info__rosidl_typesupport_introspection_c.h b/src/service_msgs/msg/detail/service_event_info__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 8a21eb7be..000000000 --- a/src/service_msgs/msg/detail/service_event_info__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from service_msgs:msg/ServiceEventInfo.idl -// generated code does not contain a copyright notice - -#ifndef SERVICE_MSGS__MSG__DETAIL__SERVICE_EVENT_INFO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SERVICE_MSGS__MSG__DETAIL__SERVICE_EVENT_INFO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "service_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_service_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, service_msgs, msg, ServiceEventInfo)(); - -#ifdef __cplusplus -} -#endif - -#endif // SERVICE_MSGS__MSG__DETAIL__SERVICE_EVENT_INFO__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/service_msgs/msg/detail/service_event_info__rosidl_typesupport_microxrcedds_c.h b/src/service_msgs/msg/detail/service_event_info__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a34534bbc..000000000 --- a/src/service_msgs/msg/detail/service_event_info__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from service_msgs:msg/ServiceEventInfo.idl -// generated code does not contain a copyright notice -#ifndef SERVICE_MSGS__MSG__SERVICE_EVENT_INFO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SERVICE_MSGS__MSG__SERVICE_EVENT_INFO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "service_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_service_msgs -size_t get_serialized_size_service_msgs__msg__ServiceEventInfo( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_service_msgs -size_t max_serialized_size_service_msgs__msg__ServiceEventInfo( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_service_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, service_msgs, msg, ServiceEventInfo)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SERVICE_MSGS__MSG__SERVICE_EVENT_INFO__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/service_msgs/msg/detail/service_event_info__struct.h b/src/service_msgs/msg/detail/service_event_info__struct.h deleted file mode 100755 index a1036c101..000000000 --- a/src/service_msgs/msg/detail/service_event_info__struct.h +++ /dev/null @@ -1,82 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from service_msgs:msg/ServiceEventInfo.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "service_msgs/msg/service_event_info.h" - - -#ifndef SERVICE_MSGS__MSG__DETAIL__SERVICE_EVENT_INFO__STRUCT_H_ -#define SERVICE_MSGS__MSG__DETAIL__SERVICE_EVENT_INFO__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'REQUEST_SENT'. -enum -{ - service_msgs__msg__ServiceEventInfo__REQUEST_SENT = 0 -}; - -/// Constant 'REQUEST_RECEIVED'. -enum -{ - service_msgs__msg__ServiceEventInfo__REQUEST_RECEIVED = 1 -}; - -/// Constant 'RESPONSE_SENT'. -enum -{ - service_msgs__msg__ServiceEventInfo__RESPONSE_SENT = 2 -}; - -/// Constant 'RESPONSE_RECEIVED'. -enum -{ - service_msgs__msg__ServiceEventInfo__RESPONSE_RECEIVED = 3 -}; - -// Include directives for member types -// Member 'stamp' -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in msg/ServiceEventInfo in the package service_msgs. -typedef struct service_msgs__msg__ServiceEventInfo -{ - /// The type of event this message represents - uint8_t event_type; - /// Timestamp for when the event occurred (sent or received time) - builtin_interfaces__msg__Time stamp; - /// Unique identifier for the client that sent the service request - /// Note, this is only unique for the current session. - /// The size here has to match the size of rmw_dds_common/msg/Gid, - /// but unfortunately we cannot use that message directly due to a - /// circular dependency. - uint8_t client_gid[16]; - /// Sequence number for the request - /// Combined with the client ID, this creates a unique ID for the service transaction - int64_t sequence_number; -} service_msgs__msg__ServiceEventInfo; - -// Struct for a sequence of service_msgs__msg__ServiceEventInfo. -typedef struct service_msgs__msg__ServiceEventInfo__Sequence -{ - service_msgs__msg__ServiceEventInfo * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} service_msgs__msg__ServiceEventInfo__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SERVICE_MSGS__MSG__DETAIL__SERVICE_EVENT_INFO__STRUCT_H_ diff --git a/src/service_msgs/msg/detail/service_event_info__type_support.h b/src/service_msgs/msg/detail/service_event_info__type_support.h deleted file mode 100755 index f4ee60954..000000000 --- a/src/service_msgs/msg/detail/service_event_info__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from service_msgs:msg/ServiceEventInfo.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "service_msgs/msg/service_event_info.h" - - -#ifndef SERVICE_MSGS__MSG__DETAIL__SERVICE_EVENT_INFO__TYPE_SUPPORT_H_ -#define SERVICE_MSGS__MSG__DETAIL__SERVICE_EVENT_INFO__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "service_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_service_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - service_msgs, - msg, - ServiceEventInfo -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SERVICE_MSGS__MSG__DETAIL__SERVICE_EVENT_INFO__TYPE_SUPPORT_H_ diff --git a/src/service_msgs/msg/rosidl_generator_c__visibility_control.h b/src/service_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 141d96225..000000000 --- a/src/service_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef SERVICE_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define SERVICE_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_service_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_service_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_service_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_service_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_service_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_service_msgs ROSIDL_GENERATOR_C_EXPORT_service_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_service_msgs ROSIDL_GENERATOR_C_IMPORT_service_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_service_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_service_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_service_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_service_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // SERVICE_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/service_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/service_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 6ffc7a8cc..000000000 --- a/src/service_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef SERVICE_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define SERVICE_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_service_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_service_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_service_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_service_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_service_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_service_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_service_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_service_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_service_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_service_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_service_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_service_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_service_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // SERVICE_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/service_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/service_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index b80ef705a..000000000 --- a/src/service_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef SERVICE_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define SERVICE_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_service_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_service_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_service_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_service_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_service_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_service_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_service_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_service_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_service_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_service_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_service_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_service_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_service_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // SERVICE_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/service_msgs/msg/service_event_info.h b/src/service_msgs/msg/service_event_info.h deleted file mode 100755 index a8d8e4dad..000000000 --- a/src/service_msgs/msg/service_event_info.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from service_msgs:msg/ServiceEventInfo.idl -// generated code does not contain a copyright notice - -#ifndef SERVICE_MSGS__MSG__SERVICE_EVENT_INFO_H_ -#define SERVICE_MSGS__MSG__SERVICE_EVENT_INFO_H_ - -#include "service_msgs/msg/detail/service_event_info__struct.h" -#include "service_msgs/msg/detail/service_event_info__functions.h" -#include "service_msgs/msg/detail/service_event_info__type_support.h" - -#endif // SERVICE_MSGS__MSG__SERVICE_EVENT_INFO_H_ diff --git a/src/shape_msgs/msg/detail/mesh__functions.h b/src/shape_msgs/msg/detail/mesh__functions.h deleted file mode 100755 index de80be438..000000000 --- a/src/shape_msgs/msg/detail/mesh__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from shape_msgs:msg/Mesh.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "shape_msgs/msg/mesh.h" - - -#ifndef SHAPE_MSGS__MSG__DETAIL__MESH__FUNCTIONS_H_ -#define SHAPE_MSGS__MSG__DETAIL__MESH__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "shape_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "shape_msgs/msg/detail/mesh__struct.h" - -/// Initialize msg/Mesh message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * shape_msgs__msg__Mesh - * )) before or use - * shape_msgs__msg__Mesh__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__Mesh__init(shape_msgs__msg__Mesh * msg); - -/// Finalize msg/Mesh message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__Mesh__fini(shape_msgs__msg__Mesh * msg); - -/// Create msg/Mesh message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * shape_msgs__msg__Mesh__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -shape_msgs__msg__Mesh * -shape_msgs__msg__Mesh__create(void); - -/// Destroy msg/Mesh message. -/** - * It calls - * shape_msgs__msg__Mesh__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__Mesh__destroy(shape_msgs__msg__Mesh * msg); - -/// Check for msg/Mesh message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__Mesh__are_equal(const shape_msgs__msg__Mesh * lhs, const shape_msgs__msg__Mesh * rhs); - -/// Copy a msg/Mesh message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__Mesh__copy( - const shape_msgs__msg__Mesh * input, - shape_msgs__msg__Mesh * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_type_hash_t * -shape_msgs__msg__Mesh__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_runtime_c__type_description__TypeDescription * -shape_msgs__msg__Mesh__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_runtime_c__type_description__TypeSource * -shape_msgs__msg__Mesh__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -shape_msgs__msg__Mesh__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Mesh messages. -/** - * It allocates the memory for the number of elements and calls - * shape_msgs__msg__Mesh__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__Mesh__Sequence__init(shape_msgs__msg__Mesh__Sequence * array, size_t size); - -/// Finalize array of msg/Mesh messages. -/** - * It calls - * shape_msgs__msg__Mesh__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__Mesh__Sequence__fini(shape_msgs__msg__Mesh__Sequence * array); - -/// Create array of msg/Mesh messages. -/** - * It allocates the memory for the array and calls - * shape_msgs__msg__Mesh__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -shape_msgs__msg__Mesh__Sequence * -shape_msgs__msg__Mesh__Sequence__create(size_t size); - -/// Destroy array of msg/Mesh messages. -/** - * It calls - * shape_msgs__msg__Mesh__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__Mesh__Sequence__destroy(shape_msgs__msg__Mesh__Sequence * array); - -/// Check for msg/Mesh message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__Mesh__Sequence__are_equal(const shape_msgs__msg__Mesh__Sequence * lhs, const shape_msgs__msg__Mesh__Sequence * rhs); - -/// Copy an array of msg/Mesh messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__Mesh__Sequence__copy( - const shape_msgs__msg__Mesh__Sequence * input, - shape_msgs__msg__Mesh__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__MESH__FUNCTIONS_H_ diff --git a/src/shape_msgs/msg/detail/mesh__rosidl_typesupport_introspection_c.h b/src/shape_msgs/msg/detail/mesh__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 43f19aaaa..000000000 --- a/src/shape_msgs/msg/detail/mesh__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from shape_msgs:msg/Mesh.idl -// generated code does not contain a copyright notice - -#ifndef SHAPE_MSGS__MSG__DETAIL__MESH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SHAPE_MSGS__MSG__DETAIL__MESH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "shape_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_shape_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, shape_msgs, msg, Mesh)(); - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__MESH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/shape_msgs/msg/detail/mesh__rosidl_typesupport_microxrcedds_c.h b/src/shape_msgs/msg/detail/mesh__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index d67baa538..000000000 --- a/src/shape_msgs/msg/detail/mesh__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from shape_msgs:msg/Mesh.idl -// generated code does not contain a copyright notice -#ifndef SHAPE_MSGS__MSG__MESH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SHAPE_MSGS__MSG__MESH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "shape_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs -size_t get_serialized_size_shape_msgs__msg__Mesh( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs -size_t max_serialized_size_shape_msgs__msg__Mesh( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, shape_msgs, msg, Mesh)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SHAPE_MSGS__MSG__MESH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/shape_msgs/msg/detail/mesh__struct.h b/src/shape_msgs/msg/detail/mesh__struct.h deleted file mode 100755 index 604fa4580..000000000 --- a/src/shape_msgs/msg/detail/mesh__struct.h +++ /dev/null @@ -1,54 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from shape_msgs:msg/Mesh.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "shape_msgs/msg/mesh.h" - - -#ifndef SHAPE_MSGS__MSG__DETAIL__MESH__STRUCT_H_ -#define SHAPE_MSGS__MSG__DETAIL__MESH__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'triangles' -#include "shape_msgs/msg/detail/mesh_triangle__struct.h" -// Member 'vertices' -#include "geometry_msgs/msg/detail/point__struct.h" - -/// Struct defined in msg/Mesh in the package shape_msgs. -/** - * Definition of a mesh. - */ -typedef struct shape_msgs__msg__Mesh -{ - /// List of triangles; the index values refer to positions in vertices[]. - shape_msgs__msg__MeshTriangle__Sequence triangles; - /// The actual vertices that make up the mesh. - geometry_msgs__msg__Point__Sequence vertices; -} shape_msgs__msg__Mesh; - -// Struct for a sequence of shape_msgs__msg__Mesh. -typedef struct shape_msgs__msg__Mesh__Sequence -{ - shape_msgs__msg__Mesh * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} shape_msgs__msg__Mesh__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__MESH__STRUCT_H_ diff --git a/src/shape_msgs/msg/detail/mesh__type_support.h b/src/shape_msgs/msg/detail/mesh__type_support.h deleted file mode 100755 index e514250aa..000000000 --- a/src/shape_msgs/msg/detail/mesh__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from shape_msgs:msg/Mesh.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "shape_msgs/msg/mesh.h" - - -#ifndef SHAPE_MSGS__MSG__DETAIL__MESH__TYPE_SUPPORT_H_ -#define SHAPE_MSGS__MSG__DETAIL__MESH__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "shape_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - shape_msgs, - msg, - Mesh -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__MESH__TYPE_SUPPORT_H_ diff --git a/src/shape_msgs/msg/detail/mesh_triangle__functions.h b/src/shape_msgs/msg/detail/mesh_triangle__functions.h deleted file mode 100755 index a34da185b..000000000 --- a/src/shape_msgs/msg/detail/mesh_triangle__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from shape_msgs:msg/MeshTriangle.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "shape_msgs/msg/mesh_triangle.h" - - -#ifndef SHAPE_MSGS__MSG__DETAIL__MESH_TRIANGLE__FUNCTIONS_H_ -#define SHAPE_MSGS__MSG__DETAIL__MESH_TRIANGLE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "shape_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "shape_msgs/msg/detail/mesh_triangle__struct.h" - -/// Initialize msg/MeshTriangle message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * shape_msgs__msg__MeshTriangle - * )) before or use - * shape_msgs__msg__MeshTriangle__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__MeshTriangle__init(shape_msgs__msg__MeshTriangle * msg); - -/// Finalize msg/MeshTriangle message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__MeshTriangle__fini(shape_msgs__msg__MeshTriangle * msg); - -/// Create msg/MeshTriangle message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * shape_msgs__msg__MeshTriangle__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -shape_msgs__msg__MeshTriangle * -shape_msgs__msg__MeshTriangle__create(void); - -/// Destroy msg/MeshTriangle message. -/** - * It calls - * shape_msgs__msg__MeshTriangle__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__MeshTriangle__destroy(shape_msgs__msg__MeshTriangle * msg); - -/// Check for msg/MeshTriangle message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__MeshTriangle__are_equal(const shape_msgs__msg__MeshTriangle * lhs, const shape_msgs__msg__MeshTriangle * rhs); - -/// Copy a msg/MeshTriangle message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__MeshTriangle__copy( - const shape_msgs__msg__MeshTriangle * input, - shape_msgs__msg__MeshTriangle * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_type_hash_t * -shape_msgs__msg__MeshTriangle__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_runtime_c__type_description__TypeDescription * -shape_msgs__msg__MeshTriangle__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_runtime_c__type_description__TypeSource * -shape_msgs__msg__MeshTriangle__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -shape_msgs__msg__MeshTriangle__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MeshTriangle messages. -/** - * It allocates the memory for the number of elements and calls - * shape_msgs__msg__MeshTriangle__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__MeshTriangle__Sequence__init(shape_msgs__msg__MeshTriangle__Sequence * array, size_t size); - -/// Finalize array of msg/MeshTriangle messages. -/** - * It calls - * shape_msgs__msg__MeshTriangle__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__MeshTriangle__Sequence__fini(shape_msgs__msg__MeshTriangle__Sequence * array); - -/// Create array of msg/MeshTriangle messages. -/** - * It allocates the memory for the array and calls - * shape_msgs__msg__MeshTriangle__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -shape_msgs__msg__MeshTriangle__Sequence * -shape_msgs__msg__MeshTriangle__Sequence__create(size_t size); - -/// Destroy array of msg/MeshTriangle messages. -/** - * It calls - * shape_msgs__msg__MeshTriangle__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__MeshTriangle__Sequence__destroy(shape_msgs__msg__MeshTriangle__Sequence * array); - -/// Check for msg/MeshTriangle message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__MeshTriangle__Sequence__are_equal(const shape_msgs__msg__MeshTriangle__Sequence * lhs, const shape_msgs__msg__MeshTriangle__Sequence * rhs); - -/// Copy an array of msg/MeshTriangle messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__MeshTriangle__Sequence__copy( - const shape_msgs__msg__MeshTriangle__Sequence * input, - shape_msgs__msg__MeshTriangle__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__MESH_TRIANGLE__FUNCTIONS_H_ diff --git a/src/shape_msgs/msg/detail/mesh_triangle__rosidl_typesupport_introspection_c.h b/src/shape_msgs/msg/detail/mesh_triangle__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 9e7bbbc2a..000000000 --- a/src/shape_msgs/msg/detail/mesh_triangle__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from shape_msgs:msg/MeshTriangle.idl -// generated code does not contain a copyright notice - -#ifndef SHAPE_MSGS__MSG__DETAIL__MESH_TRIANGLE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SHAPE_MSGS__MSG__DETAIL__MESH_TRIANGLE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "shape_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_shape_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, shape_msgs, msg, MeshTriangle)(); - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__MESH_TRIANGLE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/shape_msgs/msg/detail/mesh_triangle__rosidl_typesupport_microxrcedds_c.h b/src/shape_msgs/msg/detail/mesh_triangle__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 5ce030ff9..000000000 --- a/src/shape_msgs/msg/detail/mesh_triangle__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from shape_msgs:msg/MeshTriangle.idl -// generated code does not contain a copyright notice -#ifndef SHAPE_MSGS__MSG__MESH_TRIANGLE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SHAPE_MSGS__MSG__MESH_TRIANGLE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "shape_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs -size_t get_serialized_size_shape_msgs__msg__MeshTriangle( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs -size_t max_serialized_size_shape_msgs__msg__MeshTriangle( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, shape_msgs, msg, MeshTriangle)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SHAPE_MSGS__MSG__MESH_TRIANGLE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/shape_msgs/msg/detail/mesh_triangle__struct.h b/src/shape_msgs/msg/detail/mesh_triangle__struct.h deleted file mode 100755 index d35d76406..000000000 --- a/src/shape_msgs/msg/detail/mesh_triangle__struct.h +++ /dev/null @@ -1,45 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from shape_msgs:msg/MeshTriangle.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "shape_msgs/msg/mesh_triangle.h" - - -#ifndef SHAPE_MSGS__MSG__DETAIL__MESH_TRIANGLE__STRUCT_H_ -#define SHAPE_MSGS__MSG__DETAIL__MESH_TRIANGLE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/MeshTriangle in the package shape_msgs. -/** - * Definition of a triangle's vertices. - */ -typedef struct shape_msgs__msg__MeshTriangle -{ - uint32_t vertex_indices[3]; -} shape_msgs__msg__MeshTriangle; - -// Struct for a sequence of shape_msgs__msg__MeshTriangle. -typedef struct shape_msgs__msg__MeshTriangle__Sequence -{ - shape_msgs__msg__MeshTriangle * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} shape_msgs__msg__MeshTriangle__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__MESH_TRIANGLE__STRUCT_H_ diff --git a/src/shape_msgs/msg/detail/mesh_triangle__type_support.h b/src/shape_msgs/msg/detail/mesh_triangle__type_support.h deleted file mode 100755 index 716d5fcde..000000000 --- a/src/shape_msgs/msg/detail/mesh_triangle__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from shape_msgs:msg/MeshTriangle.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "shape_msgs/msg/mesh_triangle.h" - - -#ifndef SHAPE_MSGS__MSG__DETAIL__MESH_TRIANGLE__TYPE_SUPPORT_H_ -#define SHAPE_MSGS__MSG__DETAIL__MESH_TRIANGLE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "shape_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - shape_msgs, - msg, - MeshTriangle -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__MESH_TRIANGLE__TYPE_SUPPORT_H_ diff --git a/src/shape_msgs/msg/detail/plane__functions.h b/src/shape_msgs/msg/detail/plane__functions.h deleted file mode 100755 index 4dc1e7cc0..000000000 --- a/src/shape_msgs/msg/detail/plane__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from shape_msgs:msg/Plane.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "shape_msgs/msg/plane.h" - - -#ifndef SHAPE_MSGS__MSG__DETAIL__PLANE__FUNCTIONS_H_ -#define SHAPE_MSGS__MSG__DETAIL__PLANE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "shape_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "shape_msgs/msg/detail/plane__struct.h" - -/// Initialize msg/Plane message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * shape_msgs__msg__Plane - * )) before or use - * shape_msgs__msg__Plane__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__Plane__init(shape_msgs__msg__Plane * msg); - -/// Finalize msg/Plane message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__Plane__fini(shape_msgs__msg__Plane * msg); - -/// Create msg/Plane message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * shape_msgs__msg__Plane__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -shape_msgs__msg__Plane * -shape_msgs__msg__Plane__create(void); - -/// Destroy msg/Plane message. -/** - * It calls - * shape_msgs__msg__Plane__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__Plane__destroy(shape_msgs__msg__Plane * msg); - -/// Check for msg/Plane message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__Plane__are_equal(const shape_msgs__msg__Plane * lhs, const shape_msgs__msg__Plane * rhs); - -/// Copy a msg/Plane message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__Plane__copy( - const shape_msgs__msg__Plane * input, - shape_msgs__msg__Plane * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_type_hash_t * -shape_msgs__msg__Plane__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_runtime_c__type_description__TypeDescription * -shape_msgs__msg__Plane__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_runtime_c__type_description__TypeSource * -shape_msgs__msg__Plane__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -shape_msgs__msg__Plane__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Plane messages. -/** - * It allocates the memory for the number of elements and calls - * shape_msgs__msg__Plane__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__Plane__Sequence__init(shape_msgs__msg__Plane__Sequence * array, size_t size); - -/// Finalize array of msg/Plane messages. -/** - * It calls - * shape_msgs__msg__Plane__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__Plane__Sequence__fini(shape_msgs__msg__Plane__Sequence * array); - -/// Create array of msg/Plane messages. -/** - * It allocates the memory for the array and calls - * shape_msgs__msg__Plane__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -shape_msgs__msg__Plane__Sequence * -shape_msgs__msg__Plane__Sequence__create(size_t size); - -/// Destroy array of msg/Plane messages. -/** - * It calls - * shape_msgs__msg__Plane__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__Plane__Sequence__destroy(shape_msgs__msg__Plane__Sequence * array); - -/// Check for msg/Plane message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__Plane__Sequence__are_equal(const shape_msgs__msg__Plane__Sequence * lhs, const shape_msgs__msg__Plane__Sequence * rhs); - -/// Copy an array of msg/Plane messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__Plane__Sequence__copy( - const shape_msgs__msg__Plane__Sequence * input, - shape_msgs__msg__Plane__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__PLANE__FUNCTIONS_H_ diff --git a/src/shape_msgs/msg/detail/plane__rosidl_typesupport_introspection_c.h b/src/shape_msgs/msg/detail/plane__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c1905d909..000000000 --- a/src/shape_msgs/msg/detail/plane__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from shape_msgs:msg/Plane.idl -// generated code does not contain a copyright notice - -#ifndef SHAPE_MSGS__MSG__DETAIL__PLANE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SHAPE_MSGS__MSG__DETAIL__PLANE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "shape_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_shape_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, shape_msgs, msg, Plane)(); - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__PLANE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/shape_msgs/msg/detail/plane__rosidl_typesupport_microxrcedds_c.h b/src/shape_msgs/msg/detail/plane__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 40d835de4..000000000 --- a/src/shape_msgs/msg/detail/plane__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from shape_msgs:msg/Plane.idl -// generated code does not contain a copyright notice -#ifndef SHAPE_MSGS__MSG__PLANE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SHAPE_MSGS__MSG__PLANE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "shape_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs -size_t get_serialized_size_shape_msgs__msg__Plane( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs -size_t max_serialized_size_shape_msgs__msg__Plane( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, shape_msgs, msg, Plane)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SHAPE_MSGS__MSG__PLANE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/shape_msgs/msg/detail/plane__struct.h b/src/shape_msgs/msg/detail/plane__struct.h deleted file mode 100755 index 8c8be3475..000000000 --- a/src/shape_msgs/msg/detail/plane__struct.h +++ /dev/null @@ -1,50 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from shape_msgs:msg/Plane.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "shape_msgs/msg/plane.h" - - -#ifndef SHAPE_MSGS__MSG__DETAIL__PLANE__STRUCT_H_ -#define SHAPE_MSGS__MSG__DETAIL__PLANE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Plane in the package shape_msgs. -/** - * Representation of a plane, using the plane equation ax + by + cz + d = 0. - * - * a := coef[0] - * b := coef[1] - * c := coef[2] - * d := coef[3] - */ -typedef struct shape_msgs__msg__Plane -{ - double coef[4]; -} shape_msgs__msg__Plane; - -// Struct for a sequence of shape_msgs__msg__Plane. -typedef struct shape_msgs__msg__Plane__Sequence -{ - shape_msgs__msg__Plane * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} shape_msgs__msg__Plane__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__PLANE__STRUCT_H_ diff --git a/src/shape_msgs/msg/detail/plane__type_support.h b/src/shape_msgs/msg/detail/plane__type_support.h deleted file mode 100755 index 52aeaa9fa..000000000 --- a/src/shape_msgs/msg/detail/plane__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from shape_msgs:msg/Plane.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "shape_msgs/msg/plane.h" - - -#ifndef SHAPE_MSGS__MSG__DETAIL__PLANE__TYPE_SUPPORT_H_ -#define SHAPE_MSGS__MSG__DETAIL__PLANE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "shape_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - shape_msgs, - msg, - Plane -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__PLANE__TYPE_SUPPORT_H_ diff --git a/src/shape_msgs/msg/detail/solid_primitive__functions.h b/src/shape_msgs/msg/detail/solid_primitive__functions.h deleted file mode 100755 index 97738d4f6..000000000 --- a/src/shape_msgs/msg/detail/solid_primitive__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from shape_msgs:msg/SolidPrimitive.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "shape_msgs/msg/solid_primitive.h" - - -#ifndef SHAPE_MSGS__MSG__DETAIL__SOLID_PRIMITIVE__FUNCTIONS_H_ -#define SHAPE_MSGS__MSG__DETAIL__SOLID_PRIMITIVE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "shape_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "shape_msgs/msg/detail/solid_primitive__struct.h" - -/// Initialize msg/SolidPrimitive message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * shape_msgs__msg__SolidPrimitive - * )) before or use - * shape_msgs__msg__SolidPrimitive__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__SolidPrimitive__init(shape_msgs__msg__SolidPrimitive * msg); - -/// Finalize msg/SolidPrimitive message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__SolidPrimitive__fini(shape_msgs__msg__SolidPrimitive * msg); - -/// Create msg/SolidPrimitive message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * shape_msgs__msg__SolidPrimitive__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -shape_msgs__msg__SolidPrimitive * -shape_msgs__msg__SolidPrimitive__create(void); - -/// Destroy msg/SolidPrimitive message. -/** - * It calls - * shape_msgs__msg__SolidPrimitive__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__SolidPrimitive__destroy(shape_msgs__msg__SolidPrimitive * msg); - -/// Check for msg/SolidPrimitive message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__SolidPrimitive__are_equal(const shape_msgs__msg__SolidPrimitive * lhs, const shape_msgs__msg__SolidPrimitive * rhs); - -/// Copy a msg/SolidPrimitive message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__SolidPrimitive__copy( - const shape_msgs__msg__SolidPrimitive * input, - shape_msgs__msg__SolidPrimitive * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_type_hash_t * -shape_msgs__msg__SolidPrimitive__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_runtime_c__type_description__TypeDescription * -shape_msgs__msg__SolidPrimitive__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_runtime_c__type_description__TypeSource * -shape_msgs__msg__SolidPrimitive__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -shape_msgs__msg__SolidPrimitive__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/SolidPrimitive messages. -/** - * It allocates the memory for the number of elements and calls - * shape_msgs__msg__SolidPrimitive__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__SolidPrimitive__Sequence__init(shape_msgs__msg__SolidPrimitive__Sequence * array, size_t size); - -/// Finalize array of msg/SolidPrimitive messages. -/** - * It calls - * shape_msgs__msg__SolidPrimitive__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__SolidPrimitive__Sequence__fini(shape_msgs__msg__SolidPrimitive__Sequence * array); - -/// Create array of msg/SolidPrimitive messages. -/** - * It allocates the memory for the array and calls - * shape_msgs__msg__SolidPrimitive__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -shape_msgs__msg__SolidPrimitive__Sequence * -shape_msgs__msg__SolidPrimitive__Sequence__create(size_t size); - -/// Destroy array of msg/SolidPrimitive messages. -/** - * It calls - * shape_msgs__msg__SolidPrimitive__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -void -shape_msgs__msg__SolidPrimitive__Sequence__destroy(shape_msgs__msg__SolidPrimitive__Sequence * array); - -/// Check for msg/SolidPrimitive message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__SolidPrimitive__Sequence__are_equal(const shape_msgs__msg__SolidPrimitive__Sequence * lhs, const shape_msgs__msg__SolidPrimitive__Sequence * rhs); - -/// Copy an array of msg/SolidPrimitive messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -bool -shape_msgs__msg__SolidPrimitive__Sequence__copy( - const shape_msgs__msg__SolidPrimitive__Sequence * input, - shape_msgs__msg__SolidPrimitive__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__SOLID_PRIMITIVE__FUNCTIONS_H_ diff --git a/src/shape_msgs/msg/detail/solid_primitive__rosidl_typesupport_introspection_c.h b/src/shape_msgs/msg/detail/solid_primitive__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 332917425..000000000 --- a/src/shape_msgs/msg/detail/solid_primitive__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from shape_msgs:msg/SolidPrimitive.idl -// generated code does not contain a copyright notice - -#ifndef SHAPE_MSGS__MSG__DETAIL__SOLID_PRIMITIVE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define SHAPE_MSGS__MSG__DETAIL__SOLID_PRIMITIVE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "shape_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_shape_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, shape_msgs, msg, SolidPrimitive)(); - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__SOLID_PRIMITIVE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/shape_msgs/msg/detail/solid_primitive__rosidl_typesupport_microxrcedds_c.h b/src/shape_msgs/msg/detail/solid_primitive__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 3e41be6e3..000000000 --- a/src/shape_msgs/msg/detail/solid_primitive__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from shape_msgs:msg/SolidPrimitive.idl -// generated code does not contain a copyright notice -#ifndef SHAPE_MSGS__MSG__SOLID_PRIMITIVE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define SHAPE_MSGS__MSG__SOLID_PRIMITIVE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "shape_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs -size_t get_serialized_size_shape_msgs__msg__SolidPrimitive( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs -size_t max_serialized_size_shape_msgs__msg__SolidPrimitive( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, shape_msgs, msg, SolidPrimitive)(); - -#ifdef __cplusplus -} -#endif - - -#endif // SHAPE_MSGS__MSG__SOLID_PRIMITIVE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/shape_msgs/msg/detail/solid_primitive__struct.h b/src/shape_msgs/msg/detail/solid_primitive__struct.h deleted file mode 100755 index 27c485ad2..000000000 --- a/src/shape_msgs/msg/detail/solid_primitive__struct.h +++ /dev/null @@ -1,174 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from shape_msgs:msg/SolidPrimitive.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "shape_msgs/msg/solid_primitive.h" - - -#ifndef SHAPE_MSGS__MSG__DETAIL__SOLID_PRIMITIVE__STRUCT_H_ -#define SHAPE_MSGS__MSG__DETAIL__SOLID_PRIMITIVE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'BOX'. -enum -{ - shape_msgs__msg__SolidPrimitive__BOX = 1 -}; - -/// Constant 'SPHERE'. -enum -{ - shape_msgs__msg__SolidPrimitive__SPHERE = 2 -}; - -/// Constant 'CYLINDER'. -enum -{ - shape_msgs__msg__SolidPrimitive__CYLINDER = 3 -}; - -/// Constant 'CONE'. -enum -{ - shape_msgs__msg__SolidPrimitive__CONE = 4 -}; - -/// Constant 'PRISM'. -enum -{ - shape_msgs__msg__SolidPrimitive__PRISM = 5 -}; - -/// Constant 'BOX_X'. -/** - * The meaning of the shape dimensions: each constant defines the index in the 'dimensions' array. - * For type BOX, the X, Y, and Z dimensions are the length of the corresponding sides of the box. - */ -enum -{ - shape_msgs__msg__SolidPrimitive__BOX_X = 0 -}; - -/// Constant 'BOX_Y'. -enum -{ - shape_msgs__msg__SolidPrimitive__BOX_Y = 1 -}; - -/// Constant 'BOX_Z'. -enum -{ - shape_msgs__msg__SolidPrimitive__BOX_Z = 2 -}; - -/// Constant 'SPHERE_RADIUS'. -/** - * For the SPHERE type, only one component is used, and it gives the radius of the sphere. - */ -enum -{ - shape_msgs__msg__SolidPrimitive__SPHERE_RADIUS = 0 -}; - -/// Constant 'CYLINDER_HEIGHT'. -/** - * For the CYLINDER and CONE types, the center line is oriented along the Z axis. - * Therefore the CYLINDER_HEIGHT (CONE_HEIGHT) component of dimensions gives the - * height of the cylinder (cone). - * The CYLINDER_RADIUS (CONE_RADIUS) component of dimensions gives the radius of - * the base of the cylinder (cone). - * Cone and cylinder primitives are defined to be circular. The tip of the cone - * is pointing up, along +Z axis. - */ -enum -{ - shape_msgs__msg__SolidPrimitive__CYLINDER_HEIGHT = 0 -}; - -/// Constant 'CYLINDER_RADIUS'. -enum -{ - shape_msgs__msg__SolidPrimitive__CYLINDER_RADIUS = 1 -}; - -/// Constant 'CONE_HEIGHT'. -enum -{ - shape_msgs__msg__SolidPrimitive__CONE_HEIGHT = 0 -}; - -/// Constant 'CONE_RADIUS'. -enum -{ - shape_msgs__msg__SolidPrimitive__CONE_RADIUS = 1 -}; - -/// Constant 'PRISM_HEIGHT'. -/** - * For the type PRISM, the center line is oriented along Z axis. - * The PRISM_HEIGHT component of dimensions gives the - * height of the prism. - * The polygon defines the Z axis centered base of the prism. - * The prism is constructed by extruding the base in +Z and -Z - * directions by half of the PRISM_HEIGHT - * Only x and y fields of the points are used in the polygon. - * Points of the polygon are ordered counter-clockwise. - */ -enum -{ - shape_msgs__msg__SolidPrimitive__PRISM_HEIGHT = 0 -}; - -// Include directives for member types -// Member 'dimensions' -#include "rosidl_runtime_c/primitives_sequence.h" -// Member 'polygon' -#include "geometry_msgs/msg/detail/polygon__struct.h" - -// constants for array fields with an upper bound -// dimensions -enum -{ - shape_msgs__msg__SolidPrimitive__dimensions__MAX_SIZE = 3 -}; - -/// Struct defined in msg/SolidPrimitive in the package shape_msgs. -/** - * Defines box, sphere, cylinder, cone and prism. - * All shapes are defined to have their bounding boxes centered around 0,0,0. - */ -typedef struct shape_msgs__msg__SolidPrimitive -{ - /// The type of the shape - uint8_t type; - /// The dimensions of the shape - /// At no point will dimensions have a length > 3. - rosidl_runtime_c__double__Sequence dimensions; - geometry_msgs__msg__Polygon polygon; -} shape_msgs__msg__SolidPrimitive; - -// Struct for a sequence of shape_msgs__msg__SolidPrimitive. -typedef struct shape_msgs__msg__SolidPrimitive__Sequence -{ - shape_msgs__msg__SolidPrimitive * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} shape_msgs__msg__SolidPrimitive__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__SOLID_PRIMITIVE__STRUCT_H_ diff --git a/src/shape_msgs/msg/detail/solid_primitive__type_support.h b/src/shape_msgs/msg/detail/solid_primitive__type_support.h deleted file mode 100755 index 2a8e24e7e..000000000 --- a/src/shape_msgs/msg/detail/solid_primitive__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from shape_msgs:msg/SolidPrimitive.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "shape_msgs/msg/solid_primitive.h" - - -#ifndef SHAPE_MSGS__MSG__DETAIL__SOLID_PRIMITIVE__TYPE_SUPPORT_H_ -#define SHAPE_MSGS__MSG__DETAIL__SOLID_PRIMITIVE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "shape_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_shape_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - shape_msgs, - msg, - SolidPrimitive -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__DETAIL__SOLID_PRIMITIVE__TYPE_SUPPORT_H_ diff --git a/src/shape_msgs/msg/mesh.h b/src/shape_msgs/msg/mesh.h deleted file mode 100755 index 3ea453f16..000000000 --- a/src/shape_msgs/msg/mesh.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from shape_msgs:msg/Mesh.idl -// generated code does not contain a copyright notice - -#ifndef SHAPE_MSGS__MSG__MESH_H_ -#define SHAPE_MSGS__MSG__MESH_H_ - -#include "shape_msgs/msg/detail/mesh__struct.h" -#include "shape_msgs/msg/detail/mesh__functions.h" -#include "shape_msgs/msg/detail/mesh__type_support.h" - -#endif // SHAPE_MSGS__MSG__MESH_H_ diff --git a/src/shape_msgs/msg/mesh_triangle.h b/src/shape_msgs/msg/mesh_triangle.h deleted file mode 100755 index b3f26f100..000000000 --- a/src/shape_msgs/msg/mesh_triangle.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from shape_msgs:msg/MeshTriangle.idl -// generated code does not contain a copyright notice - -#ifndef SHAPE_MSGS__MSG__MESH_TRIANGLE_H_ -#define SHAPE_MSGS__MSG__MESH_TRIANGLE_H_ - -#include "shape_msgs/msg/detail/mesh_triangle__struct.h" -#include "shape_msgs/msg/detail/mesh_triangle__functions.h" -#include "shape_msgs/msg/detail/mesh_triangle__type_support.h" - -#endif // SHAPE_MSGS__MSG__MESH_TRIANGLE_H_ diff --git a/src/shape_msgs/msg/plane.h b/src/shape_msgs/msg/plane.h deleted file mode 100755 index 4346f7a4f..000000000 --- a/src/shape_msgs/msg/plane.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from shape_msgs:msg/Plane.idl -// generated code does not contain a copyright notice - -#ifndef SHAPE_MSGS__MSG__PLANE_H_ -#define SHAPE_MSGS__MSG__PLANE_H_ - -#include "shape_msgs/msg/detail/plane__struct.h" -#include "shape_msgs/msg/detail/plane__functions.h" -#include "shape_msgs/msg/detail/plane__type_support.h" - -#endif // SHAPE_MSGS__MSG__PLANE_H_ diff --git a/src/shape_msgs/msg/rosidl_generator_c__visibility_control.h b/src/shape_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 1381e3f7d..000000000 --- a/src/shape_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef SHAPE_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define SHAPE_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_shape_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_shape_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_shape_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_shape_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_shape_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_shape_msgs ROSIDL_GENERATOR_C_EXPORT_shape_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_shape_msgs ROSIDL_GENERATOR_C_IMPORT_shape_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_shape_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_shape_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_shape_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_shape_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/shape_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/shape_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 9f03ef2a6..000000000 --- a/src/shape_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef SHAPE_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define SHAPE_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_shape_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_shape_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_shape_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_shape_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_shape_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_shape_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_shape_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_shape_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_shape_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_shape_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_shape_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_shape_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_shape_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/shape_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/shape_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 69099dfe1..000000000 --- a/src/shape_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef SHAPE_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define SHAPE_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_shape_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_shape_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_shape_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_shape_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_shape_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_shape_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_shape_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_shape_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_shape_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_shape_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // SHAPE_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/shape_msgs/msg/solid_primitive.h b/src/shape_msgs/msg/solid_primitive.h deleted file mode 100755 index 280cefb5b..000000000 --- a/src/shape_msgs/msg/solid_primitive.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from shape_msgs:msg/SolidPrimitive.idl -// generated code does not contain a copyright notice - -#ifndef SHAPE_MSGS__MSG__SOLID_PRIMITIVE_H_ -#define SHAPE_MSGS__MSG__SOLID_PRIMITIVE_H_ - -#include "shape_msgs/msg/detail/solid_primitive__struct.h" -#include "shape_msgs/msg/detail/solid_primitive__functions.h" -#include "shape_msgs/msg/detail/solid_primitive__type_support.h" - -#endif // SHAPE_MSGS__MSG__SOLID_PRIMITIVE_H_ diff --git a/src/statistics_msgs/msg/detail/metrics_message__functions.h b/src/statistics_msgs/msg/detail/metrics_message__functions.h deleted file mode 100755 index 2f99d364f..000000000 --- a/src/statistics_msgs/msg/detail/metrics_message__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from statistics_msgs:msg/MetricsMessage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "statistics_msgs/msg/metrics_message.h" - - -#ifndef STATISTICS_MSGS__MSG__DETAIL__METRICS_MESSAGE__FUNCTIONS_H_ -#define STATISTICS_MSGS__MSG__DETAIL__METRICS_MESSAGE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "statistics_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "statistics_msgs/msg/detail/metrics_message__struct.h" - -/// Initialize msg/MetricsMessage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * statistics_msgs__msg__MetricsMessage - * )) before or use - * statistics_msgs__msg__MetricsMessage__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__MetricsMessage__init(statistics_msgs__msg__MetricsMessage * msg); - -/// Finalize msg/MetricsMessage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -void -statistics_msgs__msg__MetricsMessage__fini(statistics_msgs__msg__MetricsMessage * msg); - -/// Create msg/MetricsMessage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * statistics_msgs__msg__MetricsMessage__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -statistics_msgs__msg__MetricsMessage * -statistics_msgs__msg__MetricsMessage__create(void); - -/// Destroy msg/MetricsMessage message. -/** - * It calls - * statistics_msgs__msg__MetricsMessage__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -void -statistics_msgs__msg__MetricsMessage__destroy(statistics_msgs__msg__MetricsMessage * msg); - -/// Check for msg/MetricsMessage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__MetricsMessage__are_equal(const statistics_msgs__msg__MetricsMessage * lhs, const statistics_msgs__msg__MetricsMessage * rhs); - -/// Copy a msg/MetricsMessage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__MetricsMessage__copy( - const statistics_msgs__msg__MetricsMessage * input, - statistics_msgs__msg__MetricsMessage * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_type_hash_t * -statistics_msgs__msg__MetricsMessage__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_runtime_c__type_description__TypeDescription * -statistics_msgs__msg__MetricsMessage__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_runtime_c__type_description__TypeSource * -statistics_msgs__msg__MetricsMessage__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -statistics_msgs__msg__MetricsMessage__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MetricsMessage messages. -/** - * It allocates the memory for the number of elements and calls - * statistics_msgs__msg__MetricsMessage__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__MetricsMessage__Sequence__init(statistics_msgs__msg__MetricsMessage__Sequence * array, size_t size); - -/// Finalize array of msg/MetricsMessage messages. -/** - * It calls - * statistics_msgs__msg__MetricsMessage__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -void -statistics_msgs__msg__MetricsMessage__Sequence__fini(statistics_msgs__msg__MetricsMessage__Sequence * array); - -/// Create array of msg/MetricsMessage messages. -/** - * It allocates the memory for the array and calls - * statistics_msgs__msg__MetricsMessage__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -statistics_msgs__msg__MetricsMessage__Sequence * -statistics_msgs__msg__MetricsMessage__Sequence__create(size_t size); - -/// Destroy array of msg/MetricsMessage messages. -/** - * It calls - * statistics_msgs__msg__MetricsMessage__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -void -statistics_msgs__msg__MetricsMessage__Sequence__destroy(statistics_msgs__msg__MetricsMessage__Sequence * array); - -/// Check for msg/MetricsMessage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__MetricsMessage__Sequence__are_equal(const statistics_msgs__msg__MetricsMessage__Sequence * lhs, const statistics_msgs__msg__MetricsMessage__Sequence * rhs); - -/// Copy an array of msg/MetricsMessage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__MetricsMessage__Sequence__copy( - const statistics_msgs__msg__MetricsMessage__Sequence * input, - statistics_msgs__msg__MetricsMessage__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__DETAIL__METRICS_MESSAGE__FUNCTIONS_H_ diff --git a/src/statistics_msgs/msg/detail/metrics_message__rosidl_typesupport_introspection_c.h b/src/statistics_msgs/msg/detail/metrics_message__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5b34c9fda..000000000 --- a/src/statistics_msgs/msg/detail/metrics_message__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from statistics_msgs:msg/MetricsMessage.idl -// generated code does not contain a copyright notice - -#ifndef STATISTICS_MSGS__MSG__DETAIL__METRICS_MESSAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STATISTICS_MSGS__MSG__DETAIL__METRICS_MESSAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "statistics_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_statistics_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, statistics_msgs, msg, MetricsMessage)(); - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__DETAIL__METRICS_MESSAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/statistics_msgs/msg/detail/metrics_message__rosidl_typesupport_microxrcedds_c.h b/src/statistics_msgs/msg/detail/metrics_message__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a64e4bb3f..000000000 --- a/src/statistics_msgs/msg/detail/metrics_message__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from statistics_msgs:msg/MetricsMessage.idl -// generated code does not contain a copyright notice -#ifndef STATISTICS_MSGS__MSG__METRICS_MESSAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STATISTICS_MSGS__MSG__METRICS_MESSAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "statistics_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_statistics_msgs -size_t get_serialized_size_statistics_msgs__msg__MetricsMessage( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_statistics_msgs -size_t max_serialized_size_statistics_msgs__msg__MetricsMessage( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_statistics_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, statistics_msgs, msg, MetricsMessage)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STATISTICS_MSGS__MSG__METRICS_MESSAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/statistics_msgs/msg/detail/metrics_message__struct.h b/src/statistics_msgs/msg/detail/metrics_message__struct.h deleted file mode 100755 index 273aeabf9..000000000 --- a/src/statistics_msgs/msg/detail/metrics_message__struct.h +++ /dev/null @@ -1,76 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from statistics_msgs:msg/MetricsMessage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "statistics_msgs/msg/metrics_message.h" - - -#ifndef STATISTICS_MSGS__MSG__DETAIL__METRICS_MESSAGE__STRUCT_H_ -#define STATISTICS_MSGS__MSG__DETAIL__METRICS_MESSAGE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'measurement_source_name' -// Member 'metrics_source' -// Member 'unit' -#include "rosidl_runtime_c/string.h" -// Member 'window_start' -// Member 'window_stop' -#include "builtin_interfaces/msg/detail/time__struct.h" -// Member 'statistics' -#include "statistics_msgs/msg/detail/statistic_data_point__struct.h" - -/// Struct defined in msg/MetricsMessage in the package statistics_msgs. -/** - * A generic metrics message providing statistics for measurements from different sources. For example, - * measure a system's CPU % for a given window yields the following data points over a window of time: - * - * - average cpu % - * - std deviation - * - min - * - max - * - sample count - * - * These are all represented as different 'StatisticDataPoint's. - */ -typedef struct statistics_msgs__msg__MetricsMessage -{ - /// Name metric measurement source, e.g., node, topic, or process name - rosidl_runtime_c__String measurement_source_name; - /// Name of the metric being measured, e.g. cpu_percentage, free_memory_mb, message_age, etc. - rosidl_runtime_c__String metrics_source; - /// Unit of measure of the metric, e.g. percent, mb, seconds, etc. - rosidl_runtime_c__String unit; - /// Measurement window start time - builtin_interfaces__msg__Time window_start; - /// Measurement window end time - builtin_interfaces__msg__Time window_stop; - /// A list of statistics data point, defined in StatisticDataPoint.msg - statistics_msgs__msg__StatisticDataPoint__Sequence statistics; -} statistics_msgs__msg__MetricsMessage; - -// Struct for a sequence of statistics_msgs__msg__MetricsMessage. -typedef struct statistics_msgs__msg__MetricsMessage__Sequence -{ - statistics_msgs__msg__MetricsMessage * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} statistics_msgs__msg__MetricsMessage__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__DETAIL__METRICS_MESSAGE__STRUCT_H_ diff --git a/src/statistics_msgs/msg/detail/metrics_message__type_support.h b/src/statistics_msgs/msg/detail/metrics_message__type_support.h deleted file mode 100755 index 4af0e070f..000000000 --- a/src/statistics_msgs/msg/detail/metrics_message__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from statistics_msgs:msg/MetricsMessage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "statistics_msgs/msg/metrics_message.h" - - -#ifndef STATISTICS_MSGS__MSG__DETAIL__METRICS_MESSAGE__TYPE_SUPPORT_H_ -#define STATISTICS_MSGS__MSG__DETAIL__METRICS_MESSAGE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "statistics_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - statistics_msgs, - msg, - MetricsMessage -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__DETAIL__METRICS_MESSAGE__TYPE_SUPPORT_H_ diff --git a/src/statistics_msgs/msg/detail/statistic_data_point__functions.h b/src/statistics_msgs/msg/detail/statistic_data_point__functions.h deleted file mode 100755 index d7b27ae1e..000000000 --- a/src/statistics_msgs/msg/detail/statistic_data_point__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from statistics_msgs:msg/StatisticDataPoint.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "statistics_msgs/msg/statistic_data_point.h" - - -#ifndef STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_POINT__FUNCTIONS_H_ -#define STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_POINT__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "statistics_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "statistics_msgs/msg/detail/statistic_data_point__struct.h" - -/// Initialize msg/StatisticDataPoint message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * statistics_msgs__msg__StatisticDataPoint - * )) before or use - * statistics_msgs__msg__StatisticDataPoint__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__StatisticDataPoint__init(statistics_msgs__msg__StatisticDataPoint * msg); - -/// Finalize msg/StatisticDataPoint message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -void -statistics_msgs__msg__StatisticDataPoint__fini(statistics_msgs__msg__StatisticDataPoint * msg); - -/// Create msg/StatisticDataPoint message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * statistics_msgs__msg__StatisticDataPoint__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -statistics_msgs__msg__StatisticDataPoint * -statistics_msgs__msg__StatisticDataPoint__create(void); - -/// Destroy msg/StatisticDataPoint message. -/** - * It calls - * statistics_msgs__msg__StatisticDataPoint__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -void -statistics_msgs__msg__StatisticDataPoint__destroy(statistics_msgs__msg__StatisticDataPoint * msg); - -/// Check for msg/StatisticDataPoint message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__StatisticDataPoint__are_equal(const statistics_msgs__msg__StatisticDataPoint * lhs, const statistics_msgs__msg__StatisticDataPoint * rhs); - -/// Copy a msg/StatisticDataPoint message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__StatisticDataPoint__copy( - const statistics_msgs__msg__StatisticDataPoint * input, - statistics_msgs__msg__StatisticDataPoint * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_type_hash_t * -statistics_msgs__msg__StatisticDataPoint__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_runtime_c__type_description__TypeDescription * -statistics_msgs__msg__StatisticDataPoint__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_runtime_c__type_description__TypeSource * -statistics_msgs__msg__StatisticDataPoint__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -statistics_msgs__msg__StatisticDataPoint__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/StatisticDataPoint messages. -/** - * It allocates the memory for the number of elements and calls - * statistics_msgs__msg__StatisticDataPoint__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__StatisticDataPoint__Sequence__init(statistics_msgs__msg__StatisticDataPoint__Sequence * array, size_t size); - -/// Finalize array of msg/StatisticDataPoint messages. -/** - * It calls - * statistics_msgs__msg__StatisticDataPoint__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -void -statistics_msgs__msg__StatisticDataPoint__Sequence__fini(statistics_msgs__msg__StatisticDataPoint__Sequence * array); - -/// Create array of msg/StatisticDataPoint messages. -/** - * It allocates the memory for the array and calls - * statistics_msgs__msg__StatisticDataPoint__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -statistics_msgs__msg__StatisticDataPoint__Sequence * -statistics_msgs__msg__StatisticDataPoint__Sequence__create(size_t size); - -/// Destroy array of msg/StatisticDataPoint messages. -/** - * It calls - * statistics_msgs__msg__StatisticDataPoint__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -void -statistics_msgs__msg__StatisticDataPoint__Sequence__destroy(statistics_msgs__msg__StatisticDataPoint__Sequence * array); - -/// Check for msg/StatisticDataPoint message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__StatisticDataPoint__Sequence__are_equal(const statistics_msgs__msg__StatisticDataPoint__Sequence * lhs, const statistics_msgs__msg__StatisticDataPoint__Sequence * rhs); - -/// Copy an array of msg/StatisticDataPoint messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__StatisticDataPoint__Sequence__copy( - const statistics_msgs__msg__StatisticDataPoint__Sequence * input, - statistics_msgs__msg__StatisticDataPoint__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_POINT__FUNCTIONS_H_ diff --git a/src/statistics_msgs/msg/detail/statistic_data_point__rosidl_typesupport_introspection_c.h b/src/statistics_msgs/msg/detail/statistic_data_point__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5fd21a43f..000000000 --- a/src/statistics_msgs/msg/detail/statistic_data_point__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from statistics_msgs:msg/StatisticDataPoint.idl -// generated code does not contain a copyright notice - -#ifndef STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_POINT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_POINT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "statistics_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_statistics_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, statistics_msgs, msg, StatisticDataPoint)(); - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_POINT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/statistics_msgs/msg/detail/statistic_data_point__rosidl_typesupport_microxrcedds_c.h b/src/statistics_msgs/msg/detail/statistic_data_point__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 16727252a..000000000 --- a/src/statistics_msgs/msg/detail/statistic_data_point__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from statistics_msgs:msg/StatisticDataPoint.idl -// generated code does not contain a copyright notice -#ifndef STATISTICS_MSGS__MSG__STATISTIC_DATA_POINT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STATISTICS_MSGS__MSG__STATISTIC_DATA_POINT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "statistics_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_statistics_msgs -size_t get_serialized_size_statistics_msgs__msg__StatisticDataPoint( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_statistics_msgs -size_t max_serialized_size_statistics_msgs__msg__StatisticDataPoint( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_statistics_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, statistics_msgs, msg, StatisticDataPoint)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STATISTICS_MSGS__MSG__STATISTIC_DATA_POINT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/statistics_msgs/msg/detail/statistic_data_point__struct.h b/src/statistics_msgs/msg/detail/statistic_data_point__struct.h deleted file mode 100755 index 9992985cb..000000000 --- a/src/statistics_msgs/msg/detail/statistic_data_point__struct.h +++ /dev/null @@ -1,61 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from statistics_msgs:msg/StatisticDataPoint.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "statistics_msgs/msg/statistic_data_point.h" - - -#ifndef STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_POINT__STRUCT_H_ -#define STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_POINT__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/StatisticDataPoint in the package statistics_msgs. -/** - * This holds the structure of a single data point of a StatisticDataType. - * - * This message is used in MetricsStatisticsMessage, defined in MetricsStatisticsMessage.msg. - * - * Examples of the value of data point are - * - average size of messages received - * - standard deviation of the period of messages published - * - maximum age of messages published - * - * A value of nan represents no data is available. - * One example is that standard deviation is only available when there are two or more data points but there is only one, - * and in this case the value would be nan. - * +inf and -inf are not allowed. - */ -typedef struct statistics_msgs__msg__StatisticDataPoint -{ - /// The statistic type of this data point, defined in StatisticDataType.msg - /// Default value should be StatisticDataType.STATISTICS_DATA_TYPE_UNINITIALIZED (0). - uint8_t data_type; - /// The value of the data point - double data; -} statistics_msgs__msg__StatisticDataPoint; - -// Struct for a sequence of statistics_msgs__msg__StatisticDataPoint. -typedef struct statistics_msgs__msg__StatisticDataPoint__Sequence -{ - statistics_msgs__msg__StatisticDataPoint * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} statistics_msgs__msg__StatisticDataPoint__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_POINT__STRUCT_H_ diff --git a/src/statistics_msgs/msg/detail/statistic_data_point__type_support.h b/src/statistics_msgs/msg/detail/statistic_data_point__type_support.h deleted file mode 100755 index f8eea34a6..000000000 --- a/src/statistics_msgs/msg/detail/statistic_data_point__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from statistics_msgs:msg/StatisticDataPoint.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "statistics_msgs/msg/statistic_data_point.h" - - -#ifndef STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_POINT__TYPE_SUPPORT_H_ -#define STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_POINT__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "statistics_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - statistics_msgs, - msg, - StatisticDataPoint -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_POINT__TYPE_SUPPORT_H_ diff --git a/src/statistics_msgs/msg/detail/statistic_data_type__functions.h b/src/statistics_msgs/msg/detail/statistic_data_type__functions.h deleted file mode 100755 index 4f016b2f1..000000000 --- a/src/statistics_msgs/msg/detail/statistic_data_type__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from statistics_msgs:msg/StatisticDataType.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "statistics_msgs/msg/statistic_data_type.h" - - -#ifndef STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_TYPE__FUNCTIONS_H_ -#define STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_TYPE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "statistics_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "statistics_msgs/msg/detail/statistic_data_type__struct.h" - -/// Initialize msg/StatisticDataType message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * statistics_msgs__msg__StatisticDataType - * )) before or use - * statistics_msgs__msg__StatisticDataType__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__StatisticDataType__init(statistics_msgs__msg__StatisticDataType * msg); - -/// Finalize msg/StatisticDataType message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -void -statistics_msgs__msg__StatisticDataType__fini(statistics_msgs__msg__StatisticDataType * msg); - -/// Create msg/StatisticDataType message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * statistics_msgs__msg__StatisticDataType__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -statistics_msgs__msg__StatisticDataType * -statistics_msgs__msg__StatisticDataType__create(void); - -/// Destroy msg/StatisticDataType message. -/** - * It calls - * statistics_msgs__msg__StatisticDataType__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -void -statistics_msgs__msg__StatisticDataType__destroy(statistics_msgs__msg__StatisticDataType * msg); - -/// Check for msg/StatisticDataType message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__StatisticDataType__are_equal(const statistics_msgs__msg__StatisticDataType * lhs, const statistics_msgs__msg__StatisticDataType * rhs); - -/// Copy a msg/StatisticDataType message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__StatisticDataType__copy( - const statistics_msgs__msg__StatisticDataType * input, - statistics_msgs__msg__StatisticDataType * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_type_hash_t * -statistics_msgs__msg__StatisticDataType__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_runtime_c__type_description__TypeDescription * -statistics_msgs__msg__StatisticDataType__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_runtime_c__type_description__TypeSource * -statistics_msgs__msg__StatisticDataType__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -statistics_msgs__msg__StatisticDataType__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/StatisticDataType messages. -/** - * It allocates the memory for the number of elements and calls - * statistics_msgs__msg__StatisticDataType__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__StatisticDataType__Sequence__init(statistics_msgs__msg__StatisticDataType__Sequence * array, size_t size); - -/// Finalize array of msg/StatisticDataType messages. -/** - * It calls - * statistics_msgs__msg__StatisticDataType__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -void -statistics_msgs__msg__StatisticDataType__Sequence__fini(statistics_msgs__msg__StatisticDataType__Sequence * array); - -/// Create array of msg/StatisticDataType messages. -/** - * It allocates the memory for the array and calls - * statistics_msgs__msg__StatisticDataType__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -statistics_msgs__msg__StatisticDataType__Sequence * -statistics_msgs__msg__StatisticDataType__Sequence__create(size_t size); - -/// Destroy array of msg/StatisticDataType messages. -/** - * It calls - * statistics_msgs__msg__StatisticDataType__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -void -statistics_msgs__msg__StatisticDataType__Sequence__destroy(statistics_msgs__msg__StatisticDataType__Sequence * array); - -/// Check for msg/StatisticDataType message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__StatisticDataType__Sequence__are_equal(const statistics_msgs__msg__StatisticDataType__Sequence * lhs, const statistics_msgs__msg__StatisticDataType__Sequence * rhs); - -/// Copy an array of msg/StatisticDataType messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -bool -statistics_msgs__msg__StatisticDataType__Sequence__copy( - const statistics_msgs__msg__StatisticDataType__Sequence * input, - statistics_msgs__msg__StatisticDataType__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_TYPE__FUNCTIONS_H_ diff --git a/src/statistics_msgs/msg/detail/statistic_data_type__rosidl_typesupport_introspection_c.h b/src/statistics_msgs/msg/detail/statistic_data_type__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 8b30ef6f7..000000000 --- a/src/statistics_msgs/msg/detail/statistic_data_type__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from statistics_msgs:msg/StatisticDataType.idl -// generated code does not contain a copyright notice - -#ifndef STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_TYPE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_TYPE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "statistics_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_statistics_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, statistics_msgs, msg, StatisticDataType)(); - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_TYPE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/statistics_msgs/msg/detail/statistic_data_type__rosidl_typesupport_microxrcedds_c.h b/src/statistics_msgs/msg/detail/statistic_data_type__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ba2403064..000000000 --- a/src/statistics_msgs/msg/detail/statistic_data_type__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from statistics_msgs:msg/StatisticDataType.idl -// generated code does not contain a copyright notice -#ifndef STATISTICS_MSGS__MSG__STATISTIC_DATA_TYPE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STATISTICS_MSGS__MSG__STATISTIC_DATA_TYPE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "statistics_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_statistics_msgs -size_t get_serialized_size_statistics_msgs__msg__StatisticDataType( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_statistics_msgs -size_t max_serialized_size_statistics_msgs__msg__StatisticDataType( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_statistics_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, statistics_msgs, msg, StatisticDataType)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STATISTICS_MSGS__MSG__STATISTIC_DATA_TYPE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/statistics_msgs/msg/detail/statistic_data_type__struct.h b/src/statistics_msgs/msg/detail/statistic_data_type__struct.h deleted file mode 100755 index bbfa8359d..000000000 --- a/src/statistics_msgs/msg/detail/statistic_data_type__struct.h +++ /dev/null @@ -1,91 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from statistics_msgs:msg/StatisticDataType.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "statistics_msgs/msg/statistic_data_type.h" - - -#ifndef STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_TYPE__STRUCT_H_ -#define STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_TYPE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'STATISTICS_DATA_TYPE_UNINITIALIZED'. -/** - * Constant for uninitialized - */ -enum -{ - statistics_msgs__msg__StatisticDataType__STATISTICS_DATA_TYPE_UNINITIALIZED = 0 -}; - -/// Constant 'STATISTICS_DATA_TYPE_AVERAGE'. -/** - * Allowed values - */ -enum -{ - statistics_msgs__msg__StatisticDataType__STATISTICS_DATA_TYPE_AVERAGE = 1 -}; - -/// Constant 'STATISTICS_DATA_TYPE_MINIMUM'. -enum -{ - statistics_msgs__msg__StatisticDataType__STATISTICS_DATA_TYPE_MINIMUM = 2 -}; - -/// Constant 'STATISTICS_DATA_TYPE_MAXIMUM'. -enum -{ - statistics_msgs__msg__StatisticDataType__STATISTICS_DATA_TYPE_MAXIMUM = 3 -}; - -/// Constant 'STATISTICS_DATA_TYPE_STDDEV'. -enum -{ - statistics_msgs__msg__StatisticDataType__STATISTICS_DATA_TYPE_STDDEV = 4 -}; - -/// Constant 'STATISTICS_DATA_TYPE_SAMPLE_COUNT'. -enum -{ - statistics_msgs__msg__StatisticDataType__STATISTICS_DATA_TYPE_SAMPLE_COUNT = 5 -}; - -/// Struct defined in msg/StatisticDataType in the package statistics_msgs. -/** - * This file contains the commonly used constants for the statistics data type. - * - * The value 0 is reserved for unitialized statistic message data type. - * Range of values: [0, 255]. - * Unallowed values: any value that is not specified in this file. - */ -typedef struct statistics_msgs__msg__StatisticDataType -{ - uint8_t structure_needs_at_least_one_member; -} statistics_msgs__msg__StatisticDataType; - -// Struct for a sequence of statistics_msgs__msg__StatisticDataType. -typedef struct statistics_msgs__msg__StatisticDataType__Sequence -{ - statistics_msgs__msg__StatisticDataType * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} statistics_msgs__msg__StatisticDataType__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_TYPE__STRUCT_H_ diff --git a/src/statistics_msgs/msg/detail/statistic_data_type__type_support.h b/src/statistics_msgs/msg/detail/statistic_data_type__type_support.h deleted file mode 100755 index a23a13669..000000000 --- a/src/statistics_msgs/msg/detail/statistic_data_type__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from statistics_msgs:msg/StatisticDataType.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "statistics_msgs/msg/statistic_data_type.h" - - -#ifndef STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_TYPE__TYPE_SUPPORT_H_ -#define STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_TYPE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "statistics_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - statistics_msgs, - msg, - StatisticDataType -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__DETAIL__STATISTIC_DATA_TYPE__TYPE_SUPPORT_H_ diff --git a/src/statistics_msgs/msg/metrics_message.h b/src/statistics_msgs/msg/metrics_message.h deleted file mode 100755 index fe8a55221..000000000 --- a/src/statistics_msgs/msg/metrics_message.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from statistics_msgs:msg/MetricsMessage.idl -// generated code does not contain a copyright notice - -#ifndef STATISTICS_MSGS__MSG__METRICS_MESSAGE_H_ -#define STATISTICS_MSGS__MSG__METRICS_MESSAGE_H_ - -#include "statistics_msgs/msg/detail/metrics_message__struct.h" -#include "statistics_msgs/msg/detail/metrics_message__functions.h" -#include "statistics_msgs/msg/detail/metrics_message__type_support.h" - -#endif // STATISTICS_MSGS__MSG__METRICS_MESSAGE_H_ diff --git a/src/statistics_msgs/msg/rosidl_generator_c__visibility_control.h b/src/statistics_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 8be99cb91..000000000 --- a/src/statistics_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef STATISTICS_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define STATISTICS_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_statistics_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_statistics_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_statistics_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_statistics_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_statistics_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs ROSIDL_GENERATOR_C_EXPORT_statistics_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs ROSIDL_GENERATOR_C_IMPORT_statistics_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_statistics_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_statistics_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_statistics_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/statistics_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/statistics_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 1d413a2b1..000000000 --- a/src/statistics_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef STATISTICS_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define STATISTICS_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_statistics_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_statistics_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_statistics_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_statistics_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_statistics_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_statistics_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_statistics_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_statistics_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_statistics_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_statistics_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_statistics_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_statistics_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_statistics_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/statistics_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/statistics_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index c531d14db..000000000 --- a/src/statistics_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef STATISTICS_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define STATISTICS_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_statistics_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_statistics_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_statistics_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_statistics_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_statistics_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_statistics_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_statistics_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_statistics_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_statistics_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_statistics_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_statistics_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_statistics_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_statistics_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // STATISTICS_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/statistics_msgs/msg/statistic_data_point.h b/src/statistics_msgs/msg/statistic_data_point.h deleted file mode 100755 index 364275ec2..000000000 --- a/src/statistics_msgs/msg/statistic_data_point.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from statistics_msgs:msg/StatisticDataPoint.idl -// generated code does not contain a copyright notice - -#ifndef STATISTICS_MSGS__MSG__STATISTIC_DATA_POINT_H_ -#define STATISTICS_MSGS__MSG__STATISTIC_DATA_POINT_H_ - -#include "statistics_msgs/msg/detail/statistic_data_point__struct.h" -#include "statistics_msgs/msg/detail/statistic_data_point__functions.h" -#include "statistics_msgs/msg/detail/statistic_data_point__type_support.h" - -#endif // STATISTICS_MSGS__MSG__STATISTIC_DATA_POINT_H_ diff --git a/src/statistics_msgs/msg/statistic_data_type.h b/src/statistics_msgs/msg/statistic_data_type.h deleted file mode 100755 index 16e34d55d..000000000 --- a/src/statistics_msgs/msg/statistic_data_type.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from statistics_msgs:msg/StatisticDataType.idl -// generated code does not contain a copyright notice - -#ifndef STATISTICS_MSGS__MSG__STATISTIC_DATA_TYPE_H_ -#define STATISTICS_MSGS__MSG__STATISTIC_DATA_TYPE_H_ - -#include "statistics_msgs/msg/detail/statistic_data_type__struct.h" -#include "statistics_msgs/msg/detail/statistic_data_type__functions.h" -#include "statistics_msgs/msg/detail/statistic_data_type__type_support.h" - -#endif // STATISTICS_MSGS__MSG__STATISTIC_DATA_TYPE_H_ diff --git a/src/std_msgs/msg/bool.h b/src/std_msgs/msg/bool.h deleted file mode 100755 index c9d9d365e..000000000 --- a/src/std_msgs/msg/bool.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Bool.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__BOOL_H_ -#define STD_MSGS__MSG__BOOL_H_ - -#include "std_msgs/msg/detail/bool__struct.h" -#include "std_msgs/msg/detail/bool__functions.h" -#include "std_msgs/msg/detail/bool__type_support.h" - -#endif // STD_MSGS__MSG__BOOL_H_ diff --git a/src/std_msgs/msg/byte.h b/src/std_msgs/msg/byte.h deleted file mode 100755 index d89006043..000000000 --- a/src/std_msgs/msg/byte.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Byte.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__BYTE_H_ -#define STD_MSGS__MSG__BYTE_H_ - -#include "std_msgs/msg/detail/byte__struct.h" -#include "std_msgs/msg/detail/byte__functions.h" -#include "std_msgs/msg/detail/byte__type_support.h" - -#endif // STD_MSGS__MSG__BYTE_H_ diff --git a/src/std_msgs/msg/byte_multi_array.h b/src/std_msgs/msg/byte_multi_array.h deleted file mode 100755 index 4dcceca4a..000000000 --- a/src/std_msgs/msg/byte_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/ByteMultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__BYTE_MULTI_ARRAY_H_ -#define STD_MSGS__MSG__BYTE_MULTI_ARRAY_H_ - -#include "std_msgs/msg/detail/byte_multi_array__struct.h" -#include "std_msgs/msg/detail/byte_multi_array__functions.h" -#include "std_msgs/msg/detail/byte_multi_array__type_support.h" - -#endif // STD_MSGS__MSG__BYTE_MULTI_ARRAY_H_ diff --git a/src/std_msgs/msg/char.h b/src/std_msgs/msg/char.h deleted file mode 100755 index 7a6028116..000000000 --- a/src/std_msgs/msg/char.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Char.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__CHAR_H_ -#define STD_MSGS__MSG__CHAR_H_ - -#include "std_msgs/msg/detail/char__struct.h" -#include "std_msgs/msg/detail/char__functions.h" -#include "std_msgs/msg/detail/char__type_support.h" - -#endif // STD_MSGS__MSG__CHAR_H_ diff --git a/src/std_msgs/msg/color_rgba.h b/src/std_msgs/msg/color_rgba.h deleted file mode 100755 index 8454fe182..000000000 --- a/src/std_msgs/msg/color_rgba.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/ColorRGBA.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__COLOR_RGBA_H_ -#define STD_MSGS__MSG__COLOR_RGBA_H_ - -#include "std_msgs/msg/detail/color_rgba__struct.h" -#include "std_msgs/msg/detail/color_rgba__functions.h" -#include "std_msgs/msg/detail/color_rgba__type_support.h" - -#endif // STD_MSGS__MSG__COLOR_RGBA_H_ diff --git a/src/std_msgs/msg/detail/bool__functions.h b/src/std_msgs/msg/detail/bool__functions.h deleted file mode 100755 index 9293b2599..000000000 --- a/src/std_msgs/msg/detail/bool__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Bool.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/bool.h" - - -#ifndef STD_MSGS__MSG__DETAIL__BOOL__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__BOOL__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/bool__struct.h" - -/// Initialize msg/Bool message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Bool - * )) before or use - * std_msgs__msg__Bool__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Bool__init(std_msgs__msg__Bool * msg); - -/// Finalize msg/Bool message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Bool__fini(std_msgs__msg__Bool * msg); - -/// Create msg/Bool message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Bool__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Bool * -std_msgs__msg__Bool__create(void); - -/// Destroy msg/Bool message. -/** - * It calls - * std_msgs__msg__Bool__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Bool__destroy(std_msgs__msg__Bool * msg); - -/// Check for msg/Bool message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Bool__are_equal(const std_msgs__msg__Bool * lhs, const std_msgs__msg__Bool * rhs); - -/// Copy a msg/Bool message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Bool__copy( - const std_msgs__msg__Bool * input, - std_msgs__msg__Bool * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Bool__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Bool__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Bool__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Bool__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Bool messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Bool__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Bool__Sequence__init(std_msgs__msg__Bool__Sequence * array, size_t size); - -/// Finalize array of msg/Bool messages. -/** - * It calls - * std_msgs__msg__Bool__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Bool__Sequence__fini(std_msgs__msg__Bool__Sequence * array); - -/// Create array of msg/Bool messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Bool__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Bool__Sequence * -std_msgs__msg__Bool__Sequence__create(size_t size); - -/// Destroy array of msg/Bool messages. -/** - * It calls - * std_msgs__msg__Bool__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Bool__Sequence__destroy(std_msgs__msg__Bool__Sequence * array); - -/// Check for msg/Bool message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Bool__Sequence__are_equal(const std_msgs__msg__Bool__Sequence * lhs, const std_msgs__msg__Bool__Sequence * rhs); - -/// Copy an array of msg/Bool messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Bool__Sequence__copy( - const std_msgs__msg__Bool__Sequence * input, - std_msgs__msg__Bool__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__BOOL__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/bool__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/bool__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 1fc02c938..000000000 --- a/src/std_msgs/msg/detail/bool__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Bool.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__BOOL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__BOOL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Bool)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__BOOL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/bool__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/bool__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index e18a6f2a7..000000000 --- a/src/std_msgs/msg/detail/bool__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Bool.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__BOOL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__BOOL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Bool( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Bool( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Bool)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__BOOL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/bool__struct.h b/src/std_msgs/msg/detail/bool__struct.h deleted file mode 100755 index cc646e4aa..000000000 --- a/src/std_msgs/msg/detail/bool__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Bool.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/bool.h" - - -#ifndef STD_MSGS__MSG__DETAIL__BOOL__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__BOOL__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Bool in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Bool -{ - bool data; -} std_msgs__msg__Bool; - -// Struct for a sequence of std_msgs__msg__Bool. -typedef struct std_msgs__msg__Bool__Sequence -{ - std_msgs__msg__Bool * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Bool__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__BOOL__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/bool__type_support.h b/src/std_msgs/msg/detail/bool__type_support.h deleted file mode 100755 index 5ec146c08..000000000 --- a/src/std_msgs/msg/detail/bool__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Bool.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/bool.h" - - -#ifndef STD_MSGS__MSG__DETAIL__BOOL__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__BOOL__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Bool -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__BOOL__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/byte__functions.h b/src/std_msgs/msg/detail/byte__functions.h deleted file mode 100755 index 7932c2053..000000000 --- a/src/std_msgs/msg/detail/byte__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Byte.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/byte.h" - - -#ifndef STD_MSGS__MSG__DETAIL__BYTE__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__BYTE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/byte__struct.h" - -/// Initialize msg/Byte message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Byte - * )) before or use - * std_msgs__msg__Byte__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Byte__init(std_msgs__msg__Byte * msg); - -/// Finalize msg/Byte message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Byte__fini(std_msgs__msg__Byte * msg); - -/// Create msg/Byte message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Byte__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Byte * -std_msgs__msg__Byte__create(void); - -/// Destroy msg/Byte message. -/** - * It calls - * std_msgs__msg__Byte__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Byte__destroy(std_msgs__msg__Byte * msg); - -/// Check for msg/Byte message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Byte__are_equal(const std_msgs__msg__Byte * lhs, const std_msgs__msg__Byte * rhs); - -/// Copy a msg/Byte message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Byte__copy( - const std_msgs__msg__Byte * input, - std_msgs__msg__Byte * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Byte__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Byte__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Byte__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Byte__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Byte messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Byte__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Byte__Sequence__init(std_msgs__msg__Byte__Sequence * array, size_t size); - -/// Finalize array of msg/Byte messages. -/** - * It calls - * std_msgs__msg__Byte__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Byte__Sequence__fini(std_msgs__msg__Byte__Sequence * array); - -/// Create array of msg/Byte messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Byte__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Byte__Sequence * -std_msgs__msg__Byte__Sequence__create(size_t size); - -/// Destroy array of msg/Byte messages. -/** - * It calls - * std_msgs__msg__Byte__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Byte__Sequence__destroy(std_msgs__msg__Byte__Sequence * array); - -/// Check for msg/Byte message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Byte__Sequence__are_equal(const std_msgs__msg__Byte__Sequence * lhs, const std_msgs__msg__Byte__Sequence * rhs); - -/// Copy an array of msg/Byte messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Byte__Sequence__copy( - const std_msgs__msg__Byte__Sequence * input, - std_msgs__msg__Byte__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__BYTE__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/byte__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/byte__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 3d990e993..000000000 --- a/src/std_msgs/msg/detail/byte__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Byte.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__BYTE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__BYTE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Byte)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__BYTE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/byte__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/byte__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 89993c990..000000000 --- a/src/std_msgs/msg/detail/byte__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Byte.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__BYTE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__BYTE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Byte( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Byte( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Byte)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__BYTE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/byte__struct.h b/src/std_msgs/msg/detail/byte__struct.h deleted file mode 100755 index 2b61d85fd..000000000 --- a/src/std_msgs/msg/detail/byte__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Byte.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/byte.h" - - -#ifndef STD_MSGS__MSG__DETAIL__BYTE__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__BYTE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Byte in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Byte -{ - uint8_t data; -} std_msgs__msg__Byte; - -// Struct for a sequence of std_msgs__msg__Byte. -typedef struct std_msgs__msg__Byte__Sequence -{ - std_msgs__msg__Byte * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Byte__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__BYTE__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/byte__type_support.h b/src/std_msgs/msg/detail/byte__type_support.h deleted file mode 100755 index cbfb1e2a2..000000000 --- a/src/std_msgs/msg/detail/byte__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Byte.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/byte.h" - - -#ifndef STD_MSGS__MSG__DETAIL__BYTE__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__BYTE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Byte -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__BYTE__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/byte_multi_array__functions.h b/src/std_msgs/msg/detail/byte_multi_array__functions.h deleted file mode 100755 index 66dc59bca..000000000 --- a/src/std_msgs/msg/detail/byte_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/ByteMultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/byte_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__BYTE_MULTI_ARRAY__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__BYTE_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/byte_multi_array__struct.h" - -/// Initialize msg/ByteMultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__ByteMultiArray - * )) before or use - * std_msgs__msg__ByteMultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__ByteMultiArray__init(std_msgs__msg__ByteMultiArray * msg); - -/// Finalize msg/ByteMultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__ByteMultiArray__fini(std_msgs__msg__ByteMultiArray * msg); - -/// Create msg/ByteMultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__ByteMultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__ByteMultiArray * -std_msgs__msg__ByteMultiArray__create(void); - -/// Destroy msg/ByteMultiArray message. -/** - * It calls - * std_msgs__msg__ByteMultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__ByteMultiArray__destroy(std_msgs__msg__ByteMultiArray * msg); - -/// Check for msg/ByteMultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__ByteMultiArray__are_equal(const std_msgs__msg__ByteMultiArray * lhs, const std_msgs__msg__ByteMultiArray * rhs); - -/// Copy a msg/ByteMultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__ByteMultiArray__copy( - const std_msgs__msg__ByteMultiArray * input, - std_msgs__msg__ByteMultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__ByteMultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__ByteMultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__ByteMultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__ByteMultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/ByteMultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__ByteMultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__ByteMultiArray__Sequence__init(std_msgs__msg__ByteMultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/ByteMultiArray messages. -/** - * It calls - * std_msgs__msg__ByteMultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__ByteMultiArray__Sequence__fini(std_msgs__msg__ByteMultiArray__Sequence * array); - -/// Create array of msg/ByteMultiArray messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__ByteMultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__ByteMultiArray__Sequence * -std_msgs__msg__ByteMultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/ByteMultiArray messages. -/** - * It calls - * std_msgs__msg__ByteMultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__ByteMultiArray__Sequence__destroy(std_msgs__msg__ByteMultiArray__Sequence * array); - -/// Check for msg/ByteMultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__ByteMultiArray__Sequence__are_equal(const std_msgs__msg__ByteMultiArray__Sequence * lhs, const std_msgs__msg__ByteMultiArray__Sequence * rhs); - -/// Copy an array of msg/ByteMultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__ByteMultiArray__Sequence__copy( - const std_msgs__msg__ByteMultiArray__Sequence * input, - std_msgs__msg__ByteMultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__BYTE_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/byte_multi_array__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/byte_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c304f84df..000000000 --- a/src/std_msgs/msg/detail/byte_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/ByteMultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__BYTE_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__BYTE_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, ByteMultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__BYTE_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/byte_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/byte_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index f2b162b0e..000000000 --- a/src/std_msgs/msg/detail/byte_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/ByteMultiArray.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__BYTE_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__BYTE_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__ByteMultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__ByteMultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, ByteMultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__BYTE_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/byte_multi_array__struct.h b/src/std_msgs/msg/detail/byte_multi_array__struct.h deleted file mode 100755 index a43cc5636..000000000 --- a/src/std_msgs/msg/detail/byte_multi_array__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/ByteMultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/byte_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__BYTE_MULTI_ARRAY__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__BYTE_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "std_msgs/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/ByteMultiArray in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__ByteMultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - std_msgs__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__octet__Sequence data; -} std_msgs__msg__ByteMultiArray; - -// Struct for a sequence of std_msgs__msg__ByteMultiArray. -typedef struct std_msgs__msg__ByteMultiArray__Sequence -{ - std_msgs__msg__ByteMultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__ByteMultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__BYTE_MULTI_ARRAY__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/byte_multi_array__type_support.h b/src/std_msgs/msg/detail/byte_multi_array__type_support.h deleted file mode 100755 index 4c2f5a138..000000000 --- a/src/std_msgs/msg/detail/byte_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/ByteMultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/byte_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__BYTE_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__BYTE_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - ByteMultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__BYTE_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/char__functions.h b/src/std_msgs/msg/detail/char__functions.h deleted file mode 100755 index 7199f3f83..000000000 --- a/src/std_msgs/msg/detail/char__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Char.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/char.h" - - -#ifndef STD_MSGS__MSG__DETAIL__CHAR__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__CHAR__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/char__struct.h" - -/// Initialize msg/Char message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Char - * )) before or use - * std_msgs__msg__Char__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Char__init(std_msgs__msg__Char * msg); - -/// Finalize msg/Char message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Char__fini(std_msgs__msg__Char * msg); - -/// Create msg/Char message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Char__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Char * -std_msgs__msg__Char__create(void); - -/// Destroy msg/Char message. -/** - * It calls - * std_msgs__msg__Char__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Char__destroy(std_msgs__msg__Char * msg); - -/// Check for msg/Char message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Char__are_equal(const std_msgs__msg__Char * lhs, const std_msgs__msg__Char * rhs); - -/// Copy a msg/Char message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Char__copy( - const std_msgs__msg__Char * input, - std_msgs__msg__Char * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Char__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Char__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Char__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Char__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Char messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Char__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Char__Sequence__init(std_msgs__msg__Char__Sequence * array, size_t size); - -/// Finalize array of msg/Char messages. -/** - * It calls - * std_msgs__msg__Char__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Char__Sequence__fini(std_msgs__msg__Char__Sequence * array); - -/// Create array of msg/Char messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Char__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Char__Sequence * -std_msgs__msg__Char__Sequence__create(size_t size); - -/// Destroy array of msg/Char messages. -/** - * It calls - * std_msgs__msg__Char__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Char__Sequence__destroy(std_msgs__msg__Char__Sequence * array); - -/// Check for msg/Char message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Char__Sequence__are_equal(const std_msgs__msg__Char__Sequence * lhs, const std_msgs__msg__Char__Sequence * rhs); - -/// Copy an array of msg/Char messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Char__Sequence__copy( - const std_msgs__msg__Char__Sequence * input, - std_msgs__msg__Char__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__CHAR__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/char__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/char__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 8f3284e2a..000000000 --- a/src/std_msgs/msg/detail/char__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Char.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__CHAR__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__CHAR__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Char)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__CHAR__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/char__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/char__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index c8780338c..000000000 --- a/src/std_msgs/msg/detail/char__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Char.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__CHAR__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__CHAR__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Char( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Char( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Char)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__CHAR__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/char__struct.h b/src/std_msgs/msg/detail/char__struct.h deleted file mode 100755 index 3577a9078..000000000 --- a/src/std_msgs/msg/detail/char__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Char.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/char.h" - - -#ifndef STD_MSGS__MSG__DETAIL__CHAR__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__CHAR__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Char in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Char -{ - uint8_t data; -} std_msgs__msg__Char; - -// Struct for a sequence of std_msgs__msg__Char. -typedef struct std_msgs__msg__Char__Sequence -{ - std_msgs__msg__Char * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Char__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__CHAR__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/char__type_support.h b/src/std_msgs/msg/detail/char__type_support.h deleted file mode 100755 index 72221f60c..000000000 --- a/src/std_msgs/msg/detail/char__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Char.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/char.h" - - -#ifndef STD_MSGS__MSG__DETAIL__CHAR__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__CHAR__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Char -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__CHAR__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/color_rgba__functions.h b/src/std_msgs/msg/detail/color_rgba__functions.h deleted file mode 100755 index 0682285f4..000000000 --- a/src/std_msgs/msg/detail/color_rgba__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/ColorRGBA.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/color_rgba.h" - - -#ifndef STD_MSGS__MSG__DETAIL__COLOR_RGBA__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__COLOR_RGBA__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/color_rgba__struct.h" - -/// Initialize msg/ColorRGBA message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__ColorRGBA - * )) before or use - * std_msgs__msg__ColorRGBA__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__ColorRGBA__init(std_msgs__msg__ColorRGBA * msg); - -/// Finalize msg/ColorRGBA message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__ColorRGBA__fini(std_msgs__msg__ColorRGBA * msg); - -/// Create msg/ColorRGBA message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__ColorRGBA__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__ColorRGBA * -std_msgs__msg__ColorRGBA__create(void); - -/// Destroy msg/ColorRGBA message. -/** - * It calls - * std_msgs__msg__ColorRGBA__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__ColorRGBA__destroy(std_msgs__msg__ColorRGBA * msg); - -/// Check for msg/ColorRGBA message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__ColorRGBA__are_equal(const std_msgs__msg__ColorRGBA * lhs, const std_msgs__msg__ColorRGBA * rhs); - -/// Copy a msg/ColorRGBA message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__ColorRGBA__copy( - const std_msgs__msg__ColorRGBA * input, - std_msgs__msg__ColorRGBA * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__ColorRGBA__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__ColorRGBA__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__ColorRGBA__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__ColorRGBA__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/ColorRGBA messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__ColorRGBA__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__ColorRGBA__Sequence__init(std_msgs__msg__ColorRGBA__Sequence * array, size_t size); - -/// Finalize array of msg/ColorRGBA messages. -/** - * It calls - * std_msgs__msg__ColorRGBA__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__ColorRGBA__Sequence__fini(std_msgs__msg__ColorRGBA__Sequence * array); - -/// Create array of msg/ColorRGBA messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__ColorRGBA__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__ColorRGBA__Sequence * -std_msgs__msg__ColorRGBA__Sequence__create(size_t size); - -/// Destroy array of msg/ColorRGBA messages. -/** - * It calls - * std_msgs__msg__ColorRGBA__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__ColorRGBA__Sequence__destroy(std_msgs__msg__ColorRGBA__Sequence * array); - -/// Check for msg/ColorRGBA message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__ColorRGBA__Sequence__are_equal(const std_msgs__msg__ColorRGBA__Sequence * lhs, const std_msgs__msg__ColorRGBA__Sequence * rhs); - -/// Copy an array of msg/ColorRGBA messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__ColorRGBA__Sequence__copy( - const std_msgs__msg__ColorRGBA__Sequence * input, - std_msgs__msg__ColorRGBA__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__COLOR_RGBA__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/color_rgba__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/color_rgba__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 98956290d..000000000 --- a/src/std_msgs/msg/detail/color_rgba__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/ColorRGBA.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__COLOR_RGBA__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__COLOR_RGBA__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, ColorRGBA)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__COLOR_RGBA__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/color_rgba__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/color_rgba__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 539549401..000000000 --- a/src/std_msgs/msg/detail/color_rgba__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/ColorRGBA.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__COLOR_RGBA__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__COLOR_RGBA__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__ColorRGBA( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__ColorRGBA( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, ColorRGBA)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__COLOR_RGBA__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/color_rgba__struct.h b/src/std_msgs/msg/detail/color_rgba__struct.h deleted file mode 100755 index a66f508a0..000000000 --- a/src/std_msgs/msg/detail/color_rgba__struct.h +++ /dev/null @@ -1,45 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/ColorRGBA.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/color_rgba.h" - - -#ifndef STD_MSGS__MSG__DETAIL__COLOR_RGBA__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__COLOR_RGBA__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/ColorRGBA in the package std_msgs. -typedef struct std_msgs__msg__ColorRGBA -{ - float r; - float g; - float b; - float a; -} std_msgs__msg__ColorRGBA; - -// Struct for a sequence of std_msgs__msg__ColorRGBA. -typedef struct std_msgs__msg__ColorRGBA__Sequence -{ - std_msgs__msg__ColorRGBA * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__ColorRGBA__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__COLOR_RGBA__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/color_rgba__type_support.h b/src/std_msgs/msg/detail/color_rgba__type_support.h deleted file mode 100755 index 9b2a3f871..000000000 --- a/src/std_msgs/msg/detail/color_rgba__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/ColorRGBA.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/color_rgba.h" - - -#ifndef STD_MSGS__MSG__DETAIL__COLOR_RGBA__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__COLOR_RGBA__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - ColorRGBA -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__COLOR_RGBA__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/empty__functions.h b/src/std_msgs/msg/detail/empty__functions.h deleted file mode 100755 index 342472547..000000000 --- a/src/std_msgs/msg/detail/empty__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/empty.h" - - -#ifndef STD_MSGS__MSG__DETAIL__EMPTY__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__EMPTY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/empty__struct.h" - -/// Initialize msg/Empty message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Empty - * )) before or use - * std_msgs__msg__Empty__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Empty__init(std_msgs__msg__Empty * msg); - -/// Finalize msg/Empty message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Empty__fini(std_msgs__msg__Empty * msg); - -/// Create msg/Empty message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Empty__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Empty * -std_msgs__msg__Empty__create(void); - -/// Destroy msg/Empty message. -/** - * It calls - * std_msgs__msg__Empty__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Empty__destroy(std_msgs__msg__Empty * msg); - -/// Check for msg/Empty message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Empty__are_equal(const std_msgs__msg__Empty * lhs, const std_msgs__msg__Empty * rhs); - -/// Copy a msg/Empty message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Empty__copy( - const std_msgs__msg__Empty * input, - std_msgs__msg__Empty * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Empty__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Empty__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Empty__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Empty__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Empty messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Empty__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Empty__Sequence__init(std_msgs__msg__Empty__Sequence * array, size_t size); - -/// Finalize array of msg/Empty messages. -/** - * It calls - * std_msgs__msg__Empty__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Empty__Sequence__fini(std_msgs__msg__Empty__Sequence * array); - -/// Create array of msg/Empty messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Empty__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Empty__Sequence * -std_msgs__msg__Empty__Sequence__create(size_t size); - -/// Destroy array of msg/Empty messages. -/** - * It calls - * std_msgs__msg__Empty__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Empty__Sequence__destroy(std_msgs__msg__Empty__Sequence * array); - -/// Check for msg/Empty message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Empty__Sequence__are_equal(const std_msgs__msg__Empty__Sequence * lhs, const std_msgs__msg__Empty__Sequence * rhs); - -/// Copy an array of msg/Empty messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Empty__Sequence__copy( - const std_msgs__msg__Empty__Sequence * input, - std_msgs__msg__Empty__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__EMPTY__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/empty__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/empty__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 6cdd7d251..000000000 --- a/src/std_msgs/msg/detail/empty__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Empty.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Empty)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/empty__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/empty__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 2072df0a8..000000000 --- a/src/std_msgs/msg/detail/empty__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Empty.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Empty( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Empty( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Empty)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/empty__struct.h b/src/std_msgs/msg/detail/empty__struct.h deleted file mode 100755 index 71925ddd0..000000000 --- a/src/std_msgs/msg/detail/empty__struct.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/empty.h" - - -#ifndef STD_MSGS__MSG__DETAIL__EMPTY__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__EMPTY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Empty in the package std_msgs. -typedef struct std_msgs__msg__Empty -{ - uint8_t structure_needs_at_least_one_member; -} std_msgs__msg__Empty; - -// Struct for a sequence of std_msgs__msg__Empty. -typedef struct std_msgs__msg__Empty__Sequence -{ - std_msgs__msg__Empty * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Empty__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__EMPTY__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/empty__type_support.h b/src/std_msgs/msg/detail/empty__type_support.h deleted file mode 100755 index b0fa73240..000000000 --- a/src/std_msgs/msg/detail/empty__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/empty.h" - - -#ifndef STD_MSGS__MSG__DETAIL__EMPTY__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__EMPTY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Empty -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__EMPTY__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/float32__functions.h b/src/std_msgs/msg/detail/float32__functions.h deleted file mode 100755 index a43d8d24a..000000000 --- a/src/std_msgs/msg/detail/float32__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Float32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/float32.h" - - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT32__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT32__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/float32__struct.h" - -/// Initialize msg/Float32 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Float32 - * )) before or use - * std_msgs__msg__Float32__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float32__init(std_msgs__msg__Float32 * msg); - -/// Finalize msg/Float32 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float32__fini(std_msgs__msg__Float32 * msg); - -/// Create msg/Float32 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Float32__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Float32 * -std_msgs__msg__Float32__create(void); - -/// Destroy msg/Float32 message. -/** - * It calls - * std_msgs__msg__Float32__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float32__destroy(std_msgs__msg__Float32 * msg); - -/// Check for msg/Float32 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float32__are_equal(const std_msgs__msg__Float32 * lhs, const std_msgs__msg__Float32 * rhs); - -/// Copy a msg/Float32 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float32__copy( - const std_msgs__msg__Float32 * input, - std_msgs__msg__Float32 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Float32__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Float32__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Float32__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Float32__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Float32 messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Float32__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float32__Sequence__init(std_msgs__msg__Float32__Sequence * array, size_t size); - -/// Finalize array of msg/Float32 messages. -/** - * It calls - * std_msgs__msg__Float32__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float32__Sequence__fini(std_msgs__msg__Float32__Sequence * array); - -/// Create array of msg/Float32 messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Float32__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Float32__Sequence * -std_msgs__msg__Float32__Sequence__create(size_t size); - -/// Destroy array of msg/Float32 messages. -/** - * It calls - * std_msgs__msg__Float32__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float32__Sequence__destroy(std_msgs__msg__Float32__Sequence * array); - -/// Check for msg/Float32 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float32__Sequence__are_equal(const std_msgs__msg__Float32__Sequence * lhs, const std_msgs__msg__Float32__Sequence * rhs); - -/// Copy an array of msg/Float32 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float32__Sequence__copy( - const std_msgs__msg__Float32__Sequence * input, - std_msgs__msg__Float32__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT32__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/float32__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/float32__rosidl_typesupport_introspection_c.h deleted file mode 100755 index bde393c80..000000000 --- a/src/std_msgs/msg/detail/float32__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Float32.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Float32)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/float32__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/float32__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index aef7845c0..000000000 --- a/src/std_msgs/msg/detail/float32__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Float32.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__FLOAT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__FLOAT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Float32( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Float32( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Float32)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__FLOAT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/float32__struct.h b/src/std_msgs/msg/detail/float32__struct.h deleted file mode 100755 index 3d458a173..000000000 --- a/src/std_msgs/msg/detail/float32__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Float32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/float32.h" - - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT32__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT32__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Float32 in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Float32 -{ - float data; -} std_msgs__msg__Float32; - -// Struct for a sequence of std_msgs__msg__Float32. -typedef struct std_msgs__msg__Float32__Sequence -{ - std_msgs__msg__Float32 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Float32__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT32__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/float32__type_support.h b/src/std_msgs/msg/detail/float32__type_support.h deleted file mode 100755 index e91f02ad9..000000000 --- a/src/std_msgs/msg/detail/float32__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Float32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/float32.h" - - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT32__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT32__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Float32 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT32__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/float32_multi_array__functions.h b/src/std_msgs/msg/detail/float32_multi_array__functions.h deleted file mode 100755 index 4f2c85c38..000000000 --- a/src/std_msgs/msg/detail/float32_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Float32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/float32_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT32_MULTI_ARRAY__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT32_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/float32_multi_array__struct.h" - -/// Initialize msg/Float32MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Float32MultiArray - * )) before or use - * std_msgs__msg__Float32MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float32MultiArray__init(std_msgs__msg__Float32MultiArray * msg); - -/// Finalize msg/Float32MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float32MultiArray__fini(std_msgs__msg__Float32MultiArray * msg); - -/// Create msg/Float32MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Float32MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Float32MultiArray * -std_msgs__msg__Float32MultiArray__create(void); - -/// Destroy msg/Float32MultiArray message. -/** - * It calls - * std_msgs__msg__Float32MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float32MultiArray__destroy(std_msgs__msg__Float32MultiArray * msg); - -/// Check for msg/Float32MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float32MultiArray__are_equal(const std_msgs__msg__Float32MultiArray * lhs, const std_msgs__msg__Float32MultiArray * rhs); - -/// Copy a msg/Float32MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float32MultiArray__copy( - const std_msgs__msg__Float32MultiArray * input, - std_msgs__msg__Float32MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Float32MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Float32MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Float32MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Float32MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Float32MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Float32MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float32MultiArray__Sequence__init(std_msgs__msg__Float32MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/Float32MultiArray messages. -/** - * It calls - * std_msgs__msg__Float32MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float32MultiArray__Sequence__fini(std_msgs__msg__Float32MultiArray__Sequence * array); - -/// Create array of msg/Float32MultiArray messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Float32MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Float32MultiArray__Sequence * -std_msgs__msg__Float32MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/Float32MultiArray messages. -/** - * It calls - * std_msgs__msg__Float32MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float32MultiArray__Sequence__destroy(std_msgs__msg__Float32MultiArray__Sequence * array); - -/// Check for msg/Float32MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float32MultiArray__Sequence__are_equal(const std_msgs__msg__Float32MultiArray__Sequence * lhs, const std_msgs__msg__Float32MultiArray__Sequence * rhs); - -/// Copy an array of msg/Float32MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float32MultiArray__Sequence__copy( - const std_msgs__msg__Float32MultiArray__Sequence * input, - std_msgs__msg__Float32MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT32_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/float32_multi_array__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/float32_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 45bd10455..000000000 --- a/src/std_msgs/msg/detail/float32_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Float32MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Float32MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/float32_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/float32_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 65f41e9df..000000000 --- a/src/std_msgs/msg/detail/float32_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Float32MultiArray.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__FLOAT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__FLOAT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Float32MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Float32MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Float32MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__FLOAT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/float32_multi_array__struct.h b/src/std_msgs/msg/detail/float32_multi_array__struct.h deleted file mode 100755 index db9619756..000000000 --- a/src/std_msgs/msg/detail/float32_multi_array__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Float32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/float32_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT32_MULTI_ARRAY__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT32_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "std_msgs/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Float32MultiArray in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Float32MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - std_msgs__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__float__Sequence data; -} std_msgs__msg__Float32MultiArray; - -// Struct for a sequence of std_msgs__msg__Float32MultiArray. -typedef struct std_msgs__msg__Float32MultiArray__Sequence -{ - std_msgs__msg__Float32MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Float32MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT32_MULTI_ARRAY__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/float32_multi_array__type_support.h b/src/std_msgs/msg/detail/float32_multi_array__type_support.h deleted file mode 100755 index 611937932..000000000 --- a/src/std_msgs/msg/detail/float32_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Float32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/float32_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT32_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT32_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Float32MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT32_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/float64__functions.h b/src/std_msgs/msg/detail/float64__functions.h deleted file mode 100755 index 37d791dd3..000000000 --- a/src/std_msgs/msg/detail/float64__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Float64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/float64.h" - - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT64__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT64__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/float64__struct.h" - -/// Initialize msg/Float64 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Float64 - * )) before or use - * std_msgs__msg__Float64__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float64__init(std_msgs__msg__Float64 * msg); - -/// Finalize msg/Float64 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float64__fini(std_msgs__msg__Float64 * msg); - -/// Create msg/Float64 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Float64__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Float64 * -std_msgs__msg__Float64__create(void); - -/// Destroy msg/Float64 message. -/** - * It calls - * std_msgs__msg__Float64__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float64__destroy(std_msgs__msg__Float64 * msg); - -/// Check for msg/Float64 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float64__are_equal(const std_msgs__msg__Float64 * lhs, const std_msgs__msg__Float64 * rhs); - -/// Copy a msg/Float64 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float64__copy( - const std_msgs__msg__Float64 * input, - std_msgs__msg__Float64 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Float64__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Float64__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Float64__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Float64__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Float64 messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Float64__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float64__Sequence__init(std_msgs__msg__Float64__Sequence * array, size_t size); - -/// Finalize array of msg/Float64 messages. -/** - * It calls - * std_msgs__msg__Float64__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float64__Sequence__fini(std_msgs__msg__Float64__Sequence * array); - -/// Create array of msg/Float64 messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Float64__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Float64__Sequence * -std_msgs__msg__Float64__Sequence__create(size_t size); - -/// Destroy array of msg/Float64 messages. -/** - * It calls - * std_msgs__msg__Float64__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float64__Sequence__destroy(std_msgs__msg__Float64__Sequence * array); - -/// Check for msg/Float64 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float64__Sequence__are_equal(const std_msgs__msg__Float64__Sequence * lhs, const std_msgs__msg__Float64__Sequence * rhs); - -/// Copy an array of msg/Float64 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float64__Sequence__copy( - const std_msgs__msg__Float64__Sequence * input, - std_msgs__msg__Float64__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT64__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/float64__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/float64__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5648da7f4..000000000 --- a/src/std_msgs/msg/detail/float64__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Float64.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Float64)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/float64__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/float64__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index d3d9f9965..000000000 --- a/src/std_msgs/msg/detail/float64__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Float64.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__FLOAT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__FLOAT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Float64( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Float64( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Float64)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__FLOAT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/float64__struct.h b/src/std_msgs/msg/detail/float64__struct.h deleted file mode 100755 index 35efbb260..000000000 --- a/src/std_msgs/msg/detail/float64__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Float64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/float64.h" - - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT64__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT64__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Float64 in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Float64 -{ - double data; -} std_msgs__msg__Float64; - -// Struct for a sequence of std_msgs__msg__Float64. -typedef struct std_msgs__msg__Float64__Sequence -{ - std_msgs__msg__Float64 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Float64__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT64__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/float64__type_support.h b/src/std_msgs/msg/detail/float64__type_support.h deleted file mode 100755 index b2759068a..000000000 --- a/src/std_msgs/msg/detail/float64__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Float64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/float64.h" - - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT64__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT64__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Float64 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT64__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/float64_multi_array__functions.h b/src/std_msgs/msg/detail/float64_multi_array__functions.h deleted file mode 100755 index f679e83f8..000000000 --- a/src/std_msgs/msg/detail/float64_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Float64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/float64_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT64_MULTI_ARRAY__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT64_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/float64_multi_array__struct.h" - -/// Initialize msg/Float64MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Float64MultiArray - * )) before or use - * std_msgs__msg__Float64MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float64MultiArray__init(std_msgs__msg__Float64MultiArray * msg); - -/// Finalize msg/Float64MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float64MultiArray__fini(std_msgs__msg__Float64MultiArray * msg); - -/// Create msg/Float64MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Float64MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Float64MultiArray * -std_msgs__msg__Float64MultiArray__create(void); - -/// Destroy msg/Float64MultiArray message. -/** - * It calls - * std_msgs__msg__Float64MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float64MultiArray__destroy(std_msgs__msg__Float64MultiArray * msg); - -/// Check for msg/Float64MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float64MultiArray__are_equal(const std_msgs__msg__Float64MultiArray * lhs, const std_msgs__msg__Float64MultiArray * rhs); - -/// Copy a msg/Float64MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float64MultiArray__copy( - const std_msgs__msg__Float64MultiArray * input, - std_msgs__msg__Float64MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Float64MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Float64MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Float64MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Float64MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Float64MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Float64MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float64MultiArray__Sequence__init(std_msgs__msg__Float64MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/Float64MultiArray messages. -/** - * It calls - * std_msgs__msg__Float64MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float64MultiArray__Sequence__fini(std_msgs__msg__Float64MultiArray__Sequence * array); - -/// Create array of msg/Float64MultiArray messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Float64MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Float64MultiArray__Sequence * -std_msgs__msg__Float64MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/Float64MultiArray messages. -/** - * It calls - * std_msgs__msg__Float64MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Float64MultiArray__Sequence__destroy(std_msgs__msg__Float64MultiArray__Sequence * array); - -/// Check for msg/Float64MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float64MultiArray__Sequence__are_equal(const std_msgs__msg__Float64MultiArray__Sequence * lhs, const std_msgs__msg__Float64MultiArray__Sequence * rhs); - -/// Copy an array of msg/Float64MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Float64MultiArray__Sequence__copy( - const std_msgs__msg__Float64MultiArray__Sequence * input, - std_msgs__msg__Float64MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT64_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/float64_multi_array__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/float64_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 2f5654f0e..000000000 --- a/src/std_msgs/msg/detail/float64_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Float64MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Float64MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/float64_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/float64_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 3481917de..000000000 --- a/src/std_msgs/msg/detail/float64_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Float64MultiArray.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__FLOAT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__FLOAT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Float64MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Float64MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Float64MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__FLOAT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/float64_multi_array__struct.h b/src/std_msgs/msg/detail/float64_multi_array__struct.h deleted file mode 100755 index c510d5aa9..000000000 --- a/src/std_msgs/msg/detail/float64_multi_array__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Float64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/float64_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT64_MULTI_ARRAY__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT64_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "std_msgs/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Float64MultiArray in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Float64MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - std_msgs__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__double__Sequence data; -} std_msgs__msg__Float64MultiArray; - -// Struct for a sequence of std_msgs__msg__Float64MultiArray. -typedef struct std_msgs__msg__Float64MultiArray__Sequence -{ - std_msgs__msg__Float64MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Float64MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT64_MULTI_ARRAY__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/float64_multi_array__type_support.h b/src/std_msgs/msg/detail/float64_multi_array__type_support.h deleted file mode 100755 index 7db041322..000000000 --- a/src/std_msgs/msg/detail/float64_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Float64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/float64_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__FLOAT64_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__FLOAT64_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Float64MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__FLOAT64_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/header__functions.h b/src/std_msgs/msg/detail/header__functions.h deleted file mode 100755 index c01891c2e..000000000 --- a/src/std_msgs/msg/detail/header__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Header.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/header.h" - - -#ifndef STD_MSGS__MSG__DETAIL__HEADER__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__HEADER__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/header__struct.h" - -/// Initialize msg/Header message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Header - * )) before or use - * std_msgs__msg__Header__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Header__init(std_msgs__msg__Header * msg); - -/// Finalize msg/Header message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Header__fini(std_msgs__msg__Header * msg); - -/// Create msg/Header message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Header__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Header * -std_msgs__msg__Header__create(void); - -/// Destroy msg/Header message. -/** - * It calls - * std_msgs__msg__Header__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Header__destroy(std_msgs__msg__Header * msg); - -/// Check for msg/Header message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Header__are_equal(const std_msgs__msg__Header * lhs, const std_msgs__msg__Header * rhs); - -/// Copy a msg/Header message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Header__copy( - const std_msgs__msg__Header * input, - std_msgs__msg__Header * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Header__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Header__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Header__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Header__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Header messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Header__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Header__Sequence__init(std_msgs__msg__Header__Sequence * array, size_t size); - -/// Finalize array of msg/Header messages. -/** - * It calls - * std_msgs__msg__Header__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Header__Sequence__fini(std_msgs__msg__Header__Sequence * array); - -/// Create array of msg/Header messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Header__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Header__Sequence * -std_msgs__msg__Header__Sequence__create(size_t size); - -/// Destroy array of msg/Header messages. -/** - * It calls - * std_msgs__msg__Header__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Header__Sequence__destroy(std_msgs__msg__Header__Sequence * array); - -/// Check for msg/Header message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Header__Sequence__are_equal(const std_msgs__msg__Header__Sequence * lhs, const std_msgs__msg__Header__Sequence * rhs); - -/// Copy an array of msg/Header messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Header__Sequence__copy( - const std_msgs__msg__Header__Sequence * input, - std_msgs__msg__Header__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__HEADER__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/header__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/header__rosidl_typesupport_introspection_c.h deleted file mode 100755 index e1947c5aa..000000000 --- a/src/std_msgs/msg/detail/header__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Header.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__HEADER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__HEADER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Header)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__HEADER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/header__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/header__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 40aed99d5..000000000 --- a/src/std_msgs/msg/detail/header__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Header.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__HEADER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__HEADER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Header( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Header( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Header)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__HEADER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/header__struct.h b/src/std_msgs/msg/detail/header__struct.h deleted file mode 100755 index 8b5dc5595..000000000 --- a/src/std_msgs/msg/detail/header__struct.h +++ /dev/null @@ -1,56 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Header.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/header.h" - - -#ifndef STD_MSGS__MSG__DETAIL__HEADER__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__HEADER__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'stamp' -#include "builtin_interfaces/msg/detail/time__struct.h" -// Member 'frame_id' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/Header in the package std_msgs. -/** - * Standard metadata for higher-level stamped data types. - * This is generally used to communicate timestamped data - * in a particular coordinate frame. - */ -typedef struct std_msgs__msg__Header -{ - /// Two-integer timestamp that is expressed as seconds and nanoseconds. - builtin_interfaces__msg__Time stamp; - /// Transform frame with which this data is associated. - rosidl_runtime_c__String frame_id; -} std_msgs__msg__Header; - -// Struct for a sequence of std_msgs__msg__Header. -typedef struct std_msgs__msg__Header__Sequence -{ - std_msgs__msg__Header * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Header__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__HEADER__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/header__type_support.h b/src/std_msgs/msg/detail/header__type_support.h deleted file mode 100755 index 2453f8123..000000000 --- a/src/std_msgs/msg/detail/header__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Header.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/header.h" - - -#ifndef STD_MSGS__MSG__DETAIL__HEADER__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__HEADER__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Header -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__HEADER__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/int16__functions.h b/src/std_msgs/msg/detail/int16__functions.h deleted file mode 100755 index b5d68ad37..000000000 --- a/src/std_msgs/msg/detail/int16__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Int16.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int16.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT16__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__INT16__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/int16__struct.h" - -/// Initialize msg/Int16 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Int16 - * )) before or use - * std_msgs__msg__Int16__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int16__init(std_msgs__msg__Int16 * msg); - -/// Finalize msg/Int16 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int16__fini(std_msgs__msg__Int16 * msg); - -/// Create msg/Int16 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Int16__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int16 * -std_msgs__msg__Int16__create(void); - -/// Destroy msg/Int16 message. -/** - * It calls - * std_msgs__msg__Int16__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int16__destroy(std_msgs__msg__Int16 * msg); - -/// Check for msg/Int16 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int16__are_equal(const std_msgs__msg__Int16 * lhs, const std_msgs__msg__Int16 * rhs); - -/// Copy a msg/Int16 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int16__copy( - const std_msgs__msg__Int16 * input, - std_msgs__msg__Int16 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Int16__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Int16__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Int16__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Int16__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int16 messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Int16__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int16__Sequence__init(std_msgs__msg__Int16__Sequence * array, size_t size); - -/// Finalize array of msg/Int16 messages. -/** - * It calls - * std_msgs__msg__Int16__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int16__Sequence__fini(std_msgs__msg__Int16__Sequence * array); - -/// Create array of msg/Int16 messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Int16__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int16__Sequence * -std_msgs__msg__Int16__Sequence__create(size_t size); - -/// Destroy array of msg/Int16 messages. -/** - * It calls - * std_msgs__msg__Int16__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int16__Sequence__destroy(std_msgs__msg__Int16__Sequence * array); - -/// Check for msg/Int16 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int16__Sequence__are_equal(const std_msgs__msg__Int16__Sequence * lhs, const std_msgs__msg__Int16__Sequence * rhs); - -/// Copy an array of msg/Int16 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int16__Sequence__copy( - const std_msgs__msg__Int16__Sequence * input, - std_msgs__msg__Int16__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT16__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/int16__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/int16__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c7e6d117c..000000000 --- a/src/std_msgs/msg/detail/int16__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Int16.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__INT16__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__INT16__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Int16)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT16__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/int16__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/int16__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 5289961e4..000000000 --- a/src/std_msgs/msg/detail/int16__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Int16.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__INT16__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__INT16__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Int16( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Int16( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Int16)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__INT16__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/int16__struct.h b/src/std_msgs/msg/detail/int16__struct.h deleted file mode 100755 index 3c7d3241b..000000000 --- a/src/std_msgs/msg/detail/int16__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Int16.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int16.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT16__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__INT16__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Int16 in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Int16 -{ - int16_t data; -} std_msgs__msg__Int16; - -// Struct for a sequence of std_msgs__msg__Int16. -typedef struct std_msgs__msg__Int16__Sequence -{ - std_msgs__msg__Int16 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Int16__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT16__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/int16__type_support.h b/src/std_msgs/msg/detail/int16__type_support.h deleted file mode 100755 index 787816387..000000000 --- a/src/std_msgs/msg/detail/int16__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Int16.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int16.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT16__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__INT16__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Int16 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT16__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/int16_multi_array__functions.h b/src/std_msgs/msg/detail/int16_multi_array__functions.h deleted file mode 100755 index 5d63a40ef..000000000 --- a/src/std_msgs/msg/detail/int16_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Int16MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int16_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT16_MULTI_ARRAY__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__INT16_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/int16_multi_array__struct.h" - -/// Initialize msg/Int16MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Int16MultiArray - * )) before or use - * std_msgs__msg__Int16MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int16MultiArray__init(std_msgs__msg__Int16MultiArray * msg); - -/// Finalize msg/Int16MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int16MultiArray__fini(std_msgs__msg__Int16MultiArray * msg); - -/// Create msg/Int16MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Int16MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int16MultiArray * -std_msgs__msg__Int16MultiArray__create(void); - -/// Destroy msg/Int16MultiArray message. -/** - * It calls - * std_msgs__msg__Int16MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int16MultiArray__destroy(std_msgs__msg__Int16MultiArray * msg); - -/// Check for msg/Int16MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int16MultiArray__are_equal(const std_msgs__msg__Int16MultiArray * lhs, const std_msgs__msg__Int16MultiArray * rhs); - -/// Copy a msg/Int16MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int16MultiArray__copy( - const std_msgs__msg__Int16MultiArray * input, - std_msgs__msg__Int16MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Int16MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Int16MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Int16MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Int16MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int16MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Int16MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int16MultiArray__Sequence__init(std_msgs__msg__Int16MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/Int16MultiArray messages. -/** - * It calls - * std_msgs__msg__Int16MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int16MultiArray__Sequence__fini(std_msgs__msg__Int16MultiArray__Sequence * array); - -/// Create array of msg/Int16MultiArray messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Int16MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int16MultiArray__Sequence * -std_msgs__msg__Int16MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/Int16MultiArray messages. -/** - * It calls - * std_msgs__msg__Int16MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int16MultiArray__Sequence__destroy(std_msgs__msg__Int16MultiArray__Sequence * array); - -/// Check for msg/Int16MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int16MultiArray__Sequence__are_equal(const std_msgs__msg__Int16MultiArray__Sequence * lhs, const std_msgs__msg__Int16MultiArray__Sequence * rhs); - -/// Copy an array of msg/Int16MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int16MultiArray__Sequence__copy( - const std_msgs__msg__Int16MultiArray__Sequence * input, - std_msgs__msg__Int16MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT16_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/int16_multi_array__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/int16_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 7b60dd498..000000000 --- a/src/std_msgs/msg/detail/int16_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Int16MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Int16MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/int16_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/int16_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index b5656a9b6..000000000 --- a/src/std_msgs/msg/detail/int16_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Int16MultiArray.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Int16MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Int16MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Int16MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/int16_multi_array__struct.h b/src/std_msgs/msg/detail/int16_multi_array__struct.h deleted file mode 100755 index 39e406c81..000000000 --- a/src/std_msgs/msg/detail/int16_multi_array__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Int16MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int16_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT16_MULTI_ARRAY__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__INT16_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "std_msgs/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Int16MultiArray in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Int16MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - std_msgs__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__int16__Sequence data; -} std_msgs__msg__Int16MultiArray; - -// Struct for a sequence of std_msgs__msg__Int16MultiArray. -typedef struct std_msgs__msg__Int16MultiArray__Sequence -{ - std_msgs__msg__Int16MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Int16MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT16_MULTI_ARRAY__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/int16_multi_array__type_support.h b/src/std_msgs/msg/detail/int16_multi_array__type_support.h deleted file mode 100755 index 62a286fe5..000000000 --- a/src/std_msgs/msg/detail/int16_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Int16MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int16_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT16_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__INT16_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Int16MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT16_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/int32__functions.h b/src/std_msgs/msg/detail/int32__functions.h deleted file mode 100755 index b090578ce..000000000 --- a/src/std_msgs/msg/detail/int32__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Int32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int32.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT32__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__INT32__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/int32__struct.h" - -/// Initialize msg/Int32 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Int32 - * )) before or use - * std_msgs__msg__Int32__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int32__init(std_msgs__msg__Int32 * msg); - -/// Finalize msg/Int32 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int32__fini(std_msgs__msg__Int32 * msg); - -/// Create msg/Int32 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Int32__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int32 * -std_msgs__msg__Int32__create(void); - -/// Destroy msg/Int32 message. -/** - * It calls - * std_msgs__msg__Int32__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int32__destroy(std_msgs__msg__Int32 * msg); - -/// Check for msg/Int32 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int32__are_equal(const std_msgs__msg__Int32 * lhs, const std_msgs__msg__Int32 * rhs); - -/// Copy a msg/Int32 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int32__copy( - const std_msgs__msg__Int32 * input, - std_msgs__msg__Int32 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Int32__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Int32__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Int32__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Int32__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int32 messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Int32__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int32__Sequence__init(std_msgs__msg__Int32__Sequence * array, size_t size); - -/// Finalize array of msg/Int32 messages. -/** - * It calls - * std_msgs__msg__Int32__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int32__Sequence__fini(std_msgs__msg__Int32__Sequence * array); - -/// Create array of msg/Int32 messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Int32__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int32__Sequence * -std_msgs__msg__Int32__Sequence__create(size_t size); - -/// Destroy array of msg/Int32 messages. -/** - * It calls - * std_msgs__msg__Int32__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int32__Sequence__destroy(std_msgs__msg__Int32__Sequence * array); - -/// Check for msg/Int32 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int32__Sequence__are_equal(const std_msgs__msg__Int32__Sequence * lhs, const std_msgs__msg__Int32__Sequence * rhs); - -/// Copy an array of msg/Int32 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int32__Sequence__copy( - const std_msgs__msg__Int32__Sequence * input, - std_msgs__msg__Int32__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT32__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/int32__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/int32__rosidl_typesupport_introspection_c.h deleted file mode 100755 index e08975cbd..000000000 --- a/src/std_msgs/msg/detail/int32__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Int32.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__INT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__INT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Int32)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/int32__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/int32__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 04a1eb2bf..000000000 --- a/src/std_msgs/msg/detail/int32__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Int32.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__INT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__INT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Int32( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Int32( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Int32)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__INT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/int32__struct.h b/src/std_msgs/msg/detail/int32__struct.h deleted file mode 100755 index 73a1ed63b..000000000 --- a/src/std_msgs/msg/detail/int32__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Int32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int32.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT32__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__INT32__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Int32 in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Int32 -{ - int32_t data; -} std_msgs__msg__Int32; - -// Struct for a sequence of std_msgs__msg__Int32. -typedef struct std_msgs__msg__Int32__Sequence -{ - std_msgs__msg__Int32 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Int32__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT32__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/int32__type_support.h b/src/std_msgs/msg/detail/int32__type_support.h deleted file mode 100755 index 5fccd008d..000000000 --- a/src/std_msgs/msg/detail/int32__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Int32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int32.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT32__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__INT32__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Int32 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT32__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/int32_multi_array__functions.h b/src/std_msgs/msg/detail/int32_multi_array__functions.h deleted file mode 100755 index 951eb2fea..000000000 --- a/src/std_msgs/msg/detail/int32_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Int32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int32_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT32_MULTI_ARRAY__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__INT32_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/int32_multi_array__struct.h" - -/// Initialize msg/Int32MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Int32MultiArray - * )) before or use - * std_msgs__msg__Int32MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int32MultiArray__init(std_msgs__msg__Int32MultiArray * msg); - -/// Finalize msg/Int32MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int32MultiArray__fini(std_msgs__msg__Int32MultiArray * msg); - -/// Create msg/Int32MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Int32MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int32MultiArray * -std_msgs__msg__Int32MultiArray__create(void); - -/// Destroy msg/Int32MultiArray message. -/** - * It calls - * std_msgs__msg__Int32MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int32MultiArray__destroy(std_msgs__msg__Int32MultiArray * msg); - -/// Check for msg/Int32MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int32MultiArray__are_equal(const std_msgs__msg__Int32MultiArray * lhs, const std_msgs__msg__Int32MultiArray * rhs); - -/// Copy a msg/Int32MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int32MultiArray__copy( - const std_msgs__msg__Int32MultiArray * input, - std_msgs__msg__Int32MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Int32MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Int32MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Int32MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Int32MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int32MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Int32MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int32MultiArray__Sequence__init(std_msgs__msg__Int32MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/Int32MultiArray messages. -/** - * It calls - * std_msgs__msg__Int32MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int32MultiArray__Sequence__fini(std_msgs__msg__Int32MultiArray__Sequence * array); - -/// Create array of msg/Int32MultiArray messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Int32MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int32MultiArray__Sequence * -std_msgs__msg__Int32MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/Int32MultiArray messages. -/** - * It calls - * std_msgs__msg__Int32MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int32MultiArray__Sequence__destroy(std_msgs__msg__Int32MultiArray__Sequence * array); - -/// Check for msg/Int32MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int32MultiArray__Sequence__are_equal(const std_msgs__msg__Int32MultiArray__Sequence * lhs, const std_msgs__msg__Int32MultiArray__Sequence * rhs); - -/// Copy an array of msg/Int32MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int32MultiArray__Sequence__copy( - const std_msgs__msg__Int32MultiArray__Sequence * input, - std_msgs__msg__Int32MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT32_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/int32_multi_array__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/int32_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 0b49c14cc..000000000 --- a/src/std_msgs/msg/detail/int32_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Int32MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Int32MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/int32_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/int32_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 3ff917654..000000000 --- a/src/std_msgs/msg/detail/int32_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Int32MultiArray.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Int32MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Int32MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Int32MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/int32_multi_array__struct.h b/src/std_msgs/msg/detail/int32_multi_array__struct.h deleted file mode 100755 index f488d8d64..000000000 --- a/src/std_msgs/msg/detail/int32_multi_array__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Int32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int32_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT32_MULTI_ARRAY__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__INT32_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "std_msgs/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Int32MultiArray in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Int32MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - std_msgs__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__int32__Sequence data; -} std_msgs__msg__Int32MultiArray; - -// Struct for a sequence of std_msgs__msg__Int32MultiArray. -typedef struct std_msgs__msg__Int32MultiArray__Sequence -{ - std_msgs__msg__Int32MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Int32MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT32_MULTI_ARRAY__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/int32_multi_array__type_support.h b/src/std_msgs/msg/detail/int32_multi_array__type_support.h deleted file mode 100755 index 58bff0fde..000000000 --- a/src/std_msgs/msg/detail/int32_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Int32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int32_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT32_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__INT32_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Int32MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT32_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/int64__functions.h b/src/std_msgs/msg/detail/int64__functions.h deleted file mode 100755 index 99cf2001e..000000000 --- a/src/std_msgs/msg/detail/int64__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Int64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int64.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT64__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__INT64__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/int64__struct.h" - -/// Initialize msg/Int64 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Int64 - * )) before or use - * std_msgs__msg__Int64__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int64__init(std_msgs__msg__Int64 * msg); - -/// Finalize msg/Int64 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int64__fini(std_msgs__msg__Int64 * msg); - -/// Create msg/Int64 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Int64__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int64 * -std_msgs__msg__Int64__create(void); - -/// Destroy msg/Int64 message. -/** - * It calls - * std_msgs__msg__Int64__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int64__destroy(std_msgs__msg__Int64 * msg); - -/// Check for msg/Int64 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int64__are_equal(const std_msgs__msg__Int64 * lhs, const std_msgs__msg__Int64 * rhs); - -/// Copy a msg/Int64 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int64__copy( - const std_msgs__msg__Int64 * input, - std_msgs__msg__Int64 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Int64__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Int64__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Int64__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Int64__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int64 messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Int64__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int64__Sequence__init(std_msgs__msg__Int64__Sequence * array, size_t size); - -/// Finalize array of msg/Int64 messages. -/** - * It calls - * std_msgs__msg__Int64__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int64__Sequence__fini(std_msgs__msg__Int64__Sequence * array); - -/// Create array of msg/Int64 messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Int64__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int64__Sequence * -std_msgs__msg__Int64__Sequence__create(size_t size); - -/// Destroy array of msg/Int64 messages. -/** - * It calls - * std_msgs__msg__Int64__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int64__Sequence__destroy(std_msgs__msg__Int64__Sequence * array); - -/// Check for msg/Int64 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int64__Sequence__are_equal(const std_msgs__msg__Int64__Sequence * lhs, const std_msgs__msg__Int64__Sequence * rhs); - -/// Copy an array of msg/Int64 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int64__Sequence__copy( - const std_msgs__msg__Int64__Sequence * input, - std_msgs__msg__Int64__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT64__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/int64__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/int64__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 1faf01046..000000000 --- a/src/std_msgs/msg/detail/int64__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Int64.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__INT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__INT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Int64)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/int64__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/int64__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a985a25a4..000000000 --- a/src/std_msgs/msg/detail/int64__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Int64.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__INT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__INT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Int64( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Int64( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Int64)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__INT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/int64__struct.h b/src/std_msgs/msg/detail/int64__struct.h deleted file mode 100755 index f0299bf33..000000000 --- a/src/std_msgs/msg/detail/int64__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Int64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int64.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT64__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__INT64__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Int64 in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Int64 -{ - int64_t data; -} std_msgs__msg__Int64; - -// Struct for a sequence of std_msgs__msg__Int64. -typedef struct std_msgs__msg__Int64__Sequence -{ - std_msgs__msg__Int64 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Int64__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT64__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/int64__type_support.h b/src/std_msgs/msg/detail/int64__type_support.h deleted file mode 100755 index 804a20064..000000000 --- a/src/std_msgs/msg/detail/int64__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Int64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int64.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT64__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__INT64__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Int64 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT64__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/int64_multi_array__functions.h b/src/std_msgs/msg/detail/int64_multi_array__functions.h deleted file mode 100755 index 4250c9b6c..000000000 --- a/src/std_msgs/msg/detail/int64_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Int64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int64_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT64_MULTI_ARRAY__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__INT64_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/int64_multi_array__struct.h" - -/// Initialize msg/Int64MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Int64MultiArray - * )) before or use - * std_msgs__msg__Int64MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int64MultiArray__init(std_msgs__msg__Int64MultiArray * msg); - -/// Finalize msg/Int64MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int64MultiArray__fini(std_msgs__msg__Int64MultiArray * msg); - -/// Create msg/Int64MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Int64MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int64MultiArray * -std_msgs__msg__Int64MultiArray__create(void); - -/// Destroy msg/Int64MultiArray message. -/** - * It calls - * std_msgs__msg__Int64MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int64MultiArray__destroy(std_msgs__msg__Int64MultiArray * msg); - -/// Check for msg/Int64MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int64MultiArray__are_equal(const std_msgs__msg__Int64MultiArray * lhs, const std_msgs__msg__Int64MultiArray * rhs); - -/// Copy a msg/Int64MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int64MultiArray__copy( - const std_msgs__msg__Int64MultiArray * input, - std_msgs__msg__Int64MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Int64MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Int64MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Int64MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Int64MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int64MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Int64MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int64MultiArray__Sequence__init(std_msgs__msg__Int64MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/Int64MultiArray messages. -/** - * It calls - * std_msgs__msg__Int64MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int64MultiArray__Sequence__fini(std_msgs__msg__Int64MultiArray__Sequence * array); - -/// Create array of msg/Int64MultiArray messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Int64MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int64MultiArray__Sequence * -std_msgs__msg__Int64MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/Int64MultiArray messages. -/** - * It calls - * std_msgs__msg__Int64MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int64MultiArray__Sequence__destroy(std_msgs__msg__Int64MultiArray__Sequence * array); - -/// Check for msg/Int64MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int64MultiArray__Sequence__are_equal(const std_msgs__msg__Int64MultiArray__Sequence * lhs, const std_msgs__msg__Int64MultiArray__Sequence * rhs); - -/// Copy an array of msg/Int64MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int64MultiArray__Sequence__copy( - const std_msgs__msg__Int64MultiArray__Sequence * input, - std_msgs__msg__Int64MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT64_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/int64_multi_array__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/int64_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 69a4dac5b..000000000 --- a/src/std_msgs/msg/detail/int64_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Int64MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Int64MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/int64_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/int64_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 97d984318..000000000 --- a/src/std_msgs/msg/detail/int64_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Int64MultiArray.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Int64MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Int64MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Int64MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/int64_multi_array__struct.h b/src/std_msgs/msg/detail/int64_multi_array__struct.h deleted file mode 100755 index e9334cfca..000000000 --- a/src/std_msgs/msg/detail/int64_multi_array__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Int64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int64_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT64_MULTI_ARRAY__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__INT64_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "std_msgs/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Int64MultiArray in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Int64MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - std_msgs__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__int64__Sequence data; -} std_msgs__msg__Int64MultiArray; - -// Struct for a sequence of std_msgs__msg__Int64MultiArray. -typedef struct std_msgs__msg__Int64MultiArray__Sequence -{ - std_msgs__msg__Int64MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Int64MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT64_MULTI_ARRAY__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/int64_multi_array__type_support.h b/src/std_msgs/msg/detail/int64_multi_array__type_support.h deleted file mode 100755 index b94173b3b..000000000 --- a/src/std_msgs/msg/detail/int64_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Int64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int64_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT64_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__INT64_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Int64MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT64_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/int8__functions.h b/src/std_msgs/msg/detail/int8__functions.h deleted file mode 100755 index 7495b7dbf..000000000 --- a/src/std_msgs/msg/detail/int8__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Int8.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int8.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT8__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__INT8__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/int8__struct.h" - -/// Initialize msg/Int8 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Int8 - * )) before or use - * std_msgs__msg__Int8__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int8__init(std_msgs__msg__Int8 * msg); - -/// Finalize msg/Int8 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int8__fini(std_msgs__msg__Int8 * msg); - -/// Create msg/Int8 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Int8__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int8 * -std_msgs__msg__Int8__create(void); - -/// Destroy msg/Int8 message. -/** - * It calls - * std_msgs__msg__Int8__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int8__destroy(std_msgs__msg__Int8 * msg); - -/// Check for msg/Int8 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int8__are_equal(const std_msgs__msg__Int8 * lhs, const std_msgs__msg__Int8 * rhs); - -/// Copy a msg/Int8 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int8__copy( - const std_msgs__msg__Int8 * input, - std_msgs__msg__Int8 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Int8__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Int8__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Int8__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Int8__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int8 messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Int8__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int8__Sequence__init(std_msgs__msg__Int8__Sequence * array, size_t size); - -/// Finalize array of msg/Int8 messages. -/** - * It calls - * std_msgs__msg__Int8__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int8__Sequence__fini(std_msgs__msg__Int8__Sequence * array); - -/// Create array of msg/Int8 messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Int8__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int8__Sequence * -std_msgs__msg__Int8__Sequence__create(size_t size); - -/// Destroy array of msg/Int8 messages. -/** - * It calls - * std_msgs__msg__Int8__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int8__Sequence__destroy(std_msgs__msg__Int8__Sequence * array); - -/// Check for msg/Int8 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int8__Sequence__are_equal(const std_msgs__msg__Int8__Sequence * lhs, const std_msgs__msg__Int8__Sequence * rhs); - -/// Copy an array of msg/Int8 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int8__Sequence__copy( - const std_msgs__msg__Int8__Sequence * input, - std_msgs__msg__Int8__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT8__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/int8__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/int8__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 8b8efe759..000000000 --- a/src/std_msgs/msg/detail/int8__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Int8.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__INT8__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__INT8__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Int8)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT8__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/int8__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/int8__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 73afd2bee..000000000 --- a/src/std_msgs/msg/detail/int8__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Int8.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__INT8__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__INT8__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Int8( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Int8( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Int8)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__INT8__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/int8__struct.h b/src/std_msgs/msg/detail/int8__struct.h deleted file mode 100755 index f4ef4294b..000000000 --- a/src/std_msgs/msg/detail/int8__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Int8.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int8.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT8__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__INT8__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Int8 in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Int8 -{ - int8_t data; -} std_msgs__msg__Int8; - -// Struct for a sequence of std_msgs__msg__Int8. -typedef struct std_msgs__msg__Int8__Sequence -{ - std_msgs__msg__Int8 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Int8__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT8__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/int8__type_support.h b/src/std_msgs/msg/detail/int8__type_support.h deleted file mode 100755 index 44a0e7b62..000000000 --- a/src/std_msgs/msg/detail/int8__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Int8.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int8.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT8__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__INT8__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Int8 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT8__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/int8_multi_array__functions.h b/src/std_msgs/msg/detail/int8_multi_array__functions.h deleted file mode 100755 index 29b584ba9..000000000 --- a/src/std_msgs/msg/detail/int8_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/Int8MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int8_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT8_MULTI_ARRAY__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__INT8_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/int8_multi_array__struct.h" - -/// Initialize msg/Int8MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__Int8MultiArray - * )) before or use - * std_msgs__msg__Int8MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int8MultiArray__init(std_msgs__msg__Int8MultiArray * msg); - -/// Finalize msg/Int8MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int8MultiArray__fini(std_msgs__msg__Int8MultiArray * msg); - -/// Create msg/Int8MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__Int8MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int8MultiArray * -std_msgs__msg__Int8MultiArray__create(void); - -/// Destroy msg/Int8MultiArray message. -/** - * It calls - * std_msgs__msg__Int8MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int8MultiArray__destroy(std_msgs__msg__Int8MultiArray * msg); - -/// Check for msg/Int8MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int8MultiArray__are_equal(const std_msgs__msg__Int8MultiArray * lhs, const std_msgs__msg__Int8MultiArray * rhs); - -/// Copy a msg/Int8MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int8MultiArray__copy( - const std_msgs__msg__Int8MultiArray * input, - std_msgs__msg__Int8MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__Int8MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__Int8MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__Int8MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__Int8MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Int8MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__Int8MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int8MultiArray__Sequence__init(std_msgs__msg__Int8MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/Int8MultiArray messages. -/** - * It calls - * std_msgs__msg__Int8MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int8MultiArray__Sequence__fini(std_msgs__msg__Int8MultiArray__Sequence * array); - -/// Create array of msg/Int8MultiArray messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__Int8MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__Int8MultiArray__Sequence * -std_msgs__msg__Int8MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/Int8MultiArray messages. -/** - * It calls - * std_msgs__msg__Int8MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__Int8MultiArray__Sequence__destroy(std_msgs__msg__Int8MultiArray__Sequence * array); - -/// Check for msg/Int8MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int8MultiArray__Sequence__are_equal(const std_msgs__msg__Int8MultiArray__Sequence * lhs, const std_msgs__msg__Int8MultiArray__Sequence * rhs); - -/// Copy an array of msg/Int8MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__Int8MultiArray__Sequence__copy( - const std_msgs__msg__Int8MultiArray__Sequence * input, - std_msgs__msg__Int8MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT8_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/int8_multi_array__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/int8_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index a2c42e472..000000000 --- a/src/std_msgs/msg/detail/int8_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/Int8MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, Int8MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/int8_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/int8_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ad2ac62fb..000000000 --- a/src/std_msgs/msg/detail/int8_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/Int8MultiArray.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__Int8MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__Int8MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, Int8MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/int8_multi_array__struct.h b/src/std_msgs/msg/detail/int8_multi_array__struct.h deleted file mode 100755 index 646ee7bc7..000000000 --- a/src/std_msgs/msg/detail/int8_multi_array__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/Int8MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int8_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT8_MULTI_ARRAY__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__INT8_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "std_msgs/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/Int8MultiArray in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__Int8MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - std_msgs__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__int8__Sequence data; -} std_msgs__msg__Int8MultiArray; - -// Struct for a sequence of std_msgs__msg__Int8MultiArray. -typedef struct std_msgs__msg__Int8MultiArray__Sequence -{ - std_msgs__msg__Int8MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__Int8MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT8_MULTI_ARRAY__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/int8_multi_array__type_support.h b/src/std_msgs/msg/detail/int8_multi_array__type_support.h deleted file mode 100755 index e56e6a4aa..000000000 --- a/src/std_msgs/msg/detail/int8_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/Int8MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/int8_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__INT8_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__INT8_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - Int8MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__INT8_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/multi_array_dimension__functions.h b/src/std_msgs/msg/detail/multi_array_dimension__functions.h deleted file mode 100755 index 8b418d51c..000000000 --- a/src/std_msgs/msg/detail/multi_array_dimension__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/MultiArrayDimension.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/multi_array_dimension.h" - - -#ifndef STD_MSGS__MSG__DETAIL__MULTI_ARRAY_DIMENSION__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__MULTI_ARRAY_DIMENSION__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/multi_array_dimension__struct.h" - -/// Initialize msg/MultiArrayDimension message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__MultiArrayDimension - * )) before or use - * std_msgs__msg__MultiArrayDimension__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__MultiArrayDimension__init(std_msgs__msg__MultiArrayDimension * msg); - -/// Finalize msg/MultiArrayDimension message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__MultiArrayDimension__fini(std_msgs__msg__MultiArrayDimension * msg); - -/// Create msg/MultiArrayDimension message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__MultiArrayDimension__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__MultiArrayDimension * -std_msgs__msg__MultiArrayDimension__create(void); - -/// Destroy msg/MultiArrayDimension message. -/** - * It calls - * std_msgs__msg__MultiArrayDimension__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__MultiArrayDimension__destroy(std_msgs__msg__MultiArrayDimension * msg); - -/// Check for msg/MultiArrayDimension message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__MultiArrayDimension__are_equal(const std_msgs__msg__MultiArrayDimension * lhs, const std_msgs__msg__MultiArrayDimension * rhs); - -/// Copy a msg/MultiArrayDimension message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__MultiArrayDimension__copy( - const std_msgs__msg__MultiArrayDimension * input, - std_msgs__msg__MultiArrayDimension * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__MultiArrayDimension__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__MultiArrayDimension__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__MultiArrayDimension__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__MultiArrayDimension__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MultiArrayDimension messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__MultiArrayDimension__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__MultiArrayDimension__Sequence__init(std_msgs__msg__MultiArrayDimension__Sequence * array, size_t size); - -/// Finalize array of msg/MultiArrayDimension messages. -/** - * It calls - * std_msgs__msg__MultiArrayDimension__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__MultiArrayDimension__Sequence__fini(std_msgs__msg__MultiArrayDimension__Sequence * array); - -/// Create array of msg/MultiArrayDimension messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__MultiArrayDimension__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__MultiArrayDimension__Sequence * -std_msgs__msg__MultiArrayDimension__Sequence__create(size_t size); - -/// Destroy array of msg/MultiArrayDimension messages. -/** - * It calls - * std_msgs__msg__MultiArrayDimension__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__MultiArrayDimension__Sequence__destroy(std_msgs__msg__MultiArrayDimension__Sequence * array); - -/// Check for msg/MultiArrayDimension message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__MultiArrayDimension__Sequence__are_equal(const std_msgs__msg__MultiArrayDimension__Sequence * lhs, const std_msgs__msg__MultiArrayDimension__Sequence * rhs); - -/// Copy an array of msg/MultiArrayDimension messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__MultiArrayDimension__Sequence__copy( - const std_msgs__msg__MultiArrayDimension__Sequence * input, - std_msgs__msg__MultiArrayDimension__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__MULTI_ARRAY_DIMENSION__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/multi_array_dimension__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/multi_array_dimension__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 7e43cc0c1..000000000 --- a/src/std_msgs/msg/detail/multi_array_dimension__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/MultiArrayDimension.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__MULTI_ARRAY_DIMENSION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__MULTI_ARRAY_DIMENSION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, MultiArrayDimension)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__MULTI_ARRAY_DIMENSION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/multi_array_dimension__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/multi_array_dimension__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 741d3a813..000000000 --- a/src/std_msgs/msg/detail/multi_array_dimension__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/MultiArrayDimension.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__MULTI_ARRAY_DIMENSION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__MULTI_ARRAY_DIMENSION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__MultiArrayDimension( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__MultiArrayDimension( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, MultiArrayDimension)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__MULTI_ARRAY_DIMENSION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/multi_array_dimension__struct.h b/src/std_msgs/msg/detail/multi_array_dimension__struct.h deleted file mode 100755 index e9077646f..000000000 --- a/src/std_msgs/msg/detail/multi_array_dimension__struct.h +++ /dev/null @@ -1,57 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/MultiArrayDimension.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/multi_array_dimension.h" - - -#ifndef STD_MSGS__MSG__DETAIL__MULTI_ARRAY_DIMENSION__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__MULTI_ARRAY_DIMENSION__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'label' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/MultiArrayDimension in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__MultiArrayDimension -{ - /// label of given dimension - rosidl_runtime_c__String label; - /// size of given dimension (in type units) - uint32_t size; - /// stride of given dimension - uint32_t stride; -} std_msgs__msg__MultiArrayDimension; - -// Struct for a sequence of std_msgs__msg__MultiArrayDimension. -typedef struct std_msgs__msg__MultiArrayDimension__Sequence -{ - std_msgs__msg__MultiArrayDimension * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__MultiArrayDimension__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__MULTI_ARRAY_DIMENSION__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/multi_array_dimension__type_support.h b/src/std_msgs/msg/detail/multi_array_dimension__type_support.h deleted file mode 100755 index 891ca54d3..000000000 --- a/src/std_msgs/msg/detail/multi_array_dimension__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/MultiArrayDimension.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/multi_array_dimension.h" - - -#ifndef STD_MSGS__MSG__DETAIL__MULTI_ARRAY_DIMENSION__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__MULTI_ARRAY_DIMENSION__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - MultiArrayDimension -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__MULTI_ARRAY_DIMENSION__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/multi_array_layout__functions.h b/src/std_msgs/msg/detail/multi_array_layout__functions.h deleted file mode 100755 index 95010b731..000000000 --- a/src/std_msgs/msg/detail/multi_array_layout__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/MultiArrayLayout.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/multi_array_layout.h" - - -#ifndef STD_MSGS__MSG__DETAIL__MULTI_ARRAY_LAYOUT__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__MULTI_ARRAY_LAYOUT__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/multi_array_layout__struct.h" - -/// Initialize msg/MultiArrayLayout message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__MultiArrayLayout - * )) before or use - * std_msgs__msg__MultiArrayLayout__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__MultiArrayLayout__init(std_msgs__msg__MultiArrayLayout * msg); - -/// Finalize msg/MultiArrayLayout message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__MultiArrayLayout__fini(std_msgs__msg__MultiArrayLayout * msg); - -/// Create msg/MultiArrayLayout message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__MultiArrayLayout__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__MultiArrayLayout * -std_msgs__msg__MultiArrayLayout__create(void); - -/// Destroy msg/MultiArrayLayout message. -/** - * It calls - * std_msgs__msg__MultiArrayLayout__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__MultiArrayLayout__destroy(std_msgs__msg__MultiArrayLayout * msg); - -/// Check for msg/MultiArrayLayout message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__MultiArrayLayout__are_equal(const std_msgs__msg__MultiArrayLayout * lhs, const std_msgs__msg__MultiArrayLayout * rhs); - -/// Copy a msg/MultiArrayLayout message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__MultiArrayLayout__copy( - const std_msgs__msg__MultiArrayLayout * input, - std_msgs__msg__MultiArrayLayout * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__MultiArrayLayout__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__MultiArrayLayout__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__MultiArrayLayout__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__MultiArrayLayout__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MultiArrayLayout messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__MultiArrayLayout__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__MultiArrayLayout__Sequence__init(std_msgs__msg__MultiArrayLayout__Sequence * array, size_t size); - -/// Finalize array of msg/MultiArrayLayout messages. -/** - * It calls - * std_msgs__msg__MultiArrayLayout__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__MultiArrayLayout__Sequence__fini(std_msgs__msg__MultiArrayLayout__Sequence * array); - -/// Create array of msg/MultiArrayLayout messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__MultiArrayLayout__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__MultiArrayLayout__Sequence * -std_msgs__msg__MultiArrayLayout__Sequence__create(size_t size); - -/// Destroy array of msg/MultiArrayLayout messages. -/** - * It calls - * std_msgs__msg__MultiArrayLayout__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__MultiArrayLayout__Sequence__destroy(std_msgs__msg__MultiArrayLayout__Sequence * array); - -/// Check for msg/MultiArrayLayout message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__MultiArrayLayout__Sequence__are_equal(const std_msgs__msg__MultiArrayLayout__Sequence * lhs, const std_msgs__msg__MultiArrayLayout__Sequence * rhs); - -/// Copy an array of msg/MultiArrayLayout messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__MultiArrayLayout__Sequence__copy( - const std_msgs__msg__MultiArrayLayout__Sequence * input, - std_msgs__msg__MultiArrayLayout__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__MULTI_ARRAY_LAYOUT__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/multi_array_layout__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/multi_array_layout__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 0b851f5cb..000000000 --- a/src/std_msgs/msg/detail/multi_array_layout__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/MultiArrayLayout.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__MULTI_ARRAY_LAYOUT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__MULTI_ARRAY_LAYOUT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, MultiArrayLayout)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__MULTI_ARRAY_LAYOUT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/multi_array_layout__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/multi_array_layout__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 818032143..000000000 --- a/src/std_msgs/msg/detail/multi_array_layout__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/MultiArrayLayout.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__MULTI_ARRAY_LAYOUT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__MULTI_ARRAY_LAYOUT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__MultiArrayLayout( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__MultiArrayLayout( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, MultiArrayLayout)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__MULTI_ARRAY_LAYOUT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/multi_array_layout__struct.h b/src/std_msgs/msg/detail/multi_array_layout__struct.h deleted file mode 100755 index 8318414d9..000000000 --- a/src/std_msgs/msg/detail/multi_array_layout__struct.h +++ /dev/null @@ -1,78 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/MultiArrayLayout.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/multi_array_layout.h" - - -#ifndef STD_MSGS__MSG__DETAIL__MULTI_ARRAY_LAYOUT__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__MULTI_ARRAY_LAYOUT__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'dim' -#include "std_msgs/msg/detail/multi_array_dimension__struct.h" - -/// Struct defined in msg/MultiArrayLayout in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__MultiArrayLayout -{ - /// The multiarray declares a generic multi-dimensional array of a - /// particular data type. Dimensions are ordered from outer most - /// to inner most. - /// - /// Accessors should ALWAYS be written in terms of dimension stride - /// and specified outer-most dimension first. - /// - /// multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k] - /// - /// A standard, 3-channel 640x480 image with interleaved color channels - /// would be specified as: - /// - /// dim[0].label = "height" - /// dim[0].size = 480 - /// dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image) - /// dim[1].label = "width" - /// dim[1].size = 640 - /// dim[1].stride = 3*640 = 1920 - /// dim[2].label = "channel" - /// dim[2].size = 3 - /// dim[2].stride = 3 - /// - /// multiarray(i,j,k) refers to the ith row, jth column, and kth channel. - /// Array of dimension properties - std_msgs__msg__MultiArrayDimension__Sequence dim; - /// padding bytes at front of data - uint32_t data_offset; -} std_msgs__msg__MultiArrayLayout; - -// Struct for a sequence of std_msgs__msg__MultiArrayLayout. -typedef struct std_msgs__msg__MultiArrayLayout__Sequence -{ - std_msgs__msg__MultiArrayLayout * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__MultiArrayLayout__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__MULTI_ARRAY_LAYOUT__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/multi_array_layout__type_support.h b/src/std_msgs/msg/detail/multi_array_layout__type_support.h deleted file mode 100755 index c53c26bcc..000000000 --- a/src/std_msgs/msg/detail/multi_array_layout__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/MultiArrayLayout.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/multi_array_layout.h" - - -#ifndef STD_MSGS__MSG__DETAIL__MULTI_ARRAY_LAYOUT__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__MULTI_ARRAY_LAYOUT__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - MultiArrayLayout -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__MULTI_ARRAY_LAYOUT__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/string__functions.h b/src/std_msgs/msg/detail/string__functions.h deleted file mode 100755 index f846a1f52..000000000 --- a/src/std_msgs/msg/detail/string__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/String.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/string.h" - - -#ifndef STD_MSGS__MSG__DETAIL__STRING__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__STRING__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/string__struct.h" - -/// Initialize msg/String message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__String - * )) before or use - * std_msgs__msg__String__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__String__init(std_msgs__msg__String * msg); - -/// Finalize msg/String message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__String__fini(std_msgs__msg__String * msg); - -/// Create msg/String message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__String__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__String * -std_msgs__msg__String__create(void); - -/// Destroy msg/String message. -/** - * It calls - * std_msgs__msg__String__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__String__destroy(std_msgs__msg__String * msg); - -/// Check for msg/String message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__String__are_equal(const std_msgs__msg__String * lhs, const std_msgs__msg__String * rhs); - -/// Copy a msg/String message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__String__copy( - const std_msgs__msg__String * input, - std_msgs__msg__String * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__String__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__String__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__String__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__String__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/String messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__String__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__String__Sequence__init(std_msgs__msg__String__Sequence * array, size_t size); - -/// Finalize array of msg/String messages. -/** - * It calls - * std_msgs__msg__String__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__String__Sequence__fini(std_msgs__msg__String__Sequence * array); - -/// Create array of msg/String messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__String__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__String__Sequence * -std_msgs__msg__String__Sequence__create(size_t size); - -/// Destroy array of msg/String messages. -/** - * It calls - * std_msgs__msg__String__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__String__Sequence__destroy(std_msgs__msg__String__Sequence * array); - -/// Check for msg/String message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__String__Sequence__are_equal(const std_msgs__msg__String__Sequence * lhs, const std_msgs__msg__String__Sequence * rhs); - -/// Copy an array of msg/String messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__String__Sequence__copy( - const std_msgs__msg__String__Sequence * input, - std_msgs__msg__String__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__STRING__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/string__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/string__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 173d93c22..000000000 --- a/src/std_msgs/msg/detail/string__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/String.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__STRING__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__STRING__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, String)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__STRING__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/string__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/string__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 03cc6439d..000000000 --- a/src/std_msgs/msg/detail/string__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/String.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__STRING__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__STRING__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__String( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__String( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, String)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__STRING__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/string__struct.h b/src/std_msgs/msg/detail/string__struct.h deleted file mode 100755 index a858c0812..000000000 --- a/src/std_msgs/msg/detail/string__struct.h +++ /dev/null @@ -1,52 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/String.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/string.h" - - -#ifndef STD_MSGS__MSG__DETAIL__STRING__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__STRING__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'data' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/String in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__String -{ - rosidl_runtime_c__String data; -} std_msgs__msg__String; - -// Struct for a sequence of std_msgs__msg__String. -typedef struct std_msgs__msg__String__Sequence -{ - std_msgs__msg__String * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__String__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__STRING__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/string__type_support.h b/src/std_msgs/msg/detail/string__type_support.h deleted file mode 100755 index a6d12f687..000000000 --- a/src/std_msgs/msg/detail/string__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/String.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/string.h" - - -#ifndef STD_MSGS__MSG__DETAIL__STRING__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__STRING__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - String -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__STRING__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/u_int16__functions.h b/src/std_msgs/msg/detail/u_int16__functions.h deleted file mode 100755 index 417b868eb..000000000 --- a/src/std_msgs/msg/detail/u_int16__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/UInt16.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int16.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT16__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__U_INT16__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/u_int16__struct.h" - -/// Initialize msg/UInt16 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__UInt16 - * )) before or use - * std_msgs__msg__UInt16__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt16__init(std_msgs__msg__UInt16 * msg); - -/// Finalize msg/UInt16 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt16__fini(std_msgs__msg__UInt16 * msg); - -/// Create msg/UInt16 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__UInt16__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt16 * -std_msgs__msg__UInt16__create(void); - -/// Destroy msg/UInt16 message. -/** - * It calls - * std_msgs__msg__UInt16__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt16__destroy(std_msgs__msg__UInt16 * msg); - -/// Check for msg/UInt16 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt16__are_equal(const std_msgs__msg__UInt16 * lhs, const std_msgs__msg__UInt16 * rhs); - -/// Copy a msg/UInt16 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt16__copy( - const std_msgs__msg__UInt16 * input, - std_msgs__msg__UInt16 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__UInt16__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__UInt16__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__UInt16__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__UInt16__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt16 messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__UInt16__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt16__Sequence__init(std_msgs__msg__UInt16__Sequence * array, size_t size); - -/// Finalize array of msg/UInt16 messages. -/** - * It calls - * std_msgs__msg__UInt16__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt16__Sequence__fini(std_msgs__msg__UInt16__Sequence * array); - -/// Create array of msg/UInt16 messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__UInt16__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt16__Sequence * -std_msgs__msg__UInt16__Sequence__create(size_t size); - -/// Destroy array of msg/UInt16 messages. -/** - * It calls - * std_msgs__msg__UInt16__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt16__Sequence__destroy(std_msgs__msg__UInt16__Sequence * array); - -/// Check for msg/UInt16 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt16__Sequence__are_equal(const std_msgs__msg__UInt16__Sequence * lhs, const std_msgs__msg__UInt16__Sequence * rhs); - -/// Copy an array of msg/UInt16 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt16__Sequence__copy( - const std_msgs__msg__UInt16__Sequence * input, - std_msgs__msg__UInt16__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT16__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/u_int16__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/u_int16__rosidl_typesupport_introspection_c.h deleted file mode 100755 index cf4f41f11..000000000 --- a/src/std_msgs/msg/detail/u_int16__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/UInt16.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__U_INT16__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__U_INT16__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, UInt16)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT16__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/u_int16__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/u_int16__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 8c8c25577..000000000 --- a/src/std_msgs/msg/detail/u_int16__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/UInt16.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__U_INT16__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__U_INT16__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__UInt16( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__UInt16( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, UInt16)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__U_INT16__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/u_int16__struct.h b/src/std_msgs/msg/detail/u_int16__struct.h deleted file mode 100755 index 22a4e24ae..000000000 --- a/src/std_msgs/msg/detail/u_int16__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/UInt16.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int16.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT16__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT16__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/UInt16 in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__UInt16 -{ - uint16_t data; -} std_msgs__msg__UInt16; - -// Struct for a sequence of std_msgs__msg__UInt16. -typedef struct std_msgs__msg__UInt16__Sequence -{ - std_msgs__msg__UInt16 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__UInt16__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT16__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/u_int16__type_support.h b/src/std_msgs/msg/detail/u_int16__type_support.h deleted file mode 100755 index 96f53c493..000000000 --- a/src/std_msgs/msg/detail/u_int16__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/UInt16.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int16.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT16__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT16__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - UInt16 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT16__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/u_int16_multi_array__functions.h b/src/std_msgs/msg/detail/u_int16_multi_array__functions.h deleted file mode 100755 index 09af23839..000000000 --- a/src/std_msgs/msg/detail/u_int16_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/UInt16MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int16_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT16_MULTI_ARRAY__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__U_INT16_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/u_int16_multi_array__struct.h" - -/// Initialize msg/UInt16MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__UInt16MultiArray - * )) before or use - * std_msgs__msg__UInt16MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt16MultiArray__init(std_msgs__msg__UInt16MultiArray * msg); - -/// Finalize msg/UInt16MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt16MultiArray__fini(std_msgs__msg__UInt16MultiArray * msg); - -/// Create msg/UInt16MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__UInt16MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt16MultiArray * -std_msgs__msg__UInt16MultiArray__create(void); - -/// Destroy msg/UInt16MultiArray message. -/** - * It calls - * std_msgs__msg__UInt16MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt16MultiArray__destroy(std_msgs__msg__UInt16MultiArray * msg); - -/// Check for msg/UInt16MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt16MultiArray__are_equal(const std_msgs__msg__UInt16MultiArray * lhs, const std_msgs__msg__UInt16MultiArray * rhs); - -/// Copy a msg/UInt16MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt16MultiArray__copy( - const std_msgs__msg__UInt16MultiArray * input, - std_msgs__msg__UInt16MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__UInt16MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__UInt16MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__UInt16MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__UInt16MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt16MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__UInt16MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt16MultiArray__Sequence__init(std_msgs__msg__UInt16MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/UInt16MultiArray messages. -/** - * It calls - * std_msgs__msg__UInt16MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt16MultiArray__Sequence__fini(std_msgs__msg__UInt16MultiArray__Sequence * array); - -/// Create array of msg/UInt16MultiArray messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__UInt16MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt16MultiArray__Sequence * -std_msgs__msg__UInt16MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/UInt16MultiArray messages. -/** - * It calls - * std_msgs__msg__UInt16MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt16MultiArray__Sequence__destroy(std_msgs__msg__UInt16MultiArray__Sequence * array); - -/// Check for msg/UInt16MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt16MultiArray__Sequence__are_equal(const std_msgs__msg__UInt16MultiArray__Sequence * lhs, const std_msgs__msg__UInt16MultiArray__Sequence * rhs); - -/// Copy an array of msg/UInt16MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt16MultiArray__Sequence__copy( - const std_msgs__msg__UInt16MultiArray__Sequence * input, - std_msgs__msg__UInt16MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT16_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/u_int16_multi_array__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/u_int16_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index b66c1270b..000000000 --- a/src/std_msgs/msg/detail/u_int16_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/UInt16MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__U_INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__U_INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, UInt16MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/u_int16_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/u_int16_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index bac42ae89..000000000 --- a/src/std_msgs/msg/detail/u_int16_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/UInt16MultiArray.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__U_INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__U_INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__UInt16MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__UInt16MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, UInt16MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__U_INT16_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/u_int16_multi_array__struct.h b/src/std_msgs/msg/detail/u_int16_multi_array__struct.h deleted file mode 100755 index 4e4de11bd..000000000 --- a/src/std_msgs/msg/detail/u_int16_multi_array__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/UInt16MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int16_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT16_MULTI_ARRAY__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT16_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "std_msgs/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/UInt16MultiArray in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__UInt16MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - std_msgs__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__uint16__Sequence data; -} std_msgs__msg__UInt16MultiArray; - -// Struct for a sequence of std_msgs__msg__UInt16MultiArray. -typedef struct std_msgs__msg__UInt16MultiArray__Sequence -{ - std_msgs__msg__UInt16MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__UInt16MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT16_MULTI_ARRAY__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/u_int16_multi_array__type_support.h b/src/std_msgs/msg/detail/u_int16_multi_array__type_support.h deleted file mode 100755 index 14ca3f311..000000000 --- a/src/std_msgs/msg/detail/u_int16_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/UInt16MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int16_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT16_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT16_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - UInt16MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT16_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/u_int32__functions.h b/src/std_msgs/msg/detail/u_int32__functions.h deleted file mode 100755 index 3f058a250..000000000 --- a/src/std_msgs/msg/detail/u_int32__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/UInt32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int32.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT32__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__U_INT32__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/u_int32__struct.h" - -/// Initialize msg/UInt32 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__UInt32 - * )) before or use - * std_msgs__msg__UInt32__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt32__init(std_msgs__msg__UInt32 * msg); - -/// Finalize msg/UInt32 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt32__fini(std_msgs__msg__UInt32 * msg); - -/// Create msg/UInt32 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__UInt32__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt32 * -std_msgs__msg__UInt32__create(void); - -/// Destroy msg/UInt32 message. -/** - * It calls - * std_msgs__msg__UInt32__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt32__destroy(std_msgs__msg__UInt32 * msg); - -/// Check for msg/UInt32 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt32__are_equal(const std_msgs__msg__UInt32 * lhs, const std_msgs__msg__UInt32 * rhs); - -/// Copy a msg/UInt32 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt32__copy( - const std_msgs__msg__UInt32 * input, - std_msgs__msg__UInt32 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__UInt32__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__UInt32__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__UInt32__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__UInt32__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt32 messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__UInt32__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt32__Sequence__init(std_msgs__msg__UInt32__Sequence * array, size_t size); - -/// Finalize array of msg/UInt32 messages. -/** - * It calls - * std_msgs__msg__UInt32__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt32__Sequence__fini(std_msgs__msg__UInt32__Sequence * array); - -/// Create array of msg/UInt32 messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__UInt32__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt32__Sequence * -std_msgs__msg__UInt32__Sequence__create(size_t size); - -/// Destroy array of msg/UInt32 messages. -/** - * It calls - * std_msgs__msg__UInt32__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt32__Sequence__destroy(std_msgs__msg__UInt32__Sequence * array); - -/// Check for msg/UInt32 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt32__Sequence__are_equal(const std_msgs__msg__UInt32__Sequence * lhs, const std_msgs__msg__UInt32__Sequence * rhs); - -/// Copy an array of msg/UInt32 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt32__Sequence__copy( - const std_msgs__msg__UInt32__Sequence * input, - std_msgs__msg__UInt32__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT32__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/u_int32__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/u_int32__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 11a2e9101..000000000 --- a/src/std_msgs/msg/detail/u_int32__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/UInt32.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__U_INT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__U_INT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, UInt32)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT32__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/u_int32__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/u_int32__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index b08ae91cc..000000000 --- a/src/std_msgs/msg/detail/u_int32__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/UInt32.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__U_INT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__U_INT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__UInt32( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__UInt32( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, UInt32)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__U_INT32__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/u_int32__struct.h b/src/std_msgs/msg/detail/u_int32__struct.h deleted file mode 100755 index e249985ec..000000000 --- a/src/std_msgs/msg/detail/u_int32__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/UInt32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int32.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT32__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT32__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/UInt32 in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__UInt32 -{ - uint32_t data; -} std_msgs__msg__UInt32; - -// Struct for a sequence of std_msgs__msg__UInt32. -typedef struct std_msgs__msg__UInt32__Sequence -{ - std_msgs__msg__UInt32 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__UInt32__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT32__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/u_int32__type_support.h b/src/std_msgs/msg/detail/u_int32__type_support.h deleted file mode 100755 index e824b9b2b..000000000 --- a/src/std_msgs/msg/detail/u_int32__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/UInt32.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int32.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT32__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT32__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - UInt32 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT32__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/u_int32_multi_array__functions.h b/src/std_msgs/msg/detail/u_int32_multi_array__functions.h deleted file mode 100755 index 0fe12c86e..000000000 --- a/src/std_msgs/msg/detail/u_int32_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/UInt32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int32_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT32_MULTI_ARRAY__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__U_INT32_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/u_int32_multi_array__struct.h" - -/// Initialize msg/UInt32MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__UInt32MultiArray - * )) before or use - * std_msgs__msg__UInt32MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt32MultiArray__init(std_msgs__msg__UInt32MultiArray * msg); - -/// Finalize msg/UInt32MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt32MultiArray__fini(std_msgs__msg__UInt32MultiArray * msg); - -/// Create msg/UInt32MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__UInt32MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt32MultiArray * -std_msgs__msg__UInt32MultiArray__create(void); - -/// Destroy msg/UInt32MultiArray message. -/** - * It calls - * std_msgs__msg__UInt32MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt32MultiArray__destroy(std_msgs__msg__UInt32MultiArray * msg); - -/// Check for msg/UInt32MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt32MultiArray__are_equal(const std_msgs__msg__UInt32MultiArray * lhs, const std_msgs__msg__UInt32MultiArray * rhs); - -/// Copy a msg/UInt32MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt32MultiArray__copy( - const std_msgs__msg__UInt32MultiArray * input, - std_msgs__msg__UInt32MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__UInt32MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__UInt32MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__UInt32MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__UInt32MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt32MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__UInt32MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt32MultiArray__Sequence__init(std_msgs__msg__UInt32MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/UInt32MultiArray messages. -/** - * It calls - * std_msgs__msg__UInt32MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt32MultiArray__Sequence__fini(std_msgs__msg__UInt32MultiArray__Sequence * array); - -/// Create array of msg/UInt32MultiArray messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__UInt32MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt32MultiArray__Sequence * -std_msgs__msg__UInt32MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/UInt32MultiArray messages. -/** - * It calls - * std_msgs__msg__UInt32MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt32MultiArray__Sequence__destroy(std_msgs__msg__UInt32MultiArray__Sequence * array); - -/// Check for msg/UInt32MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt32MultiArray__Sequence__are_equal(const std_msgs__msg__UInt32MultiArray__Sequence * lhs, const std_msgs__msg__UInt32MultiArray__Sequence * rhs); - -/// Copy an array of msg/UInt32MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt32MultiArray__Sequence__copy( - const std_msgs__msg__UInt32MultiArray__Sequence * input, - std_msgs__msg__UInt32MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT32_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/u_int32_multi_array__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/u_int32_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 4f31ada7b..000000000 --- a/src/std_msgs/msg/detail/u_int32_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/UInt32MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__U_INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__U_INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, UInt32MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/u_int32_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/u_int32_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 8046dcaf2..000000000 --- a/src/std_msgs/msg/detail/u_int32_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/UInt32MultiArray.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__U_INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__U_INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__UInt32MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__UInt32MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, UInt32MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__U_INT32_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/u_int32_multi_array__struct.h b/src/std_msgs/msg/detail/u_int32_multi_array__struct.h deleted file mode 100755 index 58af0a2ba..000000000 --- a/src/std_msgs/msg/detail/u_int32_multi_array__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/UInt32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int32_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT32_MULTI_ARRAY__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT32_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "std_msgs/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/UInt32MultiArray in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__UInt32MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - std_msgs__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__uint32__Sequence data; -} std_msgs__msg__UInt32MultiArray; - -// Struct for a sequence of std_msgs__msg__UInt32MultiArray. -typedef struct std_msgs__msg__UInt32MultiArray__Sequence -{ - std_msgs__msg__UInt32MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__UInt32MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT32_MULTI_ARRAY__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/u_int32_multi_array__type_support.h b/src/std_msgs/msg/detail/u_int32_multi_array__type_support.h deleted file mode 100755 index 894c2aff5..000000000 --- a/src/std_msgs/msg/detail/u_int32_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/UInt32MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int32_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT32_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT32_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - UInt32MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT32_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/u_int64__functions.h b/src/std_msgs/msg/detail/u_int64__functions.h deleted file mode 100755 index cfce5d2df..000000000 --- a/src/std_msgs/msg/detail/u_int64__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/UInt64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int64.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT64__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__U_INT64__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/u_int64__struct.h" - -/// Initialize msg/UInt64 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__UInt64 - * )) before or use - * std_msgs__msg__UInt64__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt64__init(std_msgs__msg__UInt64 * msg); - -/// Finalize msg/UInt64 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt64__fini(std_msgs__msg__UInt64 * msg); - -/// Create msg/UInt64 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__UInt64__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt64 * -std_msgs__msg__UInt64__create(void); - -/// Destroy msg/UInt64 message. -/** - * It calls - * std_msgs__msg__UInt64__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt64__destroy(std_msgs__msg__UInt64 * msg); - -/// Check for msg/UInt64 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt64__are_equal(const std_msgs__msg__UInt64 * lhs, const std_msgs__msg__UInt64 * rhs); - -/// Copy a msg/UInt64 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt64__copy( - const std_msgs__msg__UInt64 * input, - std_msgs__msg__UInt64 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__UInt64__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__UInt64__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__UInt64__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__UInt64__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt64 messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__UInt64__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt64__Sequence__init(std_msgs__msg__UInt64__Sequence * array, size_t size); - -/// Finalize array of msg/UInt64 messages. -/** - * It calls - * std_msgs__msg__UInt64__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt64__Sequence__fini(std_msgs__msg__UInt64__Sequence * array); - -/// Create array of msg/UInt64 messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__UInt64__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt64__Sequence * -std_msgs__msg__UInt64__Sequence__create(size_t size); - -/// Destroy array of msg/UInt64 messages. -/** - * It calls - * std_msgs__msg__UInt64__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt64__Sequence__destroy(std_msgs__msg__UInt64__Sequence * array); - -/// Check for msg/UInt64 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt64__Sequence__are_equal(const std_msgs__msg__UInt64__Sequence * lhs, const std_msgs__msg__UInt64__Sequence * rhs); - -/// Copy an array of msg/UInt64 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt64__Sequence__copy( - const std_msgs__msg__UInt64__Sequence * input, - std_msgs__msg__UInt64__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT64__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/u_int64__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/u_int64__rosidl_typesupport_introspection_c.h deleted file mode 100755 index f889bd1cf..000000000 --- a/src/std_msgs/msg/detail/u_int64__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/UInt64.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__U_INT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__U_INT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, UInt64)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT64__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/u_int64__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/u_int64__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 76a6792a0..000000000 --- a/src/std_msgs/msg/detail/u_int64__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/UInt64.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__U_INT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__U_INT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__UInt64( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__UInt64( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, UInt64)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__U_INT64__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/u_int64__struct.h b/src/std_msgs/msg/detail/u_int64__struct.h deleted file mode 100755 index 44549ae06..000000000 --- a/src/std_msgs/msg/detail/u_int64__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/UInt64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int64.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT64__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT64__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/UInt64 in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__UInt64 -{ - uint64_t data; -} std_msgs__msg__UInt64; - -// Struct for a sequence of std_msgs__msg__UInt64. -typedef struct std_msgs__msg__UInt64__Sequence -{ - std_msgs__msg__UInt64 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__UInt64__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT64__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/u_int64__type_support.h b/src/std_msgs/msg/detail/u_int64__type_support.h deleted file mode 100755 index 232e1d06e..000000000 --- a/src/std_msgs/msg/detail/u_int64__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/UInt64.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int64.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT64__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT64__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - UInt64 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT64__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/u_int64_multi_array__functions.h b/src/std_msgs/msg/detail/u_int64_multi_array__functions.h deleted file mode 100755 index 3d482320b..000000000 --- a/src/std_msgs/msg/detail/u_int64_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/UInt64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int64_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT64_MULTI_ARRAY__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__U_INT64_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/u_int64_multi_array__struct.h" - -/// Initialize msg/UInt64MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__UInt64MultiArray - * )) before or use - * std_msgs__msg__UInt64MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt64MultiArray__init(std_msgs__msg__UInt64MultiArray * msg); - -/// Finalize msg/UInt64MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt64MultiArray__fini(std_msgs__msg__UInt64MultiArray * msg); - -/// Create msg/UInt64MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__UInt64MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt64MultiArray * -std_msgs__msg__UInt64MultiArray__create(void); - -/// Destroy msg/UInt64MultiArray message. -/** - * It calls - * std_msgs__msg__UInt64MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt64MultiArray__destroy(std_msgs__msg__UInt64MultiArray * msg); - -/// Check for msg/UInt64MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt64MultiArray__are_equal(const std_msgs__msg__UInt64MultiArray * lhs, const std_msgs__msg__UInt64MultiArray * rhs); - -/// Copy a msg/UInt64MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt64MultiArray__copy( - const std_msgs__msg__UInt64MultiArray * input, - std_msgs__msg__UInt64MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__UInt64MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__UInt64MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__UInt64MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__UInt64MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt64MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__UInt64MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt64MultiArray__Sequence__init(std_msgs__msg__UInt64MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/UInt64MultiArray messages. -/** - * It calls - * std_msgs__msg__UInt64MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt64MultiArray__Sequence__fini(std_msgs__msg__UInt64MultiArray__Sequence * array); - -/// Create array of msg/UInt64MultiArray messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__UInt64MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt64MultiArray__Sequence * -std_msgs__msg__UInt64MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/UInt64MultiArray messages. -/** - * It calls - * std_msgs__msg__UInt64MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt64MultiArray__Sequence__destroy(std_msgs__msg__UInt64MultiArray__Sequence * array); - -/// Check for msg/UInt64MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt64MultiArray__Sequence__are_equal(const std_msgs__msg__UInt64MultiArray__Sequence * lhs, const std_msgs__msg__UInt64MultiArray__Sequence * rhs); - -/// Copy an array of msg/UInt64MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt64MultiArray__Sequence__copy( - const std_msgs__msg__UInt64MultiArray__Sequence * input, - std_msgs__msg__UInt64MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT64_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/u_int64_multi_array__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/u_int64_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index a7e39d61f..000000000 --- a/src/std_msgs/msg/detail/u_int64_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/UInt64MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__U_INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__U_INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, UInt64MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/u_int64_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/u_int64_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 9a3d8dbdc..000000000 --- a/src/std_msgs/msg/detail/u_int64_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/UInt64MultiArray.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__U_INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__U_INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__UInt64MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__UInt64MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, UInt64MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__U_INT64_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/u_int64_multi_array__struct.h b/src/std_msgs/msg/detail/u_int64_multi_array__struct.h deleted file mode 100755 index b0cc8bb09..000000000 --- a/src/std_msgs/msg/detail/u_int64_multi_array__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/UInt64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int64_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT64_MULTI_ARRAY__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT64_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "std_msgs/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/UInt64MultiArray in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__UInt64MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - std_msgs__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__uint64__Sequence data; -} std_msgs__msg__UInt64MultiArray; - -// Struct for a sequence of std_msgs__msg__UInt64MultiArray. -typedef struct std_msgs__msg__UInt64MultiArray__Sequence -{ - std_msgs__msg__UInt64MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__UInt64MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT64_MULTI_ARRAY__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/u_int64_multi_array__type_support.h b/src/std_msgs/msg/detail/u_int64_multi_array__type_support.h deleted file mode 100755 index 165370fde..000000000 --- a/src/std_msgs/msg/detail/u_int64_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/UInt64MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int64_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT64_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT64_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - UInt64MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT64_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/u_int8__functions.h b/src/std_msgs/msg/detail/u_int8__functions.h deleted file mode 100755 index 5e9e11f7d..000000000 --- a/src/std_msgs/msg/detail/u_int8__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/UInt8.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int8.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT8__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__U_INT8__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/u_int8__struct.h" - -/// Initialize msg/UInt8 message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__UInt8 - * )) before or use - * std_msgs__msg__UInt8__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt8__init(std_msgs__msg__UInt8 * msg); - -/// Finalize msg/UInt8 message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt8__fini(std_msgs__msg__UInt8 * msg); - -/// Create msg/UInt8 message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__UInt8__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt8 * -std_msgs__msg__UInt8__create(void); - -/// Destroy msg/UInt8 message. -/** - * It calls - * std_msgs__msg__UInt8__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt8__destroy(std_msgs__msg__UInt8 * msg); - -/// Check for msg/UInt8 message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt8__are_equal(const std_msgs__msg__UInt8 * lhs, const std_msgs__msg__UInt8 * rhs); - -/// Copy a msg/UInt8 message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt8__copy( - const std_msgs__msg__UInt8 * input, - std_msgs__msg__UInt8 * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__UInt8__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__UInt8__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__UInt8__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__UInt8__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt8 messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__UInt8__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt8__Sequence__init(std_msgs__msg__UInt8__Sequence * array, size_t size); - -/// Finalize array of msg/UInt8 messages. -/** - * It calls - * std_msgs__msg__UInt8__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt8__Sequence__fini(std_msgs__msg__UInt8__Sequence * array); - -/// Create array of msg/UInt8 messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__UInt8__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt8__Sequence * -std_msgs__msg__UInt8__Sequence__create(size_t size); - -/// Destroy array of msg/UInt8 messages. -/** - * It calls - * std_msgs__msg__UInt8__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt8__Sequence__destroy(std_msgs__msg__UInt8__Sequence * array); - -/// Check for msg/UInt8 message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt8__Sequence__are_equal(const std_msgs__msg__UInt8__Sequence * lhs, const std_msgs__msg__UInt8__Sequence * rhs); - -/// Copy an array of msg/UInt8 messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt8__Sequence__copy( - const std_msgs__msg__UInt8__Sequence * input, - std_msgs__msg__UInt8__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT8__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/u_int8__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/u_int8__rosidl_typesupport_introspection_c.h deleted file mode 100755 index a0b750200..000000000 --- a/src/std_msgs/msg/detail/u_int8__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/UInt8.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__U_INT8__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__U_INT8__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, UInt8)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT8__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/u_int8__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/u_int8__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 67625005e..000000000 --- a/src/std_msgs/msg/detail/u_int8__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/UInt8.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__U_INT8__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__U_INT8__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__UInt8( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__UInt8( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, UInt8)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__U_INT8__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/u_int8__struct.h b/src/std_msgs/msg/detail/u_int8__struct.h deleted file mode 100755 index 0b308c9fb..000000000 --- a/src/std_msgs/msg/detail/u_int8__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/UInt8.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int8.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT8__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT8__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/UInt8 in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__UInt8 -{ - uint8_t data; -} std_msgs__msg__UInt8; - -// Struct for a sequence of std_msgs__msg__UInt8. -typedef struct std_msgs__msg__UInt8__Sequence -{ - std_msgs__msg__UInt8 * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__UInt8__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT8__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/u_int8__type_support.h b/src/std_msgs/msg/detail/u_int8__type_support.h deleted file mode 100755 index f7872dd0b..000000000 --- a/src/std_msgs/msg/detail/u_int8__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/UInt8.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int8.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT8__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT8__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - UInt8 -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT8__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/detail/u_int8_multi_array__functions.h b/src/std_msgs/msg/detail/u_int8_multi_array__functions.h deleted file mode 100755 index 7c414f2c8..000000000 --- a/src/std_msgs/msg/detail/u_int8_multi_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_msgs:msg/UInt8MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int8_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT8_MULTI_ARRAY__FUNCTIONS_H_ -#define STD_MSGS__MSG__DETAIL__U_INT8_MULTI_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_msgs/msg/detail/u_int8_multi_array__struct.h" - -/// Initialize msg/UInt8MultiArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_msgs__msg__UInt8MultiArray - * )) before or use - * std_msgs__msg__UInt8MultiArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt8MultiArray__init(std_msgs__msg__UInt8MultiArray * msg); - -/// Finalize msg/UInt8MultiArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt8MultiArray__fini(std_msgs__msg__UInt8MultiArray * msg); - -/// Create msg/UInt8MultiArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_msgs__msg__UInt8MultiArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt8MultiArray * -std_msgs__msg__UInt8MultiArray__create(void); - -/// Destroy msg/UInt8MultiArray message. -/** - * It calls - * std_msgs__msg__UInt8MultiArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt8MultiArray__destroy(std_msgs__msg__UInt8MultiArray * msg); - -/// Check for msg/UInt8MultiArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt8MultiArray__are_equal(const std_msgs__msg__UInt8MultiArray * lhs, const std_msgs__msg__UInt8MultiArray * rhs); - -/// Copy a msg/UInt8MultiArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt8MultiArray__copy( - const std_msgs__msg__UInt8MultiArray * input, - std_msgs__msg__UInt8MultiArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_type_hash_t * -std_msgs__msg__UInt8MultiArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeDescription * -std_msgs__msg__UInt8MultiArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource * -std_msgs__msg__UInt8MultiArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_msgs__msg__UInt8MultiArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UInt8MultiArray messages. -/** - * It allocates the memory for the number of elements and calls - * std_msgs__msg__UInt8MultiArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt8MultiArray__Sequence__init(std_msgs__msg__UInt8MultiArray__Sequence * array, size_t size); - -/// Finalize array of msg/UInt8MultiArray messages. -/** - * It calls - * std_msgs__msg__UInt8MultiArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt8MultiArray__Sequence__fini(std_msgs__msg__UInt8MultiArray__Sequence * array); - -/// Create array of msg/UInt8MultiArray messages. -/** - * It allocates the memory for the array and calls - * std_msgs__msg__UInt8MultiArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -std_msgs__msg__UInt8MultiArray__Sequence * -std_msgs__msg__UInt8MultiArray__Sequence__create(size_t size); - -/// Destroy array of msg/UInt8MultiArray messages. -/** - * It calls - * std_msgs__msg__UInt8MultiArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -void -std_msgs__msg__UInt8MultiArray__Sequence__destroy(std_msgs__msg__UInt8MultiArray__Sequence * array); - -/// Check for msg/UInt8MultiArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt8MultiArray__Sequence__are_equal(const std_msgs__msg__UInt8MultiArray__Sequence * lhs, const std_msgs__msg__UInt8MultiArray__Sequence * rhs); - -/// Copy an array of msg/UInt8MultiArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -bool -std_msgs__msg__UInt8MultiArray__Sequence__copy( - const std_msgs__msg__UInt8MultiArray__Sequence * input, - std_msgs__msg__UInt8MultiArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT8_MULTI_ARRAY__FUNCTIONS_H_ diff --git a/src/std_msgs/msg/detail/u_int8_multi_array__rosidl_typesupport_introspection_c.h b/src/std_msgs/msg/detail/u_int8_multi_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5eaddbfa1..000000000 --- a/src/std_msgs/msg/detail/u_int8_multi_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_msgs:msg/UInt8MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__DETAIL__U_INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_MSGS__MSG__DETAIL__U_INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_msgs, msg, UInt8MultiArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_msgs/msg/detail/u_int8_multi_array__rosidl_typesupport_microxrcedds_c.h b/src/std_msgs/msg/detail/u_int8_multi_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 038ecda0e..000000000 --- a/src/std_msgs/msg/detail/u_int8_multi_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_msgs:msg/UInt8MultiArray.idl -// generated code does not contain a copyright notice -#ifndef STD_MSGS__MSG__U_INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_MSGS__MSG__U_INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t get_serialized_size_std_msgs__msg__UInt8MultiArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -size_t max_serialized_size_std_msgs__msg__UInt8MultiArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_msgs, msg, UInt8MultiArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STD_MSGS__MSG__U_INT8_MULTI_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_msgs/msg/detail/u_int8_multi_array__struct.h b/src/std_msgs/msg/detail/u_int8_multi_array__struct.h deleted file mode 100755 index b8bee6f35..000000000 --- a/src/std_msgs/msg/detail/u_int8_multi_array__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_msgs:msg/UInt8MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int8_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT8_MULTI_ARRAY__STRUCT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT8_MULTI_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'layout' -#include "std_msgs/msg/detail/multi_array_layout__struct.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/UInt8MultiArray in the package std_msgs. -/** - * This was originally provided as an example message. - * It is deprecated as of Foxy - * It is recommended to create your own semantically meaningful message. - * However if you would like to continue using this please use the equivalent in example_msgs. - */ -typedef struct std_msgs__msg__UInt8MultiArray -{ - /// Please look at the MultiArrayLayout message definition for - /// documentation on all multiarrays. - /// specification of data layout - std_msgs__msg__MultiArrayLayout layout; - /// array of data - rosidl_runtime_c__uint8__Sequence data; -} std_msgs__msg__UInt8MultiArray; - -// Struct for a sequence of std_msgs__msg__UInt8MultiArray. -typedef struct std_msgs__msg__UInt8MultiArray__Sequence -{ - std_msgs__msg__UInt8MultiArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_msgs__msg__UInt8MultiArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT8_MULTI_ARRAY__STRUCT_H_ diff --git a/src/std_msgs/msg/detail/u_int8_multi_array__type_support.h b/src/std_msgs/msg/detail/u_int8_multi_array__type_support.h deleted file mode 100755 index 8e35fd362..000000000 --- a/src/std_msgs/msg/detail/u_int8_multi_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_msgs:msg/UInt8MultiArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_msgs/msg/u_int8_multi_array.h" - - -#ifndef STD_MSGS__MSG__DETAIL__U_INT8_MULTI_ARRAY__TYPE_SUPPORT_H_ -#define STD_MSGS__MSG__DETAIL__U_INT8_MULTI_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_msgs, - msg, - UInt8MultiArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__DETAIL__U_INT8_MULTI_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/std_msgs/msg/empty.h b/src/std_msgs/msg/empty.h deleted file mode 100755 index 255b6cf3b..000000000 --- a/src/std_msgs/msg/empty.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Empty.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__EMPTY_H_ -#define STD_MSGS__MSG__EMPTY_H_ - -#include "std_msgs/msg/detail/empty__struct.h" -#include "std_msgs/msg/detail/empty__functions.h" -#include "std_msgs/msg/detail/empty__type_support.h" - -#endif // STD_MSGS__MSG__EMPTY_H_ diff --git a/src/std_msgs/msg/float32.h b/src/std_msgs/msg/float32.h deleted file mode 100755 index 33855fc80..000000000 --- a/src/std_msgs/msg/float32.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Float32.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__FLOAT32_H_ -#define STD_MSGS__MSG__FLOAT32_H_ - -#include "std_msgs/msg/detail/float32__struct.h" -#include "std_msgs/msg/detail/float32__functions.h" -#include "std_msgs/msg/detail/float32__type_support.h" - -#endif // STD_MSGS__MSG__FLOAT32_H_ diff --git a/src/std_msgs/msg/float32_multi_array.h b/src/std_msgs/msg/float32_multi_array.h deleted file mode 100755 index a98c3a71c..000000000 --- a/src/std_msgs/msg/float32_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Float32MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__FLOAT32_MULTI_ARRAY_H_ -#define STD_MSGS__MSG__FLOAT32_MULTI_ARRAY_H_ - -#include "std_msgs/msg/detail/float32_multi_array__struct.h" -#include "std_msgs/msg/detail/float32_multi_array__functions.h" -#include "std_msgs/msg/detail/float32_multi_array__type_support.h" - -#endif // STD_MSGS__MSG__FLOAT32_MULTI_ARRAY_H_ diff --git a/src/std_msgs/msg/float64.h b/src/std_msgs/msg/float64.h deleted file mode 100755 index 806ca6269..000000000 --- a/src/std_msgs/msg/float64.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Float64.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__FLOAT64_H_ -#define STD_MSGS__MSG__FLOAT64_H_ - -#include "std_msgs/msg/detail/float64__struct.h" -#include "std_msgs/msg/detail/float64__functions.h" -#include "std_msgs/msg/detail/float64__type_support.h" - -#endif // STD_MSGS__MSG__FLOAT64_H_ diff --git a/src/std_msgs/msg/float64_multi_array.h b/src/std_msgs/msg/float64_multi_array.h deleted file mode 100755 index 6b5d12fff..000000000 --- a/src/std_msgs/msg/float64_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Float64MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__FLOAT64_MULTI_ARRAY_H_ -#define STD_MSGS__MSG__FLOAT64_MULTI_ARRAY_H_ - -#include "std_msgs/msg/detail/float64_multi_array__struct.h" -#include "std_msgs/msg/detail/float64_multi_array__functions.h" -#include "std_msgs/msg/detail/float64_multi_array__type_support.h" - -#endif // STD_MSGS__MSG__FLOAT64_MULTI_ARRAY_H_ diff --git a/src/std_msgs/msg/header.h b/src/std_msgs/msg/header.h deleted file mode 100755 index d8abc0652..000000000 --- a/src/std_msgs/msg/header.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Header.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__HEADER_H_ -#define STD_MSGS__MSG__HEADER_H_ - -#include "std_msgs/msg/detail/header__struct.h" -#include "std_msgs/msg/detail/header__functions.h" -#include "std_msgs/msg/detail/header__type_support.h" - -#endif // STD_MSGS__MSG__HEADER_H_ diff --git a/src/std_msgs/msg/int16.h b/src/std_msgs/msg/int16.h deleted file mode 100755 index c36669b80..000000000 --- a/src/std_msgs/msg/int16.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Int16.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__INT16_H_ -#define STD_MSGS__MSG__INT16_H_ - -#include "std_msgs/msg/detail/int16__struct.h" -#include "std_msgs/msg/detail/int16__functions.h" -#include "std_msgs/msg/detail/int16__type_support.h" - -#endif // STD_MSGS__MSG__INT16_H_ diff --git a/src/std_msgs/msg/int16_multi_array.h b/src/std_msgs/msg/int16_multi_array.h deleted file mode 100755 index ab949bee8..000000000 --- a/src/std_msgs/msg/int16_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Int16MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__INT16_MULTI_ARRAY_H_ -#define STD_MSGS__MSG__INT16_MULTI_ARRAY_H_ - -#include "std_msgs/msg/detail/int16_multi_array__struct.h" -#include "std_msgs/msg/detail/int16_multi_array__functions.h" -#include "std_msgs/msg/detail/int16_multi_array__type_support.h" - -#endif // STD_MSGS__MSG__INT16_MULTI_ARRAY_H_ diff --git a/src/std_msgs/msg/int32.h b/src/std_msgs/msg/int32.h deleted file mode 100755 index c0460a62b..000000000 --- a/src/std_msgs/msg/int32.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Int32.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__INT32_H_ -#define STD_MSGS__MSG__INT32_H_ - -#include "std_msgs/msg/detail/int32__struct.h" -#include "std_msgs/msg/detail/int32__functions.h" -#include "std_msgs/msg/detail/int32__type_support.h" - -#endif // STD_MSGS__MSG__INT32_H_ diff --git a/src/std_msgs/msg/int32_multi_array.h b/src/std_msgs/msg/int32_multi_array.h deleted file mode 100755 index b4b76ad29..000000000 --- a/src/std_msgs/msg/int32_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Int32MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__INT32_MULTI_ARRAY_H_ -#define STD_MSGS__MSG__INT32_MULTI_ARRAY_H_ - -#include "std_msgs/msg/detail/int32_multi_array__struct.h" -#include "std_msgs/msg/detail/int32_multi_array__functions.h" -#include "std_msgs/msg/detail/int32_multi_array__type_support.h" - -#endif // STD_MSGS__MSG__INT32_MULTI_ARRAY_H_ diff --git a/src/std_msgs/msg/int64.h b/src/std_msgs/msg/int64.h deleted file mode 100755 index 379a46883..000000000 --- a/src/std_msgs/msg/int64.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Int64.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__INT64_H_ -#define STD_MSGS__MSG__INT64_H_ - -#include "std_msgs/msg/detail/int64__struct.h" -#include "std_msgs/msg/detail/int64__functions.h" -#include "std_msgs/msg/detail/int64__type_support.h" - -#endif // STD_MSGS__MSG__INT64_H_ diff --git a/src/std_msgs/msg/int64_multi_array.h b/src/std_msgs/msg/int64_multi_array.h deleted file mode 100755 index a3190b772..000000000 --- a/src/std_msgs/msg/int64_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Int64MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__INT64_MULTI_ARRAY_H_ -#define STD_MSGS__MSG__INT64_MULTI_ARRAY_H_ - -#include "std_msgs/msg/detail/int64_multi_array__struct.h" -#include "std_msgs/msg/detail/int64_multi_array__functions.h" -#include "std_msgs/msg/detail/int64_multi_array__type_support.h" - -#endif // STD_MSGS__MSG__INT64_MULTI_ARRAY_H_ diff --git a/src/std_msgs/msg/int8.h b/src/std_msgs/msg/int8.h deleted file mode 100755 index 808f08b98..000000000 --- a/src/std_msgs/msg/int8.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Int8.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__INT8_H_ -#define STD_MSGS__MSG__INT8_H_ - -#include "std_msgs/msg/detail/int8__struct.h" -#include "std_msgs/msg/detail/int8__functions.h" -#include "std_msgs/msg/detail/int8__type_support.h" - -#endif // STD_MSGS__MSG__INT8_H_ diff --git a/src/std_msgs/msg/int8_multi_array.h b/src/std_msgs/msg/int8_multi_array.h deleted file mode 100755 index 3273ff090..000000000 --- a/src/std_msgs/msg/int8_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/Int8MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__INT8_MULTI_ARRAY_H_ -#define STD_MSGS__MSG__INT8_MULTI_ARRAY_H_ - -#include "std_msgs/msg/detail/int8_multi_array__struct.h" -#include "std_msgs/msg/detail/int8_multi_array__functions.h" -#include "std_msgs/msg/detail/int8_multi_array__type_support.h" - -#endif // STD_MSGS__MSG__INT8_MULTI_ARRAY_H_ diff --git a/src/std_msgs/msg/multi_array_dimension.h b/src/std_msgs/msg/multi_array_dimension.h deleted file mode 100755 index 2c03f957c..000000000 --- a/src/std_msgs/msg/multi_array_dimension.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/MultiArrayDimension.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__MULTI_ARRAY_DIMENSION_H_ -#define STD_MSGS__MSG__MULTI_ARRAY_DIMENSION_H_ - -#include "std_msgs/msg/detail/multi_array_dimension__struct.h" -#include "std_msgs/msg/detail/multi_array_dimension__functions.h" -#include "std_msgs/msg/detail/multi_array_dimension__type_support.h" - -#endif // STD_MSGS__MSG__MULTI_ARRAY_DIMENSION_H_ diff --git a/src/std_msgs/msg/multi_array_layout.h b/src/std_msgs/msg/multi_array_layout.h deleted file mode 100755 index 884adacbe..000000000 --- a/src/std_msgs/msg/multi_array_layout.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/MultiArrayLayout.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__MULTI_ARRAY_LAYOUT_H_ -#define STD_MSGS__MSG__MULTI_ARRAY_LAYOUT_H_ - -#include "std_msgs/msg/detail/multi_array_layout__struct.h" -#include "std_msgs/msg/detail/multi_array_layout__functions.h" -#include "std_msgs/msg/detail/multi_array_layout__type_support.h" - -#endif // STD_MSGS__MSG__MULTI_ARRAY_LAYOUT_H_ diff --git a/src/std_msgs/msg/rosidl_generator_c__visibility_control.h b/src/std_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 287c843ec..000000000 --- a/src/std_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define STD_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_std_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_std_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_std_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_std_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_std_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_std_msgs ROSIDL_GENERATOR_C_EXPORT_std_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_std_msgs ROSIDL_GENERATOR_C_IMPORT_std_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_std_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_std_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_std_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_std_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 662b424d6..000000000 --- a/src/std_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define STD_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_std_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_std_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_std_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_std_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_std_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_std_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_std_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_std_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_std_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index aca44a53f..000000000 --- a/src/std_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define STD_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_std_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_std_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_std_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_std_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_std_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_std_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_std_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_std_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_std_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // STD_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/std_msgs/msg/string.h b/src/std_msgs/msg/string.h deleted file mode 100755 index 273e80e0b..000000000 --- a/src/std_msgs/msg/string.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/String.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__STRING_H_ -#define STD_MSGS__MSG__STRING_H_ - -#include "std_msgs/msg/detail/string__struct.h" -#include "std_msgs/msg/detail/string__functions.h" -#include "std_msgs/msg/detail/string__type_support.h" - -#endif // STD_MSGS__MSG__STRING_H_ diff --git a/src/std_msgs/msg/u_int16.h b/src/std_msgs/msg/u_int16.h deleted file mode 100755 index c1016757c..000000000 --- a/src/std_msgs/msg/u_int16.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/UInt16.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__U_INT16_H_ -#define STD_MSGS__MSG__U_INT16_H_ - -#include "std_msgs/msg/detail/u_int16__struct.h" -#include "std_msgs/msg/detail/u_int16__functions.h" -#include "std_msgs/msg/detail/u_int16__type_support.h" - -#endif // STD_MSGS__MSG__U_INT16_H_ diff --git a/src/std_msgs/msg/u_int16_multi_array.h b/src/std_msgs/msg/u_int16_multi_array.h deleted file mode 100755 index 251dbe1a3..000000000 --- a/src/std_msgs/msg/u_int16_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/UInt16MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__U_INT16_MULTI_ARRAY_H_ -#define STD_MSGS__MSG__U_INT16_MULTI_ARRAY_H_ - -#include "std_msgs/msg/detail/u_int16_multi_array__struct.h" -#include "std_msgs/msg/detail/u_int16_multi_array__functions.h" -#include "std_msgs/msg/detail/u_int16_multi_array__type_support.h" - -#endif // STD_MSGS__MSG__U_INT16_MULTI_ARRAY_H_ diff --git a/src/std_msgs/msg/u_int32.h b/src/std_msgs/msg/u_int32.h deleted file mode 100755 index 0b61ecf7b..000000000 --- a/src/std_msgs/msg/u_int32.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/UInt32.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__U_INT32_H_ -#define STD_MSGS__MSG__U_INT32_H_ - -#include "std_msgs/msg/detail/u_int32__struct.h" -#include "std_msgs/msg/detail/u_int32__functions.h" -#include "std_msgs/msg/detail/u_int32__type_support.h" - -#endif // STD_MSGS__MSG__U_INT32_H_ diff --git a/src/std_msgs/msg/u_int32_multi_array.h b/src/std_msgs/msg/u_int32_multi_array.h deleted file mode 100755 index 9f9c0fd8b..000000000 --- a/src/std_msgs/msg/u_int32_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/UInt32MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__U_INT32_MULTI_ARRAY_H_ -#define STD_MSGS__MSG__U_INT32_MULTI_ARRAY_H_ - -#include "std_msgs/msg/detail/u_int32_multi_array__struct.h" -#include "std_msgs/msg/detail/u_int32_multi_array__functions.h" -#include "std_msgs/msg/detail/u_int32_multi_array__type_support.h" - -#endif // STD_MSGS__MSG__U_INT32_MULTI_ARRAY_H_ diff --git a/src/std_msgs/msg/u_int64.h b/src/std_msgs/msg/u_int64.h deleted file mode 100755 index 403898412..000000000 --- a/src/std_msgs/msg/u_int64.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/UInt64.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__U_INT64_H_ -#define STD_MSGS__MSG__U_INT64_H_ - -#include "std_msgs/msg/detail/u_int64__struct.h" -#include "std_msgs/msg/detail/u_int64__functions.h" -#include "std_msgs/msg/detail/u_int64__type_support.h" - -#endif // STD_MSGS__MSG__U_INT64_H_ diff --git a/src/std_msgs/msg/u_int64_multi_array.h b/src/std_msgs/msg/u_int64_multi_array.h deleted file mode 100755 index f1893f80c..000000000 --- a/src/std_msgs/msg/u_int64_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/UInt64MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__U_INT64_MULTI_ARRAY_H_ -#define STD_MSGS__MSG__U_INT64_MULTI_ARRAY_H_ - -#include "std_msgs/msg/detail/u_int64_multi_array__struct.h" -#include "std_msgs/msg/detail/u_int64_multi_array__functions.h" -#include "std_msgs/msg/detail/u_int64_multi_array__type_support.h" - -#endif // STD_MSGS__MSG__U_INT64_MULTI_ARRAY_H_ diff --git a/src/std_msgs/msg/u_int8.h b/src/std_msgs/msg/u_int8.h deleted file mode 100755 index 3ba11b77c..000000000 --- a/src/std_msgs/msg/u_int8.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/UInt8.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__U_INT8_H_ -#define STD_MSGS__MSG__U_INT8_H_ - -#include "std_msgs/msg/detail/u_int8__struct.h" -#include "std_msgs/msg/detail/u_int8__functions.h" -#include "std_msgs/msg/detail/u_int8__type_support.h" - -#endif // STD_MSGS__MSG__U_INT8_H_ diff --git a/src/std_msgs/msg/u_int8_multi_array.h b/src/std_msgs/msg/u_int8_multi_array.h deleted file mode 100755 index 21d7f89a8..000000000 --- a/src/std_msgs/msg/u_int8_multi_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_msgs:msg/UInt8MultiArray.idl -// generated code does not contain a copyright notice - -#ifndef STD_MSGS__MSG__U_INT8_MULTI_ARRAY_H_ -#define STD_MSGS__MSG__U_INT8_MULTI_ARRAY_H_ - -#include "std_msgs/msg/detail/u_int8_multi_array__struct.h" -#include "std_msgs/msg/detail/u_int8_multi_array__functions.h" -#include "std_msgs/msg/detail/u_int8_multi_array__type_support.h" - -#endif // STD_MSGS__MSG__U_INT8_MULTI_ARRAY_H_ diff --git a/src/std_srvs/msg/rosidl_generator_c__visibility_control.h b/src/std_srvs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 4449d2277..000000000 --- a/src/std_srvs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef STD_SRVS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define STD_SRVS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_std_srvs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_std_srvs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_std_srvs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_std_srvs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_std_srvs - #define ROSIDL_GENERATOR_C_PUBLIC_std_srvs ROSIDL_GENERATOR_C_EXPORT_std_srvs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_std_srvs ROSIDL_GENERATOR_C_IMPORT_std_srvs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_std_srvs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_std_srvs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_std_srvs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_std_srvs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index d25a78855..000000000 --- a/src/std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef STD_SRVS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define STD_SRVS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_std_srvs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_std_srvs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_std_srvs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_std_srvs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_std_srvs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_std_srvs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_std_srvs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_std_srvs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_std_srvs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 8eed05a30..000000000 --- a/src/std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef STD_SRVS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define STD_SRVS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_std_srvs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_std_srvs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_std_srvs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_std_srvs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_std_srvs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_std_srvs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_std_srvs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_std_srvs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_std_srvs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/std_srvs/srv/detail/empty__functions.h b/src/std_srvs/srv/detail/empty__functions.h deleted file mode 100755 index ef6c21591..000000000 --- a/src/std_srvs/srv/detail/empty__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_srvs:srv/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_srvs/srv/empty.h" - - -#ifndef STD_SRVS__SRV__DETAIL__EMPTY__FUNCTIONS_H_ -#define STD_SRVS__SRV__DETAIL__EMPTY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_srvs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_srvs/srv/detail/empty__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_type_hash_t * -std_srvs__srv__Empty__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeDescription * -std_srvs__srv__Empty__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource * -std_srvs__srv__Empty__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_srvs__srv__Empty__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/Empty message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_srvs__srv__Empty_Request - * )) before or use - * std_srvs__srv__Empty_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Request__init(std_srvs__srv__Empty_Request * msg); - -/// Finalize srv/Empty message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Empty_Request__fini(std_srvs__srv__Empty_Request * msg); - -/// Create srv/Empty message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_srvs__srv__Empty_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__Empty_Request * -std_srvs__srv__Empty_Request__create(void); - -/// Destroy srv/Empty message. -/** - * It calls - * std_srvs__srv__Empty_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Empty_Request__destroy(std_srvs__srv__Empty_Request * msg); - -/// Check for srv/Empty message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Request__are_equal(const std_srvs__srv__Empty_Request * lhs, const std_srvs__srv__Empty_Request * rhs); - -/// Copy a srv/Empty message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Request__copy( - const std_srvs__srv__Empty_Request * input, - std_srvs__srv__Empty_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_type_hash_t * -std_srvs__srv__Empty_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeDescription * -std_srvs__srv__Empty_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource * -std_srvs__srv__Empty_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_srvs__srv__Empty_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Empty messages. -/** - * It allocates the memory for the number of elements and calls - * std_srvs__srv__Empty_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Request__Sequence__init(std_srvs__srv__Empty_Request__Sequence * array, size_t size); - -/// Finalize array of srv/Empty messages. -/** - * It calls - * std_srvs__srv__Empty_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Empty_Request__Sequence__fini(std_srvs__srv__Empty_Request__Sequence * array); - -/// Create array of srv/Empty messages. -/** - * It allocates the memory for the array and calls - * std_srvs__srv__Empty_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__Empty_Request__Sequence * -std_srvs__srv__Empty_Request__Sequence__create(size_t size); - -/// Destroy array of srv/Empty messages. -/** - * It calls - * std_srvs__srv__Empty_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Empty_Request__Sequence__destroy(std_srvs__srv__Empty_Request__Sequence * array); - -/// Check for srv/Empty message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Request__Sequence__are_equal(const std_srvs__srv__Empty_Request__Sequence * lhs, const std_srvs__srv__Empty_Request__Sequence * rhs); - -/// Copy an array of srv/Empty messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Request__Sequence__copy( - const std_srvs__srv__Empty_Request__Sequence * input, - std_srvs__srv__Empty_Request__Sequence * output); - -/// Initialize srv/Empty message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_srvs__srv__Empty_Response - * )) before or use - * std_srvs__srv__Empty_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Response__init(std_srvs__srv__Empty_Response * msg); - -/// Finalize srv/Empty message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Empty_Response__fini(std_srvs__srv__Empty_Response * msg); - -/// Create srv/Empty message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_srvs__srv__Empty_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__Empty_Response * -std_srvs__srv__Empty_Response__create(void); - -/// Destroy srv/Empty message. -/** - * It calls - * std_srvs__srv__Empty_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Empty_Response__destroy(std_srvs__srv__Empty_Response * msg); - -/// Check for srv/Empty message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Response__are_equal(const std_srvs__srv__Empty_Response * lhs, const std_srvs__srv__Empty_Response * rhs); - -/// Copy a srv/Empty message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Response__copy( - const std_srvs__srv__Empty_Response * input, - std_srvs__srv__Empty_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_type_hash_t * -std_srvs__srv__Empty_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeDescription * -std_srvs__srv__Empty_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource * -std_srvs__srv__Empty_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_srvs__srv__Empty_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Empty messages. -/** - * It allocates the memory for the number of elements and calls - * std_srvs__srv__Empty_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Response__Sequence__init(std_srvs__srv__Empty_Response__Sequence * array, size_t size); - -/// Finalize array of srv/Empty messages. -/** - * It calls - * std_srvs__srv__Empty_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Empty_Response__Sequence__fini(std_srvs__srv__Empty_Response__Sequence * array); - -/// Create array of srv/Empty messages. -/** - * It allocates the memory for the array and calls - * std_srvs__srv__Empty_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__Empty_Response__Sequence * -std_srvs__srv__Empty_Response__Sequence__create(size_t size); - -/// Destroy array of srv/Empty messages. -/** - * It calls - * std_srvs__srv__Empty_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Empty_Response__Sequence__destroy(std_srvs__srv__Empty_Response__Sequence * array); - -/// Check for srv/Empty message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Response__Sequence__are_equal(const std_srvs__srv__Empty_Response__Sequence * lhs, const std_srvs__srv__Empty_Response__Sequence * rhs); - -/// Copy an array of srv/Empty messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Response__Sequence__copy( - const std_srvs__srv__Empty_Response__Sequence * input, - std_srvs__srv__Empty_Response__Sequence * output); - -/// Initialize srv/Empty message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_srvs__srv__Empty_Event - * )) before or use - * std_srvs__srv__Empty_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Event__init(std_srvs__srv__Empty_Event * msg); - -/// Finalize srv/Empty message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Empty_Event__fini(std_srvs__srv__Empty_Event * msg); - -/// Create srv/Empty message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_srvs__srv__Empty_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__Empty_Event * -std_srvs__srv__Empty_Event__create(void); - -/// Destroy srv/Empty message. -/** - * It calls - * std_srvs__srv__Empty_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Empty_Event__destroy(std_srvs__srv__Empty_Event * msg); - -/// Check for srv/Empty message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Event__are_equal(const std_srvs__srv__Empty_Event * lhs, const std_srvs__srv__Empty_Event * rhs); - -/// Copy a srv/Empty message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Event__copy( - const std_srvs__srv__Empty_Event * input, - std_srvs__srv__Empty_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_type_hash_t * -std_srvs__srv__Empty_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeDescription * -std_srvs__srv__Empty_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource * -std_srvs__srv__Empty_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_srvs__srv__Empty_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Empty messages. -/** - * It allocates the memory for the number of elements and calls - * std_srvs__srv__Empty_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Event__Sequence__init(std_srvs__srv__Empty_Event__Sequence * array, size_t size); - -/// Finalize array of srv/Empty messages. -/** - * It calls - * std_srvs__srv__Empty_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Empty_Event__Sequence__fini(std_srvs__srv__Empty_Event__Sequence * array); - -/// Create array of srv/Empty messages. -/** - * It allocates the memory for the array and calls - * std_srvs__srv__Empty_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__Empty_Event__Sequence * -std_srvs__srv__Empty_Event__Sequence__create(size_t size); - -/// Destroy array of srv/Empty messages. -/** - * It calls - * std_srvs__srv__Empty_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Empty_Event__Sequence__destroy(std_srvs__srv__Empty_Event__Sequence * array); - -/// Check for srv/Empty message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Event__Sequence__are_equal(const std_srvs__srv__Empty_Event__Sequence * lhs, const std_srvs__srv__Empty_Event__Sequence * rhs); - -/// Copy an array of srv/Empty messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Empty_Event__Sequence__copy( - const std_srvs__srv__Empty_Event__Sequence * input, - std_srvs__srv__Empty_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__DETAIL__EMPTY__FUNCTIONS_H_ diff --git a/src/std_srvs/srv/detail/empty__rosidl_typesupport_introspection_c.h b/src/std_srvs/srv/detail/empty__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 98f1f534c..000000000 --- a/src/std_srvs/srv/detail/empty__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_srvs:srv/Empty.idl -// generated code does not contain a copyright notice - -#ifndef STD_SRVS__SRV__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_SRVS__SRV__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_srvs, srv, Empty_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_srvs, srv, Empty_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_srvs, srv, Empty_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_srvs, srv, Empty)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_srvs/srv/detail/empty__rosidl_typesupport_microxrcedds_c.h b/src/std_srvs/srv/detail/empty__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 720fc6b97..000000000 --- a/src/std_srvs/srv/detail/empty__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_srvs:srv/Empty.idl -// generated code does not contain a copyright notice -#ifndef STD_SRVS__SRV__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_SRVS__SRV__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t get_serialized_size_std_srvs__srv__Empty_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t max_serialized_size_std_srvs__srv__Empty_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_srvs, srv, Empty_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t get_serialized_size_std_srvs__srv__Empty_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t max_serialized_size_std_srvs__srv__Empty_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_srvs, srv, Empty_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t get_serialized_size_std_srvs__srv__Empty_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t max_serialized_size_std_srvs__srv__Empty_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_srvs, srv, Empty_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_srvs, srv, Empty)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_srvs/srv/detail/empty__struct.h b/src/std_srvs/srv/detail/empty__struct.h deleted file mode 100755 index b489ae7f4..000000000 --- a/src/std_srvs/srv/detail/empty__struct.h +++ /dev/null @@ -1,97 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_srvs:srv/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_srvs/srv/empty.h" - - -#ifndef STD_SRVS__SRV__DETAIL__EMPTY__STRUCT_H_ -#define STD_SRVS__SRV__DETAIL__EMPTY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/Empty in the package std_srvs. -typedef struct std_srvs__srv__Empty_Request -{ - uint8_t structure_needs_at_least_one_member; -} std_srvs__srv__Empty_Request; - -// Struct for a sequence of std_srvs__srv__Empty_Request. -typedef struct std_srvs__srv__Empty_Request__Sequence -{ - std_srvs__srv__Empty_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_srvs__srv__Empty_Request__Sequence; - -// Constants defined in the message - -/// Struct defined in srv/Empty in the package std_srvs. -typedef struct std_srvs__srv__Empty_Response -{ - uint8_t structure_needs_at_least_one_member; -} std_srvs__srv__Empty_Response; - -// Struct for a sequence of std_srvs__srv__Empty_Response. -typedef struct std_srvs__srv__Empty_Response__Sequence -{ - std_srvs__srv__Empty_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_srvs__srv__Empty_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - std_srvs__srv__Empty_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - std_srvs__srv__Empty_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/Empty in the package std_srvs. -typedef struct std_srvs__srv__Empty_Event -{ - service_msgs__msg__ServiceEventInfo info; - std_srvs__srv__Empty_Request__Sequence request; - std_srvs__srv__Empty_Response__Sequence response; -} std_srvs__srv__Empty_Event; - -// Struct for a sequence of std_srvs__srv__Empty_Event. -typedef struct std_srvs__srv__Empty_Event__Sequence -{ - std_srvs__srv__Empty_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_srvs__srv__Empty_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__DETAIL__EMPTY__STRUCT_H_ diff --git a/src/std_srvs/srv/detail/empty__type_support.h b/src/std_srvs/srv/detail/empty__type_support.h deleted file mode 100755 index 9e4da649a..000000000 --- a/src/std_srvs/srv/detail/empty__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_srvs:srv/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_srvs/srv/empty.h" - - -#ifndef STD_SRVS__SRV__DETAIL__EMPTY__TYPE_SUPPORT_H_ -#define STD_SRVS__SRV__DETAIL__EMPTY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_srvs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - Empty_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - Empty_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - Empty_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - Empty -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - Empty -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - Empty -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__DETAIL__EMPTY__TYPE_SUPPORT_H_ diff --git a/src/std_srvs/srv/detail/set_bool__functions.h b/src/std_srvs/srv/detail/set_bool__functions.h deleted file mode 100755 index 6482c6221..000000000 --- a/src/std_srvs/srv/detail/set_bool__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_srvs:srv/SetBool.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_srvs/srv/set_bool.h" - - -#ifndef STD_SRVS__SRV__DETAIL__SET_BOOL__FUNCTIONS_H_ -#define STD_SRVS__SRV__DETAIL__SET_BOOL__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_srvs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_srvs/srv/detail/set_bool__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_type_hash_t * -std_srvs__srv__SetBool__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeDescription * -std_srvs__srv__SetBool__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource * -std_srvs__srv__SetBool__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_srvs__srv__SetBool__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/SetBool message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_srvs__srv__SetBool_Request - * )) before or use - * std_srvs__srv__SetBool_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Request__init(std_srvs__srv__SetBool_Request * msg); - -/// Finalize srv/SetBool message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__SetBool_Request__fini(std_srvs__srv__SetBool_Request * msg); - -/// Create srv/SetBool message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_srvs__srv__SetBool_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__SetBool_Request * -std_srvs__srv__SetBool_Request__create(void); - -/// Destroy srv/SetBool message. -/** - * It calls - * std_srvs__srv__SetBool_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__SetBool_Request__destroy(std_srvs__srv__SetBool_Request * msg); - -/// Check for srv/SetBool message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Request__are_equal(const std_srvs__srv__SetBool_Request * lhs, const std_srvs__srv__SetBool_Request * rhs); - -/// Copy a srv/SetBool message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Request__copy( - const std_srvs__srv__SetBool_Request * input, - std_srvs__srv__SetBool_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_type_hash_t * -std_srvs__srv__SetBool_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeDescription * -std_srvs__srv__SetBool_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource * -std_srvs__srv__SetBool_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_srvs__srv__SetBool_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetBool messages. -/** - * It allocates the memory for the number of elements and calls - * std_srvs__srv__SetBool_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Request__Sequence__init(std_srvs__srv__SetBool_Request__Sequence * array, size_t size); - -/// Finalize array of srv/SetBool messages. -/** - * It calls - * std_srvs__srv__SetBool_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__SetBool_Request__Sequence__fini(std_srvs__srv__SetBool_Request__Sequence * array); - -/// Create array of srv/SetBool messages. -/** - * It allocates the memory for the array and calls - * std_srvs__srv__SetBool_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__SetBool_Request__Sequence * -std_srvs__srv__SetBool_Request__Sequence__create(size_t size); - -/// Destroy array of srv/SetBool messages. -/** - * It calls - * std_srvs__srv__SetBool_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__SetBool_Request__Sequence__destroy(std_srvs__srv__SetBool_Request__Sequence * array); - -/// Check for srv/SetBool message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Request__Sequence__are_equal(const std_srvs__srv__SetBool_Request__Sequence * lhs, const std_srvs__srv__SetBool_Request__Sequence * rhs); - -/// Copy an array of srv/SetBool messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Request__Sequence__copy( - const std_srvs__srv__SetBool_Request__Sequence * input, - std_srvs__srv__SetBool_Request__Sequence * output); - -/// Initialize srv/SetBool message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_srvs__srv__SetBool_Response - * )) before or use - * std_srvs__srv__SetBool_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Response__init(std_srvs__srv__SetBool_Response * msg); - -/// Finalize srv/SetBool message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__SetBool_Response__fini(std_srvs__srv__SetBool_Response * msg); - -/// Create srv/SetBool message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_srvs__srv__SetBool_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__SetBool_Response * -std_srvs__srv__SetBool_Response__create(void); - -/// Destroy srv/SetBool message. -/** - * It calls - * std_srvs__srv__SetBool_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__SetBool_Response__destroy(std_srvs__srv__SetBool_Response * msg); - -/// Check for srv/SetBool message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Response__are_equal(const std_srvs__srv__SetBool_Response * lhs, const std_srvs__srv__SetBool_Response * rhs); - -/// Copy a srv/SetBool message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Response__copy( - const std_srvs__srv__SetBool_Response * input, - std_srvs__srv__SetBool_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_type_hash_t * -std_srvs__srv__SetBool_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeDescription * -std_srvs__srv__SetBool_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource * -std_srvs__srv__SetBool_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_srvs__srv__SetBool_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetBool messages. -/** - * It allocates the memory for the number of elements and calls - * std_srvs__srv__SetBool_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Response__Sequence__init(std_srvs__srv__SetBool_Response__Sequence * array, size_t size); - -/// Finalize array of srv/SetBool messages. -/** - * It calls - * std_srvs__srv__SetBool_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__SetBool_Response__Sequence__fini(std_srvs__srv__SetBool_Response__Sequence * array); - -/// Create array of srv/SetBool messages. -/** - * It allocates the memory for the array and calls - * std_srvs__srv__SetBool_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__SetBool_Response__Sequence * -std_srvs__srv__SetBool_Response__Sequence__create(size_t size); - -/// Destroy array of srv/SetBool messages. -/** - * It calls - * std_srvs__srv__SetBool_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__SetBool_Response__Sequence__destroy(std_srvs__srv__SetBool_Response__Sequence * array); - -/// Check for srv/SetBool message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Response__Sequence__are_equal(const std_srvs__srv__SetBool_Response__Sequence * lhs, const std_srvs__srv__SetBool_Response__Sequence * rhs); - -/// Copy an array of srv/SetBool messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Response__Sequence__copy( - const std_srvs__srv__SetBool_Response__Sequence * input, - std_srvs__srv__SetBool_Response__Sequence * output); - -/// Initialize srv/SetBool message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_srvs__srv__SetBool_Event - * )) before or use - * std_srvs__srv__SetBool_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Event__init(std_srvs__srv__SetBool_Event * msg); - -/// Finalize srv/SetBool message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__SetBool_Event__fini(std_srvs__srv__SetBool_Event * msg); - -/// Create srv/SetBool message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_srvs__srv__SetBool_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__SetBool_Event * -std_srvs__srv__SetBool_Event__create(void); - -/// Destroy srv/SetBool message. -/** - * It calls - * std_srvs__srv__SetBool_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__SetBool_Event__destroy(std_srvs__srv__SetBool_Event * msg); - -/// Check for srv/SetBool message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Event__are_equal(const std_srvs__srv__SetBool_Event * lhs, const std_srvs__srv__SetBool_Event * rhs); - -/// Copy a srv/SetBool message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Event__copy( - const std_srvs__srv__SetBool_Event * input, - std_srvs__srv__SetBool_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_type_hash_t * -std_srvs__srv__SetBool_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeDescription * -std_srvs__srv__SetBool_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource * -std_srvs__srv__SetBool_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_srvs__srv__SetBool_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/SetBool messages. -/** - * It allocates the memory for the number of elements and calls - * std_srvs__srv__SetBool_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Event__Sequence__init(std_srvs__srv__SetBool_Event__Sequence * array, size_t size); - -/// Finalize array of srv/SetBool messages. -/** - * It calls - * std_srvs__srv__SetBool_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__SetBool_Event__Sequence__fini(std_srvs__srv__SetBool_Event__Sequence * array); - -/// Create array of srv/SetBool messages. -/** - * It allocates the memory for the array and calls - * std_srvs__srv__SetBool_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__SetBool_Event__Sequence * -std_srvs__srv__SetBool_Event__Sequence__create(size_t size); - -/// Destroy array of srv/SetBool messages. -/** - * It calls - * std_srvs__srv__SetBool_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__SetBool_Event__Sequence__destroy(std_srvs__srv__SetBool_Event__Sequence * array); - -/// Check for srv/SetBool message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Event__Sequence__are_equal(const std_srvs__srv__SetBool_Event__Sequence * lhs, const std_srvs__srv__SetBool_Event__Sequence * rhs); - -/// Copy an array of srv/SetBool messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__SetBool_Event__Sequence__copy( - const std_srvs__srv__SetBool_Event__Sequence * input, - std_srvs__srv__SetBool_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__DETAIL__SET_BOOL__FUNCTIONS_H_ diff --git a/src/std_srvs/srv/detail/set_bool__rosidl_typesupport_introspection_c.h b/src/std_srvs/srv/detail/set_bool__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 953221f66..000000000 --- a/src/std_srvs/srv/detail/set_bool__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_srvs:srv/SetBool.idl -// generated code does not contain a copyright notice - -#ifndef STD_SRVS__SRV__DETAIL__SET_BOOL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_SRVS__SRV__DETAIL__SET_BOOL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_srvs, srv, SetBool_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_srvs, srv, SetBool_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_srvs, srv, SetBool_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_srvs, srv, SetBool)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__DETAIL__SET_BOOL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_srvs/srv/detail/set_bool__rosidl_typesupport_microxrcedds_c.h b/src/std_srvs/srv/detail/set_bool__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 15af5be0a..000000000 --- a/src/std_srvs/srv/detail/set_bool__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_srvs:srv/SetBool.idl -// generated code does not contain a copyright notice -#ifndef STD_SRVS__SRV__SET_BOOL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_SRVS__SRV__SET_BOOL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t get_serialized_size_std_srvs__srv__SetBool_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t max_serialized_size_std_srvs__srv__SetBool_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_srvs, srv, SetBool_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t get_serialized_size_std_srvs__srv__SetBool_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t max_serialized_size_std_srvs__srv__SetBool_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_srvs, srv, SetBool_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t get_serialized_size_std_srvs__srv__SetBool_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t max_serialized_size_std_srvs__srv__SetBool_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_srvs, srv, SetBool_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_srvs, srv, SetBool)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__SET_BOOL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_srvs/srv/detail/set_bool__struct.h b/src/std_srvs/srv/detail/set_bool__struct.h deleted file mode 100755 index 7e75e64b7..000000000 --- a/src/std_srvs/srv/detail/set_bool__struct.h +++ /dev/null @@ -1,105 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_srvs:srv/SetBool.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_srvs/srv/set_bool.h" - - -#ifndef STD_SRVS__SRV__DETAIL__SET_BOOL__STRUCT_H_ -#define STD_SRVS__SRV__DETAIL__SET_BOOL__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/SetBool in the package std_srvs. -typedef struct std_srvs__srv__SetBool_Request -{ - /// e.g. for hardware enabling / disabling - bool data; -} std_srvs__srv__SetBool_Request; - -// Struct for a sequence of std_srvs__srv__SetBool_Request. -typedef struct std_srvs__srv__SetBool_Request__Sequence -{ - std_srvs__srv__SetBool_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_srvs__srv__SetBool_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'message' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/SetBool in the package std_srvs. -typedef struct std_srvs__srv__SetBool_Response -{ - /// indicate successful run of triggered service - bool success; - /// informational, e.g. for error messages - rosidl_runtime_c__String message; -} std_srvs__srv__SetBool_Response; - -// Struct for a sequence of std_srvs__srv__SetBool_Response. -typedef struct std_srvs__srv__SetBool_Response__Sequence -{ - std_srvs__srv__SetBool_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_srvs__srv__SetBool_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - std_srvs__srv__SetBool_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - std_srvs__srv__SetBool_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/SetBool in the package std_srvs. -typedef struct std_srvs__srv__SetBool_Event -{ - service_msgs__msg__ServiceEventInfo info; - std_srvs__srv__SetBool_Request__Sequence request; - std_srvs__srv__SetBool_Response__Sequence response; -} std_srvs__srv__SetBool_Event; - -// Struct for a sequence of std_srvs__srv__SetBool_Event. -typedef struct std_srvs__srv__SetBool_Event__Sequence -{ - std_srvs__srv__SetBool_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_srvs__srv__SetBool_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__DETAIL__SET_BOOL__STRUCT_H_ diff --git a/src/std_srvs/srv/detail/set_bool__type_support.h b/src/std_srvs/srv/detail/set_bool__type_support.h deleted file mode 100755 index 6a07a9e5a..000000000 --- a/src/std_srvs/srv/detail/set_bool__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_srvs:srv/SetBool.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_srvs/srv/set_bool.h" - - -#ifndef STD_SRVS__SRV__DETAIL__SET_BOOL__TYPE_SUPPORT_H_ -#define STD_SRVS__SRV__DETAIL__SET_BOOL__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_srvs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - SetBool_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - SetBool_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - SetBool_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - SetBool -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - SetBool -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - SetBool -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__DETAIL__SET_BOOL__TYPE_SUPPORT_H_ diff --git a/src/std_srvs/srv/detail/trigger__functions.h b/src/std_srvs/srv/detail/trigger__functions.h deleted file mode 100755 index 7b02ed10e..000000000 --- a/src/std_srvs/srv/detail/trigger__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from std_srvs:srv/Trigger.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_srvs/srv/trigger.h" - - -#ifndef STD_SRVS__SRV__DETAIL__TRIGGER__FUNCTIONS_H_ -#define STD_SRVS__SRV__DETAIL__TRIGGER__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "std_srvs/msg/rosidl_generator_c__visibility_control.h" - -#include "std_srvs/srv/detail/trigger__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_type_hash_t * -std_srvs__srv__Trigger__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeDescription * -std_srvs__srv__Trigger__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource * -std_srvs__srv__Trigger__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_srvs__srv__Trigger__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/Trigger message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_srvs__srv__Trigger_Request - * )) before or use - * std_srvs__srv__Trigger_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Request__init(std_srvs__srv__Trigger_Request * msg); - -/// Finalize srv/Trigger message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Trigger_Request__fini(std_srvs__srv__Trigger_Request * msg); - -/// Create srv/Trigger message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_srvs__srv__Trigger_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__Trigger_Request * -std_srvs__srv__Trigger_Request__create(void); - -/// Destroy srv/Trigger message. -/** - * It calls - * std_srvs__srv__Trigger_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Trigger_Request__destroy(std_srvs__srv__Trigger_Request * msg); - -/// Check for srv/Trigger message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Request__are_equal(const std_srvs__srv__Trigger_Request * lhs, const std_srvs__srv__Trigger_Request * rhs); - -/// Copy a srv/Trigger message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Request__copy( - const std_srvs__srv__Trigger_Request * input, - std_srvs__srv__Trigger_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_type_hash_t * -std_srvs__srv__Trigger_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeDescription * -std_srvs__srv__Trigger_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource * -std_srvs__srv__Trigger_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_srvs__srv__Trigger_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Trigger messages. -/** - * It allocates the memory for the number of elements and calls - * std_srvs__srv__Trigger_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Request__Sequence__init(std_srvs__srv__Trigger_Request__Sequence * array, size_t size); - -/// Finalize array of srv/Trigger messages. -/** - * It calls - * std_srvs__srv__Trigger_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Trigger_Request__Sequence__fini(std_srvs__srv__Trigger_Request__Sequence * array); - -/// Create array of srv/Trigger messages. -/** - * It allocates the memory for the array and calls - * std_srvs__srv__Trigger_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__Trigger_Request__Sequence * -std_srvs__srv__Trigger_Request__Sequence__create(size_t size); - -/// Destroy array of srv/Trigger messages. -/** - * It calls - * std_srvs__srv__Trigger_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Trigger_Request__Sequence__destroy(std_srvs__srv__Trigger_Request__Sequence * array); - -/// Check for srv/Trigger message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Request__Sequence__are_equal(const std_srvs__srv__Trigger_Request__Sequence * lhs, const std_srvs__srv__Trigger_Request__Sequence * rhs); - -/// Copy an array of srv/Trigger messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Request__Sequence__copy( - const std_srvs__srv__Trigger_Request__Sequence * input, - std_srvs__srv__Trigger_Request__Sequence * output); - -/// Initialize srv/Trigger message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_srvs__srv__Trigger_Response - * )) before or use - * std_srvs__srv__Trigger_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Response__init(std_srvs__srv__Trigger_Response * msg); - -/// Finalize srv/Trigger message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Trigger_Response__fini(std_srvs__srv__Trigger_Response * msg); - -/// Create srv/Trigger message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_srvs__srv__Trigger_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__Trigger_Response * -std_srvs__srv__Trigger_Response__create(void); - -/// Destroy srv/Trigger message. -/** - * It calls - * std_srvs__srv__Trigger_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Trigger_Response__destroy(std_srvs__srv__Trigger_Response * msg); - -/// Check for srv/Trigger message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Response__are_equal(const std_srvs__srv__Trigger_Response * lhs, const std_srvs__srv__Trigger_Response * rhs); - -/// Copy a srv/Trigger message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Response__copy( - const std_srvs__srv__Trigger_Response * input, - std_srvs__srv__Trigger_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_type_hash_t * -std_srvs__srv__Trigger_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeDescription * -std_srvs__srv__Trigger_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource * -std_srvs__srv__Trigger_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_srvs__srv__Trigger_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Trigger messages. -/** - * It allocates the memory for the number of elements and calls - * std_srvs__srv__Trigger_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Response__Sequence__init(std_srvs__srv__Trigger_Response__Sequence * array, size_t size); - -/// Finalize array of srv/Trigger messages. -/** - * It calls - * std_srvs__srv__Trigger_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Trigger_Response__Sequence__fini(std_srvs__srv__Trigger_Response__Sequence * array); - -/// Create array of srv/Trigger messages. -/** - * It allocates the memory for the array and calls - * std_srvs__srv__Trigger_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__Trigger_Response__Sequence * -std_srvs__srv__Trigger_Response__Sequence__create(size_t size); - -/// Destroy array of srv/Trigger messages. -/** - * It calls - * std_srvs__srv__Trigger_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Trigger_Response__Sequence__destroy(std_srvs__srv__Trigger_Response__Sequence * array); - -/// Check for srv/Trigger message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Response__Sequence__are_equal(const std_srvs__srv__Trigger_Response__Sequence * lhs, const std_srvs__srv__Trigger_Response__Sequence * rhs); - -/// Copy an array of srv/Trigger messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Response__Sequence__copy( - const std_srvs__srv__Trigger_Response__Sequence * input, - std_srvs__srv__Trigger_Response__Sequence * output); - -/// Initialize srv/Trigger message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * std_srvs__srv__Trigger_Event - * )) before or use - * std_srvs__srv__Trigger_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Event__init(std_srvs__srv__Trigger_Event * msg); - -/// Finalize srv/Trigger message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Trigger_Event__fini(std_srvs__srv__Trigger_Event * msg); - -/// Create srv/Trigger message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * std_srvs__srv__Trigger_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__Trigger_Event * -std_srvs__srv__Trigger_Event__create(void); - -/// Destroy srv/Trigger message. -/** - * It calls - * std_srvs__srv__Trigger_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Trigger_Event__destroy(std_srvs__srv__Trigger_Event * msg); - -/// Check for srv/Trigger message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Event__are_equal(const std_srvs__srv__Trigger_Event * lhs, const std_srvs__srv__Trigger_Event * rhs); - -/// Copy a srv/Trigger message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Event__copy( - const std_srvs__srv__Trigger_Event * input, - std_srvs__srv__Trigger_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_type_hash_t * -std_srvs__srv__Trigger_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeDescription * -std_srvs__srv__Trigger_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource * -std_srvs__srv__Trigger_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -std_srvs__srv__Trigger_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Trigger messages. -/** - * It allocates the memory for the number of elements and calls - * std_srvs__srv__Trigger_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Event__Sequence__init(std_srvs__srv__Trigger_Event__Sequence * array, size_t size); - -/// Finalize array of srv/Trigger messages. -/** - * It calls - * std_srvs__srv__Trigger_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Trigger_Event__Sequence__fini(std_srvs__srv__Trigger_Event__Sequence * array); - -/// Create array of srv/Trigger messages. -/** - * It allocates the memory for the array and calls - * std_srvs__srv__Trigger_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -std_srvs__srv__Trigger_Event__Sequence * -std_srvs__srv__Trigger_Event__Sequence__create(size_t size); - -/// Destroy array of srv/Trigger messages. -/** - * It calls - * std_srvs__srv__Trigger_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void -std_srvs__srv__Trigger_Event__Sequence__destroy(std_srvs__srv__Trigger_Event__Sequence * array); - -/// Check for srv/Trigger message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Event__Sequence__are_equal(const std_srvs__srv__Trigger_Event__Sequence * lhs, const std_srvs__srv__Trigger_Event__Sequence * rhs); - -/// Copy an array of srv/Trigger messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -std_srvs__srv__Trigger_Event__Sequence__copy( - const std_srvs__srv__Trigger_Event__Sequence * input, - std_srvs__srv__Trigger_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__DETAIL__TRIGGER__FUNCTIONS_H_ diff --git a/src/std_srvs/srv/detail/trigger__rosidl_typesupport_introspection_c.h b/src/std_srvs/srv/detail/trigger__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 83ece3781..000000000 --- a/src/std_srvs/srv/detail/trigger__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from std_srvs:srv/Trigger.idl -// generated code does not contain a copyright notice - -#ifndef STD_SRVS__SRV__DETAIL__TRIGGER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STD_SRVS__SRV__DETAIL__TRIGGER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_srvs, srv, Trigger_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_srvs, srv, Trigger_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_srvs, srv, Trigger_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_std_srvs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, std_srvs, srv, Trigger)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__DETAIL__TRIGGER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/std_srvs/srv/detail/trigger__rosidl_typesupport_microxrcedds_c.h b/src/std_srvs/srv/detail/trigger__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index e15a8ed4e..000000000 --- a/src/std_srvs/srv/detail/trigger__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from std_srvs:srv/Trigger.idl -// generated code does not contain a copyright notice -#ifndef STD_SRVS__SRV__TRIGGER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STD_SRVS__SRV__TRIGGER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t get_serialized_size_std_srvs__srv__Trigger_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t max_serialized_size_std_srvs__srv__Trigger_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_srvs, srv, Trigger_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t get_serialized_size_std_srvs__srv__Trigger_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t max_serialized_size_std_srvs__srv__Trigger_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_srvs, srv, Trigger_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t get_serialized_size_std_srvs__srv__Trigger_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -size_t max_serialized_size_std_srvs__srv__Trigger_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_srvs, srv, Trigger_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "std_srvs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_std_srvs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, std_srvs, srv, Trigger)(); - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__TRIGGER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/std_srvs/srv/detail/trigger__struct.h b/src/std_srvs/srv/detail/trigger__struct.h deleted file mode 100755 index 80312a2e8..000000000 --- a/src/std_srvs/srv/detail/trigger__struct.h +++ /dev/null @@ -1,104 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from std_srvs:srv/Trigger.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_srvs/srv/trigger.h" - - -#ifndef STD_SRVS__SRV__DETAIL__TRIGGER__STRUCT_H_ -#define STD_SRVS__SRV__DETAIL__TRIGGER__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/Trigger in the package std_srvs. -typedef struct std_srvs__srv__Trigger_Request -{ - uint8_t structure_needs_at_least_one_member; -} std_srvs__srv__Trigger_Request; - -// Struct for a sequence of std_srvs__srv__Trigger_Request. -typedef struct std_srvs__srv__Trigger_Request__Sequence -{ - std_srvs__srv__Trigger_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_srvs__srv__Trigger_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'message' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/Trigger in the package std_srvs. -typedef struct std_srvs__srv__Trigger_Response -{ - /// indicate successful run of triggered service - bool success; - /// informational, e.g. for error messages - rosidl_runtime_c__String message; -} std_srvs__srv__Trigger_Response; - -// Struct for a sequence of std_srvs__srv__Trigger_Response. -typedef struct std_srvs__srv__Trigger_Response__Sequence -{ - std_srvs__srv__Trigger_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_srvs__srv__Trigger_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - std_srvs__srv__Trigger_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - std_srvs__srv__Trigger_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/Trigger in the package std_srvs. -typedef struct std_srvs__srv__Trigger_Event -{ - service_msgs__msg__ServiceEventInfo info; - std_srvs__srv__Trigger_Request__Sequence request; - std_srvs__srv__Trigger_Response__Sequence response; -} std_srvs__srv__Trigger_Event; - -// Struct for a sequence of std_srvs__srv__Trigger_Event. -typedef struct std_srvs__srv__Trigger_Event__Sequence -{ - std_srvs__srv__Trigger_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} std_srvs__srv__Trigger_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__DETAIL__TRIGGER__STRUCT_H_ diff --git a/src/std_srvs/srv/detail/trigger__type_support.h b/src/std_srvs/srv/detail/trigger__type_support.h deleted file mode 100755 index 8211cf845..000000000 --- a/src/std_srvs/srv/detail/trigger__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from std_srvs:srv/Trigger.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "std_srvs/srv/trigger.h" - - -#ifndef STD_SRVS__SRV__DETAIL__TRIGGER__TYPE_SUPPORT_H_ -#define STD_SRVS__SRV__DETAIL__TRIGGER__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "std_srvs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - Trigger_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - Trigger_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - Trigger_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - Trigger -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - Trigger -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_std_srvs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - std_srvs, - srv, - Trigger -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // STD_SRVS__SRV__DETAIL__TRIGGER__TYPE_SUPPORT_H_ diff --git a/src/std_srvs/srv/empty.h b/src/std_srvs/srv/empty.h deleted file mode 100755 index 4ad865933..000000000 --- a/src/std_srvs/srv/empty.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_srvs:srv/Empty.idl -// generated code does not contain a copyright notice - -#ifndef STD_SRVS__SRV__EMPTY_H_ -#define STD_SRVS__SRV__EMPTY_H_ - -#include "std_srvs/srv/detail/empty__struct.h" -#include "std_srvs/srv/detail/empty__functions.h" -#include "std_srvs/srv/detail/empty__type_support.h" - -#endif // STD_SRVS__SRV__EMPTY_H_ diff --git a/src/std_srvs/srv/set_bool.h b/src/std_srvs/srv/set_bool.h deleted file mode 100755 index ec621864b..000000000 --- a/src/std_srvs/srv/set_bool.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_srvs:srv/SetBool.idl -// generated code does not contain a copyright notice - -#ifndef STD_SRVS__SRV__SET_BOOL_H_ -#define STD_SRVS__SRV__SET_BOOL_H_ - -#include "std_srvs/srv/detail/set_bool__struct.h" -#include "std_srvs/srv/detail/set_bool__functions.h" -#include "std_srvs/srv/detail/set_bool__type_support.h" - -#endif // STD_SRVS__SRV__SET_BOOL_H_ diff --git a/src/std_srvs/srv/trigger.h b/src/std_srvs/srv/trigger.h deleted file mode 100755 index f40666fa0..000000000 --- a/src/std_srvs/srv/trigger.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from std_srvs:srv/Trigger.idl -// generated code does not contain a copyright notice - -#ifndef STD_SRVS__SRV__TRIGGER_H_ -#define STD_SRVS__SRV__TRIGGER_H_ - -#include "std_srvs/srv/detail/trigger__struct.h" -#include "std_srvs/srv/detail/trigger__functions.h" -#include "std_srvs/srv/detail/trigger__type_support.h" - -#endif // STD_SRVS__SRV__TRIGGER_H_ diff --git a/src/stereo_msgs/msg/detail/disparity_image__functions.h b/src/stereo_msgs/msg/detail/disparity_image__functions.h deleted file mode 100755 index 1f7ccf6c6..000000000 --- a/src/stereo_msgs/msg/detail/disparity_image__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from stereo_msgs:msg/DisparityImage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "stereo_msgs/msg/disparity_image.h" - - -#ifndef STEREO_MSGS__MSG__DETAIL__DISPARITY_IMAGE__FUNCTIONS_H_ -#define STEREO_MSGS__MSG__DETAIL__DISPARITY_IMAGE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "stereo_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "stereo_msgs/msg/detail/disparity_image__struct.h" - -/// Initialize msg/DisparityImage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * stereo_msgs__msg__DisparityImage - * )) before or use - * stereo_msgs__msg__DisparityImage__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -bool -stereo_msgs__msg__DisparityImage__init(stereo_msgs__msg__DisparityImage * msg); - -/// Finalize msg/DisparityImage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -void -stereo_msgs__msg__DisparityImage__fini(stereo_msgs__msg__DisparityImage * msg); - -/// Create msg/DisparityImage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * stereo_msgs__msg__DisparityImage__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -stereo_msgs__msg__DisparityImage * -stereo_msgs__msg__DisparityImage__create(void); - -/// Destroy msg/DisparityImage message. -/** - * It calls - * stereo_msgs__msg__DisparityImage__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -void -stereo_msgs__msg__DisparityImage__destroy(stereo_msgs__msg__DisparityImage * msg); - -/// Check for msg/DisparityImage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -bool -stereo_msgs__msg__DisparityImage__are_equal(const stereo_msgs__msg__DisparityImage * lhs, const stereo_msgs__msg__DisparityImage * rhs); - -/// Copy a msg/DisparityImage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -bool -stereo_msgs__msg__DisparityImage__copy( - const stereo_msgs__msg__DisparityImage * input, - stereo_msgs__msg__DisparityImage * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -const rosidl_type_hash_t * -stereo_msgs__msg__DisparityImage__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -const rosidl_runtime_c__type_description__TypeDescription * -stereo_msgs__msg__DisparityImage__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -const rosidl_runtime_c__type_description__TypeSource * -stereo_msgs__msg__DisparityImage__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -stereo_msgs__msg__DisparityImage__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/DisparityImage messages. -/** - * It allocates the memory for the number of elements and calls - * stereo_msgs__msg__DisparityImage__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -bool -stereo_msgs__msg__DisparityImage__Sequence__init(stereo_msgs__msg__DisparityImage__Sequence * array, size_t size); - -/// Finalize array of msg/DisparityImage messages. -/** - * It calls - * stereo_msgs__msg__DisparityImage__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -void -stereo_msgs__msg__DisparityImage__Sequence__fini(stereo_msgs__msg__DisparityImage__Sequence * array); - -/// Create array of msg/DisparityImage messages. -/** - * It allocates the memory for the array and calls - * stereo_msgs__msg__DisparityImage__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -stereo_msgs__msg__DisparityImage__Sequence * -stereo_msgs__msg__DisparityImage__Sequence__create(size_t size); - -/// Destroy array of msg/DisparityImage messages. -/** - * It calls - * stereo_msgs__msg__DisparityImage__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -void -stereo_msgs__msg__DisparityImage__Sequence__destroy(stereo_msgs__msg__DisparityImage__Sequence * array); - -/// Check for msg/DisparityImage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -bool -stereo_msgs__msg__DisparityImage__Sequence__are_equal(const stereo_msgs__msg__DisparityImage__Sequence * lhs, const stereo_msgs__msg__DisparityImage__Sequence * rhs); - -/// Copy an array of msg/DisparityImage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -bool -stereo_msgs__msg__DisparityImage__Sequence__copy( - const stereo_msgs__msg__DisparityImage__Sequence * input, - stereo_msgs__msg__DisparityImage__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // STEREO_MSGS__MSG__DETAIL__DISPARITY_IMAGE__FUNCTIONS_H_ diff --git a/src/stereo_msgs/msg/detail/disparity_image__rosidl_typesupport_introspection_c.h b/src/stereo_msgs/msg/detail/disparity_image__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 193f69330..000000000 --- a/src/stereo_msgs/msg/detail/disparity_image__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from stereo_msgs:msg/DisparityImage.idl -// generated code does not contain a copyright notice - -#ifndef STEREO_MSGS__MSG__DETAIL__DISPARITY_IMAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define STEREO_MSGS__MSG__DETAIL__DISPARITY_IMAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "stereo_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_stereo_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, stereo_msgs, msg, DisparityImage)(); - -#ifdef __cplusplus -} -#endif - -#endif // STEREO_MSGS__MSG__DETAIL__DISPARITY_IMAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/stereo_msgs/msg/detail/disparity_image__rosidl_typesupport_microxrcedds_c.h b/src/stereo_msgs/msg/detail/disparity_image__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 4ea83c64a..000000000 --- a/src/stereo_msgs/msg/detail/disparity_image__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from stereo_msgs:msg/DisparityImage.idl -// generated code does not contain a copyright notice -#ifndef STEREO_MSGS__MSG__DISPARITY_IMAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define STEREO_MSGS__MSG__DISPARITY_IMAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "stereo_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_stereo_msgs -size_t get_serialized_size_stereo_msgs__msg__DisparityImage( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_stereo_msgs -size_t max_serialized_size_stereo_msgs__msg__DisparityImage( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_stereo_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, stereo_msgs, msg, DisparityImage)(); - -#ifdef __cplusplus -} -#endif - - -#endif // STEREO_MSGS__MSG__DISPARITY_IMAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/stereo_msgs/msg/detail/disparity_image__struct.h b/src/stereo_msgs/msg/detail/disparity_image__struct.h deleted file mode 100755 index ac5de1da0..000000000 --- a/src/stereo_msgs/msg/detail/disparity_image__struct.h +++ /dev/null @@ -1,77 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from stereo_msgs:msg/DisparityImage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "stereo_msgs/msg/disparity_image.h" - - -#ifndef STEREO_MSGS__MSG__DETAIL__DISPARITY_IMAGE__STRUCT_H_ -#define STEREO_MSGS__MSG__DETAIL__DISPARITY_IMAGE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'image' -#include "sensor_msgs/msg/detail/image__struct.h" -// Member 'valid_window' -#include "sensor_msgs/msg/detail/region_of_interest__struct.h" - -/// Struct defined in msg/DisparityImage in the package stereo_msgs. -/** - * Separate header for compatibility with current TimeSynchronizer. - * Likely to be removed in a later release, use image.header instead. - */ -typedef struct stereo_msgs__msg__DisparityImage -{ - std_msgs__msg__Header header; - /// Floating point disparity image. The disparities are pre-adjusted for any - /// x-offset between the principal points of the two cameras (in the case - /// that they are verged). That is: d = x_l - x_r - (cx_l - cx_r) - sensor_msgs__msg__Image image; - /// Stereo geometry. For disparity d, the depth from the camera is Z = fT/d. - /// Focal length, pixels - float f; - /// Baseline, world units - float t; - /// Subwindow of (potentially) valid disparity values. - sensor_msgs__msg__RegionOfInterest valid_window; - /// The range of disparities searched. - /// In the disparity image, any disparity less than min_disparity is invalid. - /// The disparity search range defines the horopter, or 3D volume that the - /// stereo algorithm can "see". Points with Z outside of: - /// Z_min = fT / max_disparity - /// Z_max = fT / min_disparity - /// could not be found. - float min_disparity; - float max_disparity; - /// Smallest allowed disparity increment. The smallest achievable depth range - /// resolution is delta_Z = (Z^2/fT)*delta_d. - float delta_d; -} stereo_msgs__msg__DisparityImage; - -// Struct for a sequence of stereo_msgs__msg__DisparityImage. -typedef struct stereo_msgs__msg__DisparityImage__Sequence -{ - stereo_msgs__msg__DisparityImage * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} stereo_msgs__msg__DisparityImage__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // STEREO_MSGS__MSG__DETAIL__DISPARITY_IMAGE__STRUCT_H_ diff --git a/src/stereo_msgs/msg/detail/disparity_image__type_support.h b/src/stereo_msgs/msg/detail/disparity_image__type_support.h deleted file mode 100755 index bc4b5bbe7..000000000 --- a/src/stereo_msgs/msg/detail/disparity_image__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from stereo_msgs:msg/DisparityImage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "stereo_msgs/msg/disparity_image.h" - - -#ifndef STEREO_MSGS__MSG__DETAIL__DISPARITY_IMAGE__TYPE_SUPPORT_H_ -#define STEREO_MSGS__MSG__DETAIL__DISPARITY_IMAGE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "stereo_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - stereo_msgs, - msg, - DisparityImage -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // STEREO_MSGS__MSG__DETAIL__DISPARITY_IMAGE__TYPE_SUPPORT_H_ diff --git a/src/stereo_msgs/msg/disparity_image.h b/src/stereo_msgs/msg/disparity_image.h deleted file mode 100755 index ef5d0aa6c..000000000 --- a/src/stereo_msgs/msg/disparity_image.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from stereo_msgs:msg/DisparityImage.idl -// generated code does not contain a copyright notice - -#ifndef STEREO_MSGS__MSG__DISPARITY_IMAGE_H_ -#define STEREO_MSGS__MSG__DISPARITY_IMAGE_H_ - -#include "stereo_msgs/msg/detail/disparity_image__struct.h" -#include "stereo_msgs/msg/detail/disparity_image__functions.h" -#include "stereo_msgs/msg/detail/disparity_image__type_support.h" - -#endif // STEREO_MSGS__MSG__DISPARITY_IMAGE_H_ diff --git a/src/stereo_msgs/msg/rosidl_generator_c__visibility_control.h b/src/stereo_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 29f2e81e3..000000000 --- a/src/stereo_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef STEREO_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define STEREO_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_stereo_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_stereo_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_stereo_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_stereo_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_stereo_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs ROSIDL_GENERATOR_C_EXPORT_stereo_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs ROSIDL_GENERATOR_C_IMPORT_stereo_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_stereo_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_stereo_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_stereo_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // STEREO_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/stereo_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/stereo_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 156093e3d..000000000 --- a/src/stereo_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef STEREO_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define STEREO_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_stereo_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_stereo_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_stereo_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_stereo_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_stereo_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_stereo_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_stereo_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_stereo_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_stereo_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_stereo_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_stereo_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_stereo_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_stereo_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // STEREO_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/stereo_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/stereo_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 05fbfbe44..000000000 --- a/src/stereo_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef STEREO_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define STEREO_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_stereo_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_stereo_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_stereo_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_stereo_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_stereo_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_stereo_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_stereo_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_stereo_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_stereo_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_stereo_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_stereo_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_stereo_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_stereo_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // STEREO_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/test_msgs/action/detail/fibonacci__functions.h b/src/test_msgs/action/detail/fibonacci__functions.h deleted file mode 100755 index 7ffb7ba9e..000000000 --- a/src/test_msgs/action/detail/fibonacci__functions.h +++ /dev/null @@ -1,1866 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:action/Fibonacci.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/action/fibonacci.h" - - -#ifndef TEST_MSGS__ACTION__DETAIL__FIBONACCI__FUNCTIONS_H_ -#define TEST_MSGS__ACTION__DETAIL__FIBONACCI__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/action/detail/fibonacci__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__Fibonacci__get_type_hash( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__Fibonacci__get_type_description( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__Fibonacci__get_individual_type_description_source( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__Fibonacci__get_type_description_sources( - const rosidl_action_type_support_t * type_support); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__Fibonacci_Goal - * )) before or use - * test_msgs__action__Fibonacci_Goal__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Goal__init(test_msgs__action__Fibonacci_Goal * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_Goal__fini(test_msgs__action__Fibonacci_Goal * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__Fibonacci_Goal__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_Goal * -test_msgs__action__Fibonacci_Goal__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * test_msgs__action__Fibonacci_Goal__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_Goal__destroy(test_msgs__action__Fibonacci_Goal * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Goal__are_equal(const test_msgs__action__Fibonacci_Goal * lhs, const test_msgs__action__Fibonacci_Goal * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Goal__copy( - const test_msgs__action__Fibonacci_Goal * input, - test_msgs__action__Fibonacci_Goal * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__Fibonacci_Goal__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__Fibonacci_Goal__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__Fibonacci_Goal__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__Fibonacci_Goal__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__Fibonacci_Goal__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Goal__Sequence__init(test_msgs__action__Fibonacci_Goal__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_Goal__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_Goal__Sequence__fini(test_msgs__action__Fibonacci_Goal__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__Fibonacci_Goal__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_Goal__Sequence * -test_msgs__action__Fibonacci_Goal__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_Goal__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_Goal__Sequence__destroy(test_msgs__action__Fibonacci_Goal__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Goal__Sequence__are_equal(const test_msgs__action__Fibonacci_Goal__Sequence * lhs, const test_msgs__action__Fibonacci_Goal__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Goal__Sequence__copy( - const test_msgs__action__Fibonacci_Goal__Sequence * input, - test_msgs__action__Fibonacci_Goal__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__Fibonacci_Result - * )) before or use - * test_msgs__action__Fibonacci_Result__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Result__init(test_msgs__action__Fibonacci_Result * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_Result__fini(test_msgs__action__Fibonacci_Result * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__Fibonacci_Result__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_Result * -test_msgs__action__Fibonacci_Result__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * test_msgs__action__Fibonacci_Result__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_Result__destroy(test_msgs__action__Fibonacci_Result * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Result__are_equal(const test_msgs__action__Fibonacci_Result * lhs, const test_msgs__action__Fibonacci_Result * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Result__copy( - const test_msgs__action__Fibonacci_Result * input, - test_msgs__action__Fibonacci_Result * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__Fibonacci_Result__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__Fibonacci_Result__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__Fibonacci_Result__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__Fibonacci_Result__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__Fibonacci_Result__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Result__Sequence__init(test_msgs__action__Fibonacci_Result__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_Result__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_Result__Sequence__fini(test_msgs__action__Fibonacci_Result__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__Fibonacci_Result__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_Result__Sequence * -test_msgs__action__Fibonacci_Result__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_Result__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_Result__Sequence__destroy(test_msgs__action__Fibonacci_Result__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Result__Sequence__are_equal(const test_msgs__action__Fibonacci_Result__Sequence * lhs, const test_msgs__action__Fibonacci_Result__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Result__Sequence__copy( - const test_msgs__action__Fibonacci_Result__Sequence * input, - test_msgs__action__Fibonacci_Result__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__Fibonacci_Feedback - * )) before or use - * test_msgs__action__Fibonacci_Feedback__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Feedback__init(test_msgs__action__Fibonacci_Feedback * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_Feedback__fini(test_msgs__action__Fibonacci_Feedback * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__Fibonacci_Feedback__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_Feedback * -test_msgs__action__Fibonacci_Feedback__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * test_msgs__action__Fibonacci_Feedback__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_Feedback__destroy(test_msgs__action__Fibonacci_Feedback * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Feedback__are_equal(const test_msgs__action__Fibonacci_Feedback * lhs, const test_msgs__action__Fibonacci_Feedback * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Feedback__copy( - const test_msgs__action__Fibonacci_Feedback * input, - test_msgs__action__Fibonacci_Feedback * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__Fibonacci_Feedback__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__Fibonacci_Feedback__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__Fibonacci_Feedback__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__Fibonacci_Feedback__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__Fibonacci_Feedback__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Feedback__Sequence__init(test_msgs__action__Fibonacci_Feedback__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_Feedback__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_Feedback__Sequence__fini(test_msgs__action__Fibonacci_Feedback__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__Fibonacci_Feedback__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_Feedback__Sequence * -test_msgs__action__Fibonacci_Feedback__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_Feedback__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_Feedback__Sequence__destroy(test_msgs__action__Fibonacci_Feedback__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Feedback__Sequence__are_equal(const test_msgs__action__Fibonacci_Feedback__Sequence * lhs, const test_msgs__action__Fibonacci_Feedback__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_Feedback__Sequence__copy( - const test_msgs__action__Fibonacci_Feedback__Sequence * input, - test_msgs__action__Fibonacci_Feedback__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__Fibonacci_SendGoal__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__Fibonacci_SendGoal__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__Fibonacci_SendGoal__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__Fibonacci_SendGoal__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__Fibonacci_SendGoal_Request - * )) before or use - * test_msgs__action__Fibonacci_SendGoal_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Request__init(test_msgs__action__Fibonacci_SendGoal_Request * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_SendGoal_Request__fini(test_msgs__action__Fibonacci_SendGoal_Request * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__Fibonacci_SendGoal_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_SendGoal_Request * -test_msgs__action__Fibonacci_SendGoal_Request__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * test_msgs__action__Fibonacci_SendGoal_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_SendGoal_Request__destroy(test_msgs__action__Fibonacci_SendGoal_Request * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Request__are_equal(const test_msgs__action__Fibonacci_SendGoal_Request * lhs, const test_msgs__action__Fibonacci_SendGoal_Request * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Request__copy( - const test_msgs__action__Fibonacci_SendGoal_Request * input, - test_msgs__action__Fibonacci_SendGoal_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__Fibonacci_SendGoal_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__Fibonacci_SendGoal_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__Fibonacci_SendGoal_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__Fibonacci_SendGoal_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__Fibonacci_SendGoal_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Request__Sequence__init(test_msgs__action__Fibonacci_SendGoal_Request__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_SendGoal_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_SendGoal_Request__Sequence__fini(test_msgs__action__Fibonacci_SendGoal_Request__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__Fibonacci_SendGoal_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_SendGoal_Request__Sequence * -test_msgs__action__Fibonacci_SendGoal_Request__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_SendGoal_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_SendGoal_Request__Sequence__destroy(test_msgs__action__Fibonacci_SendGoal_Request__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Request__Sequence__are_equal(const test_msgs__action__Fibonacci_SendGoal_Request__Sequence * lhs, const test_msgs__action__Fibonacci_SendGoal_Request__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Request__Sequence__copy( - const test_msgs__action__Fibonacci_SendGoal_Request__Sequence * input, - test_msgs__action__Fibonacci_SendGoal_Request__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__Fibonacci_SendGoal_Response - * )) before or use - * test_msgs__action__Fibonacci_SendGoal_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Response__init(test_msgs__action__Fibonacci_SendGoal_Response * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_SendGoal_Response__fini(test_msgs__action__Fibonacci_SendGoal_Response * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__Fibonacci_SendGoal_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_SendGoal_Response * -test_msgs__action__Fibonacci_SendGoal_Response__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * test_msgs__action__Fibonacci_SendGoal_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_SendGoal_Response__destroy(test_msgs__action__Fibonacci_SendGoal_Response * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Response__are_equal(const test_msgs__action__Fibonacci_SendGoal_Response * lhs, const test_msgs__action__Fibonacci_SendGoal_Response * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Response__copy( - const test_msgs__action__Fibonacci_SendGoal_Response * input, - test_msgs__action__Fibonacci_SendGoal_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__Fibonacci_SendGoal_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__Fibonacci_SendGoal_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__Fibonacci_SendGoal_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__Fibonacci_SendGoal_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__Fibonacci_SendGoal_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Response__Sequence__init(test_msgs__action__Fibonacci_SendGoal_Response__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_SendGoal_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_SendGoal_Response__Sequence__fini(test_msgs__action__Fibonacci_SendGoal_Response__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__Fibonacci_SendGoal_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_SendGoal_Response__Sequence * -test_msgs__action__Fibonacci_SendGoal_Response__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_SendGoal_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_SendGoal_Response__Sequence__destroy(test_msgs__action__Fibonacci_SendGoal_Response__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Response__Sequence__are_equal(const test_msgs__action__Fibonacci_SendGoal_Response__Sequence * lhs, const test_msgs__action__Fibonacci_SendGoal_Response__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Response__Sequence__copy( - const test_msgs__action__Fibonacci_SendGoal_Response__Sequence * input, - test_msgs__action__Fibonacci_SendGoal_Response__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__Fibonacci_SendGoal_Event - * )) before or use - * test_msgs__action__Fibonacci_SendGoal_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Event__init(test_msgs__action__Fibonacci_SendGoal_Event * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_SendGoal_Event__fini(test_msgs__action__Fibonacci_SendGoal_Event * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__Fibonacci_SendGoal_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_SendGoal_Event * -test_msgs__action__Fibonacci_SendGoal_Event__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * test_msgs__action__Fibonacci_SendGoal_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_SendGoal_Event__destroy(test_msgs__action__Fibonacci_SendGoal_Event * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Event__are_equal(const test_msgs__action__Fibonacci_SendGoal_Event * lhs, const test_msgs__action__Fibonacci_SendGoal_Event * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Event__copy( - const test_msgs__action__Fibonacci_SendGoal_Event * input, - test_msgs__action__Fibonacci_SendGoal_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__Fibonacci_SendGoal_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__Fibonacci_SendGoal_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__Fibonacci_SendGoal_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__Fibonacci_SendGoal_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__Fibonacci_SendGoal_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Event__Sequence__init(test_msgs__action__Fibonacci_SendGoal_Event__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_SendGoal_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_SendGoal_Event__Sequence__fini(test_msgs__action__Fibonacci_SendGoal_Event__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__Fibonacci_SendGoal_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_SendGoal_Event__Sequence * -test_msgs__action__Fibonacci_SendGoal_Event__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_SendGoal_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_SendGoal_Event__Sequence__destroy(test_msgs__action__Fibonacci_SendGoal_Event__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Event__Sequence__are_equal(const test_msgs__action__Fibonacci_SendGoal_Event__Sequence * lhs, const test_msgs__action__Fibonacci_SendGoal_Event__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_SendGoal_Event__Sequence__copy( - const test_msgs__action__Fibonacci_SendGoal_Event__Sequence * input, - test_msgs__action__Fibonacci_SendGoal_Event__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__Fibonacci_GetResult__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__Fibonacci_GetResult__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__Fibonacci_GetResult__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__Fibonacci_GetResult__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__Fibonacci_GetResult_Request - * )) before or use - * test_msgs__action__Fibonacci_GetResult_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Request__init(test_msgs__action__Fibonacci_GetResult_Request * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_GetResult_Request__fini(test_msgs__action__Fibonacci_GetResult_Request * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__Fibonacci_GetResult_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_GetResult_Request * -test_msgs__action__Fibonacci_GetResult_Request__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * test_msgs__action__Fibonacci_GetResult_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_GetResult_Request__destroy(test_msgs__action__Fibonacci_GetResult_Request * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Request__are_equal(const test_msgs__action__Fibonacci_GetResult_Request * lhs, const test_msgs__action__Fibonacci_GetResult_Request * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Request__copy( - const test_msgs__action__Fibonacci_GetResult_Request * input, - test_msgs__action__Fibonacci_GetResult_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__Fibonacci_GetResult_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__Fibonacci_GetResult_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__Fibonacci_GetResult_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__Fibonacci_GetResult_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__Fibonacci_GetResult_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Request__Sequence__init(test_msgs__action__Fibonacci_GetResult_Request__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_GetResult_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_GetResult_Request__Sequence__fini(test_msgs__action__Fibonacci_GetResult_Request__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__Fibonacci_GetResult_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_GetResult_Request__Sequence * -test_msgs__action__Fibonacci_GetResult_Request__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_GetResult_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_GetResult_Request__Sequence__destroy(test_msgs__action__Fibonacci_GetResult_Request__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Request__Sequence__are_equal(const test_msgs__action__Fibonacci_GetResult_Request__Sequence * lhs, const test_msgs__action__Fibonacci_GetResult_Request__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Request__Sequence__copy( - const test_msgs__action__Fibonacci_GetResult_Request__Sequence * input, - test_msgs__action__Fibonacci_GetResult_Request__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__Fibonacci_GetResult_Response - * )) before or use - * test_msgs__action__Fibonacci_GetResult_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Response__init(test_msgs__action__Fibonacci_GetResult_Response * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_GetResult_Response__fini(test_msgs__action__Fibonacci_GetResult_Response * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__Fibonacci_GetResult_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_GetResult_Response * -test_msgs__action__Fibonacci_GetResult_Response__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * test_msgs__action__Fibonacci_GetResult_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_GetResult_Response__destroy(test_msgs__action__Fibonacci_GetResult_Response * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Response__are_equal(const test_msgs__action__Fibonacci_GetResult_Response * lhs, const test_msgs__action__Fibonacci_GetResult_Response * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Response__copy( - const test_msgs__action__Fibonacci_GetResult_Response * input, - test_msgs__action__Fibonacci_GetResult_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__Fibonacci_GetResult_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__Fibonacci_GetResult_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__Fibonacci_GetResult_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__Fibonacci_GetResult_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__Fibonacci_GetResult_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Response__Sequence__init(test_msgs__action__Fibonacci_GetResult_Response__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_GetResult_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_GetResult_Response__Sequence__fini(test_msgs__action__Fibonacci_GetResult_Response__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__Fibonacci_GetResult_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_GetResult_Response__Sequence * -test_msgs__action__Fibonacci_GetResult_Response__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_GetResult_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_GetResult_Response__Sequence__destroy(test_msgs__action__Fibonacci_GetResult_Response__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Response__Sequence__are_equal(const test_msgs__action__Fibonacci_GetResult_Response__Sequence * lhs, const test_msgs__action__Fibonacci_GetResult_Response__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Response__Sequence__copy( - const test_msgs__action__Fibonacci_GetResult_Response__Sequence * input, - test_msgs__action__Fibonacci_GetResult_Response__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__Fibonacci_GetResult_Event - * )) before or use - * test_msgs__action__Fibonacci_GetResult_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Event__init(test_msgs__action__Fibonacci_GetResult_Event * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_GetResult_Event__fini(test_msgs__action__Fibonacci_GetResult_Event * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__Fibonacci_GetResult_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_GetResult_Event * -test_msgs__action__Fibonacci_GetResult_Event__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * test_msgs__action__Fibonacci_GetResult_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_GetResult_Event__destroy(test_msgs__action__Fibonacci_GetResult_Event * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Event__are_equal(const test_msgs__action__Fibonacci_GetResult_Event * lhs, const test_msgs__action__Fibonacci_GetResult_Event * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Event__copy( - const test_msgs__action__Fibonacci_GetResult_Event * input, - test_msgs__action__Fibonacci_GetResult_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__Fibonacci_GetResult_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__Fibonacci_GetResult_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__Fibonacci_GetResult_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__Fibonacci_GetResult_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__Fibonacci_GetResult_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Event__Sequence__init(test_msgs__action__Fibonacci_GetResult_Event__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_GetResult_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_GetResult_Event__Sequence__fini(test_msgs__action__Fibonacci_GetResult_Event__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__Fibonacci_GetResult_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_GetResult_Event__Sequence * -test_msgs__action__Fibonacci_GetResult_Event__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_GetResult_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_GetResult_Event__Sequence__destroy(test_msgs__action__Fibonacci_GetResult_Event__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Event__Sequence__are_equal(const test_msgs__action__Fibonacci_GetResult_Event__Sequence * lhs, const test_msgs__action__Fibonacci_GetResult_Event__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_GetResult_Event__Sequence__copy( - const test_msgs__action__Fibonacci_GetResult_Event__Sequence * input, - test_msgs__action__Fibonacci_GetResult_Event__Sequence * output); - -/// Initialize action/Fibonacci message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__Fibonacci_FeedbackMessage - * )) before or use - * test_msgs__action__Fibonacci_FeedbackMessage__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_FeedbackMessage__init(test_msgs__action__Fibonacci_FeedbackMessage * msg); - -/// Finalize action/Fibonacci message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_FeedbackMessage__fini(test_msgs__action__Fibonacci_FeedbackMessage * msg); - -/// Create action/Fibonacci message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__Fibonacci_FeedbackMessage__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_FeedbackMessage * -test_msgs__action__Fibonacci_FeedbackMessage__create(void); - -/// Destroy action/Fibonacci message. -/** - * It calls - * test_msgs__action__Fibonacci_FeedbackMessage__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_FeedbackMessage__destroy(test_msgs__action__Fibonacci_FeedbackMessage * msg); - -/// Check for action/Fibonacci message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_FeedbackMessage__are_equal(const test_msgs__action__Fibonacci_FeedbackMessage * lhs, const test_msgs__action__Fibonacci_FeedbackMessage * rhs); - -/// Copy a action/Fibonacci message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_FeedbackMessage__copy( - const test_msgs__action__Fibonacci_FeedbackMessage * input, - test_msgs__action__Fibonacci_FeedbackMessage * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__Fibonacci_FeedbackMessage__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__Fibonacci_FeedbackMessage__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__Fibonacci_FeedbackMessage__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__Fibonacci_FeedbackMessage__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/Fibonacci messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__Fibonacci_FeedbackMessage__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_FeedbackMessage__Sequence__init(test_msgs__action__Fibonacci_FeedbackMessage__Sequence * array, size_t size); - -/// Finalize array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_FeedbackMessage__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_FeedbackMessage__Sequence__fini(test_msgs__action__Fibonacci_FeedbackMessage__Sequence * array); - -/// Create array of action/Fibonacci messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__Fibonacci_FeedbackMessage__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__Fibonacci_FeedbackMessage__Sequence * -test_msgs__action__Fibonacci_FeedbackMessage__Sequence__create(size_t size); - -/// Destroy array of action/Fibonacci messages. -/** - * It calls - * test_msgs__action__Fibonacci_FeedbackMessage__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__Fibonacci_FeedbackMessage__Sequence__destroy(test_msgs__action__Fibonacci_FeedbackMessage__Sequence * array); - -/// Check for action/Fibonacci message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_FeedbackMessage__Sequence__are_equal(const test_msgs__action__Fibonacci_FeedbackMessage__Sequence * lhs, const test_msgs__action__Fibonacci_FeedbackMessage__Sequence * rhs); - -/// Copy an array of action/Fibonacci messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__Fibonacci_FeedbackMessage__Sequence__copy( - const test_msgs__action__Fibonacci_FeedbackMessage__Sequence * input, - test_msgs__action__Fibonacci_FeedbackMessage__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__ACTION__DETAIL__FIBONACCI__FUNCTIONS_H_ diff --git a/src/test_msgs/action/detail/fibonacci__rosidl_typesupport_introspection_c.h b/src/test_msgs/action/detail/fibonacci__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 216ccdd1f..000000000 --- a/src/test_msgs/action/detail/fibonacci__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,146 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:action/Fibonacci.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__ACTION__DETAIL__FIBONACCI__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__ACTION__DETAIL__FIBONACCI__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, Fibonacci_Goal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, Fibonacci_Result)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, Fibonacci_Feedback)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, Fibonacci_SendGoal_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, Fibonacci_SendGoal_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, Fibonacci_SendGoal_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, Fibonacci_SendGoal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, Fibonacci_GetResult_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, Fibonacci_GetResult_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, Fibonacci_GetResult_Event)(); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, Fibonacci_GetResult)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, Fibonacci_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__ACTION__DETAIL__FIBONACCI__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/action/detail/fibonacci__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/action/detail/fibonacci__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 7c170d614..000000000 --- a/src/test_msgs/action/detail/fibonacci__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,411 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:action/Fibonacci.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__ACTION__FIBONACCI__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__ACTION__FIBONACCI__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__Fibonacci_Goal( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__Fibonacci_Goal( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, Fibonacci_Goal)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__Fibonacci_Result( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__Fibonacci_Result( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, Fibonacci_Result)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__Fibonacci_Feedback( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__Fibonacci_Feedback( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, Fibonacci_Feedback)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__Fibonacci_SendGoal_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__Fibonacci_SendGoal_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, Fibonacci_SendGoal_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__Fibonacci_SendGoal_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__Fibonacci_SendGoal_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, Fibonacci_SendGoal_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__Fibonacci_SendGoal_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__Fibonacci_SendGoal_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, Fibonacci_SendGoal_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, Fibonacci_SendGoal)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__Fibonacci_GetResult_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__Fibonacci_GetResult_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, Fibonacci_GetResult_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__Fibonacci_GetResult_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__Fibonacci_GetResult_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, Fibonacci_GetResult_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__Fibonacci_GetResult_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__Fibonacci_GetResult_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, Fibonacci_GetResult_Event)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, Fibonacci_GetResult)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__Fibonacci_FeedbackMessage( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__Fibonacci_FeedbackMessage( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, Fibonacci_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__ACTION__FIBONACCI__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/action/detail/fibonacci__struct.h b/src/test_msgs/action/detail/fibonacci__struct.h deleted file mode 100755 index 483ae9242..000000000 --- a/src/test_msgs/action/detail/fibonacci__struct.h +++ /dev/null @@ -1,283 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:action/Fibonacci.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/action/fibonacci.h" - - -#ifndef TEST_MSGS__ACTION__DETAIL__FIBONACCI__STRUCT_H_ -#define TEST_MSGS__ACTION__DETAIL__FIBONACCI__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in action/Fibonacci in the package test_msgs. -typedef struct test_msgs__action__Fibonacci_Goal -{ - int32_t order; -} test_msgs__action__Fibonacci_Goal; - -// Struct for a sequence of test_msgs__action__Fibonacci_Goal. -typedef struct test_msgs__action__Fibonacci_Goal__Sequence -{ - test_msgs__action__Fibonacci_Goal * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__Fibonacci_Goal__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'sequence' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in action/Fibonacci in the package test_msgs. -typedef struct test_msgs__action__Fibonacci_Result -{ - rosidl_runtime_c__int32__Sequence sequence; -} test_msgs__action__Fibonacci_Result; - -// Struct for a sequence of test_msgs__action__Fibonacci_Result. -typedef struct test_msgs__action__Fibonacci_Result__Sequence -{ - test_msgs__action__Fibonacci_Result * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__Fibonacci_Result__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'sequence' -// already included above -// #include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in action/Fibonacci in the package test_msgs. -typedef struct test_msgs__action__Fibonacci_Feedback -{ - rosidl_runtime_c__int32__Sequence sequence; -} test_msgs__action__Fibonacci_Feedback; - -// Struct for a sequence of test_msgs__action__Fibonacci_Feedback. -typedef struct test_msgs__action__Fibonacci_Feedback__Sequence -{ - test_msgs__action__Fibonacci_Feedback * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__Fibonacci_Feedback__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -#include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'goal' -#include "test_msgs/action/detail/fibonacci__struct.h" - -/// Struct defined in action/Fibonacci in the package test_msgs. -typedef struct test_msgs__action__Fibonacci_SendGoal_Request -{ - unique_identifier_msgs__msg__UUID goal_id; - test_msgs__action__Fibonacci_Goal goal; -} test_msgs__action__Fibonacci_SendGoal_Request; - -// Struct for a sequence of test_msgs__action__Fibonacci_SendGoal_Request. -typedef struct test_msgs__action__Fibonacci_SendGoal_Request__Sequence -{ - test_msgs__action__Fibonacci_SendGoal_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__Fibonacci_SendGoal_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'stamp' -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in action/Fibonacci in the package test_msgs. -typedef struct test_msgs__action__Fibonacci_SendGoal_Response -{ - bool accepted; - builtin_interfaces__msg__Time stamp; -} test_msgs__action__Fibonacci_SendGoal_Response; - -// Struct for a sequence of test_msgs__action__Fibonacci_SendGoal_Response. -typedef struct test_msgs__action__Fibonacci_SendGoal_Response__Sequence -{ - test_msgs__action__Fibonacci_SendGoal_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__Fibonacci_SendGoal_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - test_msgs__action__Fibonacci_SendGoal_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - test_msgs__action__Fibonacci_SendGoal_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/Fibonacci in the package test_msgs. -typedef struct test_msgs__action__Fibonacci_SendGoal_Event -{ - service_msgs__msg__ServiceEventInfo info; - test_msgs__action__Fibonacci_SendGoal_Request__Sequence request; - test_msgs__action__Fibonacci_SendGoal_Response__Sequence response; -} test_msgs__action__Fibonacci_SendGoal_Event; - -// Struct for a sequence of test_msgs__action__Fibonacci_SendGoal_Event. -typedef struct test_msgs__action__Fibonacci_SendGoal_Event__Sequence -{ - test_msgs__action__Fibonacci_SendGoal_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__Fibonacci_SendGoal_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" - -/// Struct defined in action/Fibonacci in the package test_msgs. -typedef struct test_msgs__action__Fibonacci_GetResult_Request -{ - unique_identifier_msgs__msg__UUID goal_id; -} test_msgs__action__Fibonacci_GetResult_Request; - -// Struct for a sequence of test_msgs__action__Fibonacci_GetResult_Request. -typedef struct test_msgs__action__Fibonacci_GetResult_Request__Sequence -{ - test_msgs__action__Fibonacci_GetResult_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__Fibonacci_GetResult_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'result' -// already included above -// #include "test_msgs/action/detail/fibonacci__struct.h" - -/// Struct defined in action/Fibonacci in the package test_msgs. -typedef struct test_msgs__action__Fibonacci_GetResult_Response -{ - int8_t status; - test_msgs__action__Fibonacci_Result result; -} test_msgs__action__Fibonacci_GetResult_Response; - -// Struct for a sequence of test_msgs__action__Fibonacci_GetResult_Response. -typedef struct test_msgs__action__Fibonacci_GetResult_Response__Sequence -{ - test_msgs__action__Fibonacci_GetResult_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__Fibonacci_GetResult_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -// already included above -// #include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - test_msgs__action__Fibonacci_GetResult_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - test_msgs__action__Fibonacci_GetResult_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/Fibonacci in the package test_msgs. -typedef struct test_msgs__action__Fibonacci_GetResult_Event -{ - service_msgs__msg__ServiceEventInfo info; - test_msgs__action__Fibonacci_GetResult_Request__Sequence request; - test_msgs__action__Fibonacci_GetResult_Response__Sequence response; -} test_msgs__action__Fibonacci_GetResult_Event; - -// Struct for a sequence of test_msgs__action__Fibonacci_GetResult_Event. -typedef struct test_msgs__action__Fibonacci_GetResult_Event__Sequence -{ - test_msgs__action__Fibonacci_GetResult_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__Fibonacci_GetResult_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'feedback' -// already included above -// #include "test_msgs/action/detail/fibonacci__struct.h" - -/// Struct defined in action/Fibonacci in the package test_msgs. -typedef struct test_msgs__action__Fibonacci_FeedbackMessage -{ - unique_identifier_msgs__msg__UUID goal_id; - test_msgs__action__Fibonacci_Feedback feedback; -} test_msgs__action__Fibonacci_FeedbackMessage; - -// Struct for a sequence of test_msgs__action__Fibonacci_FeedbackMessage. -typedef struct test_msgs__action__Fibonacci_FeedbackMessage__Sequence -{ - test_msgs__action__Fibonacci_FeedbackMessage * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__Fibonacci_FeedbackMessage__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__ACTION__DETAIL__FIBONACCI__STRUCT_H_ diff --git a/src/test_msgs/action/detail/fibonacci__type_support.h b/src/test_msgs/action/detail/fibonacci__type_support.h deleted file mode 100755 index ca462aa8a..000000000 --- a/src/test_msgs/action/detail/fibonacci__type_support.h +++ /dev/null @@ -1,242 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:action/Fibonacci.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/action/fibonacci.h" - - -#ifndef TEST_MSGS__ACTION__DETAIL__FIBONACCI__TYPE_SUPPORT_H_ -#define TEST_MSGS__ACTION__DETAIL__FIBONACCI__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/action_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_action_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__ACTION_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci -)(void); - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_Goal -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_Result -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_Feedback -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_SendGoal_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_SendGoal_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_SendGoal_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_SendGoal -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_SendGoal -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_SendGoal -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_GetResult_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_GetResult_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_GetResult_Event -)(void); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_GetResult -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_GetResult -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_GetResult -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - Fibonacci_FeedbackMessage -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__ACTION__DETAIL__FIBONACCI__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/action/detail/nested_message__functions.h b/src/test_msgs/action/detail/nested_message__functions.h deleted file mode 100755 index 737123220..000000000 --- a/src/test_msgs/action/detail/nested_message__functions.h +++ /dev/null @@ -1,1866 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:action/NestedMessage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/action/nested_message.h" - - -#ifndef TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__FUNCTIONS_H_ -#define TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/action/detail/nested_message__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__NestedMessage__get_type_hash( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__NestedMessage__get_type_description( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__NestedMessage__get_individual_type_description_source( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__NestedMessage__get_type_description_sources( - const rosidl_action_type_support_t * type_support); - -/// Initialize action/NestedMessage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__NestedMessage_Goal - * )) before or use - * test_msgs__action__NestedMessage_Goal__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Goal__init(test_msgs__action__NestedMessage_Goal * msg); - -/// Finalize action/NestedMessage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_Goal__fini(test_msgs__action__NestedMessage_Goal * msg); - -/// Create action/NestedMessage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__NestedMessage_Goal__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_Goal * -test_msgs__action__NestedMessage_Goal__create(void); - -/// Destroy action/NestedMessage message. -/** - * It calls - * test_msgs__action__NestedMessage_Goal__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_Goal__destroy(test_msgs__action__NestedMessage_Goal * msg); - -/// Check for action/NestedMessage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Goal__are_equal(const test_msgs__action__NestedMessage_Goal * lhs, const test_msgs__action__NestedMessage_Goal * rhs); - -/// Copy a action/NestedMessage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Goal__copy( - const test_msgs__action__NestedMessage_Goal * input, - test_msgs__action__NestedMessage_Goal * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__NestedMessage_Goal__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__NestedMessage_Goal__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__NestedMessage_Goal__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__NestedMessage_Goal__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/NestedMessage messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__NestedMessage_Goal__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Goal__Sequence__init(test_msgs__action__NestedMessage_Goal__Sequence * array, size_t size); - -/// Finalize array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_Goal__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_Goal__Sequence__fini(test_msgs__action__NestedMessage_Goal__Sequence * array); - -/// Create array of action/NestedMessage messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__NestedMessage_Goal__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_Goal__Sequence * -test_msgs__action__NestedMessage_Goal__Sequence__create(size_t size); - -/// Destroy array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_Goal__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_Goal__Sequence__destroy(test_msgs__action__NestedMessage_Goal__Sequence * array); - -/// Check for action/NestedMessage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Goal__Sequence__are_equal(const test_msgs__action__NestedMessage_Goal__Sequence * lhs, const test_msgs__action__NestedMessage_Goal__Sequence * rhs); - -/// Copy an array of action/NestedMessage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Goal__Sequence__copy( - const test_msgs__action__NestedMessage_Goal__Sequence * input, - test_msgs__action__NestedMessage_Goal__Sequence * output); - -/// Initialize action/NestedMessage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__NestedMessage_Result - * )) before or use - * test_msgs__action__NestedMessage_Result__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Result__init(test_msgs__action__NestedMessage_Result * msg); - -/// Finalize action/NestedMessage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_Result__fini(test_msgs__action__NestedMessage_Result * msg); - -/// Create action/NestedMessage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__NestedMessage_Result__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_Result * -test_msgs__action__NestedMessage_Result__create(void); - -/// Destroy action/NestedMessage message. -/** - * It calls - * test_msgs__action__NestedMessage_Result__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_Result__destroy(test_msgs__action__NestedMessage_Result * msg); - -/// Check for action/NestedMessage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Result__are_equal(const test_msgs__action__NestedMessage_Result * lhs, const test_msgs__action__NestedMessage_Result * rhs); - -/// Copy a action/NestedMessage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Result__copy( - const test_msgs__action__NestedMessage_Result * input, - test_msgs__action__NestedMessage_Result * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__NestedMessage_Result__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__NestedMessage_Result__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__NestedMessage_Result__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__NestedMessage_Result__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/NestedMessage messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__NestedMessage_Result__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Result__Sequence__init(test_msgs__action__NestedMessage_Result__Sequence * array, size_t size); - -/// Finalize array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_Result__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_Result__Sequence__fini(test_msgs__action__NestedMessage_Result__Sequence * array); - -/// Create array of action/NestedMessage messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__NestedMessage_Result__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_Result__Sequence * -test_msgs__action__NestedMessage_Result__Sequence__create(size_t size); - -/// Destroy array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_Result__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_Result__Sequence__destroy(test_msgs__action__NestedMessage_Result__Sequence * array); - -/// Check for action/NestedMessage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Result__Sequence__are_equal(const test_msgs__action__NestedMessage_Result__Sequence * lhs, const test_msgs__action__NestedMessage_Result__Sequence * rhs); - -/// Copy an array of action/NestedMessage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Result__Sequence__copy( - const test_msgs__action__NestedMessage_Result__Sequence * input, - test_msgs__action__NestedMessage_Result__Sequence * output); - -/// Initialize action/NestedMessage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__NestedMessage_Feedback - * )) before or use - * test_msgs__action__NestedMessage_Feedback__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Feedback__init(test_msgs__action__NestedMessage_Feedback * msg); - -/// Finalize action/NestedMessage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_Feedback__fini(test_msgs__action__NestedMessage_Feedback * msg); - -/// Create action/NestedMessage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__NestedMessage_Feedback__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_Feedback * -test_msgs__action__NestedMessage_Feedback__create(void); - -/// Destroy action/NestedMessage message. -/** - * It calls - * test_msgs__action__NestedMessage_Feedback__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_Feedback__destroy(test_msgs__action__NestedMessage_Feedback * msg); - -/// Check for action/NestedMessage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Feedback__are_equal(const test_msgs__action__NestedMessage_Feedback * lhs, const test_msgs__action__NestedMessage_Feedback * rhs); - -/// Copy a action/NestedMessage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Feedback__copy( - const test_msgs__action__NestedMessage_Feedback * input, - test_msgs__action__NestedMessage_Feedback * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__NestedMessage_Feedback__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__NestedMessage_Feedback__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__NestedMessage_Feedback__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__NestedMessage_Feedback__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/NestedMessage messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__NestedMessage_Feedback__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Feedback__Sequence__init(test_msgs__action__NestedMessage_Feedback__Sequence * array, size_t size); - -/// Finalize array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_Feedback__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_Feedback__Sequence__fini(test_msgs__action__NestedMessage_Feedback__Sequence * array); - -/// Create array of action/NestedMessage messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__NestedMessage_Feedback__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_Feedback__Sequence * -test_msgs__action__NestedMessage_Feedback__Sequence__create(size_t size); - -/// Destroy array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_Feedback__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_Feedback__Sequence__destroy(test_msgs__action__NestedMessage_Feedback__Sequence * array); - -/// Check for action/NestedMessage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Feedback__Sequence__are_equal(const test_msgs__action__NestedMessage_Feedback__Sequence * lhs, const test_msgs__action__NestedMessage_Feedback__Sequence * rhs); - -/// Copy an array of action/NestedMessage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_Feedback__Sequence__copy( - const test_msgs__action__NestedMessage_Feedback__Sequence * input, - test_msgs__action__NestedMessage_Feedback__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__NestedMessage_SendGoal__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__NestedMessage_SendGoal__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__NestedMessage_SendGoal__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__NestedMessage_SendGoal__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/NestedMessage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__NestedMessage_SendGoal_Request - * )) before or use - * test_msgs__action__NestedMessage_SendGoal_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Request__init(test_msgs__action__NestedMessage_SendGoal_Request * msg); - -/// Finalize action/NestedMessage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_SendGoal_Request__fini(test_msgs__action__NestedMessage_SendGoal_Request * msg); - -/// Create action/NestedMessage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__NestedMessage_SendGoal_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_SendGoal_Request * -test_msgs__action__NestedMessage_SendGoal_Request__create(void); - -/// Destroy action/NestedMessage message. -/** - * It calls - * test_msgs__action__NestedMessage_SendGoal_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_SendGoal_Request__destroy(test_msgs__action__NestedMessage_SendGoal_Request * msg); - -/// Check for action/NestedMessage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Request__are_equal(const test_msgs__action__NestedMessage_SendGoal_Request * lhs, const test_msgs__action__NestedMessage_SendGoal_Request * rhs); - -/// Copy a action/NestedMessage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Request__copy( - const test_msgs__action__NestedMessage_SendGoal_Request * input, - test_msgs__action__NestedMessage_SendGoal_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__NestedMessage_SendGoal_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__NestedMessage_SendGoal_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__NestedMessage_SendGoal_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__NestedMessage_SendGoal_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/NestedMessage messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__NestedMessage_SendGoal_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Request__Sequence__init(test_msgs__action__NestedMessage_SendGoal_Request__Sequence * array, size_t size); - -/// Finalize array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_SendGoal_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_SendGoal_Request__Sequence__fini(test_msgs__action__NestedMessage_SendGoal_Request__Sequence * array); - -/// Create array of action/NestedMessage messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__NestedMessage_SendGoal_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_SendGoal_Request__Sequence * -test_msgs__action__NestedMessage_SendGoal_Request__Sequence__create(size_t size); - -/// Destroy array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_SendGoal_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_SendGoal_Request__Sequence__destroy(test_msgs__action__NestedMessage_SendGoal_Request__Sequence * array); - -/// Check for action/NestedMessage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Request__Sequence__are_equal(const test_msgs__action__NestedMessage_SendGoal_Request__Sequence * lhs, const test_msgs__action__NestedMessage_SendGoal_Request__Sequence * rhs); - -/// Copy an array of action/NestedMessage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Request__Sequence__copy( - const test_msgs__action__NestedMessage_SendGoal_Request__Sequence * input, - test_msgs__action__NestedMessage_SendGoal_Request__Sequence * output); - -/// Initialize action/NestedMessage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__NestedMessage_SendGoal_Response - * )) before or use - * test_msgs__action__NestedMessage_SendGoal_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Response__init(test_msgs__action__NestedMessage_SendGoal_Response * msg); - -/// Finalize action/NestedMessage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_SendGoal_Response__fini(test_msgs__action__NestedMessage_SendGoal_Response * msg); - -/// Create action/NestedMessage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__NestedMessage_SendGoal_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_SendGoal_Response * -test_msgs__action__NestedMessage_SendGoal_Response__create(void); - -/// Destroy action/NestedMessage message. -/** - * It calls - * test_msgs__action__NestedMessage_SendGoal_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_SendGoal_Response__destroy(test_msgs__action__NestedMessage_SendGoal_Response * msg); - -/// Check for action/NestedMessage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Response__are_equal(const test_msgs__action__NestedMessage_SendGoal_Response * lhs, const test_msgs__action__NestedMessage_SendGoal_Response * rhs); - -/// Copy a action/NestedMessage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Response__copy( - const test_msgs__action__NestedMessage_SendGoal_Response * input, - test_msgs__action__NestedMessage_SendGoal_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__NestedMessage_SendGoal_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__NestedMessage_SendGoal_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__NestedMessage_SendGoal_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__NestedMessage_SendGoal_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/NestedMessage messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__NestedMessage_SendGoal_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Response__Sequence__init(test_msgs__action__NestedMessage_SendGoal_Response__Sequence * array, size_t size); - -/// Finalize array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_SendGoal_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_SendGoal_Response__Sequence__fini(test_msgs__action__NestedMessage_SendGoal_Response__Sequence * array); - -/// Create array of action/NestedMessage messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__NestedMessage_SendGoal_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_SendGoal_Response__Sequence * -test_msgs__action__NestedMessage_SendGoal_Response__Sequence__create(size_t size); - -/// Destroy array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_SendGoal_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_SendGoal_Response__Sequence__destroy(test_msgs__action__NestedMessage_SendGoal_Response__Sequence * array); - -/// Check for action/NestedMessage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Response__Sequence__are_equal(const test_msgs__action__NestedMessage_SendGoal_Response__Sequence * lhs, const test_msgs__action__NestedMessage_SendGoal_Response__Sequence * rhs); - -/// Copy an array of action/NestedMessage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Response__Sequence__copy( - const test_msgs__action__NestedMessage_SendGoal_Response__Sequence * input, - test_msgs__action__NestedMessage_SendGoal_Response__Sequence * output); - -/// Initialize action/NestedMessage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__NestedMessage_SendGoal_Event - * )) before or use - * test_msgs__action__NestedMessage_SendGoal_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Event__init(test_msgs__action__NestedMessage_SendGoal_Event * msg); - -/// Finalize action/NestedMessage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_SendGoal_Event__fini(test_msgs__action__NestedMessage_SendGoal_Event * msg); - -/// Create action/NestedMessage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__NestedMessage_SendGoal_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_SendGoal_Event * -test_msgs__action__NestedMessage_SendGoal_Event__create(void); - -/// Destroy action/NestedMessage message. -/** - * It calls - * test_msgs__action__NestedMessage_SendGoal_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_SendGoal_Event__destroy(test_msgs__action__NestedMessage_SendGoal_Event * msg); - -/// Check for action/NestedMessage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Event__are_equal(const test_msgs__action__NestedMessage_SendGoal_Event * lhs, const test_msgs__action__NestedMessage_SendGoal_Event * rhs); - -/// Copy a action/NestedMessage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Event__copy( - const test_msgs__action__NestedMessage_SendGoal_Event * input, - test_msgs__action__NestedMessage_SendGoal_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__NestedMessage_SendGoal_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__NestedMessage_SendGoal_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__NestedMessage_SendGoal_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__NestedMessage_SendGoal_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/NestedMessage messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__NestedMessage_SendGoal_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Event__Sequence__init(test_msgs__action__NestedMessage_SendGoal_Event__Sequence * array, size_t size); - -/// Finalize array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_SendGoal_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_SendGoal_Event__Sequence__fini(test_msgs__action__NestedMessage_SendGoal_Event__Sequence * array); - -/// Create array of action/NestedMessage messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__NestedMessage_SendGoal_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_SendGoal_Event__Sequence * -test_msgs__action__NestedMessage_SendGoal_Event__Sequence__create(size_t size); - -/// Destroy array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_SendGoal_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_SendGoal_Event__Sequence__destroy(test_msgs__action__NestedMessage_SendGoal_Event__Sequence * array); - -/// Check for action/NestedMessage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Event__Sequence__are_equal(const test_msgs__action__NestedMessage_SendGoal_Event__Sequence * lhs, const test_msgs__action__NestedMessage_SendGoal_Event__Sequence * rhs); - -/// Copy an array of action/NestedMessage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_SendGoal_Event__Sequence__copy( - const test_msgs__action__NestedMessage_SendGoal_Event__Sequence * input, - test_msgs__action__NestedMessage_SendGoal_Event__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__NestedMessage_GetResult__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__NestedMessage_GetResult__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__NestedMessage_GetResult__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__NestedMessage_GetResult__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/NestedMessage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__NestedMessage_GetResult_Request - * )) before or use - * test_msgs__action__NestedMessage_GetResult_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Request__init(test_msgs__action__NestedMessage_GetResult_Request * msg); - -/// Finalize action/NestedMessage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_GetResult_Request__fini(test_msgs__action__NestedMessage_GetResult_Request * msg); - -/// Create action/NestedMessage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__NestedMessage_GetResult_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_GetResult_Request * -test_msgs__action__NestedMessage_GetResult_Request__create(void); - -/// Destroy action/NestedMessage message. -/** - * It calls - * test_msgs__action__NestedMessage_GetResult_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_GetResult_Request__destroy(test_msgs__action__NestedMessage_GetResult_Request * msg); - -/// Check for action/NestedMessage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Request__are_equal(const test_msgs__action__NestedMessage_GetResult_Request * lhs, const test_msgs__action__NestedMessage_GetResult_Request * rhs); - -/// Copy a action/NestedMessage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Request__copy( - const test_msgs__action__NestedMessage_GetResult_Request * input, - test_msgs__action__NestedMessage_GetResult_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__NestedMessage_GetResult_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__NestedMessage_GetResult_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__NestedMessage_GetResult_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__NestedMessage_GetResult_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/NestedMessage messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__NestedMessage_GetResult_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Request__Sequence__init(test_msgs__action__NestedMessage_GetResult_Request__Sequence * array, size_t size); - -/// Finalize array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_GetResult_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_GetResult_Request__Sequence__fini(test_msgs__action__NestedMessage_GetResult_Request__Sequence * array); - -/// Create array of action/NestedMessage messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__NestedMessage_GetResult_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_GetResult_Request__Sequence * -test_msgs__action__NestedMessage_GetResult_Request__Sequence__create(size_t size); - -/// Destroy array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_GetResult_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_GetResult_Request__Sequence__destroy(test_msgs__action__NestedMessage_GetResult_Request__Sequence * array); - -/// Check for action/NestedMessage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Request__Sequence__are_equal(const test_msgs__action__NestedMessage_GetResult_Request__Sequence * lhs, const test_msgs__action__NestedMessage_GetResult_Request__Sequence * rhs); - -/// Copy an array of action/NestedMessage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Request__Sequence__copy( - const test_msgs__action__NestedMessage_GetResult_Request__Sequence * input, - test_msgs__action__NestedMessage_GetResult_Request__Sequence * output); - -/// Initialize action/NestedMessage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__NestedMessage_GetResult_Response - * )) before or use - * test_msgs__action__NestedMessage_GetResult_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Response__init(test_msgs__action__NestedMessage_GetResult_Response * msg); - -/// Finalize action/NestedMessage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_GetResult_Response__fini(test_msgs__action__NestedMessage_GetResult_Response * msg); - -/// Create action/NestedMessage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__NestedMessage_GetResult_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_GetResult_Response * -test_msgs__action__NestedMessage_GetResult_Response__create(void); - -/// Destroy action/NestedMessage message. -/** - * It calls - * test_msgs__action__NestedMessage_GetResult_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_GetResult_Response__destroy(test_msgs__action__NestedMessage_GetResult_Response * msg); - -/// Check for action/NestedMessage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Response__are_equal(const test_msgs__action__NestedMessage_GetResult_Response * lhs, const test_msgs__action__NestedMessage_GetResult_Response * rhs); - -/// Copy a action/NestedMessage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Response__copy( - const test_msgs__action__NestedMessage_GetResult_Response * input, - test_msgs__action__NestedMessage_GetResult_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__NestedMessage_GetResult_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__NestedMessage_GetResult_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__NestedMessage_GetResult_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__NestedMessage_GetResult_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/NestedMessage messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__NestedMessage_GetResult_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Response__Sequence__init(test_msgs__action__NestedMessage_GetResult_Response__Sequence * array, size_t size); - -/// Finalize array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_GetResult_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_GetResult_Response__Sequence__fini(test_msgs__action__NestedMessage_GetResult_Response__Sequence * array); - -/// Create array of action/NestedMessage messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__NestedMessage_GetResult_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_GetResult_Response__Sequence * -test_msgs__action__NestedMessage_GetResult_Response__Sequence__create(size_t size); - -/// Destroy array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_GetResult_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_GetResult_Response__Sequence__destroy(test_msgs__action__NestedMessage_GetResult_Response__Sequence * array); - -/// Check for action/NestedMessage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Response__Sequence__are_equal(const test_msgs__action__NestedMessage_GetResult_Response__Sequence * lhs, const test_msgs__action__NestedMessage_GetResult_Response__Sequence * rhs); - -/// Copy an array of action/NestedMessage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Response__Sequence__copy( - const test_msgs__action__NestedMessage_GetResult_Response__Sequence * input, - test_msgs__action__NestedMessage_GetResult_Response__Sequence * output); - -/// Initialize action/NestedMessage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__NestedMessage_GetResult_Event - * )) before or use - * test_msgs__action__NestedMessage_GetResult_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Event__init(test_msgs__action__NestedMessage_GetResult_Event * msg); - -/// Finalize action/NestedMessage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_GetResult_Event__fini(test_msgs__action__NestedMessage_GetResult_Event * msg); - -/// Create action/NestedMessage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__NestedMessage_GetResult_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_GetResult_Event * -test_msgs__action__NestedMessage_GetResult_Event__create(void); - -/// Destroy action/NestedMessage message. -/** - * It calls - * test_msgs__action__NestedMessage_GetResult_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_GetResult_Event__destroy(test_msgs__action__NestedMessage_GetResult_Event * msg); - -/// Check for action/NestedMessage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Event__are_equal(const test_msgs__action__NestedMessage_GetResult_Event * lhs, const test_msgs__action__NestedMessage_GetResult_Event * rhs); - -/// Copy a action/NestedMessage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Event__copy( - const test_msgs__action__NestedMessage_GetResult_Event * input, - test_msgs__action__NestedMessage_GetResult_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__NestedMessage_GetResult_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__NestedMessage_GetResult_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__NestedMessage_GetResult_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__NestedMessage_GetResult_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/NestedMessage messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__NestedMessage_GetResult_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Event__Sequence__init(test_msgs__action__NestedMessage_GetResult_Event__Sequence * array, size_t size); - -/// Finalize array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_GetResult_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_GetResult_Event__Sequence__fini(test_msgs__action__NestedMessage_GetResult_Event__Sequence * array); - -/// Create array of action/NestedMessage messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__NestedMessage_GetResult_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_GetResult_Event__Sequence * -test_msgs__action__NestedMessage_GetResult_Event__Sequence__create(size_t size); - -/// Destroy array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_GetResult_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_GetResult_Event__Sequence__destroy(test_msgs__action__NestedMessage_GetResult_Event__Sequence * array); - -/// Check for action/NestedMessage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Event__Sequence__are_equal(const test_msgs__action__NestedMessage_GetResult_Event__Sequence * lhs, const test_msgs__action__NestedMessage_GetResult_Event__Sequence * rhs); - -/// Copy an array of action/NestedMessage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_GetResult_Event__Sequence__copy( - const test_msgs__action__NestedMessage_GetResult_Event__Sequence * input, - test_msgs__action__NestedMessage_GetResult_Event__Sequence * output); - -/// Initialize action/NestedMessage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__action__NestedMessage_FeedbackMessage - * )) before or use - * test_msgs__action__NestedMessage_FeedbackMessage__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_FeedbackMessage__init(test_msgs__action__NestedMessage_FeedbackMessage * msg); - -/// Finalize action/NestedMessage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_FeedbackMessage__fini(test_msgs__action__NestedMessage_FeedbackMessage * msg); - -/// Create action/NestedMessage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__action__NestedMessage_FeedbackMessage__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_FeedbackMessage * -test_msgs__action__NestedMessage_FeedbackMessage__create(void); - -/// Destroy action/NestedMessage message. -/** - * It calls - * test_msgs__action__NestedMessage_FeedbackMessage__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_FeedbackMessage__destroy(test_msgs__action__NestedMessage_FeedbackMessage * msg); - -/// Check for action/NestedMessage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_FeedbackMessage__are_equal(const test_msgs__action__NestedMessage_FeedbackMessage * lhs, const test_msgs__action__NestedMessage_FeedbackMessage * rhs); - -/// Copy a action/NestedMessage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_FeedbackMessage__copy( - const test_msgs__action__NestedMessage_FeedbackMessage * input, - test_msgs__action__NestedMessage_FeedbackMessage * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__action__NestedMessage_FeedbackMessage__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__action__NestedMessage_FeedbackMessage__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__action__NestedMessage_FeedbackMessage__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__action__NestedMessage_FeedbackMessage__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/NestedMessage messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__action__NestedMessage_FeedbackMessage__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_FeedbackMessage__Sequence__init(test_msgs__action__NestedMessage_FeedbackMessage__Sequence * array, size_t size); - -/// Finalize array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_FeedbackMessage__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_FeedbackMessage__Sequence__fini(test_msgs__action__NestedMessage_FeedbackMessage__Sequence * array); - -/// Create array of action/NestedMessage messages. -/** - * It allocates the memory for the array and calls - * test_msgs__action__NestedMessage_FeedbackMessage__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__action__NestedMessage_FeedbackMessage__Sequence * -test_msgs__action__NestedMessage_FeedbackMessage__Sequence__create(size_t size); - -/// Destroy array of action/NestedMessage messages. -/** - * It calls - * test_msgs__action__NestedMessage_FeedbackMessage__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__action__NestedMessage_FeedbackMessage__Sequence__destroy(test_msgs__action__NestedMessage_FeedbackMessage__Sequence * array); - -/// Check for action/NestedMessage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_FeedbackMessage__Sequence__are_equal(const test_msgs__action__NestedMessage_FeedbackMessage__Sequence * lhs, const test_msgs__action__NestedMessage_FeedbackMessage__Sequence * rhs); - -/// Copy an array of action/NestedMessage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__action__NestedMessage_FeedbackMessage__Sequence__copy( - const test_msgs__action__NestedMessage_FeedbackMessage__Sequence * input, - test_msgs__action__NestedMessage_FeedbackMessage__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__FUNCTIONS_H_ diff --git a/src/test_msgs/action/detail/nested_message__rosidl_typesupport_introspection_c.h b/src/test_msgs/action/detail/nested_message__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 79eddeff8..000000000 --- a/src/test_msgs/action/detail/nested_message__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,146 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:action/NestedMessage.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, NestedMessage_Goal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, NestedMessage_Result)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, NestedMessage_Feedback)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, NestedMessage_SendGoal_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, NestedMessage_SendGoal_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, NestedMessage_SendGoal_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, NestedMessage_SendGoal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, NestedMessage_GetResult_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, NestedMessage_GetResult_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, NestedMessage_GetResult_Event)(); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, NestedMessage_GetResult)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, action, NestedMessage_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/action/detail/nested_message__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/action/detail/nested_message__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 63bdabb62..000000000 --- a/src/test_msgs/action/detail/nested_message__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,411 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:action/NestedMessage.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__ACTION__NESTED_MESSAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__ACTION__NESTED_MESSAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__NestedMessage_Goal( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__NestedMessage_Goal( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, NestedMessage_Goal)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__NestedMessage_Result( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__NestedMessage_Result( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, NestedMessage_Result)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__NestedMessage_Feedback( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__NestedMessage_Feedback( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, NestedMessage_Feedback)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__NestedMessage_SendGoal_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__NestedMessage_SendGoal_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, NestedMessage_SendGoal_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__NestedMessage_SendGoal_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__NestedMessage_SendGoal_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, NestedMessage_SendGoal_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__NestedMessage_SendGoal_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__NestedMessage_SendGoal_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, NestedMessage_SendGoal_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, NestedMessage_SendGoal)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__NestedMessage_GetResult_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__NestedMessage_GetResult_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, NestedMessage_GetResult_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__NestedMessage_GetResult_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__NestedMessage_GetResult_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, NestedMessage_GetResult_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__NestedMessage_GetResult_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__NestedMessage_GetResult_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, NestedMessage_GetResult_Event)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, NestedMessage_GetResult)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__action__NestedMessage_FeedbackMessage( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__action__NestedMessage_FeedbackMessage( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, action, NestedMessage_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__ACTION__NESTED_MESSAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/action/detail/nested_message__struct.h b/src/test_msgs/action/detail/nested_message__struct.h deleted file mode 100755 index bb6c4a256..000000000 --- a/src/test_msgs/action/detail/nested_message__struct.h +++ /dev/null @@ -1,311 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:action/NestedMessage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/action/nested_message.h" - - -#ifndef TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__STRUCT_H_ -#define TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'nested_field_no_pkg' -#include "test_msgs/msg/detail/builtins__struct.h" -// Member 'nested_field' -#include "test_msgs/msg/detail/basic_types__struct.h" -// Member 'nested_different_pkg' -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in action/NestedMessage in the package test_msgs. -typedef struct test_msgs__action__NestedMessage_Goal -{ - test_msgs__msg__Builtins nested_field_no_pkg; - test_msgs__msg__BasicTypes nested_field; - builtin_interfaces__msg__Time nested_different_pkg; -} test_msgs__action__NestedMessage_Goal; - -// Struct for a sequence of test_msgs__action__NestedMessage_Goal. -typedef struct test_msgs__action__NestedMessage_Goal__Sequence -{ - test_msgs__action__NestedMessage_Goal * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__NestedMessage_Goal__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'nested_field_no_pkg' -// already included above -// #include "test_msgs/msg/detail/builtins__struct.h" -// Member 'nested_field' -// already included above -// #include "test_msgs/msg/detail/basic_types__struct.h" -// Member 'nested_different_pkg' -// already included above -// #include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in action/NestedMessage in the package test_msgs. -typedef struct test_msgs__action__NestedMessage_Result -{ - test_msgs__msg__Builtins nested_field_no_pkg; - test_msgs__msg__BasicTypes nested_field; - builtin_interfaces__msg__Time nested_different_pkg; -} test_msgs__action__NestedMessage_Result; - -// Struct for a sequence of test_msgs__action__NestedMessage_Result. -typedef struct test_msgs__action__NestedMessage_Result__Sequence -{ - test_msgs__action__NestedMessage_Result * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__NestedMessage_Result__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'nested_field_no_pkg' -// already included above -// #include "test_msgs/msg/detail/builtins__struct.h" -// Member 'nested_field' -// already included above -// #include "test_msgs/msg/detail/basic_types__struct.h" -// Member 'nested_different_pkg' -// already included above -// #include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in action/NestedMessage in the package test_msgs. -typedef struct test_msgs__action__NestedMessage_Feedback -{ - test_msgs__msg__Builtins nested_field_no_pkg; - test_msgs__msg__BasicTypes nested_field; - builtin_interfaces__msg__Time nested_different_pkg; -} test_msgs__action__NestedMessage_Feedback; - -// Struct for a sequence of test_msgs__action__NestedMessage_Feedback. -typedef struct test_msgs__action__NestedMessage_Feedback__Sequence -{ - test_msgs__action__NestedMessage_Feedback * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__NestedMessage_Feedback__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -#include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'goal' -#include "test_msgs/action/detail/nested_message__struct.h" - -/// Struct defined in action/NestedMessage in the package test_msgs. -typedef struct test_msgs__action__NestedMessage_SendGoal_Request -{ - unique_identifier_msgs__msg__UUID goal_id; - test_msgs__action__NestedMessage_Goal goal; -} test_msgs__action__NestedMessage_SendGoal_Request; - -// Struct for a sequence of test_msgs__action__NestedMessage_SendGoal_Request. -typedef struct test_msgs__action__NestedMessage_SendGoal_Request__Sequence -{ - test_msgs__action__NestedMessage_SendGoal_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__NestedMessage_SendGoal_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'stamp' -// already included above -// #include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in action/NestedMessage in the package test_msgs. -typedef struct test_msgs__action__NestedMessage_SendGoal_Response -{ - bool accepted; - builtin_interfaces__msg__Time stamp; -} test_msgs__action__NestedMessage_SendGoal_Response; - -// Struct for a sequence of test_msgs__action__NestedMessage_SendGoal_Response. -typedef struct test_msgs__action__NestedMessage_SendGoal_Response__Sequence -{ - test_msgs__action__NestedMessage_SendGoal_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__NestedMessage_SendGoal_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - test_msgs__action__NestedMessage_SendGoal_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - test_msgs__action__NestedMessage_SendGoal_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/NestedMessage in the package test_msgs. -typedef struct test_msgs__action__NestedMessage_SendGoal_Event -{ - service_msgs__msg__ServiceEventInfo info; - test_msgs__action__NestedMessage_SendGoal_Request__Sequence request; - test_msgs__action__NestedMessage_SendGoal_Response__Sequence response; -} test_msgs__action__NestedMessage_SendGoal_Event; - -// Struct for a sequence of test_msgs__action__NestedMessage_SendGoal_Event. -typedef struct test_msgs__action__NestedMessage_SendGoal_Event__Sequence -{ - test_msgs__action__NestedMessage_SendGoal_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__NestedMessage_SendGoal_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" - -/// Struct defined in action/NestedMessage in the package test_msgs. -typedef struct test_msgs__action__NestedMessage_GetResult_Request -{ - unique_identifier_msgs__msg__UUID goal_id; -} test_msgs__action__NestedMessage_GetResult_Request; - -// Struct for a sequence of test_msgs__action__NestedMessage_GetResult_Request. -typedef struct test_msgs__action__NestedMessage_GetResult_Request__Sequence -{ - test_msgs__action__NestedMessage_GetResult_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__NestedMessage_GetResult_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'result' -// already included above -// #include "test_msgs/action/detail/nested_message__struct.h" - -/// Struct defined in action/NestedMessage in the package test_msgs. -typedef struct test_msgs__action__NestedMessage_GetResult_Response -{ - int8_t status; - test_msgs__action__NestedMessage_Result result; -} test_msgs__action__NestedMessage_GetResult_Response; - -// Struct for a sequence of test_msgs__action__NestedMessage_GetResult_Response. -typedef struct test_msgs__action__NestedMessage_GetResult_Response__Sequence -{ - test_msgs__action__NestedMessage_GetResult_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__NestedMessage_GetResult_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -// already included above -// #include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - test_msgs__action__NestedMessage_GetResult_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - test_msgs__action__NestedMessage_GetResult_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/NestedMessage in the package test_msgs. -typedef struct test_msgs__action__NestedMessage_GetResult_Event -{ - service_msgs__msg__ServiceEventInfo info; - test_msgs__action__NestedMessage_GetResult_Request__Sequence request; - test_msgs__action__NestedMessage_GetResult_Response__Sequence response; -} test_msgs__action__NestedMessage_GetResult_Event; - -// Struct for a sequence of test_msgs__action__NestedMessage_GetResult_Event. -typedef struct test_msgs__action__NestedMessage_GetResult_Event__Sequence -{ - test_msgs__action__NestedMessage_GetResult_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__NestedMessage_GetResult_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'feedback' -// already included above -// #include "test_msgs/action/detail/nested_message__struct.h" - -/// Struct defined in action/NestedMessage in the package test_msgs. -typedef struct test_msgs__action__NestedMessage_FeedbackMessage -{ - unique_identifier_msgs__msg__UUID goal_id; - test_msgs__action__NestedMessage_Feedback feedback; -} test_msgs__action__NestedMessage_FeedbackMessage; - -// Struct for a sequence of test_msgs__action__NestedMessage_FeedbackMessage. -typedef struct test_msgs__action__NestedMessage_FeedbackMessage__Sequence -{ - test_msgs__action__NestedMessage_FeedbackMessage * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__action__NestedMessage_FeedbackMessage__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__STRUCT_H_ diff --git a/src/test_msgs/action/detail/nested_message__type_support.h b/src/test_msgs/action/detail/nested_message__type_support.h deleted file mode 100755 index 4f34f9466..000000000 --- a/src/test_msgs/action/detail/nested_message__type_support.h +++ /dev/null @@ -1,242 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:action/NestedMessage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/action/nested_message.h" - - -#ifndef TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__TYPE_SUPPORT_H_ -#define TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/action_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_action_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__ACTION_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage -)(void); - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_Goal -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_Result -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_Feedback -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_SendGoal_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_SendGoal_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_SendGoal_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_SendGoal -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_SendGoal -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_SendGoal -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_GetResult_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_GetResult_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_GetResult_Event -)(void); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_GetResult -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_GetResult -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_GetResult -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - action, - NestedMessage_FeedbackMessage -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__ACTION__DETAIL__NESTED_MESSAGE__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/action/fibonacci.h b/src/test_msgs/action/fibonacci.h deleted file mode 100755 index 6388c2ac1..000000000 --- a/src/test_msgs/action/fibonacci.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:action/Fibonacci.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__ACTION__FIBONACCI_H_ -#define TEST_MSGS__ACTION__FIBONACCI_H_ - -#include "test_msgs/action/detail/fibonacci__struct.h" -#include "test_msgs/action/detail/fibonacci__functions.h" -#include "test_msgs/action/detail/fibonacci__type_support.h" - -#endif // TEST_MSGS__ACTION__FIBONACCI_H_ diff --git a/src/test_msgs/action/nested_message.h b/src/test_msgs/action/nested_message.h deleted file mode 100755 index 083d77ae4..000000000 --- a/src/test_msgs/action/nested_message.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:action/NestedMessage.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__ACTION__NESTED_MESSAGE_H_ -#define TEST_MSGS__ACTION__NESTED_MESSAGE_H_ - -#include "test_msgs/action/detail/nested_message__struct.h" -#include "test_msgs/action/detail/nested_message__functions.h" -#include "test_msgs/action/detail/nested_message__type_support.h" - -#endif // TEST_MSGS__ACTION__NESTED_MESSAGE_H_ diff --git a/src/test_msgs/message_fixtures.hpp b/src/test_msgs/message_fixtures.hpp deleted file mode 100755 index 72aaedd76..000000000 --- a/src/test_msgs/message_fixtures.hpp +++ /dev/null @@ -1,654 +0,0 @@ -// NOLINT: This file starts with a BOM since it contain non-ASCII characters -// -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef TEST_MSGS__MESSAGE_FIXTURES_HPP_ -#define TEST_MSGS__MESSAGE_FIXTURES_HPP_ - -#include -#include -#include -#include -#include -#include - -#include "test_msgs/msg/arrays.hpp" -#include "test_msgs/msg/basic_types.hpp" -#include "test_msgs/msg/bounded_plain_sequences.hpp" -#include "test_msgs/msg/bounded_sequences.hpp" -#include "test_msgs/msg/builtins.hpp" -#include "test_msgs/msg/complex_nested_key.hpp" -#include "test_msgs/msg/constants.hpp" -#include "test_msgs/msg/defaults.hpp" -#include "test_msgs/msg/empty.hpp" -#include "test_msgs/msg/keyed_long.hpp" -#include "test_msgs/msg/keyed_string.hpp" -#include "test_msgs/msg/multi_nested.hpp" -#include "test_msgs/msg/nested.hpp" -#include "test_msgs/msg/non_keyed_with_nested_key.hpp" -#include "test_msgs/msg/strings.hpp" -#include "test_msgs/msg/unbounded_sequences.hpp" -#include "test_msgs/msg/w_strings.hpp" - -static inline std::string -from_u8string(const std::string & s) -{ - return s; -} - -static inline std::string -from_u8string(std::string && s) -{ - return std::move(s); -} - -#if defined(__cpp_lib_char8_t) -static inline std::string -from_u8string(const std::u8string & s) -{ - return std::string(s.begin(), s.end()); -} -#endif - -static inline std::vector -get_messages_empty() -{ - std::vector messages; - auto msg = std::make_shared(); - messages.push_back(msg); - return messages; -} - -static inline std::vector -get_messages_basic_types() -{ - std::vector messages; - { - auto msg = std::make_shared(); - msg->bool_value = false; - msg->byte_value = 0; - msg->char_value = 0; - msg->float32_value = 0.0f; - msg->float64_value = 0; - msg->int8_value = 0; - msg->uint8_value = 0; - msg->int16_value = 0; - msg->uint16_value = 0; - msg->int32_value = 0; - msg->uint32_value = 0; - msg->int64_value = 0; - msg->uint64_value = 0; - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - msg->bool_value = true; - msg->byte_value = 255; - msg->char_value = 255; - msg->float32_value = 1.125f; - msg->float64_value = 1.125; - msg->int8_value = (std::numeric_limits::max)(); - msg->uint8_value = (std::numeric_limits::max)(); - msg->int16_value = (std::numeric_limits::max)(); - msg->uint16_value = (std::numeric_limits::max)(); - msg->int32_value = (std::numeric_limits::max)(); - msg->uint32_value = (std::numeric_limits::max)(); - msg->int64_value = (std::numeric_limits::max)(); - msg->uint64_value = (std::numeric_limits::max)(); - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - msg->bool_value = false; - msg->byte_value = 0; - msg->char_value = 0; - msg->float32_value = -2.125f; - msg->float64_value = -2.125; - msg->int8_value = (std::numeric_limits::min)(); - msg->uint8_value = 0; - msg->int16_value = (std::numeric_limits::min)(); - msg->uint16_value = 0; - msg->int32_value = (std::numeric_limits::min)(); - msg->uint32_value = 0; - msg->int64_value = (std::numeric_limits::min)(); - msg->uint64_value = 0; - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - msg->bool_value = true; - msg->byte_value = 1; - msg->char_value = 1; - msg->float32_value = 1.0f; - msg->float64_value = 1; - msg->int8_value = 1; - msg->uint8_value = 1; - msg->int16_value = 1; - msg->uint16_value = 1; - msg->int32_value = 1; - msg->uint32_value = 1; - msg->int64_value = 1; - msg->uint64_value = 1; - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_constants() -{ - std::vector messages; - { - auto msg = std::make_shared(); - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_defaults() -{ - std::vector messages; - { - auto msg = std::make_shared(); - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_strings() -{ - std::vector messages; - { - auto msg = std::make_shared(); - msg->string_value = ""; - msg->bounded_string_value = ""; - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - msg->string_value = "Hello world!"; - msg->bounded_string_value = "Hello world!"; - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - msg->string_value = from_u8string(u8"Hell\u00F6 W\u00F6rld!"); // using umlaut - msg->bounded_string_value = from_u8string(u8"Hell\u00F6 W\u00F6rld!"); // using umlaut - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - msg->string_value = ""; - msg->bounded_string_value = ""; - for (size_t i = 0; i < 20000; ++i) { - msg->string_value += std::to_string(i % 10); - } - for (size_t i = 0; i < 22; ++i) { - msg->bounded_string_value += std::to_string(i % 10); - } - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_arrays() -{ - auto basic_types_msgs = get_messages_basic_types(); - std::vector messages; - { - auto msg = std::make_shared(); - msg->bool_values = {{false, true, false}}; - msg->byte_values = {{0, 0xff, 0}}; - msg->char_values = {{0, 255, 0}}; - msg->float32_values = {{0.0f, 1.125f, -2.125f}}; - msg->float64_values = {{0, 1.125, -2.125}}; - msg->int8_values = {{ - 0, (std::numeric_limits::max)(), (std::numeric_limits::min)()}}; - msg->uint8_values = {{0, (std::numeric_limits::max)(), 0}}; - msg->int16_values = {{ - 0, (std::numeric_limits::max)(), (std::numeric_limits::min)()}}; - msg->uint16_values = {{0, (std::numeric_limits::max)(), 0}}; - msg->int32_values = {{ - static_cast(0), - (std::numeric_limits::max)(), - (std::numeric_limits::min)() - }}; - msg->uint32_values = {{0, (std::numeric_limits::max)(), 0}}; - msg->int64_values[0] = 0; - msg->int64_values[1] = (std::numeric_limits::max)(); - msg->int64_values[2] = (std::numeric_limits::min)(); - msg->uint64_values = {{0, (std::numeric_limits::max)(), 0}}; - msg->string_values = {{"", "max value", "min value"}}; - msg->basic_types_values[0] = *basic_types_msgs[0]; - msg->basic_types_values[1] = *basic_types_msgs[1]; - msg->basic_types_values[2] = *basic_types_msgs[2]; - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_unbounded_sequences() -{ - auto basic_types_msgs = get_messages_basic_types(); - std::vector messages; - { - auto msg = std::make_shared(); - msg->bool_values = {}; - msg->byte_values = {}; - msg->char_values = {}; - msg->float32_values = {}; - msg->float64_values = {}; - msg->int8_values = {}; - msg->uint8_values = {}; - msg->int16_values = {}; - msg->uint16_values = {}; - msg->int32_values = {}; - msg->uint32_values = {}; - msg->int64_values = {}; - msg->uint64_values = {}; - msg->string_values = {}; - msg->basic_types_values = {}; - msg->alignment_check = 0; - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - msg->bool_values = {true}; - msg->byte_values = {0xff}; - msg->char_values = {255}; - msg->float32_values = {1.125f}; - msg->float64_values = {1.125}; - msg->int8_values = {(std::numeric_limits::max)()}; - msg->uint8_values = {(std::numeric_limits::max)()}; - msg->int16_values = {(std::numeric_limits::max)()}; - msg->uint16_values = {(std::numeric_limits::max)()}; - msg->int32_values = {(std::numeric_limits::max)()}; - msg->uint32_values = {(std::numeric_limits::max)()}; - msg->int64_values = {(std::numeric_limits::max)()}; - msg->uint64_values = {(std::numeric_limits::max)()}; - msg->string_values = {{"max value"}}; - msg->basic_types_values = {{*basic_types_msgs[0]}}; - msg->alignment_check = 1; - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - msg->bool_values = {{false, true}}; - msg->byte_values = {{0, 0xff}}; - msg->char_values = {{0, 255}}; - msg->float32_values = {{0.0f, 1.125f, -2.125f}}; - msg->float64_values = {{0, 1.125, -2.125}}; - msg->int8_values = {{ - 0, (std::numeric_limits::max)(), (std::numeric_limits::min)()}}; - msg->uint8_values = {{0, (std::numeric_limits::max)()}}; - msg->int16_values = {{ - 0, (std::numeric_limits::max)(), (std::numeric_limits::min)()}}; - msg->uint16_values = {{0, (std::numeric_limits::max)()}}; - // The narrowing static cast is required to avoid build errors on Windows. - msg->int32_values = {{ - static_cast(0), - (std::numeric_limits::max)(), - (std::numeric_limits::min)() - }}; - msg->uint32_values = {{0, (std::numeric_limits::max)()}}; - msg->int64_values.resize(3); - msg->int64_values[0] = 0; - msg->int64_values[1] = (std::numeric_limits::max)(); - msg->int64_values[2] = (std::numeric_limits::min)(); - msg->uint64_values = {{0, (std::numeric_limits::max)()}}; - msg->string_values = {{"", "max value", "optional min value"}}; - msg->basic_types_values.resize(3); - msg->basic_types_values[0] = *basic_types_msgs[0]; - msg->basic_types_values[1] = *basic_types_msgs[1]; - msg->basic_types_values[2] = *basic_types_msgs[2]; - msg->alignment_check = 2; - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - // check sequences with more then 100 elements - const size_t size = 1000; - msg->bool_values.resize(size); - msg->byte_values.resize(size); - msg->char_values.resize(size); - msg->float32_values.resize(size); - msg->float64_values.resize(size); - msg->int8_values.resize(size); - msg->uint8_values.resize(size); - msg->int16_values.resize(size); - msg->uint16_values.resize(size); - msg->int32_values.resize(size); - msg->uint32_values.resize(size); - msg->int64_values.resize(size); - msg->uint64_values.resize(size); - msg->string_values.resize(size); - msg->basic_types_values.resize(size); - for (size_t i = 0; i < size; ++i) { - msg->bool_values[i] = (i % 2 != 0) ? true : false; - msg->byte_values[i] = static_cast(i); - msg->char_values[i] = static_cast(i % (1 << 8)); - msg->float32_values[i] = 1.125f * i; - msg->float64_values[i] = 1.125 * i; - msg->int8_values[i] = static_cast(i); - msg->uint8_values[i] = static_cast(i); - msg->int16_values[i] = static_cast(i); - msg->uint16_values[i] = static_cast(i); - msg->int32_values[i] = static_cast(i); - msg->uint32_values[i] = static_cast(i); - msg->int64_values[i] = i; - msg->uint64_values[i] = i; - msg->string_values[i] = std::to_string(i); - msg->basic_types_values[i] = *basic_types_msgs[i % basic_types_msgs.size()]; - } - msg->alignment_check = 3; - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - // check default sequences - msg->alignment_check = 4; - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_bounded_plain_sequences() -{ - auto basic_types_msgs = get_messages_basic_types(); - auto msg = std::make_shared(); - std::vector messages; - { - auto msg = std::make_shared(); - msg->bool_values = {{false, true, false}}; - msg->byte_values = {{0, 1, 0xff}}; - msg->char_values = {{0, 1, 255}}; - msg->float32_values = {{0.0f, 1.125f, -2.125f}}; - msg->float64_values = {{0, 1.125, -2.125}}; - msg->int8_values = {{ - 0, (std::numeric_limits::max)(), (std::numeric_limits::min)()}}; - msg->uint8_values = {{0, 1, (std::numeric_limits::max)()}}; - msg->int16_values = {{ - 0, (std::numeric_limits::max)(), (std::numeric_limits::min)()}}; - msg->uint16_values = {{0, 1, (std::numeric_limits::max)()}}; - // The narrowing static cast is required to avoid build errors on Windows. - msg->int32_values = {{ - static_cast(0), - (std::numeric_limits::max)(), - (std::numeric_limits::min)() - }}; - msg->uint32_values = {{0, 1, (std::numeric_limits::max)()}}; - msg->int64_values.resize(3); - msg->int64_values[0] = 0; - msg->int64_values[1] = (std::numeric_limits::max)(); - msg->int64_values[2] = (std::numeric_limits::min)(); - msg->uint64_values = {{0, 1, (std::numeric_limits::max)()}}; - msg->basic_types_values.resize(3); - msg->basic_types_values[0] = *basic_types_msgs[0]; - msg->basic_types_values[1] = *basic_types_msgs[1]; - msg->basic_types_values[2] = *basic_types_msgs[2]; - msg->alignment_check = 2; - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - // check default sequences - msg->alignment_check = 4; - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_bounded_sequences() -{ - auto basic_types_msgs = get_messages_basic_types(); - auto msg = std::make_shared(); - std::vector messages; - { - auto msg = std::make_shared(); - msg->bool_values = {{false, true, false}}; - msg->byte_values = {{0, 1, 0xff}}; - msg->char_values = {{0, 1, 255}}; - msg->float32_values = {{0.0f, 1.125f, -2.125f}}; - msg->float64_values = {{0, 1.125, -2.125}}; - msg->int8_values = {{ - 0, (std::numeric_limits::max)(), (std::numeric_limits::min)()}}; - msg->uint8_values = {{0, 1, (std::numeric_limits::max)()}}; - msg->int16_values = {{ - 0, (std::numeric_limits::max)(), (std::numeric_limits::min)()}}; - msg->uint16_values = {{0, 1, (std::numeric_limits::max)()}}; - // The narrowing static cast is required to avoid build errors on Windows. - msg->int32_values = {{ - static_cast(0), - (std::numeric_limits::max)(), - (std::numeric_limits::min)() - }}; - msg->uint32_values = {{0, 1, (std::numeric_limits::max)()}}; - msg->int64_values.resize(3); - msg->int64_values[0] = 0; - msg->int64_values[1] = (std::numeric_limits::max)(); - msg->int64_values[2] = (std::numeric_limits::min)(); - msg->uint64_values = {{0, 1, (std::numeric_limits::max)()}}; - msg->string_values = {{"", "max value", "optional min value"}}; - msg->basic_types_values.resize(3); - msg->basic_types_values[0] = *basic_types_msgs[0]; - msg->basic_types_values[1] = *basic_types_msgs[1]; - msg->basic_types_values[2] = *basic_types_msgs[2]; - msg->alignment_check = 2; - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - // check default sequences - msg->alignment_check = 4; - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_multi_nested() -{ - auto arrays_msgs = get_messages_arrays(); - auto bounded_sequences_msgs = get_messages_bounded_sequences(); - auto unbounded_sequences_msgs = get_messages_unbounded_sequences(); - const std::size_t num_arrays = arrays_msgs.size(); - const std::size_t num_bounded_sequences = bounded_sequences_msgs.size(); - const std::size_t num_unbounded_sequences = unbounded_sequences_msgs.size(); - std::vector messages; - { - auto msg = std::make_shared(); - for (std::size_t i = 0u; i < msg->array_of_arrays.size(); ++i) { - msg->array_of_arrays[i] = *arrays_msgs[i % num_arrays]; - } - for (std::size_t i = 0u; i < msg->array_of_bounded_sequences.size(); ++i) { - msg->array_of_bounded_sequences[i] = *bounded_sequences_msgs[i % num_bounded_sequences]; - } - for (std::size_t i = 0u; i < msg->array_of_unbounded_sequences.size(); ++i) { - msg->array_of_unbounded_sequences[i] = *unbounded_sequences_msgs[i % num_unbounded_sequences]; - } - const std::size_t sequence_size = 3u; - msg->bounded_sequence_of_arrays.resize(sequence_size); - for (std::size_t i = 0u; i < sequence_size; ++i) { - msg->bounded_sequence_of_arrays[i] = *arrays_msgs[i % num_arrays]; - } - msg->bounded_sequence_of_bounded_sequences.resize(sequence_size); - for (std::size_t i = 0u; i < sequence_size; ++i) { - msg->bounded_sequence_of_bounded_sequences[i] = - *bounded_sequences_msgs[i % num_bounded_sequences]; - } - msg->bounded_sequence_of_unbounded_sequences.resize(sequence_size); - for (std::size_t i = 0u; i < sequence_size; ++i) { - msg->bounded_sequence_of_unbounded_sequences[i] = - *unbounded_sequences_msgs[i % num_unbounded_sequences]; - } - msg->unbounded_sequence_of_arrays.resize(sequence_size); - for (std::size_t i = 0u; i < sequence_size; ++i) { - msg->unbounded_sequence_of_arrays[i] = *arrays_msgs[i % num_arrays]; - } - msg->unbounded_sequence_of_bounded_sequences.resize(sequence_size); - for (std::size_t i = 0u; i < sequence_size; ++i) { - msg->unbounded_sequence_of_bounded_sequences[i] = - *bounded_sequences_msgs[i % num_bounded_sequences]; - } - msg->unbounded_sequence_of_unbounded_sequences.resize(sequence_size); - for (std::size_t i = 0u; i < sequence_size; ++i) { - msg->unbounded_sequence_of_unbounded_sequences[i] = - *unbounded_sequences_msgs[i % num_unbounded_sequences]; - } - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_nested() -{ - std::vector messages; - auto basic_types_msgs = get_messages_basic_types(); - for (auto basic_types_msg : basic_types_msgs) { - auto msg = std::make_shared(); - msg->basic_types_value = *basic_types_msg; - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_builtins() -{ - std::vector messages; - { - auto msg = std::make_shared(); - msg->duration_value.sec = -1234567890; - msg->duration_value.nanosec = 123456789; - msg->time_value.sec = -1234567890; - msg->time_value.nanosec = 987654321; - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_wstrings() -{ - std::vector messages; - { - auto msg = std::make_shared(); - msg->wstring_value = u""; - msg->array_of_wstrings[0] = u"1"; - msg->array_of_wstrings[1] = u"two"; - msg->array_of_wstrings[2] = u"三"; // "One" in Japanese - msg->bounded_sequence_of_wstrings.resize(2); - msg->bounded_sequence_of_wstrings[0] = u"one"; - msg->bounded_sequence_of_wstrings[1] = u"二"; // "Two" in Japanese - msg->unbounded_sequence_of_wstrings.resize(4); - msg->unbounded_sequence_of_wstrings[0] = u"."; - msg->unbounded_sequence_of_wstrings[1] = u".."; - msg->unbounded_sequence_of_wstrings[2] = u"..."; - msg->unbounded_sequence_of_wstrings[3] = u"四"; // "Four" in Japanese - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - msg->wstring_value = u"ascii"; - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - msg->wstring_value = u"Hell\u00F6 W\u00F6rld!"; // using umlaut - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - msg->wstring_value = u"ハローワールド"; // "Hello world" in Japanese - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_keyed_long() -{ - std::vector messages; - { - auto msg = std::make_shared(); - msg->key = 1; - msg->value = 1; - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - msg->key = 2; - msg->value = 2; - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_keyed_string() -{ - std::vector messages; - { - auto msg = std::make_shared(); - msg->key = "key_1"; - msg->value = "value_1"; - messages.push_back(msg); - } - { - auto msg = std::make_shared(); - msg->key = "key_2"; - msg->value = "value_2"; - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_non_keyed_with_nested_key() -{ - std::vector messages; - auto keyed_string_msgs = get_messages_keyed_string(); - for (auto keyed_string_msg : keyed_string_msgs) { - auto msg = std::make_shared(); - msg->nested_data = *keyed_string_msg; - msg->some_int = -1; - messages.push_back(msg); - } - return messages; -} - -static inline std::vector -get_messages_complex_nested_key() -{ - std::vector messages; - auto non_keyed_with_nested_key_msgs = get_messages_non_keyed_with_nested_key(); - for (auto nested_msg : non_keyed_with_nested_key_msgs) { - auto msg = std::make_shared(); - msg->nested_keys = *nested_msg; - msg->uint32_key = 3u; - msg->float64_value = 1.125; - messages.push_back(msg); - } - return messages; -} - -#endif // TEST_MSGS__MESSAGE_FIXTURES_HPP_ diff --git a/src/test_msgs/msg/arrays.h b/src/test_msgs/msg/arrays.h deleted file mode 100755 index 43dc56a56..000000000 --- a/src/test_msgs/msg/arrays.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/Arrays.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__ARRAYS_H_ -#define TEST_MSGS__MSG__ARRAYS_H_ - -#include "test_msgs/msg/detail/arrays__struct.h" -#include "test_msgs/msg/detail/arrays__functions.h" -#include "test_msgs/msg/detail/arrays__type_support.h" - -#endif // TEST_MSGS__MSG__ARRAYS_H_ diff --git a/src/test_msgs/msg/basic_types.h b/src/test_msgs/msg/basic_types.h deleted file mode 100755 index c3d21bc55..000000000 --- a/src/test_msgs/msg/basic_types.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/BasicTypes.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__BASIC_TYPES_H_ -#define TEST_MSGS__MSG__BASIC_TYPES_H_ - -#include "test_msgs/msg/detail/basic_types__struct.h" -#include "test_msgs/msg/detail/basic_types__functions.h" -#include "test_msgs/msg/detail/basic_types__type_support.h" - -#endif // TEST_MSGS__MSG__BASIC_TYPES_H_ diff --git a/src/test_msgs/msg/bounded_plain_sequences.h b/src/test_msgs/msg/bounded_plain_sequences.h deleted file mode 100755 index 9d0a113d5..000000000 --- a/src/test_msgs/msg/bounded_plain_sequences.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/BoundedPlainSequences.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__BOUNDED_PLAIN_SEQUENCES_H_ -#define TEST_MSGS__MSG__BOUNDED_PLAIN_SEQUENCES_H_ - -#include "test_msgs/msg/detail/bounded_plain_sequences__struct.h" -#include "test_msgs/msg/detail/bounded_plain_sequences__functions.h" -#include "test_msgs/msg/detail/bounded_plain_sequences__type_support.h" - -#endif // TEST_MSGS__MSG__BOUNDED_PLAIN_SEQUENCES_H_ diff --git a/src/test_msgs/msg/bounded_sequences.h b/src/test_msgs/msg/bounded_sequences.h deleted file mode 100755 index 0cc86c5b7..000000000 --- a/src/test_msgs/msg/bounded_sequences.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/BoundedSequences.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__BOUNDED_SEQUENCES_H_ -#define TEST_MSGS__MSG__BOUNDED_SEQUENCES_H_ - -#include "test_msgs/msg/detail/bounded_sequences__struct.h" -#include "test_msgs/msg/detail/bounded_sequences__functions.h" -#include "test_msgs/msg/detail/bounded_sequences__type_support.h" - -#endif // TEST_MSGS__MSG__BOUNDED_SEQUENCES_H_ diff --git a/src/test_msgs/msg/builtins.h b/src/test_msgs/msg/builtins.h deleted file mode 100755 index b4f955b88..000000000 --- a/src/test_msgs/msg/builtins.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/Builtins.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__BUILTINS_H_ -#define TEST_MSGS__MSG__BUILTINS_H_ - -#include "test_msgs/msg/detail/builtins__struct.h" -#include "test_msgs/msg/detail/builtins__functions.h" -#include "test_msgs/msg/detail/builtins__type_support.h" - -#endif // TEST_MSGS__MSG__BUILTINS_H_ diff --git a/src/test_msgs/msg/complex_nested_key.h b/src/test_msgs/msg/complex_nested_key.h deleted file mode 100755 index 57e1cf8db..000000000 --- a/src/test_msgs/msg/complex_nested_key.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/ComplexNestedKey.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__COMPLEX_NESTED_KEY_H_ -#define TEST_MSGS__MSG__COMPLEX_NESTED_KEY_H_ - -#include "test_msgs/msg/detail/complex_nested_key__struct.h" -#include "test_msgs/msg/detail/complex_nested_key__functions.h" -#include "test_msgs/msg/detail/complex_nested_key__type_support.h" - -#endif // TEST_MSGS__MSG__COMPLEX_NESTED_KEY_H_ diff --git a/src/test_msgs/msg/constants.h b/src/test_msgs/msg/constants.h deleted file mode 100755 index d23f57c48..000000000 --- a/src/test_msgs/msg/constants.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/Constants.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__CONSTANTS_H_ -#define TEST_MSGS__MSG__CONSTANTS_H_ - -#include "test_msgs/msg/detail/constants__struct.h" -#include "test_msgs/msg/detail/constants__functions.h" -#include "test_msgs/msg/detail/constants__type_support.h" - -#endif // TEST_MSGS__MSG__CONSTANTS_H_ diff --git a/src/test_msgs/msg/defaults.h b/src/test_msgs/msg/defaults.h deleted file mode 100755 index 64dd0d634..000000000 --- a/src/test_msgs/msg/defaults.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/Defaults.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DEFAULTS_H_ -#define TEST_MSGS__MSG__DEFAULTS_H_ - -#include "test_msgs/msg/detail/defaults__struct.h" -#include "test_msgs/msg/detail/defaults__functions.h" -#include "test_msgs/msg/detail/defaults__type_support.h" - -#endif // TEST_MSGS__MSG__DEFAULTS_H_ diff --git a/src/test_msgs/msg/detail/arrays__functions.h b/src/test_msgs/msg/detail/arrays__functions.h deleted file mode 100755 index 70232fa95..000000000 --- a/src/test_msgs/msg/detail/arrays__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/Arrays.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/arrays.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__ARRAYS__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__ARRAYS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/arrays__struct.h" - -/// Initialize msg/Arrays message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__Arrays - * )) before or use - * test_msgs__msg__Arrays__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Arrays__init(test_msgs__msg__Arrays * msg); - -/// Finalize msg/Arrays message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Arrays__fini(test_msgs__msg__Arrays * msg); - -/// Create msg/Arrays message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__Arrays__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Arrays * -test_msgs__msg__Arrays__create(void); - -/// Destroy msg/Arrays message. -/** - * It calls - * test_msgs__msg__Arrays__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Arrays__destroy(test_msgs__msg__Arrays * msg); - -/// Check for msg/Arrays message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Arrays__are_equal(const test_msgs__msg__Arrays * lhs, const test_msgs__msg__Arrays * rhs); - -/// Copy a msg/Arrays message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Arrays__copy( - const test_msgs__msg__Arrays * input, - test_msgs__msg__Arrays * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__Arrays__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__Arrays__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__Arrays__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__Arrays__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Arrays messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__Arrays__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Arrays__Sequence__init(test_msgs__msg__Arrays__Sequence * array, size_t size); - -/// Finalize array of msg/Arrays messages. -/** - * It calls - * test_msgs__msg__Arrays__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Arrays__Sequence__fini(test_msgs__msg__Arrays__Sequence * array); - -/// Create array of msg/Arrays messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__Arrays__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Arrays__Sequence * -test_msgs__msg__Arrays__Sequence__create(size_t size); - -/// Destroy array of msg/Arrays messages. -/** - * It calls - * test_msgs__msg__Arrays__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Arrays__Sequence__destroy(test_msgs__msg__Arrays__Sequence * array); - -/// Check for msg/Arrays message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Arrays__Sequence__are_equal(const test_msgs__msg__Arrays__Sequence * lhs, const test_msgs__msg__Arrays__Sequence * rhs); - -/// Copy an array of msg/Arrays messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Arrays__Sequence__copy( - const test_msgs__msg__Arrays__Sequence * input, - test_msgs__msg__Arrays__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__ARRAYS__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/arrays__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/arrays__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 7dba27231..000000000 --- a/src/test_msgs/msg/detail/arrays__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/Arrays.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__ARRAYS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__ARRAYS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, Arrays)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__ARRAYS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/arrays__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/arrays__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index faf8de997..000000000 --- a/src/test_msgs/msg/detail/arrays__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/Arrays.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__ARRAYS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__ARRAYS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__Arrays( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__Arrays( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, Arrays)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__ARRAYS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/arrays__struct.h b/src/test_msgs/msg/detail/arrays__struct.h deleted file mode 100755 index c4d4f845a..000000000 --- a/src/test_msgs/msg/detail/arrays__struct.h +++ /dev/null @@ -1,88 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/Arrays.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/arrays.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__ARRAYS__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__ARRAYS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'string_values' -// Member 'string_values_default' -#include "rosidl_runtime_c/string.h" -// Member 'basic_types_values' -#include "test_msgs/msg/detail/basic_types__struct.h" -// Member 'constants_values' -#include "test_msgs/msg/detail/constants__struct.h" -// Member 'defaults_values' -#include "test_msgs/msg/detail/defaults__struct.h" - -/// Struct defined in msg/Arrays in the package test_msgs. -/** - * Arrays of different types - */ -typedef struct test_msgs__msg__Arrays -{ - bool bool_values[3]; - uint8_t byte_values[3]; - uint8_t char_values[3]; - float float32_values[3]; - double float64_values[3]; - int8_t int8_values[3]; - uint8_t uint8_values[3]; - int16_t int16_values[3]; - uint16_t uint16_values[3]; - int32_t int32_values[3]; - uint32_t uint32_values[3]; - int64_t int64_values[3]; - uint64_t uint64_values[3]; - rosidl_runtime_c__String string_values[3]; - test_msgs__msg__BasicTypes basic_types_values[3]; - test_msgs__msg__Constants constants_values[3]; - test_msgs__msg__Defaults defaults_values[3]; - bool bool_values_default[3]; - uint8_t byte_values_default[3]; - uint8_t char_values_default[3]; - float float32_values_default[3]; - double float64_values_default[3]; - int8_t int8_values_default[3]; - uint8_t uint8_values_default[3]; - int16_t int16_values_default[3]; - uint16_t uint16_values_default[3]; - int32_t int32_values_default[3]; - uint32_t uint32_values_default[3]; - int64_t int64_values_default[3]; - uint64_t uint64_values_default[3]; - rosidl_runtime_c__String string_values_default[3]; - /// Regression test: check alignment of basic field after an array field is correct - int32_t alignment_check; -} test_msgs__msg__Arrays; - -// Struct for a sequence of test_msgs__msg__Arrays. -typedef struct test_msgs__msg__Arrays__Sequence -{ - test_msgs__msg__Arrays * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__Arrays__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__ARRAYS__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/arrays__type_support.h b/src/test_msgs/msg/detail/arrays__type_support.h deleted file mode 100755 index 73e2b8700..000000000 --- a/src/test_msgs/msg/detail/arrays__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/Arrays.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/arrays.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__ARRAYS__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__ARRAYS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - Arrays -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__ARRAYS__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/basic_types__functions.h b/src/test_msgs/msg/detail/basic_types__functions.h deleted file mode 100755 index 27a698889..000000000 --- a/src/test_msgs/msg/detail/basic_types__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/BasicTypes.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/basic_types.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__BASIC_TYPES__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__BASIC_TYPES__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/basic_types__struct.h" - -/// Initialize msg/BasicTypes message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__BasicTypes - * )) before or use - * test_msgs__msg__BasicTypes__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BasicTypes__init(test_msgs__msg__BasicTypes * msg); - -/// Finalize msg/BasicTypes message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__BasicTypes__fini(test_msgs__msg__BasicTypes * msg); - -/// Create msg/BasicTypes message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__BasicTypes__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__BasicTypes * -test_msgs__msg__BasicTypes__create(void); - -/// Destroy msg/BasicTypes message. -/** - * It calls - * test_msgs__msg__BasicTypes__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__BasicTypes__destroy(test_msgs__msg__BasicTypes * msg); - -/// Check for msg/BasicTypes message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BasicTypes__are_equal(const test_msgs__msg__BasicTypes * lhs, const test_msgs__msg__BasicTypes * rhs); - -/// Copy a msg/BasicTypes message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BasicTypes__copy( - const test_msgs__msg__BasicTypes * input, - test_msgs__msg__BasicTypes * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__BasicTypes__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__BasicTypes__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__BasicTypes__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__BasicTypes__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/BasicTypes messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__BasicTypes__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BasicTypes__Sequence__init(test_msgs__msg__BasicTypes__Sequence * array, size_t size); - -/// Finalize array of msg/BasicTypes messages. -/** - * It calls - * test_msgs__msg__BasicTypes__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__BasicTypes__Sequence__fini(test_msgs__msg__BasicTypes__Sequence * array); - -/// Create array of msg/BasicTypes messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__BasicTypes__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__BasicTypes__Sequence * -test_msgs__msg__BasicTypes__Sequence__create(size_t size); - -/// Destroy array of msg/BasicTypes messages. -/** - * It calls - * test_msgs__msg__BasicTypes__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__BasicTypes__Sequence__destroy(test_msgs__msg__BasicTypes__Sequence * array); - -/// Check for msg/BasicTypes message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BasicTypes__Sequence__are_equal(const test_msgs__msg__BasicTypes__Sequence * lhs, const test_msgs__msg__BasicTypes__Sequence * rhs); - -/// Copy an array of msg/BasicTypes messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BasicTypes__Sequence__copy( - const test_msgs__msg__BasicTypes__Sequence * input, - test_msgs__msg__BasicTypes__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BASIC_TYPES__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/basic_types__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/basic_types__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 6f2e45667..000000000 --- a/src/test_msgs/msg/detail/basic_types__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/BasicTypes.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__BASIC_TYPES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__BASIC_TYPES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, BasicTypes)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BASIC_TYPES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/basic_types__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/basic_types__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index fe6ae7bfc..000000000 --- a/src/test_msgs/msg/detail/basic_types__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/BasicTypes.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__BASIC_TYPES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__BASIC_TYPES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__BasicTypes( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__BasicTypes( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, BasicTypes)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__BASIC_TYPES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/basic_types__struct.h b/src/test_msgs/msg/detail/basic_types__struct.h deleted file mode 100755 index 982c32abc..000000000 --- a/src/test_msgs/msg/detail/basic_types__struct.h +++ /dev/null @@ -1,54 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/BasicTypes.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/basic_types.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__BASIC_TYPES__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__BASIC_TYPES__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/BasicTypes in the package test_msgs. -typedef struct test_msgs__msg__BasicTypes -{ - bool bool_value; - uint8_t byte_value; - uint8_t char_value; - float float32_value; - double float64_value; - int8_t int8_value; - uint8_t uint8_value; - int16_t int16_value; - uint16_t uint16_value; - int32_t int32_value; - uint32_t uint32_value; - int64_t int64_value; - uint64_t uint64_value; -} test_msgs__msg__BasicTypes; - -// Struct for a sequence of test_msgs__msg__BasicTypes. -typedef struct test_msgs__msg__BasicTypes__Sequence -{ - test_msgs__msg__BasicTypes * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__BasicTypes__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BASIC_TYPES__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/basic_types__type_support.h b/src/test_msgs/msg/detail/basic_types__type_support.h deleted file mode 100755 index 7b7b2d3aa..000000000 --- a/src/test_msgs/msg/detail/basic_types__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/BasicTypes.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/basic_types.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__BASIC_TYPES__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__BASIC_TYPES__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - BasicTypes -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BASIC_TYPES__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/bounded_plain_sequences__functions.h b/src/test_msgs/msg/detail/bounded_plain_sequences__functions.h deleted file mode 100755 index 1131c1bdc..000000000 --- a/src/test_msgs/msg/detail/bounded_plain_sequences__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/BoundedPlainSequences.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/bounded_plain_sequences.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__BOUNDED_PLAIN_SEQUENCES__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__BOUNDED_PLAIN_SEQUENCES__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/bounded_plain_sequences__struct.h" - -/// Initialize msg/BoundedPlainSequences message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__BoundedPlainSequences - * )) before or use - * test_msgs__msg__BoundedPlainSequences__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BoundedPlainSequences__init(test_msgs__msg__BoundedPlainSequences * msg); - -/// Finalize msg/BoundedPlainSequences message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__BoundedPlainSequences__fini(test_msgs__msg__BoundedPlainSequences * msg); - -/// Create msg/BoundedPlainSequences message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__BoundedPlainSequences__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__BoundedPlainSequences * -test_msgs__msg__BoundedPlainSequences__create(void); - -/// Destroy msg/BoundedPlainSequences message. -/** - * It calls - * test_msgs__msg__BoundedPlainSequences__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__BoundedPlainSequences__destroy(test_msgs__msg__BoundedPlainSequences * msg); - -/// Check for msg/BoundedPlainSequences message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BoundedPlainSequences__are_equal(const test_msgs__msg__BoundedPlainSequences * lhs, const test_msgs__msg__BoundedPlainSequences * rhs); - -/// Copy a msg/BoundedPlainSequences message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BoundedPlainSequences__copy( - const test_msgs__msg__BoundedPlainSequences * input, - test_msgs__msg__BoundedPlainSequences * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__BoundedPlainSequences__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__BoundedPlainSequences__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__BoundedPlainSequences__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__BoundedPlainSequences__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/BoundedPlainSequences messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__BoundedPlainSequences__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BoundedPlainSequences__Sequence__init(test_msgs__msg__BoundedPlainSequences__Sequence * array, size_t size); - -/// Finalize array of msg/BoundedPlainSequences messages. -/** - * It calls - * test_msgs__msg__BoundedPlainSequences__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__BoundedPlainSequences__Sequence__fini(test_msgs__msg__BoundedPlainSequences__Sequence * array); - -/// Create array of msg/BoundedPlainSequences messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__BoundedPlainSequences__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__BoundedPlainSequences__Sequence * -test_msgs__msg__BoundedPlainSequences__Sequence__create(size_t size); - -/// Destroy array of msg/BoundedPlainSequences messages. -/** - * It calls - * test_msgs__msg__BoundedPlainSequences__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__BoundedPlainSequences__Sequence__destroy(test_msgs__msg__BoundedPlainSequences__Sequence * array); - -/// Check for msg/BoundedPlainSequences message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BoundedPlainSequences__Sequence__are_equal(const test_msgs__msg__BoundedPlainSequences__Sequence * lhs, const test_msgs__msg__BoundedPlainSequences__Sequence * rhs); - -/// Copy an array of msg/BoundedPlainSequences messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BoundedPlainSequences__Sequence__copy( - const test_msgs__msg__BoundedPlainSequences__Sequence * input, - test_msgs__msg__BoundedPlainSequences__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BOUNDED_PLAIN_SEQUENCES__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/bounded_plain_sequences__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/bounded_plain_sequences__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c847997f0..000000000 --- a/src/test_msgs/msg/detail/bounded_plain_sequences__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/BoundedPlainSequences.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__BOUNDED_PLAIN_SEQUENCES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__BOUNDED_PLAIN_SEQUENCES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, BoundedPlainSequences)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BOUNDED_PLAIN_SEQUENCES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/bounded_plain_sequences__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/bounded_plain_sequences__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index c9c9079d8..000000000 --- a/src/test_msgs/msg/detail/bounded_plain_sequences__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/BoundedPlainSequences.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__BOUNDED_PLAIN_SEQUENCES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__BOUNDED_PLAIN_SEQUENCES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__BoundedPlainSequences( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__BoundedPlainSequences( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, BoundedPlainSequences)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__BOUNDED_PLAIN_SEQUENCES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/bounded_plain_sequences__struct.h b/src/test_msgs/msg/detail/bounded_plain_sequences__struct.h deleted file mode 100755 index bd45da650..000000000 --- a/src/test_msgs/msg/detail/bounded_plain_sequences__struct.h +++ /dev/null @@ -1,257 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/BoundedPlainSequences.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/bounded_plain_sequences.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__BOUNDED_PLAIN_SEQUENCES__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__BOUNDED_PLAIN_SEQUENCES__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'bool_values' -// Member 'byte_values' -// Member 'char_values' -// Member 'float32_values' -// Member 'float64_values' -// Member 'int8_values' -// Member 'uint8_values' -// Member 'int16_values' -// Member 'uint16_values' -// Member 'int32_values' -// Member 'uint32_values' -// Member 'int64_values' -// Member 'uint64_values' -// Member 'bool_values_default' -// Member 'byte_values_default' -// Member 'char_values_default' -// Member 'float32_values_default' -// Member 'float64_values_default' -// Member 'int8_values_default' -// Member 'uint8_values_default' -// Member 'int16_values_default' -// Member 'uint16_values_default' -// Member 'int32_values_default' -// Member 'uint32_values_default' -// Member 'int64_values_default' -// Member 'uint64_values_default' -#include "rosidl_runtime_c/primitives_sequence.h" -// Member 'basic_types_values' -#include "test_msgs/msg/detail/basic_types__struct.h" -// Member 'constants_values' -#include "test_msgs/msg/detail/constants__struct.h" -// Member 'defaults_values' -#include "test_msgs/msg/detail/defaults__struct.h" - -// constants for array fields with an upper bound -// bool_values -enum -{ - test_msgs__msg__BoundedPlainSequences__bool_values__MAX_SIZE = 3 -}; -// byte_values -enum -{ - test_msgs__msg__BoundedPlainSequences__byte_values__MAX_SIZE = 3 -}; -// char_values -enum -{ - test_msgs__msg__BoundedPlainSequences__char_values__MAX_SIZE = 3 -}; -// float32_values -enum -{ - test_msgs__msg__BoundedPlainSequences__float32_values__MAX_SIZE = 3 -}; -// float64_values -enum -{ - test_msgs__msg__BoundedPlainSequences__float64_values__MAX_SIZE = 3 -}; -// int8_values -enum -{ - test_msgs__msg__BoundedPlainSequences__int8_values__MAX_SIZE = 3 -}; -// uint8_values -enum -{ - test_msgs__msg__BoundedPlainSequences__uint8_values__MAX_SIZE = 3 -}; -// int16_values -enum -{ - test_msgs__msg__BoundedPlainSequences__int16_values__MAX_SIZE = 3 -}; -// uint16_values -enum -{ - test_msgs__msg__BoundedPlainSequences__uint16_values__MAX_SIZE = 3 -}; -// int32_values -enum -{ - test_msgs__msg__BoundedPlainSequences__int32_values__MAX_SIZE = 3 -}; -// uint32_values -enum -{ - test_msgs__msg__BoundedPlainSequences__uint32_values__MAX_SIZE = 3 -}; -// int64_values -enum -{ - test_msgs__msg__BoundedPlainSequences__int64_values__MAX_SIZE = 3 -}; -// uint64_values -enum -{ - test_msgs__msg__BoundedPlainSequences__uint64_values__MAX_SIZE = 3 -}; -// basic_types_values -enum -{ - test_msgs__msg__BoundedPlainSequences__basic_types_values__MAX_SIZE = 3 -}; -// constants_values -enum -{ - test_msgs__msg__BoundedPlainSequences__constants_values__MAX_SIZE = 3 -}; -// defaults_values -enum -{ - test_msgs__msg__BoundedPlainSequences__defaults_values__MAX_SIZE = 3 -}; -// bool_values_default -enum -{ - test_msgs__msg__BoundedPlainSequences__bool_values_default__MAX_SIZE = 3 -}; -// byte_values_default -enum -{ - test_msgs__msg__BoundedPlainSequences__byte_values_default__MAX_SIZE = 3 -}; -// char_values_default -enum -{ - test_msgs__msg__BoundedPlainSequences__char_values_default__MAX_SIZE = 3 -}; -// float32_values_default -enum -{ - test_msgs__msg__BoundedPlainSequences__float32_values_default__MAX_SIZE = 3 -}; -// float64_values_default -enum -{ - test_msgs__msg__BoundedPlainSequences__float64_values_default__MAX_SIZE = 3 -}; -// int8_values_default -enum -{ - test_msgs__msg__BoundedPlainSequences__int8_values_default__MAX_SIZE = 3 -}; -// uint8_values_default -enum -{ - test_msgs__msg__BoundedPlainSequences__uint8_values_default__MAX_SIZE = 3 -}; -// int16_values_default -enum -{ - test_msgs__msg__BoundedPlainSequences__int16_values_default__MAX_SIZE = 3 -}; -// uint16_values_default -enum -{ - test_msgs__msg__BoundedPlainSequences__uint16_values_default__MAX_SIZE = 3 -}; -// int32_values_default -enum -{ - test_msgs__msg__BoundedPlainSequences__int32_values_default__MAX_SIZE = 3 -}; -// uint32_values_default -enum -{ - test_msgs__msg__BoundedPlainSequences__uint32_values_default__MAX_SIZE = 3 -}; -// int64_values_default -enum -{ - test_msgs__msg__BoundedPlainSequences__int64_values_default__MAX_SIZE = 3 -}; -// uint64_values_default -enum -{ - test_msgs__msg__BoundedPlainSequences__uint64_values_default__MAX_SIZE = 3 -}; - -/// Struct defined in msg/BoundedPlainSequences in the package test_msgs. -/** - * Bounded sequences of different POD types - */ -typedef struct test_msgs__msg__BoundedPlainSequences -{ - rosidl_runtime_c__boolean__Sequence bool_values; - rosidl_runtime_c__octet__Sequence byte_values; - rosidl_runtime_c__uint8__Sequence char_values; - rosidl_runtime_c__float__Sequence float32_values; - rosidl_runtime_c__double__Sequence float64_values; - rosidl_runtime_c__int8__Sequence int8_values; - rosidl_runtime_c__uint8__Sequence uint8_values; - rosidl_runtime_c__int16__Sequence int16_values; - rosidl_runtime_c__uint16__Sequence uint16_values; - rosidl_runtime_c__int32__Sequence int32_values; - rosidl_runtime_c__uint32__Sequence uint32_values; - rosidl_runtime_c__int64__Sequence int64_values; - rosidl_runtime_c__uint64__Sequence uint64_values; - test_msgs__msg__BasicTypes__Sequence basic_types_values; - test_msgs__msg__Constants__Sequence constants_values; - test_msgs__msg__Defaults__Sequence defaults_values; - rosidl_runtime_c__boolean__Sequence bool_values_default; - rosidl_runtime_c__octet__Sequence byte_values_default; - rosidl_runtime_c__uint8__Sequence char_values_default; - rosidl_runtime_c__float__Sequence float32_values_default; - rosidl_runtime_c__double__Sequence float64_values_default; - rosidl_runtime_c__int8__Sequence int8_values_default; - rosidl_runtime_c__uint8__Sequence uint8_values_default; - rosidl_runtime_c__int16__Sequence int16_values_default; - rosidl_runtime_c__uint16__Sequence uint16_values_default; - rosidl_runtime_c__int32__Sequence int32_values_default; - rosidl_runtime_c__uint32__Sequence uint32_values_default; - rosidl_runtime_c__int64__Sequence int64_values_default; - rosidl_runtime_c__uint64__Sequence uint64_values_default; - /// Regression test: check alignment of basic field after a sequence field is correct - int32_t alignment_check; -} test_msgs__msg__BoundedPlainSequences; - -// Struct for a sequence of test_msgs__msg__BoundedPlainSequences. -typedef struct test_msgs__msg__BoundedPlainSequences__Sequence -{ - test_msgs__msg__BoundedPlainSequences * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__BoundedPlainSequences__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BOUNDED_PLAIN_SEQUENCES__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/bounded_plain_sequences__type_support.h b/src/test_msgs/msg/detail/bounded_plain_sequences__type_support.h deleted file mode 100755 index 3aeb6e923..000000000 --- a/src/test_msgs/msg/detail/bounded_plain_sequences__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/BoundedPlainSequences.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/bounded_plain_sequences.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__BOUNDED_PLAIN_SEQUENCES__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__BOUNDED_PLAIN_SEQUENCES__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - BoundedPlainSequences -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BOUNDED_PLAIN_SEQUENCES__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/bounded_sequences__functions.h b/src/test_msgs/msg/detail/bounded_sequences__functions.h deleted file mode 100755 index 037ec33d8..000000000 --- a/src/test_msgs/msg/detail/bounded_sequences__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/BoundedSequences.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/bounded_sequences.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__BOUNDED_SEQUENCES__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__BOUNDED_SEQUENCES__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/bounded_sequences__struct.h" - -/// Initialize msg/BoundedSequences message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__BoundedSequences - * )) before or use - * test_msgs__msg__BoundedSequences__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BoundedSequences__init(test_msgs__msg__BoundedSequences * msg); - -/// Finalize msg/BoundedSequences message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__BoundedSequences__fini(test_msgs__msg__BoundedSequences * msg); - -/// Create msg/BoundedSequences message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__BoundedSequences__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__BoundedSequences * -test_msgs__msg__BoundedSequences__create(void); - -/// Destroy msg/BoundedSequences message. -/** - * It calls - * test_msgs__msg__BoundedSequences__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__BoundedSequences__destroy(test_msgs__msg__BoundedSequences * msg); - -/// Check for msg/BoundedSequences message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BoundedSequences__are_equal(const test_msgs__msg__BoundedSequences * lhs, const test_msgs__msg__BoundedSequences * rhs); - -/// Copy a msg/BoundedSequences message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BoundedSequences__copy( - const test_msgs__msg__BoundedSequences * input, - test_msgs__msg__BoundedSequences * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__BoundedSequences__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__BoundedSequences__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__BoundedSequences__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__BoundedSequences__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/BoundedSequences messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__BoundedSequences__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BoundedSequences__Sequence__init(test_msgs__msg__BoundedSequences__Sequence * array, size_t size); - -/// Finalize array of msg/BoundedSequences messages. -/** - * It calls - * test_msgs__msg__BoundedSequences__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__BoundedSequences__Sequence__fini(test_msgs__msg__BoundedSequences__Sequence * array); - -/// Create array of msg/BoundedSequences messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__BoundedSequences__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__BoundedSequences__Sequence * -test_msgs__msg__BoundedSequences__Sequence__create(size_t size); - -/// Destroy array of msg/BoundedSequences messages. -/** - * It calls - * test_msgs__msg__BoundedSequences__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__BoundedSequences__Sequence__destroy(test_msgs__msg__BoundedSequences__Sequence * array); - -/// Check for msg/BoundedSequences message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BoundedSequences__Sequence__are_equal(const test_msgs__msg__BoundedSequences__Sequence * lhs, const test_msgs__msg__BoundedSequences__Sequence * rhs); - -/// Copy an array of msg/BoundedSequences messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__BoundedSequences__Sequence__copy( - const test_msgs__msg__BoundedSequences__Sequence * input, - test_msgs__msg__BoundedSequences__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BOUNDED_SEQUENCES__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/bounded_sequences__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/bounded_sequences__rosidl_typesupport_introspection_c.h deleted file mode 100755 index e74f88dbc..000000000 --- a/src/test_msgs/msg/detail/bounded_sequences__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/BoundedSequences.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__BOUNDED_SEQUENCES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__BOUNDED_SEQUENCES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, BoundedSequences)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BOUNDED_SEQUENCES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/bounded_sequences__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/bounded_sequences__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 26a4a2a57..000000000 --- a/src/test_msgs/msg/detail/bounded_sequences__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/BoundedSequences.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__BOUNDED_SEQUENCES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__BOUNDED_SEQUENCES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__BoundedSequences( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__BoundedSequences( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, BoundedSequences)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__BOUNDED_SEQUENCES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/bounded_sequences__struct.h b/src/test_msgs/msg/detail/bounded_sequences__struct.h deleted file mode 100755 index 31512f269..000000000 --- a/src/test_msgs/msg/detail/bounded_sequences__struct.h +++ /dev/null @@ -1,272 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/BoundedSequences.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/bounded_sequences.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__BOUNDED_SEQUENCES__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__BOUNDED_SEQUENCES__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'bool_values' -// Member 'byte_values' -// Member 'char_values' -// Member 'float32_values' -// Member 'float64_values' -// Member 'int8_values' -// Member 'uint8_values' -// Member 'int16_values' -// Member 'uint16_values' -// Member 'int32_values' -// Member 'uint32_values' -// Member 'int64_values' -// Member 'uint64_values' -// Member 'bool_values_default' -// Member 'byte_values_default' -// Member 'char_values_default' -// Member 'float32_values_default' -// Member 'float64_values_default' -// Member 'int8_values_default' -// Member 'uint8_values_default' -// Member 'int16_values_default' -// Member 'uint16_values_default' -// Member 'int32_values_default' -// Member 'uint32_values_default' -// Member 'int64_values_default' -// Member 'uint64_values_default' -#include "rosidl_runtime_c/primitives_sequence.h" -// Member 'string_values' -// Member 'string_values_default' -#include "rosidl_runtime_c/string.h" -// Member 'basic_types_values' -#include "test_msgs/msg/detail/basic_types__struct.h" -// Member 'constants_values' -#include "test_msgs/msg/detail/constants__struct.h" -// Member 'defaults_values' -#include "test_msgs/msg/detail/defaults__struct.h" - -// constants for array fields with an upper bound -// bool_values -enum -{ - test_msgs__msg__BoundedSequences__bool_values__MAX_SIZE = 3 -}; -// byte_values -enum -{ - test_msgs__msg__BoundedSequences__byte_values__MAX_SIZE = 3 -}; -// char_values -enum -{ - test_msgs__msg__BoundedSequences__char_values__MAX_SIZE = 3 -}; -// float32_values -enum -{ - test_msgs__msg__BoundedSequences__float32_values__MAX_SIZE = 3 -}; -// float64_values -enum -{ - test_msgs__msg__BoundedSequences__float64_values__MAX_SIZE = 3 -}; -// int8_values -enum -{ - test_msgs__msg__BoundedSequences__int8_values__MAX_SIZE = 3 -}; -// uint8_values -enum -{ - test_msgs__msg__BoundedSequences__uint8_values__MAX_SIZE = 3 -}; -// int16_values -enum -{ - test_msgs__msg__BoundedSequences__int16_values__MAX_SIZE = 3 -}; -// uint16_values -enum -{ - test_msgs__msg__BoundedSequences__uint16_values__MAX_SIZE = 3 -}; -// int32_values -enum -{ - test_msgs__msg__BoundedSequences__int32_values__MAX_SIZE = 3 -}; -// uint32_values -enum -{ - test_msgs__msg__BoundedSequences__uint32_values__MAX_SIZE = 3 -}; -// int64_values -enum -{ - test_msgs__msg__BoundedSequences__int64_values__MAX_SIZE = 3 -}; -// uint64_values -enum -{ - test_msgs__msg__BoundedSequences__uint64_values__MAX_SIZE = 3 -}; -// string_values -enum -{ - test_msgs__msg__BoundedSequences__string_values__MAX_SIZE = 3 -}; -// basic_types_values -enum -{ - test_msgs__msg__BoundedSequences__basic_types_values__MAX_SIZE = 3 -}; -// constants_values -enum -{ - test_msgs__msg__BoundedSequences__constants_values__MAX_SIZE = 3 -}; -// defaults_values -enum -{ - test_msgs__msg__BoundedSequences__defaults_values__MAX_SIZE = 3 -}; -// bool_values_default -enum -{ - test_msgs__msg__BoundedSequences__bool_values_default__MAX_SIZE = 3 -}; -// byte_values_default -enum -{ - test_msgs__msg__BoundedSequences__byte_values_default__MAX_SIZE = 3 -}; -// char_values_default -enum -{ - test_msgs__msg__BoundedSequences__char_values_default__MAX_SIZE = 3 -}; -// float32_values_default -enum -{ - test_msgs__msg__BoundedSequences__float32_values_default__MAX_SIZE = 3 -}; -// float64_values_default -enum -{ - test_msgs__msg__BoundedSequences__float64_values_default__MAX_SIZE = 3 -}; -// int8_values_default -enum -{ - test_msgs__msg__BoundedSequences__int8_values_default__MAX_SIZE = 3 -}; -// uint8_values_default -enum -{ - test_msgs__msg__BoundedSequences__uint8_values_default__MAX_SIZE = 3 -}; -// int16_values_default -enum -{ - test_msgs__msg__BoundedSequences__int16_values_default__MAX_SIZE = 3 -}; -// uint16_values_default -enum -{ - test_msgs__msg__BoundedSequences__uint16_values_default__MAX_SIZE = 3 -}; -// int32_values_default -enum -{ - test_msgs__msg__BoundedSequences__int32_values_default__MAX_SIZE = 3 -}; -// uint32_values_default -enum -{ - test_msgs__msg__BoundedSequences__uint32_values_default__MAX_SIZE = 3 -}; -// int64_values_default -enum -{ - test_msgs__msg__BoundedSequences__int64_values_default__MAX_SIZE = 3 -}; -// uint64_values_default -enum -{ - test_msgs__msg__BoundedSequences__uint64_values_default__MAX_SIZE = 3 -}; -// string_values_default -enum -{ - test_msgs__msg__BoundedSequences__string_values_default__MAX_SIZE = 3 -}; - -/// Struct defined in msg/BoundedSequences in the package test_msgs. -/** - * Bounded sequences of different types - */ -typedef struct test_msgs__msg__BoundedSequences -{ - rosidl_runtime_c__boolean__Sequence bool_values; - rosidl_runtime_c__octet__Sequence byte_values; - rosidl_runtime_c__uint8__Sequence char_values; - rosidl_runtime_c__float__Sequence float32_values; - rosidl_runtime_c__double__Sequence float64_values; - rosidl_runtime_c__int8__Sequence int8_values; - rosidl_runtime_c__uint8__Sequence uint8_values; - rosidl_runtime_c__int16__Sequence int16_values; - rosidl_runtime_c__uint16__Sequence uint16_values; - rosidl_runtime_c__int32__Sequence int32_values; - rosidl_runtime_c__uint32__Sequence uint32_values; - rosidl_runtime_c__int64__Sequence int64_values; - rosidl_runtime_c__uint64__Sequence uint64_values; - rosidl_runtime_c__String__Sequence string_values; - test_msgs__msg__BasicTypes__Sequence basic_types_values; - test_msgs__msg__Constants__Sequence constants_values; - test_msgs__msg__Defaults__Sequence defaults_values; - rosidl_runtime_c__boolean__Sequence bool_values_default; - rosidl_runtime_c__octet__Sequence byte_values_default; - rosidl_runtime_c__uint8__Sequence char_values_default; - rosidl_runtime_c__float__Sequence float32_values_default; - rosidl_runtime_c__double__Sequence float64_values_default; - rosidl_runtime_c__int8__Sequence int8_values_default; - rosidl_runtime_c__uint8__Sequence uint8_values_default; - rosidl_runtime_c__int16__Sequence int16_values_default; - rosidl_runtime_c__uint16__Sequence uint16_values_default; - rosidl_runtime_c__int32__Sequence int32_values_default; - rosidl_runtime_c__uint32__Sequence uint32_values_default; - rosidl_runtime_c__int64__Sequence int64_values_default; - rosidl_runtime_c__uint64__Sequence uint64_values_default; - rosidl_runtime_c__String__Sequence string_values_default; - /// Regression test: check alignment of basic field after a sequence field is correct - int32_t alignment_check; -} test_msgs__msg__BoundedSequences; - -// Struct for a sequence of test_msgs__msg__BoundedSequences. -typedef struct test_msgs__msg__BoundedSequences__Sequence -{ - test_msgs__msg__BoundedSequences * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__BoundedSequences__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BOUNDED_SEQUENCES__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/bounded_sequences__type_support.h b/src/test_msgs/msg/detail/bounded_sequences__type_support.h deleted file mode 100755 index 4ee1ac25f..000000000 --- a/src/test_msgs/msg/detail/bounded_sequences__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/BoundedSequences.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/bounded_sequences.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__BOUNDED_SEQUENCES__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__BOUNDED_SEQUENCES__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - BoundedSequences -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BOUNDED_SEQUENCES__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/builtins__functions.h b/src/test_msgs/msg/detail/builtins__functions.h deleted file mode 100755 index 449100836..000000000 --- a/src/test_msgs/msg/detail/builtins__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/Builtins.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/builtins.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__BUILTINS__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__BUILTINS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/builtins__struct.h" - -/// Initialize msg/Builtins message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__Builtins - * )) before or use - * test_msgs__msg__Builtins__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Builtins__init(test_msgs__msg__Builtins * msg); - -/// Finalize msg/Builtins message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Builtins__fini(test_msgs__msg__Builtins * msg); - -/// Create msg/Builtins message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__Builtins__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Builtins * -test_msgs__msg__Builtins__create(void); - -/// Destroy msg/Builtins message. -/** - * It calls - * test_msgs__msg__Builtins__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Builtins__destroy(test_msgs__msg__Builtins * msg); - -/// Check for msg/Builtins message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Builtins__are_equal(const test_msgs__msg__Builtins * lhs, const test_msgs__msg__Builtins * rhs); - -/// Copy a msg/Builtins message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Builtins__copy( - const test_msgs__msg__Builtins * input, - test_msgs__msg__Builtins * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__Builtins__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__Builtins__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__Builtins__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__Builtins__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Builtins messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__Builtins__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Builtins__Sequence__init(test_msgs__msg__Builtins__Sequence * array, size_t size); - -/// Finalize array of msg/Builtins messages. -/** - * It calls - * test_msgs__msg__Builtins__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Builtins__Sequence__fini(test_msgs__msg__Builtins__Sequence * array); - -/// Create array of msg/Builtins messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__Builtins__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Builtins__Sequence * -test_msgs__msg__Builtins__Sequence__create(size_t size); - -/// Destroy array of msg/Builtins messages. -/** - * It calls - * test_msgs__msg__Builtins__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Builtins__Sequence__destroy(test_msgs__msg__Builtins__Sequence * array); - -/// Check for msg/Builtins message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Builtins__Sequence__are_equal(const test_msgs__msg__Builtins__Sequence * lhs, const test_msgs__msg__Builtins__Sequence * rhs); - -/// Copy an array of msg/Builtins messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Builtins__Sequence__copy( - const test_msgs__msg__Builtins__Sequence * input, - test_msgs__msg__Builtins__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BUILTINS__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/builtins__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/builtins__rosidl_typesupport_introspection_c.h deleted file mode 100755 index a0c8a0426..000000000 --- a/src/test_msgs/msg/detail/builtins__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/Builtins.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__BUILTINS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__BUILTINS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, Builtins)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BUILTINS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/builtins__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/builtins__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 1c44133c8..000000000 --- a/src/test_msgs/msg/detail/builtins__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/Builtins.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__BUILTINS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__BUILTINS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__Builtins( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__Builtins( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, Builtins)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__BUILTINS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/builtins__struct.h b/src/test_msgs/msg/detail/builtins__struct.h deleted file mode 100755 index f58b61341..000000000 --- a/src/test_msgs/msg/detail/builtins__struct.h +++ /dev/null @@ -1,49 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/Builtins.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/builtins.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__BUILTINS__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__BUILTINS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'duration_value' -#include "builtin_interfaces/msg/detail/duration__struct.h" -// Member 'time_value' -#include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in msg/Builtins in the package test_msgs. -typedef struct test_msgs__msg__Builtins -{ - builtin_interfaces__msg__Duration duration_value; - builtin_interfaces__msg__Time time_value; -} test_msgs__msg__Builtins; - -// Struct for a sequence of test_msgs__msg__Builtins. -typedef struct test_msgs__msg__Builtins__Sequence -{ - test_msgs__msg__Builtins * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__Builtins__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BUILTINS__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/builtins__type_support.h b/src/test_msgs/msg/detail/builtins__type_support.h deleted file mode 100755 index ebcd8f44c..000000000 --- a/src/test_msgs/msg/detail/builtins__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/Builtins.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/builtins.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__BUILTINS__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__BUILTINS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - Builtins -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__BUILTINS__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/complex_nested_key__functions.h b/src/test_msgs/msg/detail/complex_nested_key__functions.h deleted file mode 100755 index f35016800..000000000 --- a/src/test_msgs/msg/detail/complex_nested_key__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/ComplexNestedKey.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/complex_nested_key.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__COMPLEX_NESTED_KEY__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__COMPLEX_NESTED_KEY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/complex_nested_key__struct.h" - -/// Initialize msg/ComplexNestedKey message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__ComplexNestedKey - * )) before or use - * test_msgs__msg__ComplexNestedKey__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__ComplexNestedKey__init(test_msgs__msg__ComplexNestedKey * msg); - -/// Finalize msg/ComplexNestedKey message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__ComplexNestedKey__fini(test_msgs__msg__ComplexNestedKey * msg); - -/// Create msg/ComplexNestedKey message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__ComplexNestedKey__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__ComplexNestedKey * -test_msgs__msg__ComplexNestedKey__create(void); - -/// Destroy msg/ComplexNestedKey message. -/** - * It calls - * test_msgs__msg__ComplexNestedKey__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__ComplexNestedKey__destroy(test_msgs__msg__ComplexNestedKey * msg); - -/// Check for msg/ComplexNestedKey message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__ComplexNestedKey__are_equal(const test_msgs__msg__ComplexNestedKey * lhs, const test_msgs__msg__ComplexNestedKey * rhs); - -/// Copy a msg/ComplexNestedKey message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__ComplexNestedKey__copy( - const test_msgs__msg__ComplexNestedKey * input, - test_msgs__msg__ComplexNestedKey * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__ComplexNestedKey__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__ComplexNestedKey__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__ComplexNestedKey__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__ComplexNestedKey__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/ComplexNestedKey messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__ComplexNestedKey__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__ComplexNestedKey__Sequence__init(test_msgs__msg__ComplexNestedKey__Sequence * array, size_t size); - -/// Finalize array of msg/ComplexNestedKey messages. -/** - * It calls - * test_msgs__msg__ComplexNestedKey__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__ComplexNestedKey__Sequence__fini(test_msgs__msg__ComplexNestedKey__Sequence * array); - -/// Create array of msg/ComplexNestedKey messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__ComplexNestedKey__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__ComplexNestedKey__Sequence * -test_msgs__msg__ComplexNestedKey__Sequence__create(size_t size); - -/// Destroy array of msg/ComplexNestedKey messages. -/** - * It calls - * test_msgs__msg__ComplexNestedKey__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__ComplexNestedKey__Sequence__destroy(test_msgs__msg__ComplexNestedKey__Sequence * array); - -/// Check for msg/ComplexNestedKey message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__ComplexNestedKey__Sequence__are_equal(const test_msgs__msg__ComplexNestedKey__Sequence * lhs, const test_msgs__msg__ComplexNestedKey__Sequence * rhs); - -/// Copy an array of msg/ComplexNestedKey messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__ComplexNestedKey__Sequence__copy( - const test_msgs__msg__ComplexNestedKey__Sequence * input, - test_msgs__msg__ComplexNestedKey__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__COMPLEX_NESTED_KEY__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/complex_nested_key__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/complex_nested_key__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 015ec4e72..000000000 --- a/src/test_msgs/msg/detail/complex_nested_key__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/ComplexNestedKey.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__COMPLEX_NESTED_KEY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__COMPLEX_NESTED_KEY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, ComplexNestedKey)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__COMPLEX_NESTED_KEY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/complex_nested_key__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/complex_nested_key__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 7b121f61b..000000000 --- a/src/test_msgs/msg/detail/complex_nested_key__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/ComplexNestedKey.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__COMPLEX_NESTED_KEY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__COMPLEX_NESTED_KEY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__ComplexNestedKey( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__ComplexNestedKey( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, ComplexNestedKey)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__COMPLEX_NESTED_KEY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/complex_nested_key__struct.h b/src/test_msgs/msg/detail/complex_nested_key__struct.h deleted file mode 100755 index d805ff221..000000000 --- a/src/test_msgs/msg/detail/complex_nested_key__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/ComplexNestedKey.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/complex_nested_key.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__COMPLEX_NESTED_KEY__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__COMPLEX_NESTED_KEY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'nested_keys' -#include "test_msgs/msg/detail/non_keyed_with_nested_key__struct.h" - -/// Struct defined in msg/ComplexNestedKey in the package test_msgs. -typedef struct test_msgs__msg__ComplexNestedKey -{ - uint32_t uint32_key; - test_msgs__msg__NonKeyedWithNestedKey nested_keys; - double float64_value; -} test_msgs__msg__ComplexNestedKey; - -// Struct for a sequence of test_msgs__msg__ComplexNestedKey. -typedef struct test_msgs__msg__ComplexNestedKey__Sequence -{ - test_msgs__msg__ComplexNestedKey * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__ComplexNestedKey__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__COMPLEX_NESTED_KEY__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/complex_nested_key__type_support.h b/src/test_msgs/msg/detail/complex_nested_key__type_support.h deleted file mode 100755 index 322c68b3d..000000000 --- a/src/test_msgs/msg/detail/complex_nested_key__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/ComplexNestedKey.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/complex_nested_key.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__COMPLEX_NESTED_KEY__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__COMPLEX_NESTED_KEY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - ComplexNestedKey -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__COMPLEX_NESTED_KEY__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/constants__functions.h b/src/test_msgs/msg/detail/constants__functions.h deleted file mode 100755 index 9b2ce5ac8..000000000 --- a/src/test_msgs/msg/detail/constants__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/Constants.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/constants.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__CONSTANTS__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__CONSTANTS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/constants__struct.h" - -/// Initialize msg/Constants message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__Constants - * )) before or use - * test_msgs__msg__Constants__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Constants__init(test_msgs__msg__Constants * msg); - -/// Finalize msg/Constants message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Constants__fini(test_msgs__msg__Constants * msg); - -/// Create msg/Constants message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__Constants__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Constants * -test_msgs__msg__Constants__create(void); - -/// Destroy msg/Constants message. -/** - * It calls - * test_msgs__msg__Constants__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Constants__destroy(test_msgs__msg__Constants * msg); - -/// Check for msg/Constants message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Constants__are_equal(const test_msgs__msg__Constants * lhs, const test_msgs__msg__Constants * rhs); - -/// Copy a msg/Constants message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Constants__copy( - const test_msgs__msg__Constants * input, - test_msgs__msg__Constants * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__Constants__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__Constants__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__Constants__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__Constants__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Constants messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__Constants__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Constants__Sequence__init(test_msgs__msg__Constants__Sequence * array, size_t size); - -/// Finalize array of msg/Constants messages. -/** - * It calls - * test_msgs__msg__Constants__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Constants__Sequence__fini(test_msgs__msg__Constants__Sequence * array); - -/// Create array of msg/Constants messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__Constants__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Constants__Sequence * -test_msgs__msg__Constants__Sequence__create(size_t size); - -/// Destroy array of msg/Constants messages. -/** - * It calls - * test_msgs__msg__Constants__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Constants__Sequence__destroy(test_msgs__msg__Constants__Sequence * array); - -/// Check for msg/Constants message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Constants__Sequence__are_equal(const test_msgs__msg__Constants__Sequence * lhs, const test_msgs__msg__Constants__Sequence * rhs); - -/// Copy an array of msg/Constants messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Constants__Sequence__copy( - const test_msgs__msg__Constants__Sequence * input, - test_msgs__msg__Constants__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__CONSTANTS__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/constants__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/constants__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 94bac6aa3..000000000 --- a/src/test_msgs/msg/detail/constants__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/Constants.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__CONSTANTS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__CONSTANTS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, Constants)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__CONSTANTS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/constants__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/constants__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index f3443412d..000000000 --- a/src/test_msgs/msg/detail/constants__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/Constants.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__CONSTANTS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__CONSTANTS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__Constants( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__Constants( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, Constants)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__CONSTANTS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/constants__struct.h b/src/test_msgs/msg/detail/constants__struct.h deleted file mode 100755 index 32cb99e92..000000000 --- a/src/test_msgs/msg/detail/constants__struct.h +++ /dev/null @@ -1,111 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/Constants.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/constants.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__CONSTANTS__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__CONSTANTS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'BOOL_CONST'. -static const bool test_msgs__msg__Constants__BOOL_CONST = true; - -/// Constant 'BYTE_CONST'. -enum -{ - test_msgs__msg__Constants__BYTE_CONST = 50 -}; - -/// Constant 'CHAR_CONST'. -enum -{ - test_msgs__msg__Constants__CHAR_CONST = 100 -}; - -/// Constant 'FLOAT32_CONST'. -static const float test_msgs__msg__Constants__FLOAT32_CONST = 1.125f; - -/// Constant 'FLOAT64_CONST'. -static const double test_msgs__msg__Constants__FLOAT64_CONST = 1.125l; - -/// Constant 'INT8_CONST'. -enum -{ - test_msgs__msg__Constants__INT8_CONST = -50 -}; - -/// Constant 'UINT8_CONST'. -enum -{ - test_msgs__msg__Constants__UINT8_CONST = 200 -}; - -/// Constant 'INT16_CONST'. -enum -{ - test_msgs__msg__Constants__INT16_CONST = -1000 -}; - -/// Constant 'UINT16_CONST'. -enum -{ - test_msgs__msg__Constants__UINT16_CONST = 2000 -}; - -/// Constant 'INT32_CONST'. -enum -{ - test_msgs__msg__Constants__INT32_CONST = -30000l -}; - -/// Constant 'UINT32_CONST'. -enum -{ - test_msgs__msg__Constants__UINT32_CONST = 60000ul -}; - -/// Constant 'INT64_CONST'. -enum -{ - test_msgs__msg__Constants__INT64_CONST = -40000000ll -}; - -/// Constant 'UINT64_CONST'. -enum -{ - test_msgs__msg__Constants__UINT64_CONST = 50000000ull -}; - -/// Struct defined in msg/Constants in the package test_msgs. -typedef struct test_msgs__msg__Constants -{ - uint8_t structure_needs_at_least_one_member; -} test_msgs__msg__Constants; - -// Struct for a sequence of test_msgs__msg__Constants. -typedef struct test_msgs__msg__Constants__Sequence -{ - test_msgs__msg__Constants * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__Constants__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__CONSTANTS__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/constants__type_support.h b/src/test_msgs/msg/detail/constants__type_support.h deleted file mode 100755 index 9fbc56bbc..000000000 --- a/src/test_msgs/msg/detail/constants__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/Constants.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/constants.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__CONSTANTS__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__CONSTANTS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - Constants -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__CONSTANTS__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/defaults__functions.h b/src/test_msgs/msg/detail/defaults__functions.h deleted file mode 100755 index 6d85bb9bc..000000000 --- a/src/test_msgs/msg/detail/defaults__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/Defaults.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/defaults.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__DEFAULTS__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__DEFAULTS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/defaults__struct.h" - -/// Initialize msg/Defaults message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__Defaults - * )) before or use - * test_msgs__msg__Defaults__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Defaults__init(test_msgs__msg__Defaults * msg); - -/// Finalize msg/Defaults message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Defaults__fini(test_msgs__msg__Defaults * msg); - -/// Create msg/Defaults message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__Defaults__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Defaults * -test_msgs__msg__Defaults__create(void); - -/// Destroy msg/Defaults message. -/** - * It calls - * test_msgs__msg__Defaults__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Defaults__destroy(test_msgs__msg__Defaults * msg); - -/// Check for msg/Defaults message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Defaults__are_equal(const test_msgs__msg__Defaults * lhs, const test_msgs__msg__Defaults * rhs); - -/// Copy a msg/Defaults message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Defaults__copy( - const test_msgs__msg__Defaults * input, - test_msgs__msg__Defaults * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__Defaults__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__Defaults__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__Defaults__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__Defaults__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Defaults messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__Defaults__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Defaults__Sequence__init(test_msgs__msg__Defaults__Sequence * array, size_t size); - -/// Finalize array of msg/Defaults messages. -/** - * It calls - * test_msgs__msg__Defaults__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Defaults__Sequence__fini(test_msgs__msg__Defaults__Sequence * array); - -/// Create array of msg/Defaults messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__Defaults__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Defaults__Sequence * -test_msgs__msg__Defaults__Sequence__create(size_t size); - -/// Destroy array of msg/Defaults messages. -/** - * It calls - * test_msgs__msg__Defaults__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Defaults__Sequence__destroy(test_msgs__msg__Defaults__Sequence * array); - -/// Check for msg/Defaults message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Defaults__Sequence__are_equal(const test_msgs__msg__Defaults__Sequence * lhs, const test_msgs__msg__Defaults__Sequence * rhs); - -/// Copy an array of msg/Defaults messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Defaults__Sequence__copy( - const test_msgs__msg__Defaults__Sequence * input, - test_msgs__msg__Defaults__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__DEFAULTS__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/defaults__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/defaults__rosidl_typesupport_introspection_c.h deleted file mode 100755 index eda0bf01d..000000000 --- a/src/test_msgs/msg/detail/defaults__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/Defaults.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__DEFAULTS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__DEFAULTS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, Defaults)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__DEFAULTS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/defaults__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/defaults__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 6a16795c4..000000000 --- a/src/test_msgs/msg/detail/defaults__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/Defaults.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__DEFAULTS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__DEFAULTS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__Defaults( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__Defaults( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, Defaults)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__DEFAULTS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/defaults__struct.h b/src/test_msgs/msg/detail/defaults__struct.h deleted file mode 100755 index 153a2597f..000000000 --- a/src/test_msgs/msg/detail/defaults__struct.h +++ /dev/null @@ -1,54 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/Defaults.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/defaults.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__DEFAULTS__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__DEFAULTS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Defaults in the package test_msgs. -typedef struct test_msgs__msg__Defaults -{ - bool bool_value; - uint8_t byte_value; - uint8_t char_value; - float float32_value; - double float64_value; - int8_t int8_value; - uint8_t uint8_value; - int16_t int16_value; - uint16_t uint16_value; - int32_t int32_value; - uint32_t uint32_value; - int64_t int64_value; - uint64_t uint64_value; -} test_msgs__msg__Defaults; - -// Struct for a sequence of test_msgs__msg__Defaults. -typedef struct test_msgs__msg__Defaults__Sequence -{ - test_msgs__msg__Defaults * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__Defaults__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__DEFAULTS__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/defaults__type_support.h b/src/test_msgs/msg/detail/defaults__type_support.h deleted file mode 100755 index f880ceb50..000000000 --- a/src/test_msgs/msg/detail/defaults__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/Defaults.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/defaults.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__DEFAULTS__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__DEFAULTS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - Defaults -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__DEFAULTS__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/empty__functions.h b/src/test_msgs/msg/detail/empty__functions.h deleted file mode 100755 index b6ddb0ad8..000000000 --- a/src/test_msgs/msg/detail/empty__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/empty.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__EMPTY__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__EMPTY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/empty__struct.h" - -/// Initialize msg/Empty message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__Empty - * )) before or use - * test_msgs__msg__Empty__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Empty__init(test_msgs__msg__Empty * msg); - -/// Finalize msg/Empty message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Empty__fini(test_msgs__msg__Empty * msg); - -/// Create msg/Empty message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__Empty__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Empty * -test_msgs__msg__Empty__create(void); - -/// Destroy msg/Empty message. -/** - * It calls - * test_msgs__msg__Empty__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Empty__destroy(test_msgs__msg__Empty * msg); - -/// Check for msg/Empty message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Empty__are_equal(const test_msgs__msg__Empty * lhs, const test_msgs__msg__Empty * rhs); - -/// Copy a msg/Empty message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Empty__copy( - const test_msgs__msg__Empty * input, - test_msgs__msg__Empty * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__Empty__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__Empty__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__Empty__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__Empty__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Empty messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__Empty__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Empty__Sequence__init(test_msgs__msg__Empty__Sequence * array, size_t size); - -/// Finalize array of msg/Empty messages. -/** - * It calls - * test_msgs__msg__Empty__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Empty__Sequence__fini(test_msgs__msg__Empty__Sequence * array); - -/// Create array of msg/Empty messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__Empty__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Empty__Sequence * -test_msgs__msg__Empty__Sequence__create(size_t size); - -/// Destroy array of msg/Empty messages. -/** - * It calls - * test_msgs__msg__Empty__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Empty__Sequence__destroy(test_msgs__msg__Empty__Sequence * array); - -/// Check for msg/Empty message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Empty__Sequence__are_equal(const test_msgs__msg__Empty__Sequence * lhs, const test_msgs__msg__Empty__Sequence * rhs); - -/// Copy an array of msg/Empty messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Empty__Sequence__copy( - const test_msgs__msg__Empty__Sequence * input, - test_msgs__msg__Empty__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__EMPTY__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/empty__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/empty__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 634977d31..000000000 --- a/src/test_msgs/msg/detail/empty__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/Empty.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, Empty)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/empty__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/empty__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a32955708..000000000 --- a/src/test_msgs/msg/detail/empty__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/Empty.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__Empty( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__Empty( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, Empty)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/empty__struct.h b/src/test_msgs/msg/detail/empty__struct.h deleted file mode 100755 index 036f9f483..000000000 --- a/src/test_msgs/msg/detail/empty__struct.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/empty.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__EMPTY__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__EMPTY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/Empty in the package test_msgs. -typedef struct test_msgs__msg__Empty -{ - uint8_t structure_needs_at_least_one_member; -} test_msgs__msg__Empty; - -// Struct for a sequence of test_msgs__msg__Empty. -typedef struct test_msgs__msg__Empty__Sequence -{ - test_msgs__msg__Empty * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__Empty__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__EMPTY__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/empty__type_support.h b/src/test_msgs/msg/detail/empty__type_support.h deleted file mode 100755 index 36a85f6e3..000000000 --- a/src/test_msgs/msg/detail/empty__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/empty.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__EMPTY__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__EMPTY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - Empty -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__EMPTY__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/keyed_long__functions.h b/src/test_msgs/msg/detail/keyed_long__functions.h deleted file mode 100755 index fc4b50958..000000000 --- a/src/test_msgs/msg/detail/keyed_long__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/KeyedLong.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/keyed_long.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__KEYED_LONG__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__KEYED_LONG__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/keyed_long__struct.h" - -/// Initialize msg/KeyedLong message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__KeyedLong - * )) before or use - * test_msgs__msg__KeyedLong__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__KeyedLong__init(test_msgs__msg__KeyedLong * msg); - -/// Finalize msg/KeyedLong message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__KeyedLong__fini(test_msgs__msg__KeyedLong * msg); - -/// Create msg/KeyedLong message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__KeyedLong__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__KeyedLong * -test_msgs__msg__KeyedLong__create(void); - -/// Destroy msg/KeyedLong message. -/** - * It calls - * test_msgs__msg__KeyedLong__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__KeyedLong__destroy(test_msgs__msg__KeyedLong * msg); - -/// Check for msg/KeyedLong message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__KeyedLong__are_equal(const test_msgs__msg__KeyedLong * lhs, const test_msgs__msg__KeyedLong * rhs); - -/// Copy a msg/KeyedLong message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__KeyedLong__copy( - const test_msgs__msg__KeyedLong * input, - test_msgs__msg__KeyedLong * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__KeyedLong__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__KeyedLong__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__KeyedLong__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__KeyedLong__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/KeyedLong messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__KeyedLong__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__KeyedLong__Sequence__init(test_msgs__msg__KeyedLong__Sequence * array, size_t size); - -/// Finalize array of msg/KeyedLong messages. -/** - * It calls - * test_msgs__msg__KeyedLong__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__KeyedLong__Sequence__fini(test_msgs__msg__KeyedLong__Sequence * array); - -/// Create array of msg/KeyedLong messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__KeyedLong__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__KeyedLong__Sequence * -test_msgs__msg__KeyedLong__Sequence__create(size_t size); - -/// Destroy array of msg/KeyedLong messages. -/** - * It calls - * test_msgs__msg__KeyedLong__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__KeyedLong__Sequence__destroy(test_msgs__msg__KeyedLong__Sequence * array); - -/// Check for msg/KeyedLong message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__KeyedLong__Sequence__are_equal(const test_msgs__msg__KeyedLong__Sequence * lhs, const test_msgs__msg__KeyedLong__Sequence * rhs); - -/// Copy an array of msg/KeyedLong messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__KeyedLong__Sequence__copy( - const test_msgs__msg__KeyedLong__Sequence * input, - test_msgs__msg__KeyedLong__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__KEYED_LONG__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/keyed_long__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/keyed_long__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 55ac46109..000000000 --- a/src/test_msgs/msg/detail/keyed_long__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/KeyedLong.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__KEYED_LONG__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__KEYED_LONG__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, KeyedLong)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__KEYED_LONG__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/keyed_long__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/keyed_long__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 801c22135..000000000 --- a/src/test_msgs/msg/detail/keyed_long__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/KeyedLong.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__KEYED_LONG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__KEYED_LONG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__KeyedLong( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__KeyedLong( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, KeyedLong)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__KEYED_LONG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/keyed_long__struct.h b/src/test_msgs/msg/detail/keyed_long__struct.h deleted file mode 100755 index ed0a1e6cc..000000000 --- a/src/test_msgs/msg/detail/keyed_long__struct.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/KeyedLong.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/keyed_long.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__KEYED_LONG__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__KEYED_LONG__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/KeyedLong in the package test_msgs. -typedef struct test_msgs__msg__KeyedLong -{ - int32_t key; - int32_t value; -} test_msgs__msg__KeyedLong; - -// Struct for a sequence of test_msgs__msg__KeyedLong. -typedef struct test_msgs__msg__KeyedLong__Sequence -{ - test_msgs__msg__KeyedLong * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__KeyedLong__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__KEYED_LONG__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/keyed_long__type_support.h b/src/test_msgs/msg/detail/keyed_long__type_support.h deleted file mode 100755 index 5635eafe7..000000000 --- a/src/test_msgs/msg/detail/keyed_long__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/KeyedLong.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/keyed_long.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__KEYED_LONG__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__KEYED_LONG__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - KeyedLong -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__KEYED_LONG__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/keyed_string__functions.h b/src/test_msgs/msg/detail/keyed_string__functions.h deleted file mode 100755 index cbff68726..000000000 --- a/src/test_msgs/msg/detail/keyed_string__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/KeyedString.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/keyed_string.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__KEYED_STRING__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__KEYED_STRING__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/keyed_string__struct.h" - -/// Initialize msg/KeyedString message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__KeyedString - * )) before or use - * test_msgs__msg__KeyedString__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__KeyedString__init(test_msgs__msg__KeyedString * msg); - -/// Finalize msg/KeyedString message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__KeyedString__fini(test_msgs__msg__KeyedString * msg); - -/// Create msg/KeyedString message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__KeyedString__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__KeyedString * -test_msgs__msg__KeyedString__create(void); - -/// Destroy msg/KeyedString message. -/** - * It calls - * test_msgs__msg__KeyedString__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__KeyedString__destroy(test_msgs__msg__KeyedString * msg); - -/// Check for msg/KeyedString message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__KeyedString__are_equal(const test_msgs__msg__KeyedString * lhs, const test_msgs__msg__KeyedString * rhs); - -/// Copy a msg/KeyedString message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__KeyedString__copy( - const test_msgs__msg__KeyedString * input, - test_msgs__msg__KeyedString * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__KeyedString__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__KeyedString__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__KeyedString__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__KeyedString__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/KeyedString messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__KeyedString__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__KeyedString__Sequence__init(test_msgs__msg__KeyedString__Sequence * array, size_t size); - -/// Finalize array of msg/KeyedString messages. -/** - * It calls - * test_msgs__msg__KeyedString__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__KeyedString__Sequence__fini(test_msgs__msg__KeyedString__Sequence * array); - -/// Create array of msg/KeyedString messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__KeyedString__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__KeyedString__Sequence * -test_msgs__msg__KeyedString__Sequence__create(size_t size); - -/// Destroy array of msg/KeyedString messages. -/** - * It calls - * test_msgs__msg__KeyedString__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__KeyedString__Sequence__destroy(test_msgs__msg__KeyedString__Sequence * array); - -/// Check for msg/KeyedString message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__KeyedString__Sequence__are_equal(const test_msgs__msg__KeyedString__Sequence * lhs, const test_msgs__msg__KeyedString__Sequence * rhs); - -/// Copy an array of msg/KeyedString messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__KeyedString__Sequence__copy( - const test_msgs__msg__KeyedString__Sequence * input, - test_msgs__msg__KeyedString__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__KEYED_STRING__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/keyed_string__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/keyed_string__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 7315fc92e..000000000 --- a/src/test_msgs/msg/detail/keyed_string__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/KeyedString.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__KEYED_STRING__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__KEYED_STRING__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, KeyedString)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__KEYED_STRING__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/keyed_string__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/keyed_string__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 3c7e94b49..000000000 --- a/src/test_msgs/msg/detail/keyed_string__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/KeyedString.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__KEYED_STRING__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__KEYED_STRING__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__KeyedString( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__KeyedString( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, KeyedString)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__KEYED_STRING__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/keyed_string__struct.h b/src/test_msgs/msg/detail/keyed_string__struct.h deleted file mode 100755 index b08aa6cd6..000000000 --- a/src/test_msgs/msg/detail/keyed_string__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/KeyedString.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/keyed_string.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__KEYED_STRING__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__KEYED_STRING__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'key' -// Member 'value' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/KeyedString in the package test_msgs. -typedef struct test_msgs__msg__KeyedString -{ - rosidl_runtime_c__String key; - rosidl_runtime_c__String value; -} test_msgs__msg__KeyedString; - -// Struct for a sequence of test_msgs__msg__KeyedString. -typedef struct test_msgs__msg__KeyedString__Sequence -{ - test_msgs__msg__KeyedString * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__KeyedString__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__KEYED_STRING__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/keyed_string__type_support.h b/src/test_msgs/msg/detail/keyed_string__type_support.h deleted file mode 100755 index 8b5e2a3a6..000000000 --- a/src/test_msgs/msg/detail/keyed_string__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/KeyedString.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/keyed_string.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__KEYED_STRING__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__KEYED_STRING__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - KeyedString -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__KEYED_STRING__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/multi_nested__functions.h b/src/test_msgs/msg/detail/multi_nested__functions.h deleted file mode 100755 index 6dfab919f..000000000 --- a/src/test_msgs/msg/detail/multi_nested__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/MultiNested.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/multi_nested.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__MULTI_NESTED__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__MULTI_NESTED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/multi_nested__struct.h" - -/// Initialize msg/MultiNested message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__MultiNested - * )) before or use - * test_msgs__msg__MultiNested__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__MultiNested__init(test_msgs__msg__MultiNested * msg); - -/// Finalize msg/MultiNested message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__MultiNested__fini(test_msgs__msg__MultiNested * msg); - -/// Create msg/MultiNested message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__MultiNested__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__MultiNested * -test_msgs__msg__MultiNested__create(void); - -/// Destroy msg/MultiNested message. -/** - * It calls - * test_msgs__msg__MultiNested__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__MultiNested__destroy(test_msgs__msg__MultiNested * msg); - -/// Check for msg/MultiNested message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__MultiNested__are_equal(const test_msgs__msg__MultiNested * lhs, const test_msgs__msg__MultiNested * rhs); - -/// Copy a msg/MultiNested message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__MultiNested__copy( - const test_msgs__msg__MultiNested * input, - test_msgs__msg__MultiNested * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__MultiNested__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__MultiNested__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__MultiNested__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__MultiNested__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MultiNested messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__MultiNested__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__MultiNested__Sequence__init(test_msgs__msg__MultiNested__Sequence * array, size_t size); - -/// Finalize array of msg/MultiNested messages. -/** - * It calls - * test_msgs__msg__MultiNested__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__MultiNested__Sequence__fini(test_msgs__msg__MultiNested__Sequence * array); - -/// Create array of msg/MultiNested messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__MultiNested__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__MultiNested__Sequence * -test_msgs__msg__MultiNested__Sequence__create(size_t size); - -/// Destroy array of msg/MultiNested messages. -/** - * It calls - * test_msgs__msg__MultiNested__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__MultiNested__Sequence__destroy(test_msgs__msg__MultiNested__Sequence * array); - -/// Check for msg/MultiNested message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__MultiNested__Sequence__are_equal(const test_msgs__msg__MultiNested__Sequence * lhs, const test_msgs__msg__MultiNested__Sequence * rhs); - -/// Copy an array of msg/MultiNested messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__MultiNested__Sequence__copy( - const test_msgs__msg__MultiNested__Sequence * input, - test_msgs__msg__MultiNested__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__MULTI_NESTED__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/multi_nested__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/multi_nested__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 4784fa545..000000000 --- a/src/test_msgs/msg/detail/multi_nested__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/MultiNested.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__MULTI_NESTED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__MULTI_NESTED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, MultiNested)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__MULTI_NESTED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/multi_nested__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/multi_nested__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a5324c3bd..000000000 --- a/src/test_msgs/msg/detail/multi_nested__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/MultiNested.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__MULTI_NESTED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__MULTI_NESTED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__MultiNested( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__MultiNested( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, MultiNested)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__MULTI_NESTED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/multi_nested__struct.h b/src/test_msgs/msg/detail/multi_nested__struct.h deleted file mode 100755 index f756f3478..000000000 --- a/src/test_msgs/msg/detail/multi_nested__struct.h +++ /dev/null @@ -1,84 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/MultiNested.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/multi_nested.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__MULTI_NESTED__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__MULTI_NESTED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'array_of_arrays' -// Member 'bounded_sequence_of_arrays' -// Member 'unbounded_sequence_of_arrays' -#include "test_msgs/msg/detail/arrays__struct.h" -// Member 'array_of_bounded_sequences' -// Member 'bounded_sequence_of_bounded_sequences' -// Member 'unbounded_sequence_of_bounded_sequences' -#include "test_msgs/msg/detail/bounded_sequences__struct.h" -// Member 'array_of_unbounded_sequences' -// Member 'bounded_sequence_of_unbounded_sequences' -// Member 'unbounded_sequence_of_unbounded_sequences' -#include "test_msgs/msg/detail/unbounded_sequences__struct.h" - -// constants for array fields with an upper bound -// bounded_sequence_of_arrays -enum -{ - test_msgs__msg__MultiNested__bounded_sequence_of_arrays__MAX_SIZE = 3 -}; -// bounded_sequence_of_bounded_sequences -enum -{ - test_msgs__msg__MultiNested__bounded_sequence_of_bounded_sequences__MAX_SIZE = 3 -}; -// bounded_sequence_of_unbounded_sequences -enum -{ - test_msgs__msg__MultiNested__bounded_sequence_of_unbounded_sequences__MAX_SIZE = 3 -}; - -/// Struct defined in msg/MultiNested in the package test_msgs. -/** - * Mulitple levels of nested messages - */ -typedef struct test_msgs__msg__MultiNested -{ - test_msgs__msg__Arrays array_of_arrays[3]; - test_msgs__msg__BoundedSequences array_of_bounded_sequences[3]; - test_msgs__msg__UnboundedSequences array_of_unbounded_sequences[3]; - test_msgs__msg__Arrays__Sequence bounded_sequence_of_arrays; - test_msgs__msg__BoundedSequences__Sequence bounded_sequence_of_bounded_sequences; - test_msgs__msg__UnboundedSequences__Sequence bounded_sequence_of_unbounded_sequences; - test_msgs__msg__Arrays__Sequence unbounded_sequence_of_arrays; - test_msgs__msg__BoundedSequences__Sequence unbounded_sequence_of_bounded_sequences; - test_msgs__msg__UnboundedSequences__Sequence unbounded_sequence_of_unbounded_sequences; -} test_msgs__msg__MultiNested; - -// Struct for a sequence of test_msgs__msg__MultiNested. -typedef struct test_msgs__msg__MultiNested__Sequence -{ - test_msgs__msg__MultiNested * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__MultiNested__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__MULTI_NESTED__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/multi_nested__type_support.h b/src/test_msgs/msg/detail/multi_nested__type_support.h deleted file mode 100755 index 25f17974d..000000000 --- a/src/test_msgs/msg/detail/multi_nested__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/MultiNested.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/multi_nested.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__MULTI_NESTED__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__MULTI_NESTED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - MultiNested -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__MULTI_NESTED__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/nested__functions.h b/src/test_msgs/msg/detail/nested__functions.h deleted file mode 100755 index 83281f84d..000000000 --- a/src/test_msgs/msg/detail/nested__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/Nested.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/nested.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__NESTED__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__NESTED__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/nested__struct.h" - -/// Initialize msg/Nested message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__Nested - * )) before or use - * test_msgs__msg__Nested__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Nested__init(test_msgs__msg__Nested * msg); - -/// Finalize msg/Nested message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Nested__fini(test_msgs__msg__Nested * msg); - -/// Create msg/Nested message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__Nested__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Nested * -test_msgs__msg__Nested__create(void); - -/// Destroy msg/Nested message. -/** - * It calls - * test_msgs__msg__Nested__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Nested__destroy(test_msgs__msg__Nested * msg); - -/// Check for msg/Nested message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Nested__are_equal(const test_msgs__msg__Nested * lhs, const test_msgs__msg__Nested * rhs); - -/// Copy a msg/Nested message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Nested__copy( - const test_msgs__msg__Nested * input, - test_msgs__msg__Nested * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__Nested__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__Nested__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__Nested__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__Nested__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Nested messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__Nested__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Nested__Sequence__init(test_msgs__msg__Nested__Sequence * array, size_t size); - -/// Finalize array of msg/Nested messages. -/** - * It calls - * test_msgs__msg__Nested__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Nested__Sequence__fini(test_msgs__msg__Nested__Sequence * array); - -/// Create array of msg/Nested messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__Nested__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Nested__Sequence * -test_msgs__msg__Nested__Sequence__create(size_t size); - -/// Destroy array of msg/Nested messages. -/** - * It calls - * test_msgs__msg__Nested__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Nested__Sequence__destroy(test_msgs__msg__Nested__Sequence * array); - -/// Check for msg/Nested message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Nested__Sequence__are_equal(const test_msgs__msg__Nested__Sequence * lhs, const test_msgs__msg__Nested__Sequence * rhs); - -/// Copy an array of msg/Nested messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Nested__Sequence__copy( - const test_msgs__msg__Nested__Sequence * input, - test_msgs__msg__Nested__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__NESTED__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/nested__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/nested__rosidl_typesupport_introspection_c.h deleted file mode 100755 index ee41a58e1..000000000 --- a/src/test_msgs/msg/detail/nested__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/Nested.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__NESTED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__NESTED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, Nested)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__NESTED__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/nested__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/nested__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 045d48867..000000000 --- a/src/test_msgs/msg/detail/nested__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/Nested.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__NESTED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__NESTED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__Nested( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__Nested( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, Nested)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__NESTED__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/nested__struct.h b/src/test_msgs/msg/detail/nested__struct.h deleted file mode 100755 index 0a6b5384d..000000000 --- a/src/test_msgs/msg/detail/nested__struct.h +++ /dev/null @@ -1,46 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/Nested.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/nested.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__NESTED__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__NESTED__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'basic_types_value' -#include "test_msgs/msg/detail/basic_types__struct.h" - -/// Struct defined in msg/Nested in the package test_msgs. -typedef struct test_msgs__msg__Nested -{ - test_msgs__msg__BasicTypes basic_types_value; -} test_msgs__msg__Nested; - -// Struct for a sequence of test_msgs__msg__Nested. -typedef struct test_msgs__msg__Nested__Sequence -{ - test_msgs__msg__Nested * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__Nested__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__NESTED__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/nested__type_support.h b/src/test_msgs/msg/detail/nested__type_support.h deleted file mode 100755 index 2f3ca8fc6..000000000 --- a/src/test_msgs/msg/detail/nested__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/Nested.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/nested.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__NESTED__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__NESTED__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - Nested -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__NESTED__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/non_keyed_with_nested_key__functions.h b/src/test_msgs/msg/detail/non_keyed_with_nested_key__functions.h deleted file mode 100755 index e85883cc2..000000000 --- a/src/test_msgs/msg/detail/non_keyed_with_nested_key__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/NonKeyedWithNestedKey.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/non_keyed_with_nested_key.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__NON_KEYED_WITH_NESTED_KEY__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__NON_KEYED_WITH_NESTED_KEY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/non_keyed_with_nested_key__struct.h" - -/// Initialize msg/NonKeyedWithNestedKey message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__NonKeyedWithNestedKey - * )) before or use - * test_msgs__msg__NonKeyedWithNestedKey__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__NonKeyedWithNestedKey__init(test_msgs__msg__NonKeyedWithNestedKey * msg); - -/// Finalize msg/NonKeyedWithNestedKey message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__NonKeyedWithNestedKey__fini(test_msgs__msg__NonKeyedWithNestedKey * msg); - -/// Create msg/NonKeyedWithNestedKey message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__NonKeyedWithNestedKey__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__NonKeyedWithNestedKey * -test_msgs__msg__NonKeyedWithNestedKey__create(void); - -/// Destroy msg/NonKeyedWithNestedKey message. -/** - * It calls - * test_msgs__msg__NonKeyedWithNestedKey__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__NonKeyedWithNestedKey__destroy(test_msgs__msg__NonKeyedWithNestedKey * msg); - -/// Check for msg/NonKeyedWithNestedKey message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__NonKeyedWithNestedKey__are_equal(const test_msgs__msg__NonKeyedWithNestedKey * lhs, const test_msgs__msg__NonKeyedWithNestedKey * rhs); - -/// Copy a msg/NonKeyedWithNestedKey message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__NonKeyedWithNestedKey__copy( - const test_msgs__msg__NonKeyedWithNestedKey * input, - test_msgs__msg__NonKeyedWithNestedKey * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__NonKeyedWithNestedKey__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__NonKeyedWithNestedKey__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__NonKeyedWithNestedKey__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__NonKeyedWithNestedKey__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/NonKeyedWithNestedKey messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__NonKeyedWithNestedKey__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__NonKeyedWithNestedKey__Sequence__init(test_msgs__msg__NonKeyedWithNestedKey__Sequence * array, size_t size); - -/// Finalize array of msg/NonKeyedWithNestedKey messages. -/** - * It calls - * test_msgs__msg__NonKeyedWithNestedKey__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__NonKeyedWithNestedKey__Sequence__fini(test_msgs__msg__NonKeyedWithNestedKey__Sequence * array); - -/// Create array of msg/NonKeyedWithNestedKey messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__NonKeyedWithNestedKey__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__NonKeyedWithNestedKey__Sequence * -test_msgs__msg__NonKeyedWithNestedKey__Sequence__create(size_t size); - -/// Destroy array of msg/NonKeyedWithNestedKey messages. -/** - * It calls - * test_msgs__msg__NonKeyedWithNestedKey__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__NonKeyedWithNestedKey__Sequence__destroy(test_msgs__msg__NonKeyedWithNestedKey__Sequence * array); - -/// Check for msg/NonKeyedWithNestedKey message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__NonKeyedWithNestedKey__Sequence__are_equal(const test_msgs__msg__NonKeyedWithNestedKey__Sequence * lhs, const test_msgs__msg__NonKeyedWithNestedKey__Sequence * rhs); - -/// Copy an array of msg/NonKeyedWithNestedKey messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__NonKeyedWithNestedKey__Sequence__copy( - const test_msgs__msg__NonKeyedWithNestedKey__Sequence * input, - test_msgs__msg__NonKeyedWithNestedKey__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__NON_KEYED_WITH_NESTED_KEY__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/non_keyed_with_nested_key__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/non_keyed_with_nested_key__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 74f829fb5..000000000 --- a/src/test_msgs/msg/detail/non_keyed_with_nested_key__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/NonKeyedWithNestedKey.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__NON_KEYED_WITH_NESTED_KEY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__NON_KEYED_WITH_NESTED_KEY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, NonKeyedWithNestedKey)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__NON_KEYED_WITH_NESTED_KEY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/non_keyed_with_nested_key__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/non_keyed_with_nested_key__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 0863f3563..000000000 --- a/src/test_msgs/msg/detail/non_keyed_with_nested_key__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/NonKeyedWithNestedKey.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__NON_KEYED_WITH_NESTED_KEY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__NON_KEYED_WITH_NESTED_KEY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__NonKeyedWithNestedKey( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__NonKeyedWithNestedKey( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, NonKeyedWithNestedKey)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__NON_KEYED_WITH_NESTED_KEY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/non_keyed_with_nested_key__struct.h b/src/test_msgs/msg/detail/non_keyed_with_nested_key__struct.h deleted file mode 100755 index a183db9e5..000000000 --- a/src/test_msgs/msg/detail/non_keyed_with_nested_key__struct.h +++ /dev/null @@ -1,47 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/NonKeyedWithNestedKey.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/non_keyed_with_nested_key.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__NON_KEYED_WITH_NESTED_KEY__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__NON_KEYED_WITH_NESTED_KEY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'nested_data' -#include "test_msgs/msg/detail/keyed_string__struct.h" - -/// Struct defined in msg/NonKeyedWithNestedKey in the package test_msgs. -typedef struct test_msgs__msg__NonKeyedWithNestedKey -{ - test_msgs__msg__KeyedString nested_data; - int32_t some_int; -} test_msgs__msg__NonKeyedWithNestedKey; - -// Struct for a sequence of test_msgs__msg__NonKeyedWithNestedKey. -typedef struct test_msgs__msg__NonKeyedWithNestedKey__Sequence -{ - test_msgs__msg__NonKeyedWithNestedKey * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__NonKeyedWithNestedKey__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__NON_KEYED_WITH_NESTED_KEY__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/non_keyed_with_nested_key__type_support.h b/src/test_msgs/msg/detail/non_keyed_with_nested_key__type_support.h deleted file mode 100755 index 25fb3767b..000000000 --- a/src/test_msgs/msg/detail/non_keyed_with_nested_key__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/NonKeyedWithNestedKey.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/non_keyed_with_nested_key.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__NON_KEYED_WITH_NESTED_KEY__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__NON_KEYED_WITH_NESTED_KEY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - NonKeyedWithNestedKey -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__NON_KEYED_WITH_NESTED_KEY__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/strings__functions.h b/src/test_msgs/msg/detail/strings__functions.h deleted file mode 100755 index 8dd316cea..000000000 --- a/src/test_msgs/msg/detail/strings__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/Strings.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/strings.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__STRINGS__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__STRINGS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/strings__struct.h" - -/// Initialize msg/Strings message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__Strings - * )) before or use - * test_msgs__msg__Strings__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Strings__init(test_msgs__msg__Strings * msg); - -/// Finalize msg/Strings message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Strings__fini(test_msgs__msg__Strings * msg); - -/// Create msg/Strings message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__Strings__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Strings * -test_msgs__msg__Strings__create(void); - -/// Destroy msg/Strings message. -/** - * It calls - * test_msgs__msg__Strings__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Strings__destroy(test_msgs__msg__Strings * msg); - -/// Check for msg/Strings message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Strings__are_equal(const test_msgs__msg__Strings * lhs, const test_msgs__msg__Strings * rhs); - -/// Copy a msg/Strings message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Strings__copy( - const test_msgs__msg__Strings * input, - test_msgs__msg__Strings * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__Strings__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__Strings__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__Strings__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__Strings__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Strings messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__Strings__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Strings__Sequence__init(test_msgs__msg__Strings__Sequence * array, size_t size); - -/// Finalize array of msg/Strings messages. -/** - * It calls - * test_msgs__msg__Strings__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Strings__Sequence__fini(test_msgs__msg__Strings__Sequence * array); - -/// Create array of msg/Strings messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__Strings__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__Strings__Sequence * -test_msgs__msg__Strings__Sequence__create(size_t size); - -/// Destroy array of msg/Strings messages. -/** - * It calls - * test_msgs__msg__Strings__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__Strings__Sequence__destroy(test_msgs__msg__Strings__Sequence * array); - -/// Check for msg/Strings message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Strings__Sequence__are_equal(const test_msgs__msg__Strings__Sequence * lhs, const test_msgs__msg__Strings__Sequence * rhs); - -/// Copy an array of msg/Strings messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__Strings__Sequence__copy( - const test_msgs__msg__Strings__Sequence * input, - test_msgs__msg__Strings__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__STRINGS__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/strings__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/strings__rosidl_typesupport_introspection_c.h deleted file mode 100755 index b3634999b..000000000 --- a/src/test_msgs/msg/detail/strings__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/Strings.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__STRINGS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__STRINGS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, Strings)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__STRINGS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/strings__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/strings__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 86a83b06a..000000000 --- a/src/test_msgs/msg/detail/strings__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/Strings.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__STRINGS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__STRINGS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__Strings( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__Strings( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, Strings)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__STRINGS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/strings__struct.h b/src/test_msgs/msg/detail/strings__struct.h deleted file mode 100755 index c73ff473f..000000000 --- a/src/test_msgs/msg/detail/strings__struct.h +++ /dev/null @@ -1,103 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/Strings.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/strings.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__STRINGS__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__STRINGS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'STRING_CONST'. -static const char * const test_msgs__msg__Strings__STRING_CONST = "Hello world!"; - -// Include directives for member types -// Member 'string_value' -// Member 'string_value_default1' -// Member 'string_value_default2' -// Member 'string_value_default3' -// Member 'string_value_default4' -// Member 'string_value_default5' -// Member 'bounded_string_value' -// Member 'bounded_string_value_default1' -// Member 'bounded_string_value_default2' -// Member 'bounded_string_value_default3' -// Member 'bounded_string_value_default4' -// Member 'bounded_string_value_default5' -#include "rosidl_runtime_c/string.h" - -// constants for array fields with an upper bound -// bounded_string_value -enum -{ - test_msgs__msg__Strings__bounded_string_value__MAX_STRING_SIZE = 22 -}; -// bounded_string_value_default1 -enum -{ - test_msgs__msg__Strings__bounded_string_value_default1__MAX_STRING_SIZE = 22 -}; -// bounded_string_value_default2 -enum -{ - test_msgs__msg__Strings__bounded_string_value_default2__MAX_STRING_SIZE = 22 -}; -// bounded_string_value_default3 -enum -{ - test_msgs__msg__Strings__bounded_string_value_default3__MAX_STRING_SIZE = 22 -}; -// bounded_string_value_default4 -enum -{ - test_msgs__msg__Strings__bounded_string_value_default4__MAX_STRING_SIZE = 22 -}; -// bounded_string_value_default5 -enum -{ - test_msgs__msg__Strings__bounded_string_value_default5__MAX_STRING_SIZE = 22 -}; - -/// Struct defined in msg/Strings in the package test_msgs. -typedef struct test_msgs__msg__Strings -{ - rosidl_runtime_c__String string_value; - rosidl_runtime_c__String string_value_default1; - rosidl_runtime_c__String string_value_default2; - rosidl_runtime_c__String string_value_default3; - rosidl_runtime_c__String string_value_default4; - rosidl_runtime_c__String string_value_default5; - rosidl_runtime_c__String bounded_string_value; - rosidl_runtime_c__String bounded_string_value_default1; - rosidl_runtime_c__String bounded_string_value_default2; - rosidl_runtime_c__String bounded_string_value_default3; - rosidl_runtime_c__String bounded_string_value_default4; - rosidl_runtime_c__String bounded_string_value_default5; -} test_msgs__msg__Strings; - -// Struct for a sequence of test_msgs__msg__Strings. -typedef struct test_msgs__msg__Strings__Sequence -{ - test_msgs__msg__Strings * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__Strings__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__STRINGS__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/strings__type_support.h b/src/test_msgs/msg/detail/strings__type_support.h deleted file mode 100755 index 77af61e14..000000000 --- a/src/test_msgs/msg/detail/strings__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/Strings.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/strings.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__STRINGS__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__STRINGS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - Strings -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__STRINGS__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/unbounded_sequences__functions.h b/src/test_msgs/msg/detail/unbounded_sequences__functions.h deleted file mode 100755 index 929cdaa9d..000000000 --- a/src/test_msgs/msg/detail/unbounded_sequences__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/UnboundedSequences.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/unbounded_sequences.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__UNBOUNDED_SEQUENCES__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__UNBOUNDED_SEQUENCES__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/unbounded_sequences__struct.h" - -/// Initialize msg/UnboundedSequences message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__UnboundedSequences - * )) before or use - * test_msgs__msg__UnboundedSequences__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__UnboundedSequences__init(test_msgs__msg__UnboundedSequences * msg); - -/// Finalize msg/UnboundedSequences message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__UnboundedSequences__fini(test_msgs__msg__UnboundedSequences * msg); - -/// Create msg/UnboundedSequences message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__UnboundedSequences__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__UnboundedSequences * -test_msgs__msg__UnboundedSequences__create(void); - -/// Destroy msg/UnboundedSequences message. -/** - * It calls - * test_msgs__msg__UnboundedSequences__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__UnboundedSequences__destroy(test_msgs__msg__UnboundedSequences * msg); - -/// Check for msg/UnboundedSequences message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__UnboundedSequences__are_equal(const test_msgs__msg__UnboundedSequences * lhs, const test_msgs__msg__UnboundedSequences * rhs); - -/// Copy a msg/UnboundedSequences message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__UnboundedSequences__copy( - const test_msgs__msg__UnboundedSequences * input, - test_msgs__msg__UnboundedSequences * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__UnboundedSequences__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__UnboundedSequences__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__UnboundedSequences__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__UnboundedSequences__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UnboundedSequences messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__UnboundedSequences__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__UnboundedSequences__Sequence__init(test_msgs__msg__UnboundedSequences__Sequence * array, size_t size); - -/// Finalize array of msg/UnboundedSequences messages. -/** - * It calls - * test_msgs__msg__UnboundedSequences__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__UnboundedSequences__Sequence__fini(test_msgs__msg__UnboundedSequences__Sequence * array); - -/// Create array of msg/UnboundedSequences messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__UnboundedSequences__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__UnboundedSequences__Sequence * -test_msgs__msg__UnboundedSequences__Sequence__create(size_t size); - -/// Destroy array of msg/UnboundedSequences messages. -/** - * It calls - * test_msgs__msg__UnboundedSequences__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__UnboundedSequences__Sequence__destroy(test_msgs__msg__UnboundedSequences__Sequence * array); - -/// Check for msg/UnboundedSequences message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__UnboundedSequences__Sequence__are_equal(const test_msgs__msg__UnboundedSequences__Sequence * lhs, const test_msgs__msg__UnboundedSequences__Sequence * rhs); - -/// Copy an array of msg/UnboundedSequences messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__UnboundedSequences__Sequence__copy( - const test_msgs__msg__UnboundedSequences__Sequence * input, - test_msgs__msg__UnboundedSequences__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__UNBOUNDED_SEQUENCES__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/unbounded_sequences__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/unbounded_sequences__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 57b50d177..000000000 --- a/src/test_msgs/msg/detail/unbounded_sequences__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/UnboundedSequences.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__UNBOUNDED_SEQUENCES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__UNBOUNDED_SEQUENCES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, UnboundedSequences)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__UNBOUNDED_SEQUENCES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/unbounded_sequences__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/unbounded_sequences__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 192981ecb..000000000 --- a/src/test_msgs/msg/detail/unbounded_sequences__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/UnboundedSequences.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__UNBOUNDED_SEQUENCES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__UNBOUNDED_SEQUENCES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__UnboundedSequences( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__UnboundedSequences( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, UnboundedSequences)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__UNBOUNDED_SEQUENCES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/unbounded_sequences__struct.h b/src/test_msgs/msg/detail/unbounded_sequences__struct.h deleted file mode 100755 index 6725958c1..000000000 --- a/src/test_msgs/msg/detail/unbounded_sequences__struct.h +++ /dev/null @@ -1,115 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/UnboundedSequences.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/unbounded_sequences.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__UNBOUNDED_SEQUENCES__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__UNBOUNDED_SEQUENCES__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'bool_values' -// Member 'byte_values' -// Member 'char_values' -// Member 'float32_values' -// Member 'float64_values' -// Member 'int8_values' -// Member 'uint8_values' -// Member 'int16_values' -// Member 'uint16_values' -// Member 'int32_values' -// Member 'uint32_values' -// Member 'int64_values' -// Member 'uint64_values' -// Member 'bool_values_default' -// Member 'byte_values_default' -// Member 'char_values_default' -// Member 'float32_values_default' -// Member 'float64_values_default' -// Member 'int8_values_default' -// Member 'uint8_values_default' -// Member 'int16_values_default' -// Member 'uint16_values_default' -// Member 'int32_values_default' -// Member 'uint32_values_default' -// Member 'int64_values_default' -// Member 'uint64_values_default' -#include "rosidl_runtime_c/primitives_sequence.h" -// Member 'string_values' -// Member 'string_values_default' -#include "rosidl_runtime_c/string.h" -// Member 'basic_types_values' -#include "test_msgs/msg/detail/basic_types__struct.h" -// Member 'constants_values' -#include "test_msgs/msg/detail/constants__struct.h" -// Member 'defaults_values' -#include "test_msgs/msg/detail/defaults__struct.h" - -/// Struct defined in msg/UnboundedSequences in the package test_msgs. -/** - * Unbounded sequences of different types - */ -typedef struct test_msgs__msg__UnboundedSequences -{ - rosidl_runtime_c__boolean__Sequence bool_values; - rosidl_runtime_c__octet__Sequence byte_values; - rosidl_runtime_c__uint8__Sequence char_values; - rosidl_runtime_c__float__Sequence float32_values; - rosidl_runtime_c__double__Sequence float64_values; - rosidl_runtime_c__int8__Sequence int8_values; - rosidl_runtime_c__uint8__Sequence uint8_values; - rosidl_runtime_c__int16__Sequence int16_values; - rosidl_runtime_c__uint16__Sequence uint16_values; - rosidl_runtime_c__int32__Sequence int32_values; - rosidl_runtime_c__uint32__Sequence uint32_values; - rosidl_runtime_c__int64__Sequence int64_values; - rosidl_runtime_c__uint64__Sequence uint64_values; - rosidl_runtime_c__String__Sequence string_values; - test_msgs__msg__BasicTypes__Sequence basic_types_values; - test_msgs__msg__Constants__Sequence constants_values; - test_msgs__msg__Defaults__Sequence defaults_values; - rosidl_runtime_c__boolean__Sequence bool_values_default; - rosidl_runtime_c__octet__Sequence byte_values_default; - rosidl_runtime_c__uint8__Sequence char_values_default; - rosidl_runtime_c__float__Sequence float32_values_default; - rosidl_runtime_c__double__Sequence float64_values_default; - rosidl_runtime_c__int8__Sequence int8_values_default; - rosidl_runtime_c__uint8__Sequence uint8_values_default; - rosidl_runtime_c__int16__Sequence int16_values_default; - rosidl_runtime_c__uint16__Sequence uint16_values_default; - rosidl_runtime_c__int32__Sequence int32_values_default; - rosidl_runtime_c__uint32__Sequence uint32_values_default; - rosidl_runtime_c__int64__Sequence int64_values_default; - rosidl_runtime_c__uint64__Sequence uint64_values_default; - rosidl_runtime_c__String__Sequence string_values_default; - /// Regression test: check alignment of basic field after a sequence field is correct - int32_t alignment_check; -} test_msgs__msg__UnboundedSequences; - -// Struct for a sequence of test_msgs__msg__UnboundedSequences. -typedef struct test_msgs__msg__UnboundedSequences__Sequence -{ - test_msgs__msg__UnboundedSequences * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__UnboundedSequences__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__UNBOUNDED_SEQUENCES__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/unbounded_sequences__type_support.h b/src/test_msgs/msg/detail/unbounded_sequences__type_support.h deleted file mode 100755 index 8e491da20..000000000 --- a/src/test_msgs/msg/detail/unbounded_sequences__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/UnboundedSequences.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/unbounded_sequences.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__UNBOUNDED_SEQUENCES__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__UNBOUNDED_SEQUENCES__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - UnboundedSequences -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__UNBOUNDED_SEQUENCES__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/detail/w_strings__functions.h b/src/test_msgs/msg/detail/w_strings__functions.h deleted file mode 100755 index f79d004b1..000000000 --- a/src/test_msgs/msg/detail/w_strings__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:msg/WStrings.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/w_strings.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__W_STRINGS__FUNCTIONS_H_ -#define TEST_MSGS__MSG__DETAIL__W_STRINGS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/msg/detail/w_strings__struct.h" - -/// Initialize msg/WStrings message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__msg__WStrings - * )) before or use - * test_msgs__msg__WStrings__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__WStrings__init(test_msgs__msg__WStrings * msg); - -/// Finalize msg/WStrings message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__WStrings__fini(test_msgs__msg__WStrings * msg); - -/// Create msg/WStrings message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__msg__WStrings__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__WStrings * -test_msgs__msg__WStrings__create(void); - -/// Destroy msg/WStrings message. -/** - * It calls - * test_msgs__msg__WStrings__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__WStrings__destroy(test_msgs__msg__WStrings * msg); - -/// Check for msg/WStrings message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__WStrings__are_equal(const test_msgs__msg__WStrings * lhs, const test_msgs__msg__WStrings * rhs); - -/// Copy a msg/WStrings message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__WStrings__copy( - const test_msgs__msg__WStrings * input, - test_msgs__msg__WStrings * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__msg__WStrings__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__msg__WStrings__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__msg__WStrings__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__msg__WStrings__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/WStrings messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__msg__WStrings__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__WStrings__Sequence__init(test_msgs__msg__WStrings__Sequence * array, size_t size); - -/// Finalize array of msg/WStrings messages. -/** - * It calls - * test_msgs__msg__WStrings__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__WStrings__Sequence__fini(test_msgs__msg__WStrings__Sequence * array); - -/// Create array of msg/WStrings messages. -/** - * It allocates the memory for the array and calls - * test_msgs__msg__WStrings__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__msg__WStrings__Sequence * -test_msgs__msg__WStrings__Sequence__create(size_t size); - -/// Destroy array of msg/WStrings messages. -/** - * It calls - * test_msgs__msg__WStrings__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__msg__WStrings__Sequence__destroy(test_msgs__msg__WStrings__Sequence * array); - -/// Check for msg/WStrings message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__WStrings__Sequence__are_equal(const test_msgs__msg__WStrings__Sequence * lhs, const test_msgs__msg__WStrings__Sequence * rhs); - -/// Copy an array of msg/WStrings messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__msg__WStrings__Sequence__copy( - const test_msgs__msg__WStrings__Sequence * input, - test_msgs__msg__WStrings__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__W_STRINGS__FUNCTIONS_H_ diff --git a/src/test_msgs/msg/detail/w_strings__rosidl_typesupport_introspection_c.h b/src/test_msgs/msg/detail/w_strings__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 5f4332395..000000000 --- a/src/test_msgs/msg/detail/w_strings__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:msg/WStrings.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__DETAIL__W_STRINGS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__MSG__DETAIL__W_STRINGS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, msg, WStrings)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__W_STRINGS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/msg/detail/w_strings__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/msg/detail/w_strings__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index c292b3f86..000000000 --- a/src/test_msgs/msg/detail/w_strings__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:msg/WStrings.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__MSG__W_STRINGS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__MSG__W_STRINGS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__msg__WStrings( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__msg__WStrings( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, msg, WStrings)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TEST_MSGS__MSG__W_STRINGS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/msg/detail/w_strings__struct.h b/src/test_msgs/msg/detail/w_strings__struct.h deleted file mode 100755 index cd48f15b1..000000000 --- a/src/test_msgs/msg/detail/w_strings__struct.h +++ /dev/null @@ -1,68 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:msg/WStrings.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/w_strings.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__W_STRINGS__STRUCT_H_ -#define TEST_MSGS__MSG__DETAIL__W_STRINGS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'wstring_value' -// Member 'wstring_value_default1' -// Member 'wstring_value_default2' -// Member 'wstring_value_default3' -// Member 'array_of_wstrings' -// Member 'bounded_sequence_of_wstrings' -// Member 'unbounded_sequence_of_wstrings' -#include "rosidl_runtime_c/u16string.h" - -// constants for array fields with an upper bound -// bounded_sequence_of_wstrings -enum -{ - test_msgs__msg__WStrings__bounded_sequence_of_wstrings__MAX_SIZE = 3 -}; - -/// Struct defined in msg/WStrings in the package test_msgs. -typedef struct test_msgs__msg__WStrings -{ - rosidl_runtime_c__U16String wstring_value; - rosidl_runtime_c__U16String wstring_value_default1; - rosidl_runtime_c__U16String wstring_value_default2; - rosidl_runtime_c__U16String wstring_value_default3; - /// wstring WSTRING_CONST="Hello world!" - /// wstring<=22 bounded_wstring_value - /// wstring<=22 bounded_wstring_value_default1 "Hello world!" - rosidl_runtime_c__U16String array_of_wstrings[3]; - rosidl_runtime_c__U16String__Sequence bounded_sequence_of_wstrings; - rosidl_runtime_c__U16String__Sequence unbounded_sequence_of_wstrings; -} test_msgs__msg__WStrings; - -// Struct for a sequence of test_msgs__msg__WStrings. -typedef struct test_msgs__msg__WStrings__Sequence -{ - test_msgs__msg__WStrings * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__msg__WStrings__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__W_STRINGS__STRUCT_H_ diff --git a/src/test_msgs/msg/detail/w_strings__type_support.h b/src/test_msgs/msg/detail/w_strings__type_support.h deleted file mode 100755 index 5e6f61a30..000000000 --- a/src/test_msgs/msg/detail/w_strings__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:msg/WStrings.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/msg/w_strings.h" - - -#ifndef TEST_MSGS__MSG__DETAIL__W_STRINGS__TYPE_SUPPORT_H_ -#define TEST_MSGS__MSG__DETAIL__W_STRINGS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - msg, - WStrings -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__DETAIL__W_STRINGS__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/msg/empty.h b/src/test_msgs/msg/empty.h deleted file mode 100755 index ddf82b5ff..000000000 --- a/src/test_msgs/msg/empty.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/Empty.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__EMPTY_H_ -#define TEST_MSGS__MSG__EMPTY_H_ - -#include "test_msgs/msg/detail/empty__struct.h" -#include "test_msgs/msg/detail/empty__functions.h" -#include "test_msgs/msg/detail/empty__type_support.h" - -#endif // TEST_MSGS__MSG__EMPTY_H_ diff --git a/src/test_msgs/msg/keyed_long.h b/src/test_msgs/msg/keyed_long.h deleted file mode 100755 index bca40c835..000000000 --- a/src/test_msgs/msg/keyed_long.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/KeyedLong.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__KEYED_LONG_H_ -#define TEST_MSGS__MSG__KEYED_LONG_H_ - -#include "test_msgs/msg/detail/keyed_long__struct.h" -#include "test_msgs/msg/detail/keyed_long__functions.h" -#include "test_msgs/msg/detail/keyed_long__type_support.h" - -#endif // TEST_MSGS__MSG__KEYED_LONG_H_ diff --git a/src/test_msgs/msg/keyed_string.h b/src/test_msgs/msg/keyed_string.h deleted file mode 100755 index f29f09676..000000000 --- a/src/test_msgs/msg/keyed_string.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/KeyedString.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__KEYED_STRING_H_ -#define TEST_MSGS__MSG__KEYED_STRING_H_ - -#include "test_msgs/msg/detail/keyed_string__struct.h" -#include "test_msgs/msg/detail/keyed_string__functions.h" -#include "test_msgs/msg/detail/keyed_string__type_support.h" - -#endif // TEST_MSGS__MSG__KEYED_STRING_H_ diff --git a/src/test_msgs/msg/multi_nested.h b/src/test_msgs/msg/multi_nested.h deleted file mode 100755 index 54648b08f..000000000 --- a/src/test_msgs/msg/multi_nested.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/MultiNested.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__MULTI_NESTED_H_ -#define TEST_MSGS__MSG__MULTI_NESTED_H_ - -#include "test_msgs/msg/detail/multi_nested__struct.h" -#include "test_msgs/msg/detail/multi_nested__functions.h" -#include "test_msgs/msg/detail/multi_nested__type_support.h" - -#endif // TEST_MSGS__MSG__MULTI_NESTED_H_ diff --git a/src/test_msgs/msg/nested.h b/src/test_msgs/msg/nested.h deleted file mode 100755 index 8bd992a78..000000000 --- a/src/test_msgs/msg/nested.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/Nested.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__NESTED_H_ -#define TEST_MSGS__MSG__NESTED_H_ - -#include "test_msgs/msg/detail/nested__struct.h" -#include "test_msgs/msg/detail/nested__functions.h" -#include "test_msgs/msg/detail/nested__type_support.h" - -#endif // TEST_MSGS__MSG__NESTED_H_ diff --git a/src/test_msgs/msg/non_keyed_with_nested_key.h b/src/test_msgs/msg/non_keyed_with_nested_key.h deleted file mode 100755 index 04269a676..000000000 --- a/src/test_msgs/msg/non_keyed_with_nested_key.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/NonKeyedWithNestedKey.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__NON_KEYED_WITH_NESTED_KEY_H_ -#define TEST_MSGS__MSG__NON_KEYED_WITH_NESTED_KEY_H_ - -#include "test_msgs/msg/detail/non_keyed_with_nested_key__struct.h" -#include "test_msgs/msg/detail/non_keyed_with_nested_key__functions.h" -#include "test_msgs/msg/detail/non_keyed_with_nested_key__type_support.h" - -#endif // TEST_MSGS__MSG__NON_KEYED_WITH_NESTED_KEY_H_ diff --git a/src/test_msgs/msg/rosidl_generator_c__visibility_control.h b/src/test_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 0a2ef830b..000000000 --- a/src/test_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define TEST_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_test_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_test_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_test_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_test_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_test_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_test_msgs ROSIDL_GENERATOR_C_EXPORT_test_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_test_msgs ROSIDL_GENERATOR_C_IMPORT_test_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_test_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_test_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_test_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_test_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 204108c2b..000000000 --- a/src/test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define TEST_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_test_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_test_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_test_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_test_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_test_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_test_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_test_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_test_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_test_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index b3c35f45d..000000000 --- a/src/test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define TEST_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_test_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_test_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_test_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_test_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_test_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_test_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_test_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_test_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_test_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/test_msgs/msg/strings.h b/src/test_msgs/msg/strings.h deleted file mode 100755 index 0c8660a01..000000000 --- a/src/test_msgs/msg/strings.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/Strings.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__STRINGS_H_ -#define TEST_MSGS__MSG__STRINGS_H_ - -#include "test_msgs/msg/detail/strings__struct.h" -#include "test_msgs/msg/detail/strings__functions.h" -#include "test_msgs/msg/detail/strings__type_support.h" - -#endif // TEST_MSGS__MSG__STRINGS_H_ diff --git a/src/test_msgs/msg/unbounded_sequences.h b/src/test_msgs/msg/unbounded_sequences.h deleted file mode 100755 index 9176645ac..000000000 --- a/src/test_msgs/msg/unbounded_sequences.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/UnboundedSequences.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__UNBOUNDED_SEQUENCES_H_ -#define TEST_MSGS__MSG__UNBOUNDED_SEQUENCES_H_ - -#include "test_msgs/msg/detail/unbounded_sequences__struct.h" -#include "test_msgs/msg/detail/unbounded_sequences__functions.h" -#include "test_msgs/msg/detail/unbounded_sequences__type_support.h" - -#endif // TEST_MSGS__MSG__UNBOUNDED_SEQUENCES_H_ diff --git a/src/test_msgs/msg/w_strings.h b/src/test_msgs/msg/w_strings.h deleted file mode 100755 index be83a5a27..000000000 --- a/src/test_msgs/msg/w_strings.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:msg/WStrings.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__MSG__W_STRINGS_H_ -#define TEST_MSGS__MSG__W_STRINGS_H_ - -#include "test_msgs/msg/detail/w_strings__struct.h" -#include "test_msgs/msg/detail/w_strings__functions.h" -#include "test_msgs/msg/detail/w_strings__type_support.h" - -#endif // TEST_MSGS__MSG__W_STRINGS_H_ diff --git a/src/test_msgs/service_fixtures.hpp b/src/test_msgs/service_fixtures.hpp deleted file mode 100755 index 6a906f67c..000000000 --- a/src/test_msgs/service_fixtures.hpp +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef TEST_MSGS__SERVICE_FIXTURES_HPP_ -#define TEST_MSGS__SERVICE_FIXTURES_HPP_ - -#include -#include -#include -#include - -#include "test_msgs/message_fixtures.hpp" -#include "test_msgs/srv/arrays.hpp" -#include "test_msgs/srv/basic_types.hpp" -#include "test_msgs/srv/empty.hpp" - - -static inline -std::vector< - std::pair< - test_msgs::srv::Empty::Request::SharedPtr, - test_msgs::srv::Empty::Response::SharedPtr - > -> -get_services_empty() -{ - std::vector< - std::pair< - test_msgs::srv::Empty::Request::SharedPtr, - test_msgs::srv::Empty::Response::SharedPtr - > - > services; - auto request = std::make_shared< - test_msgs::srv::Empty::Request>(); - auto reply = std::make_shared< - test_msgs::srv::Empty::Response>(); - services.emplace_back(request, reply); - return services; -} - -static inline -std::vector< - std::pair< - test_msgs::srv::BasicTypes::Request::SharedPtr, - test_msgs::srv::BasicTypes::Response::SharedPtr - > -> -get_services_basic_types() -{ - std::vector< - std::pair< - test_msgs::srv::BasicTypes::Request::SharedPtr, - test_msgs::srv::BasicTypes::Response::SharedPtr - > - > services; - { - auto request = std::make_shared(); - request->bool_value = false; - request->byte_value = 0; - request->char_value = 0; - request->float32_value = 0.0f; - request->float64_value = 0.0; - request->int8_value = 0; - request->uint8_value = 0; - request->int16_value = 0; - request->uint16_value = 0; - request->int32_value = 0; - request->uint32_value = 0; - request->int64_value = 0; - request->uint64_value = 0; - request->string_value = "request"; - auto reply = std::make_shared(); - reply->bool_value = false; - reply->byte_value = 0; - reply->char_value = 0; - reply->float32_value = 0.0f; - reply->float64_value = 0.0; - reply->int8_value = 0; - reply->uint8_value = 0; - reply->int16_value = 0; - reply->uint16_value = 0; - reply->int32_value = 0; - reply->uint32_value = 0; - reply->int64_value = 0; - reply->uint64_value = 0; - reply->string_value = "reply"; - services.emplace_back(request, reply); - } - { - auto request = std::make_shared(); - request->bool_value = true; - request->byte_value = 1; - request->char_value = 1; - request->float32_value = 1.125f; - request->float64_value = 1.11; - request->int8_value = 1; - request->uint8_value = 2; - request->int16_value = 3; - request->uint16_value = 4; - request->int32_value = 5; - request->uint32_value = 6; - request->int64_value = 7; - request->uint64_value = 8; - // check strings longer then 256 characters - request->string_value = ""; - for (size_t i = 0; i < 20000; ++i) { - request->string_value += std::to_string(i % 10); - } - auto reply = std::make_shared(); - reply->bool_value = true; - reply->byte_value = 11; - reply->char_value = 11; - reply->float32_value = 11.125f; - reply->float64_value = 11.11; - reply->int8_value = 11; - reply->uint8_value = 22; - reply->int16_value = 33; - reply->uint16_value = 44; - reply->int32_value = 55; - reply->uint32_value = 66; - reply->int64_value = 77; - reply->uint64_value = 88; - // check strings longer then 256 characters - reply->string_value = ""; - for (size_t i = 0; i < 20000; ++i) { - reply->string_value += std::to_string(i % 10); - } - services.emplace_back(request, reply); - } - return services; -} - -static inline -std::vector< - std::pair< - test_msgs::srv::Arrays::Request::SharedPtr, - test_msgs::srv::Arrays::Response::SharedPtr - > -> -get_services_arrays() -{ - std::vector< - std::pair< - test_msgs::srv::Arrays::Request::SharedPtr, - test_msgs::srv::Arrays::Response::SharedPtr - > - > services; - { - auto request = std::make_shared(); - request->bool_values = {{false, true, false}}; - request->byte_values = {{0, 0xff, 0}}; - request->char_values = {{0, 255, 0}}; - request->float32_values = {{0.0f, 1.125f, -2.125f}}; - request->float64_values = {{0, 1.125, -2.125}}; - request->int8_values = {{ - 0, (std::numeric_limits::max)(), (std::numeric_limits::min)()}}; - request->uint8_values = {{0, (std::numeric_limits::max)(), 0}}; - request->int16_values = {{ - 0, (std::numeric_limits::max)(), (std::numeric_limits::min)()}}; - request->uint16_values = {{0, (std::numeric_limits::max)(), 0}}; - request->int32_values = {{ - static_cast(0), - (std::numeric_limits::max)(), - (std::numeric_limits::min)() - }}; - request->uint32_values = {{0, (std::numeric_limits::max)(), 0}}; - request->int64_values[0] = 0; - request->int64_values[1] = (std::numeric_limits::max)(); - request->int64_values[2] = (std::numeric_limits::min)(); - request->uint64_values = {{0, (std::numeric_limits::max)(), 0}}; - request->string_values = {{"", "max value", "min value"}}; - auto basic_types_msgs = get_messages_basic_types(); - request->basic_types_values[0] = *basic_types_msgs[0]; - request->basic_types_values[1] = *basic_types_msgs[1]; - request->basic_types_values[2] = *basic_types_msgs[2]; - - auto reply = std::make_shared(); - reply->bool_values = {{true, false, false}}; - reply->byte_values = {{0xff, 0, 0}}; - reply->char_values = {{255, 0, 0}}; - reply->float32_values = {{1.125f, 0.0f, -2.125f}}; - reply->float64_values = {{1.125, 0, -2.125}}; - reply->int8_values = {{ - (std::numeric_limits::max)(), 0, (std::numeric_limits::min)()}}; - reply->uint8_values = {{(std::numeric_limits::max)(), 0, 0}}; - reply->int16_values = {{ - (std::numeric_limits::max)(), 0, (std::numeric_limits::min)()}}; - reply->uint16_values = {{(std::numeric_limits::max)(), 0, 0}}; - reply->int32_values = {{ - (std::numeric_limits::max)(), - static_cast(0), - (std::numeric_limits::min)() - }}; - reply->uint32_values = {{(std::numeric_limits::max)(), 0, 0}}; - reply->int64_values[0] = (std::numeric_limits::max)(); - reply->int64_values[1] = 0; - reply->int64_values[2] = (std::numeric_limits::min)(); - reply->uint64_values = {{(std::numeric_limits::max)(), 0, 0}}; - reply->string_values = {{"max value", "", "min value"}}; - reply->basic_types_values[0] = *basic_types_msgs[1]; - reply->basic_types_values[1] = *basic_types_msgs[0]; - reply->basic_types_values[2] = *basic_types_msgs[2]; - - services.emplace_back(request, reply); - } - return services; -} - -#endif // TEST_MSGS__SERVICE_FIXTURES_HPP_ diff --git a/src/test_msgs/srv/arrays.h b/src/test_msgs/srv/arrays.h deleted file mode 100755 index f7951914c..000000000 --- a/src/test_msgs/srv/arrays.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:srv/Arrays.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__SRV__ARRAYS_H_ -#define TEST_MSGS__SRV__ARRAYS_H_ - -#include "test_msgs/srv/detail/arrays__struct.h" -#include "test_msgs/srv/detail/arrays__functions.h" -#include "test_msgs/srv/detail/arrays__type_support.h" - -#endif // TEST_MSGS__SRV__ARRAYS_H_ diff --git a/src/test_msgs/srv/basic_types.h b/src/test_msgs/srv/basic_types.h deleted file mode 100755 index b5c45b79e..000000000 --- a/src/test_msgs/srv/basic_types.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:srv/BasicTypes.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__SRV__BASIC_TYPES_H_ -#define TEST_MSGS__SRV__BASIC_TYPES_H_ - -#include "test_msgs/srv/detail/basic_types__struct.h" -#include "test_msgs/srv/detail/basic_types__functions.h" -#include "test_msgs/srv/detail/basic_types__type_support.h" - -#endif // TEST_MSGS__SRV__BASIC_TYPES_H_ diff --git a/src/test_msgs/srv/detail/arrays__functions.h b/src/test_msgs/srv/detail/arrays__functions.h deleted file mode 100755 index fbe513f43..000000000 --- a/src/test_msgs/srv/detail/arrays__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:srv/Arrays.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/srv/arrays.h" - - -#ifndef TEST_MSGS__SRV__DETAIL__ARRAYS__FUNCTIONS_H_ -#define TEST_MSGS__SRV__DETAIL__ARRAYS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/srv/detail/arrays__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__srv__Arrays__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__srv__Arrays__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__srv__Arrays__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__srv__Arrays__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/Arrays message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__srv__Arrays_Request - * )) before or use - * test_msgs__srv__Arrays_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Request__init(test_msgs__srv__Arrays_Request * msg); - -/// Finalize srv/Arrays message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Arrays_Request__fini(test_msgs__srv__Arrays_Request * msg); - -/// Create srv/Arrays message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__srv__Arrays_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__Arrays_Request * -test_msgs__srv__Arrays_Request__create(void); - -/// Destroy srv/Arrays message. -/** - * It calls - * test_msgs__srv__Arrays_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Arrays_Request__destroy(test_msgs__srv__Arrays_Request * msg); - -/// Check for srv/Arrays message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Request__are_equal(const test_msgs__srv__Arrays_Request * lhs, const test_msgs__srv__Arrays_Request * rhs); - -/// Copy a srv/Arrays message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Request__copy( - const test_msgs__srv__Arrays_Request * input, - test_msgs__srv__Arrays_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__srv__Arrays_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__srv__Arrays_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__srv__Arrays_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__srv__Arrays_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Arrays messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__srv__Arrays_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Request__Sequence__init(test_msgs__srv__Arrays_Request__Sequence * array, size_t size); - -/// Finalize array of srv/Arrays messages. -/** - * It calls - * test_msgs__srv__Arrays_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Arrays_Request__Sequence__fini(test_msgs__srv__Arrays_Request__Sequence * array); - -/// Create array of srv/Arrays messages. -/** - * It allocates the memory for the array and calls - * test_msgs__srv__Arrays_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__Arrays_Request__Sequence * -test_msgs__srv__Arrays_Request__Sequence__create(size_t size); - -/// Destroy array of srv/Arrays messages. -/** - * It calls - * test_msgs__srv__Arrays_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Arrays_Request__Sequence__destroy(test_msgs__srv__Arrays_Request__Sequence * array); - -/// Check for srv/Arrays message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Request__Sequence__are_equal(const test_msgs__srv__Arrays_Request__Sequence * lhs, const test_msgs__srv__Arrays_Request__Sequence * rhs); - -/// Copy an array of srv/Arrays messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Request__Sequence__copy( - const test_msgs__srv__Arrays_Request__Sequence * input, - test_msgs__srv__Arrays_Request__Sequence * output); - -/// Initialize srv/Arrays message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__srv__Arrays_Response - * )) before or use - * test_msgs__srv__Arrays_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Response__init(test_msgs__srv__Arrays_Response * msg); - -/// Finalize srv/Arrays message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Arrays_Response__fini(test_msgs__srv__Arrays_Response * msg); - -/// Create srv/Arrays message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__srv__Arrays_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__Arrays_Response * -test_msgs__srv__Arrays_Response__create(void); - -/// Destroy srv/Arrays message. -/** - * It calls - * test_msgs__srv__Arrays_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Arrays_Response__destroy(test_msgs__srv__Arrays_Response * msg); - -/// Check for srv/Arrays message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Response__are_equal(const test_msgs__srv__Arrays_Response * lhs, const test_msgs__srv__Arrays_Response * rhs); - -/// Copy a srv/Arrays message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Response__copy( - const test_msgs__srv__Arrays_Response * input, - test_msgs__srv__Arrays_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__srv__Arrays_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__srv__Arrays_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__srv__Arrays_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__srv__Arrays_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Arrays messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__srv__Arrays_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Response__Sequence__init(test_msgs__srv__Arrays_Response__Sequence * array, size_t size); - -/// Finalize array of srv/Arrays messages. -/** - * It calls - * test_msgs__srv__Arrays_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Arrays_Response__Sequence__fini(test_msgs__srv__Arrays_Response__Sequence * array); - -/// Create array of srv/Arrays messages. -/** - * It allocates the memory for the array and calls - * test_msgs__srv__Arrays_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__Arrays_Response__Sequence * -test_msgs__srv__Arrays_Response__Sequence__create(size_t size); - -/// Destroy array of srv/Arrays messages. -/** - * It calls - * test_msgs__srv__Arrays_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Arrays_Response__Sequence__destroy(test_msgs__srv__Arrays_Response__Sequence * array); - -/// Check for srv/Arrays message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Response__Sequence__are_equal(const test_msgs__srv__Arrays_Response__Sequence * lhs, const test_msgs__srv__Arrays_Response__Sequence * rhs); - -/// Copy an array of srv/Arrays messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Response__Sequence__copy( - const test_msgs__srv__Arrays_Response__Sequence * input, - test_msgs__srv__Arrays_Response__Sequence * output); - -/// Initialize srv/Arrays message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__srv__Arrays_Event - * )) before or use - * test_msgs__srv__Arrays_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Event__init(test_msgs__srv__Arrays_Event * msg); - -/// Finalize srv/Arrays message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Arrays_Event__fini(test_msgs__srv__Arrays_Event * msg); - -/// Create srv/Arrays message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__srv__Arrays_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__Arrays_Event * -test_msgs__srv__Arrays_Event__create(void); - -/// Destroy srv/Arrays message. -/** - * It calls - * test_msgs__srv__Arrays_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Arrays_Event__destroy(test_msgs__srv__Arrays_Event * msg); - -/// Check for srv/Arrays message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Event__are_equal(const test_msgs__srv__Arrays_Event * lhs, const test_msgs__srv__Arrays_Event * rhs); - -/// Copy a srv/Arrays message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Event__copy( - const test_msgs__srv__Arrays_Event * input, - test_msgs__srv__Arrays_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__srv__Arrays_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__srv__Arrays_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__srv__Arrays_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__srv__Arrays_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Arrays messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__srv__Arrays_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Event__Sequence__init(test_msgs__srv__Arrays_Event__Sequence * array, size_t size); - -/// Finalize array of srv/Arrays messages. -/** - * It calls - * test_msgs__srv__Arrays_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Arrays_Event__Sequence__fini(test_msgs__srv__Arrays_Event__Sequence * array); - -/// Create array of srv/Arrays messages. -/** - * It allocates the memory for the array and calls - * test_msgs__srv__Arrays_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__Arrays_Event__Sequence * -test_msgs__srv__Arrays_Event__Sequence__create(size_t size); - -/// Destroy array of srv/Arrays messages. -/** - * It calls - * test_msgs__srv__Arrays_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Arrays_Event__Sequence__destroy(test_msgs__srv__Arrays_Event__Sequence * array); - -/// Check for srv/Arrays message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Event__Sequence__are_equal(const test_msgs__srv__Arrays_Event__Sequence * lhs, const test_msgs__srv__Arrays_Event__Sequence * rhs); - -/// Copy an array of srv/Arrays messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Arrays_Event__Sequence__copy( - const test_msgs__srv__Arrays_Event__Sequence * input, - test_msgs__srv__Arrays_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__DETAIL__ARRAYS__FUNCTIONS_H_ diff --git a/src/test_msgs/srv/detail/arrays__rosidl_typesupport_introspection_c.h b/src/test_msgs/srv/detail/arrays__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 9c260b13a..000000000 --- a/src/test_msgs/srv/detail/arrays__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:srv/Arrays.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__SRV__DETAIL__ARRAYS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__SRV__DETAIL__ARRAYS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, srv, Arrays_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, srv, Arrays_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, srv, Arrays_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, srv, Arrays)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__DETAIL__ARRAYS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/srv/detail/arrays__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/srv/detail/arrays__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 07b625b07..000000000 --- a/src/test_msgs/srv/detail/arrays__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:srv/Arrays.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__SRV__ARRAYS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__SRV__ARRAYS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__srv__Arrays_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__srv__Arrays_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, srv, Arrays_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__srv__Arrays_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__srv__Arrays_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, srv, Arrays_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__srv__Arrays_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__srv__Arrays_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, srv, Arrays_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, srv, Arrays)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__ARRAYS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/srv/detail/arrays__struct.h b/src/test_msgs/srv/detail/arrays__struct.h deleted file mode 100755 index 9b343750f..000000000 --- a/src/test_msgs/srv/detail/arrays__struct.h +++ /dev/null @@ -1,183 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:srv/Arrays.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/srv/arrays.h" - - -#ifndef TEST_MSGS__SRV__DETAIL__ARRAYS__STRUCT_H_ -#define TEST_MSGS__SRV__DETAIL__ARRAYS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'string_values' -// Member 'string_values_default' -#include "rosidl_runtime_c/string.h" -// Member 'basic_types_values' -#include "test_msgs/msg/detail/basic_types__struct.h" -// Member 'constants_values' -#include "test_msgs/msg/detail/constants__struct.h" -// Member 'defaults_values' -#include "test_msgs/msg/detail/defaults__struct.h" - -/// Struct defined in srv/Arrays in the package test_msgs. -typedef struct test_msgs__srv__Arrays_Request -{ - bool bool_values[3]; - uint8_t byte_values[3]; - uint8_t char_values[3]; - float float32_values[3]; - double float64_values[3]; - int8_t int8_values[3]; - uint8_t uint8_values[3]; - int16_t int16_values[3]; - uint16_t uint16_values[3]; - int32_t int32_values[3]; - uint32_t uint32_values[3]; - int64_t int64_values[3]; - uint64_t uint64_values[3]; - rosidl_runtime_c__String string_values[3]; - test_msgs__msg__BasicTypes basic_types_values[3]; - test_msgs__msg__Constants constants_values[3]; - test_msgs__msg__Defaults defaults_values[3]; - bool bool_values_default[3]; - uint8_t byte_values_default[3]; - uint8_t char_values_default[3]; - float float32_values_default[3]; - double float64_values_default[3]; - int8_t int8_values_default[3]; - uint8_t uint8_values_default[3]; - int16_t int16_values_default[3]; - uint16_t uint16_values_default[3]; - int32_t int32_values_default[3]; - uint32_t uint32_values_default[3]; - int64_t int64_values_default[3]; - uint64_t uint64_values_default[3]; - rosidl_runtime_c__String string_values_default[3]; -} test_msgs__srv__Arrays_Request; - -// Struct for a sequence of test_msgs__srv__Arrays_Request. -typedef struct test_msgs__srv__Arrays_Request__Sequence -{ - test_msgs__srv__Arrays_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__srv__Arrays_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'string_values' -// Member 'string_values_default' -// already included above -// #include "rosidl_runtime_c/string.h" -// Member 'basic_types_values' -// already included above -// #include "test_msgs/msg/detail/basic_types__struct.h" -// Member 'constants_values' -// already included above -// #include "test_msgs/msg/detail/constants__struct.h" -// Member 'defaults_values' -// already included above -// #include "test_msgs/msg/detail/defaults__struct.h" - -/// Struct defined in srv/Arrays in the package test_msgs. -typedef struct test_msgs__srv__Arrays_Response -{ - bool bool_values[3]; - uint8_t byte_values[3]; - uint8_t char_values[3]; - float float32_values[3]; - double float64_values[3]; - int8_t int8_values[3]; - uint8_t uint8_values[3]; - int16_t int16_values[3]; - uint16_t uint16_values[3]; - int32_t int32_values[3]; - uint32_t uint32_values[3]; - int64_t int64_values[3]; - uint64_t uint64_values[3]; - rosidl_runtime_c__String string_values[3]; - test_msgs__msg__BasicTypes basic_types_values[3]; - test_msgs__msg__Constants constants_values[3]; - test_msgs__msg__Defaults defaults_values[3]; - bool bool_values_default[3]; - uint8_t byte_values_default[3]; - uint8_t char_values_default[3]; - float float32_values_default[3]; - double float64_values_default[3]; - int8_t int8_values_default[3]; - uint8_t uint8_values_default[3]; - int16_t int16_values_default[3]; - uint16_t uint16_values_default[3]; - int32_t int32_values_default[3]; - uint32_t uint32_values_default[3]; - int64_t int64_values_default[3]; - uint64_t uint64_values_default[3]; - rosidl_runtime_c__String string_values_default[3]; -} test_msgs__srv__Arrays_Response; - -// Struct for a sequence of test_msgs__srv__Arrays_Response. -typedef struct test_msgs__srv__Arrays_Response__Sequence -{ - test_msgs__srv__Arrays_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__srv__Arrays_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - test_msgs__srv__Arrays_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - test_msgs__srv__Arrays_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/Arrays in the package test_msgs. -typedef struct test_msgs__srv__Arrays_Event -{ - service_msgs__msg__ServiceEventInfo info; - test_msgs__srv__Arrays_Request__Sequence request; - test_msgs__srv__Arrays_Response__Sequence response; -} test_msgs__srv__Arrays_Event; - -// Struct for a sequence of test_msgs__srv__Arrays_Event. -typedef struct test_msgs__srv__Arrays_Event__Sequence -{ - test_msgs__srv__Arrays_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__srv__Arrays_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__DETAIL__ARRAYS__STRUCT_H_ diff --git a/src/test_msgs/srv/detail/arrays__type_support.h b/src/test_msgs/srv/detail/arrays__type_support.h deleted file mode 100755 index a1eee3e40..000000000 --- a/src/test_msgs/srv/detail/arrays__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:srv/Arrays.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/srv/arrays.h" - - -#ifndef TEST_MSGS__SRV__DETAIL__ARRAYS__TYPE_SUPPORT_H_ -#define TEST_MSGS__SRV__DETAIL__ARRAYS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - Arrays_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - Arrays_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - Arrays_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - Arrays -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - Arrays -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - Arrays -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__DETAIL__ARRAYS__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/srv/detail/basic_types__functions.h b/src/test_msgs/srv/detail/basic_types__functions.h deleted file mode 100755 index 9a89dc6aa..000000000 --- a/src/test_msgs/srv/detail/basic_types__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:srv/BasicTypes.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/srv/basic_types.h" - - -#ifndef TEST_MSGS__SRV__DETAIL__BASIC_TYPES__FUNCTIONS_H_ -#define TEST_MSGS__SRV__DETAIL__BASIC_TYPES__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/srv/detail/basic_types__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__srv__BasicTypes__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__srv__BasicTypes__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__srv__BasicTypes__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__srv__BasicTypes__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/BasicTypes message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__srv__BasicTypes_Request - * )) before or use - * test_msgs__srv__BasicTypes_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Request__init(test_msgs__srv__BasicTypes_Request * msg); - -/// Finalize srv/BasicTypes message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__BasicTypes_Request__fini(test_msgs__srv__BasicTypes_Request * msg); - -/// Create srv/BasicTypes message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__srv__BasicTypes_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__BasicTypes_Request * -test_msgs__srv__BasicTypes_Request__create(void); - -/// Destroy srv/BasicTypes message. -/** - * It calls - * test_msgs__srv__BasicTypes_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__BasicTypes_Request__destroy(test_msgs__srv__BasicTypes_Request * msg); - -/// Check for srv/BasicTypes message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Request__are_equal(const test_msgs__srv__BasicTypes_Request * lhs, const test_msgs__srv__BasicTypes_Request * rhs); - -/// Copy a srv/BasicTypes message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Request__copy( - const test_msgs__srv__BasicTypes_Request * input, - test_msgs__srv__BasicTypes_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__srv__BasicTypes_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__srv__BasicTypes_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__srv__BasicTypes_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__srv__BasicTypes_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/BasicTypes messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__srv__BasicTypes_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Request__Sequence__init(test_msgs__srv__BasicTypes_Request__Sequence * array, size_t size); - -/// Finalize array of srv/BasicTypes messages. -/** - * It calls - * test_msgs__srv__BasicTypes_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__BasicTypes_Request__Sequence__fini(test_msgs__srv__BasicTypes_Request__Sequence * array); - -/// Create array of srv/BasicTypes messages. -/** - * It allocates the memory for the array and calls - * test_msgs__srv__BasicTypes_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__BasicTypes_Request__Sequence * -test_msgs__srv__BasicTypes_Request__Sequence__create(size_t size); - -/// Destroy array of srv/BasicTypes messages. -/** - * It calls - * test_msgs__srv__BasicTypes_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__BasicTypes_Request__Sequence__destroy(test_msgs__srv__BasicTypes_Request__Sequence * array); - -/// Check for srv/BasicTypes message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Request__Sequence__are_equal(const test_msgs__srv__BasicTypes_Request__Sequence * lhs, const test_msgs__srv__BasicTypes_Request__Sequence * rhs); - -/// Copy an array of srv/BasicTypes messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Request__Sequence__copy( - const test_msgs__srv__BasicTypes_Request__Sequence * input, - test_msgs__srv__BasicTypes_Request__Sequence * output); - -/// Initialize srv/BasicTypes message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__srv__BasicTypes_Response - * )) before or use - * test_msgs__srv__BasicTypes_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Response__init(test_msgs__srv__BasicTypes_Response * msg); - -/// Finalize srv/BasicTypes message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__BasicTypes_Response__fini(test_msgs__srv__BasicTypes_Response * msg); - -/// Create srv/BasicTypes message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__srv__BasicTypes_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__BasicTypes_Response * -test_msgs__srv__BasicTypes_Response__create(void); - -/// Destroy srv/BasicTypes message. -/** - * It calls - * test_msgs__srv__BasicTypes_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__BasicTypes_Response__destroy(test_msgs__srv__BasicTypes_Response * msg); - -/// Check for srv/BasicTypes message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Response__are_equal(const test_msgs__srv__BasicTypes_Response * lhs, const test_msgs__srv__BasicTypes_Response * rhs); - -/// Copy a srv/BasicTypes message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Response__copy( - const test_msgs__srv__BasicTypes_Response * input, - test_msgs__srv__BasicTypes_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__srv__BasicTypes_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__srv__BasicTypes_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__srv__BasicTypes_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__srv__BasicTypes_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/BasicTypes messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__srv__BasicTypes_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Response__Sequence__init(test_msgs__srv__BasicTypes_Response__Sequence * array, size_t size); - -/// Finalize array of srv/BasicTypes messages. -/** - * It calls - * test_msgs__srv__BasicTypes_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__BasicTypes_Response__Sequence__fini(test_msgs__srv__BasicTypes_Response__Sequence * array); - -/// Create array of srv/BasicTypes messages. -/** - * It allocates the memory for the array and calls - * test_msgs__srv__BasicTypes_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__BasicTypes_Response__Sequence * -test_msgs__srv__BasicTypes_Response__Sequence__create(size_t size); - -/// Destroy array of srv/BasicTypes messages. -/** - * It calls - * test_msgs__srv__BasicTypes_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__BasicTypes_Response__Sequence__destroy(test_msgs__srv__BasicTypes_Response__Sequence * array); - -/// Check for srv/BasicTypes message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Response__Sequence__are_equal(const test_msgs__srv__BasicTypes_Response__Sequence * lhs, const test_msgs__srv__BasicTypes_Response__Sequence * rhs); - -/// Copy an array of srv/BasicTypes messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Response__Sequence__copy( - const test_msgs__srv__BasicTypes_Response__Sequence * input, - test_msgs__srv__BasicTypes_Response__Sequence * output); - -/// Initialize srv/BasicTypes message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__srv__BasicTypes_Event - * )) before or use - * test_msgs__srv__BasicTypes_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Event__init(test_msgs__srv__BasicTypes_Event * msg); - -/// Finalize srv/BasicTypes message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__BasicTypes_Event__fini(test_msgs__srv__BasicTypes_Event * msg); - -/// Create srv/BasicTypes message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__srv__BasicTypes_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__BasicTypes_Event * -test_msgs__srv__BasicTypes_Event__create(void); - -/// Destroy srv/BasicTypes message. -/** - * It calls - * test_msgs__srv__BasicTypes_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__BasicTypes_Event__destroy(test_msgs__srv__BasicTypes_Event * msg); - -/// Check for srv/BasicTypes message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Event__are_equal(const test_msgs__srv__BasicTypes_Event * lhs, const test_msgs__srv__BasicTypes_Event * rhs); - -/// Copy a srv/BasicTypes message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Event__copy( - const test_msgs__srv__BasicTypes_Event * input, - test_msgs__srv__BasicTypes_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__srv__BasicTypes_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__srv__BasicTypes_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__srv__BasicTypes_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__srv__BasicTypes_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/BasicTypes messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__srv__BasicTypes_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Event__Sequence__init(test_msgs__srv__BasicTypes_Event__Sequence * array, size_t size); - -/// Finalize array of srv/BasicTypes messages. -/** - * It calls - * test_msgs__srv__BasicTypes_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__BasicTypes_Event__Sequence__fini(test_msgs__srv__BasicTypes_Event__Sequence * array); - -/// Create array of srv/BasicTypes messages. -/** - * It allocates the memory for the array and calls - * test_msgs__srv__BasicTypes_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__BasicTypes_Event__Sequence * -test_msgs__srv__BasicTypes_Event__Sequence__create(size_t size); - -/// Destroy array of srv/BasicTypes messages. -/** - * It calls - * test_msgs__srv__BasicTypes_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__BasicTypes_Event__Sequence__destroy(test_msgs__srv__BasicTypes_Event__Sequence * array); - -/// Check for srv/BasicTypes message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Event__Sequence__are_equal(const test_msgs__srv__BasicTypes_Event__Sequence * lhs, const test_msgs__srv__BasicTypes_Event__Sequence * rhs); - -/// Copy an array of srv/BasicTypes messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__BasicTypes_Event__Sequence__copy( - const test_msgs__srv__BasicTypes_Event__Sequence * input, - test_msgs__srv__BasicTypes_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__DETAIL__BASIC_TYPES__FUNCTIONS_H_ diff --git a/src/test_msgs/srv/detail/basic_types__rosidl_typesupport_introspection_c.h b/src/test_msgs/srv/detail/basic_types__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 1419edea5..000000000 --- a/src/test_msgs/srv/detail/basic_types__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:srv/BasicTypes.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__SRV__DETAIL__BASIC_TYPES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__SRV__DETAIL__BASIC_TYPES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, srv, BasicTypes_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, srv, BasicTypes_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, srv, BasicTypes_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, srv, BasicTypes)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__DETAIL__BASIC_TYPES__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/srv/detail/basic_types__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/srv/detail/basic_types__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 7f66f0802..000000000 --- a/src/test_msgs/srv/detail/basic_types__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:srv/BasicTypes.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__SRV__BASIC_TYPES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__SRV__BASIC_TYPES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__srv__BasicTypes_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__srv__BasicTypes_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, srv, BasicTypes_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__srv__BasicTypes_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__srv__BasicTypes_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, srv, BasicTypes_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__srv__BasicTypes_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__srv__BasicTypes_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, srv, BasicTypes_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, srv, BasicTypes)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__BASIC_TYPES__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/srv/detail/basic_types__struct.h b/src/test_msgs/srv/detail/basic_types__struct.h deleted file mode 100755 index 82becfa31..000000000 --- a/src/test_msgs/srv/detail/basic_types__struct.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:srv/BasicTypes.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/srv/basic_types.h" - - -#ifndef TEST_MSGS__SRV__DETAIL__BASIC_TYPES__STRUCT_H_ -#define TEST_MSGS__SRV__DETAIL__BASIC_TYPES__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'string_value' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/BasicTypes in the package test_msgs. -typedef struct test_msgs__srv__BasicTypes_Request -{ - bool bool_value; - uint8_t byte_value; - uint8_t char_value; - float float32_value; - double float64_value; - int8_t int8_value; - uint8_t uint8_value; - int16_t int16_value; - uint16_t uint16_value; - int32_t int32_value; - uint32_t uint32_value; - int64_t int64_value; - uint64_t uint64_value; - rosidl_runtime_c__String string_value; -} test_msgs__srv__BasicTypes_Request; - -// Struct for a sequence of test_msgs__srv__BasicTypes_Request. -typedef struct test_msgs__srv__BasicTypes_Request__Sequence -{ - test_msgs__srv__BasicTypes_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__srv__BasicTypes_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'string_value' -// already included above -// #include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/BasicTypes in the package test_msgs. -typedef struct test_msgs__srv__BasicTypes_Response -{ - bool bool_value; - uint8_t byte_value; - uint8_t char_value; - float float32_value; - double float64_value; - int8_t int8_value; - uint8_t uint8_value; - int16_t int16_value; - uint16_t uint16_value; - int32_t int32_value; - uint32_t uint32_value; - int64_t int64_value; - uint64_t uint64_value; - rosidl_runtime_c__String string_value; -} test_msgs__srv__BasicTypes_Response; - -// Struct for a sequence of test_msgs__srv__BasicTypes_Response. -typedef struct test_msgs__srv__BasicTypes_Response__Sequence -{ - test_msgs__srv__BasicTypes_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__srv__BasicTypes_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - test_msgs__srv__BasicTypes_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - test_msgs__srv__BasicTypes_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/BasicTypes in the package test_msgs. -typedef struct test_msgs__srv__BasicTypes_Event -{ - service_msgs__msg__ServiceEventInfo info; - test_msgs__srv__BasicTypes_Request__Sequence request; - test_msgs__srv__BasicTypes_Response__Sequence response; -} test_msgs__srv__BasicTypes_Event; - -// Struct for a sequence of test_msgs__srv__BasicTypes_Event. -typedef struct test_msgs__srv__BasicTypes_Event__Sequence -{ - test_msgs__srv__BasicTypes_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__srv__BasicTypes_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__DETAIL__BASIC_TYPES__STRUCT_H_ diff --git a/src/test_msgs/srv/detail/basic_types__type_support.h b/src/test_msgs/srv/detail/basic_types__type_support.h deleted file mode 100755 index dd55070fd..000000000 --- a/src/test_msgs/srv/detail/basic_types__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:srv/BasicTypes.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/srv/basic_types.h" - - -#ifndef TEST_MSGS__SRV__DETAIL__BASIC_TYPES__TYPE_SUPPORT_H_ -#define TEST_MSGS__SRV__DETAIL__BASIC_TYPES__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - BasicTypes_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - BasicTypes_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - BasicTypes_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - BasicTypes -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - BasicTypes -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - BasicTypes -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__DETAIL__BASIC_TYPES__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/srv/detail/empty__functions.h b/src/test_msgs/srv/detail/empty__functions.h deleted file mode 100755 index feb087ba5..000000000 --- a/src/test_msgs/srv/detail/empty__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from test_msgs:srv/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/srv/empty.h" - - -#ifndef TEST_MSGS__SRV__DETAIL__EMPTY__FUNCTIONS_H_ -#define TEST_MSGS__SRV__DETAIL__EMPTY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "test_msgs/srv/detail/empty__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__srv__Empty__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__srv__Empty__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__srv__Empty__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__srv__Empty__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/Empty message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__srv__Empty_Request - * )) before or use - * test_msgs__srv__Empty_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Request__init(test_msgs__srv__Empty_Request * msg); - -/// Finalize srv/Empty message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Empty_Request__fini(test_msgs__srv__Empty_Request * msg); - -/// Create srv/Empty message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__srv__Empty_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__Empty_Request * -test_msgs__srv__Empty_Request__create(void); - -/// Destroy srv/Empty message. -/** - * It calls - * test_msgs__srv__Empty_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Empty_Request__destroy(test_msgs__srv__Empty_Request * msg); - -/// Check for srv/Empty message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Request__are_equal(const test_msgs__srv__Empty_Request * lhs, const test_msgs__srv__Empty_Request * rhs); - -/// Copy a srv/Empty message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Request__copy( - const test_msgs__srv__Empty_Request * input, - test_msgs__srv__Empty_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__srv__Empty_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__srv__Empty_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__srv__Empty_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__srv__Empty_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Empty messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__srv__Empty_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Request__Sequence__init(test_msgs__srv__Empty_Request__Sequence * array, size_t size); - -/// Finalize array of srv/Empty messages. -/** - * It calls - * test_msgs__srv__Empty_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Empty_Request__Sequence__fini(test_msgs__srv__Empty_Request__Sequence * array); - -/// Create array of srv/Empty messages. -/** - * It allocates the memory for the array and calls - * test_msgs__srv__Empty_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__Empty_Request__Sequence * -test_msgs__srv__Empty_Request__Sequence__create(size_t size); - -/// Destroy array of srv/Empty messages. -/** - * It calls - * test_msgs__srv__Empty_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Empty_Request__Sequence__destroy(test_msgs__srv__Empty_Request__Sequence * array); - -/// Check for srv/Empty message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Request__Sequence__are_equal(const test_msgs__srv__Empty_Request__Sequence * lhs, const test_msgs__srv__Empty_Request__Sequence * rhs); - -/// Copy an array of srv/Empty messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Request__Sequence__copy( - const test_msgs__srv__Empty_Request__Sequence * input, - test_msgs__srv__Empty_Request__Sequence * output); - -/// Initialize srv/Empty message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__srv__Empty_Response - * )) before or use - * test_msgs__srv__Empty_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Response__init(test_msgs__srv__Empty_Response * msg); - -/// Finalize srv/Empty message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Empty_Response__fini(test_msgs__srv__Empty_Response * msg); - -/// Create srv/Empty message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__srv__Empty_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__Empty_Response * -test_msgs__srv__Empty_Response__create(void); - -/// Destroy srv/Empty message. -/** - * It calls - * test_msgs__srv__Empty_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Empty_Response__destroy(test_msgs__srv__Empty_Response * msg); - -/// Check for srv/Empty message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Response__are_equal(const test_msgs__srv__Empty_Response * lhs, const test_msgs__srv__Empty_Response * rhs); - -/// Copy a srv/Empty message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Response__copy( - const test_msgs__srv__Empty_Response * input, - test_msgs__srv__Empty_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__srv__Empty_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__srv__Empty_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__srv__Empty_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__srv__Empty_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Empty messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__srv__Empty_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Response__Sequence__init(test_msgs__srv__Empty_Response__Sequence * array, size_t size); - -/// Finalize array of srv/Empty messages. -/** - * It calls - * test_msgs__srv__Empty_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Empty_Response__Sequence__fini(test_msgs__srv__Empty_Response__Sequence * array); - -/// Create array of srv/Empty messages. -/** - * It allocates the memory for the array and calls - * test_msgs__srv__Empty_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__Empty_Response__Sequence * -test_msgs__srv__Empty_Response__Sequence__create(size_t size); - -/// Destroy array of srv/Empty messages. -/** - * It calls - * test_msgs__srv__Empty_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Empty_Response__Sequence__destroy(test_msgs__srv__Empty_Response__Sequence * array); - -/// Check for srv/Empty message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Response__Sequence__are_equal(const test_msgs__srv__Empty_Response__Sequence * lhs, const test_msgs__srv__Empty_Response__Sequence * rhs); - -/// Copy an array of srv/Empty messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Response__Sequence__copy( - const test_msgs__srv__Empty_Response__Sequence * input, - test_msgs__srv__Empty_Response__Sequence * output); - -/// Initialize srv/Empty message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * test_msgs__srv__Empty_Event - * )) before or use - * test_msgs__srv__Empty_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Event__init(test_msgs__srv__Empty_Event * msg); - -/// Finalize srv/Empty message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Empty_Event__fini(test_msgs__srv__Empty_Event * msg); - -/// Create srv/Empty message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * test_msgs__srv__Empty_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__Empty_Event * -test_msgs__srv__Empty_Event__create(void); - -/// Destroy srv/Empty message. -/** - * It calls - * test_msgs__srv__Empty_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Empty_Event__destroy(test_msgs__srv__Empty_Event * msg); - -/// Check for srv/Empty message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Event__are_equal(const test_msgs__srv__Empty_Event * lhs, const test_msgs__srv__Empty_Event * rhs); - -/// Copy a srv/Empty message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Event__copy( - const test_msgs__srv__Empty_Event * input, - test_msgs__srv__Empty_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_type_hash_t * -test_msgs__srv__Empty_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeDescription * -test_msgs__srv__Empty_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource * -test_msgs__srv__Empty_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -test_msgs__srv__Empty_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/Empty messages. -/** - * It allocates the memory for the number of elements and calls - * test_msgs__srv__Empty_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Event__Sequence__init(test_msgs__srv__Empty_Event__Sequence * array, size_t size); - -/// Finalize array of srv/Empty messages. -/** - * It calls - * test_msgs__srv__Empty_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Empty_Event__Sequence__fini(test_msgs__srv__Empty_Event__Sequence * array); - -/// Create array of srv/Empty messages. -/** - * It allocates the memory for the array and calls - * test_msgs__srv__Empty_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -test_msgs__srv__Empty_Event__Sequence * -test_msgs__srv__Empty_Event__Sequence__create(size_t size); - -/// Destroy array of srv/Empty messages. -/** - * It calls - * test_msgs__srv__Empty_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void -test_msgs__srv__Empty_Event__Sequence__destroy(test_msgs__srv__Empty_Event__Sequence * array); - -/// Check for srv/Empty message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Event__Sequence__are_equal(const test_msgs__srv__Empty_Event__Sequence * lhs, const test_msgs__srv__Empty_Event__Sequence * rhs); - -/// Copy an array of srv/Empty messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -test_msgs__srv__Empty_Event__Sequence__copy( - const test_msgs__srv__Empty_Event__Sequence * input, - test_msgs__srv__Empty_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__DETAIL__EMPTY__FUNCTIONS_H_ diff --git a/src/test_msgs/srv/detail/empty__rosidl_typesupport_introspection_c.h b/src/test_msgs/srv/detail/empty__rosidl_typesupport_introspection_c.h deleted file mode 100755 index d4a817bd2..000000000 --- a/src/test_msgs/srv/detail/empty__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from test_msgs:srv/Empty.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__SRV__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TEST_MSGS__SRV__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, srv, Empty_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, srv, Empty_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, srv, Empty_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, test_msgs, srv, Empty)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__DETAIL__EMPTY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/test_msgs/srv/detail/empty__rosidl_typesupport_microxrcedds_c.h b/src/test_msgs/srv/detail/empty__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index b1e75df3e..000000000 --- a/src/test_msgs/srv/detail/empty__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from test_msgs:srv/Empty.idl -// generated code does not contain a copyright notice -#ifndef TEST_MSGS__SRV__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TEST_MSGS__SRV__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__srv__Empty_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__srv__Empty_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, srv, Empty_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__srv__Empty_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__srv__Empty_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, srv, Empty_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t get_serialized_size_test_msgs__srv__Empty_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -size_t max_serialized_size_test_msgs__srv__Empty_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, srv, Empty_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "test_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, test_msgs, srv, Empty)(); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__EMPTY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/test_msgs/srv/detail/empty__struct.h b/src/test_msgs/srv/detail/empty__struct.h deleted file mode 100755 index 91301bcb7..000000000 --- a/src/test_msgs/srv/detail/empty__struct.h +++ /dev/null @@ -1,97 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from test_msgs:srv/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/srv/empty.h" - - -#ifndef TEST_MSGS__SRV__DETAIL__EMPTY__STRUCT_H_ -#define TEST_MSGS__SRV__DETAIL__EMPTY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/Empty in the package test_msgs. -typedef struct test_msgs__srv__Empty_Request -{ - uint8_t structure_needs_at_least_one_member; -} test_msgs__srv__Empty_Request; - -// Struct for a sequence of test_msgs__srv__Empty_Request. -typedef struct test_msgs__srv__Empty_Request__Sequence -{ - test_msgs__srv__Empty_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__srv__Empty_Request__Sequence; - -// Constants defined in the message - -/// Struct defined in srv/Empty in the package test_msgs. -typedef struct test_msgs__srv__Empty_Response -{ - uint8_t structure_needs_at_least_one_member; -} test_msgs__srv__Empty_Response; - -// Struct for a sequence of test_msgs__srv__Empty_Response. -typedef struct test_msgs__srv__Empty_Response__Sequence -{ - test_msgs__srv__Empty_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__srv__Empty_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - test_msgs__srv__Empty_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - test_msgs__srv__Empty_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/Empty in the package test_msgs. -typedef struct test_msgs__srv__Empty_Event -{ - service_msgs__msg__ServiceEventInfo info; - test_msgs__srv__Empty_Request__Sequence request; - test_msgs__srv__Empty_Response__Sequence response; -} test_msgs__srv__Empty_Event; - -// Struct for a sequence of test_msgs__srv__Empty_Event. -typedef struct test_msgs__srv__Empty_Event__Sequence -{ - test_msgs__srv__Empty_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} test_msgs__srv__Empty_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__DETAIL__EMPTY__STRUCT_H_ diff --git a/src/test_msgs/srv/detail/empty__type_support.h b/src/test_msgs/srv/detail/empty__type_support.h deleted file mode 100755 index a36481899..000000000 --- a/src/test_msgs/srv/detail/empty__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from test_msgs:srv/Empty.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "test_msgs/srv/empty.h" - - -#ifndef TEST_MSGS__SRV__DETAIL__EMPTY__TYPE_SUPPORT_H_ -#define TEST_MSGS__SRV__DETAIL__EMPTY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "test_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - Empty_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - Empty_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - Empty_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - Empty -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - Empty -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_test_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - test_msgs, - srv, - Empty -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // TEST_MSGS__SRV__DETAIL__EMPTY__TYPE_SUPPORT_H_ diff --git a/src/test_msgs/srv/empty.h b/src/test_msgs/srv/empty.h deleted file mode 100755 index cdaf396d8..000000000 --- a/src/test_msgs/srv/empty.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from test_msgs:srv/Empty.idl -// generated code does not contain a copyright notice - -#ifndef TEST_MSGS__SRV__EMPTY_H_ -#define TEST_MSGS__SRV__EMPTY_H_ - -#include "test_msgs/srv/detail/empty__struct.h" -#include "test_msgs/srv/detail/empty__functions.h" -#include "test_msgs/srv/detail/empty__type_support.h" - -#endif // TEST_MSGS__SRV__EMPTY_H_ diff --git a/src/tf2_msgs/action/detail/lookup_transform__functions.h b/src/tf2_msgs/action/detail/lookup_transform__functions.h deleted file mode 100755 index 85f4fb340..000000000 --- a/src/tf2_msgs/action/detail/lookup_transform__functions.h +++ /dev/null @@ -1,1866 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from tf2_msgs:action/LookupTransform.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "tf2_msgs/action/lookup_transform.h" - - -#ifndef TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__FUNCTIONS_H_ -#define TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "tf2_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "tf2_msgs/action/detail/lookup_transform__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__action__LookupTransform__get_type_hash( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__action__LookupTransform__get_type_description( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__action__LookupTransform__get_individual_type_description_source( - const rosidl_action_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__action__LookupTransform__get_type_description_sources( - const rosidl_action_type_support_t * type_support); - -/// Initialize action/LookupTransform message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__action__LookupTransform_Goal - * )) before or use - * tf2_msgs__action__LookupTransform_Goal__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Goal__init(tf2_msgs__action__LookupTransform_Goal * msg); - -/// Finalize action/LookupTransform message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_Goal__fini(tf2_msgs__action__LookupTransform_Goal * msg); - -/// Create action/LookupTransform message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__action__LookupTransform_Goal__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_Goal * -tf2_msgs__action__LookupTransform_Goal__create(void); - -/// Destroy action/LookupTransform message. -/** - * It calls - * tf2_msgs__action__LookupTransform_Goal__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_Goal__destroy(tf2_msgs__action__LookupTransform_Goal * msg); - -/// Check for action/LookupTransform message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Goal__are_equal(const tf2_msgs__action__LookupTransform_Goal * lhs, const tf2_msgs__action__LookupTransform_Goal * rhs); - -/// Copy a action/LookupTransform message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Goal__copy( - const tf2_msgs__action__LookupTransform_Goal * input, - tf2_msgs__action__LookupTransform_Goal * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__action__LookupTransform_Goal__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__action__LookupTransform_Goal__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__action__LookupTransform_Goal__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__action__LookupTransform_Goal__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/LookupTransform messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__action__LookupTransform_Goal__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Goal__Sequence__init(tf2_msgs__action__LookupTransform_Goal__Sequence * array, size_t size); - -/// Finalize array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_Goal__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_Goal__Sequence__fini(tf2_msgs__action__LookupTransform_Goal__Sequence * array); - -/// Create array of action/LookupTransform messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__action__LookupTransform_Goal__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_Goal__Sequence * -tf2_msgs__action__LookupTransform_Goal__Sequence__create(size_t size); - -/// Destroy array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_Goal__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_Goal__Sequence__destroy(tf2_msgs__action__LookupTransform_Goal__Sequence * array); - -/// Check for action/LookupTransform message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Goal__Sequence__are_equal(const tf2_msgs__action__LookupTransform_Goal__Sequence * lhs, const tf2_msgs__action__LookupTransform_Goal__Sequence * rhs); - -/// Copy an array of action/LookupTransform messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Goal__Sequence__copy( - const tf2_msgs__action__LookupTransform_Goal__Sequence * input, - tf2_msgs__action__LookupTransform_Goal__Sequence * output); - -/// Initialize action/LookupTransform message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__action__LookupTransform_Result - * )) before or use - * tf2_msgs__action__LookupTransform_Result__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Result__init(tf2_msgs__action__LookupTransform_Result * msg); - -/// Finalize action/LookupTransform message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_Result__fini(tf2_msgs__action__LookupTransform_Result * msg); - -/// Create action/LookupTransform message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__action__LookupTransform_Result__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_Result * -tf2_msgs__action__LookupTransform_Result__create(void); - -/// Destroy action/LookupTransform message. -/** - * It calls - * tf2_msgs__action__LookupTransform_Result__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_Result__destroy(tf2_msgs__action__LookupTransform_Result * msg); - -/// Check for action/LookupTransform message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Result__are_equal(const tf2_msgs__action__LookupTransform_Result * lhs, const tf2_msgs__action__LookupTransform_Result * rhs); - -/// Copy a action/LookupTransform message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Result__copy( - const tf2_msgs__action__LookupTransform_Result * input, - tf2_msgs__action__LookupTransform_Result * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__action__LookupTransform_Result__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__action__LookupTransform_Result__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__action__LookupTransform_Result__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__action__LookupTransform_Result__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/LookupTransform messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__action__LookupTransform_Result__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Result__Sequence__init(tf2_msgs__action__LookupTransform_Result__Sequence * array, size_t size); - -/// Finalize array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_Result__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_Result__Sequence__fini(tf2_msgs__action__LookupTransform_Result__Sequence * array); - -/// Create array of action/LookupTransform messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__action__LookupTransform_Result__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_Result__Sequence * -tf2_msgs__action__LookupTransform_Result__Sequence__create(size_t size); - -/// Destroy array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_Result__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_Result__Sequence__destroy(tf2_msgs__action__LookupTransform_Result__Sequence * array); - -/// Check for action/LookupTransform message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Result__Sequence__are_equal(const tf2_msgs__action__LookupTransform_Result__Sequence * lhs, const tf2_msgs__action__LookupTransform_Result__Sequence * rhs); - -/// Copy an array of action/LookupTransform messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Result__Sequence__copy( - const tf2_msgs__action__LookupTransform_Result__Sequence * input, - tf2_msgs__action__LookupTransform_Result__Sequence * output); - -/// Initialize action/LookupTransform message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__action__LookupTransform_Feedback - * )) before or use - * tf2_msgs__action__LookupTransform_Feedback__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Feedback__init(tf2_msgs__action__LookupTransform_Feedback * msg); - -/// Finalize action/LookupTransform message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_Feedback__fini(tf2_msgs__action__LookupTransform_Feedback * msg); - -/// Create action/LookupTransform message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__action__LookupTransform_Feedback__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_Feedback * -tf2_msgs__action__LookupTransform_Feedback__create(void); - -/// Destroy action/LookupTransform message. -/** - * It calls - * tf2_msgs__action__LookupTransform_Feedback__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_Feedback__destroy(tf2_msgs__action__LookupTransform_Feedback * msg); - -/// Check for action/LookupTransform message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Feedback__are_equal(const tf2_msgs__action__LookupTransform_Feedback * lhs, const tf2_msgs__action__LookupTransform_Feedback * rhs); - -/// Copy a action/LookupTransform message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Feedback__copy( - const tf2_msgs__action__LookupTransform_Feedback * input, - tf2_msgs__action__LookupTransform_Feedback * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__action__LookupTransform_Feedback__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__action__LookupTransform_Feedback__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__action__LookupTransform_Feedback__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__action__LookupTransform_Feedback__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/LookupTransform messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__action__LookupTransform_Feedback__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Feedback__Sequence__init(tf2_msgs__action__LookupTransform_Feedback__Sequence * array, size_t size); - -/// Finalize array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_Feedback__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_Feedback__Sequence__fini(tf2_msgs__action__LookupTransform_Feedback__Sequence * array); - -/// Create array of action/LookupTransform messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__action__LookupTransform_Feedback__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_Feedback__Sequence * -tf2_msgs__action__LookupTransform_Feedback__Sequence__create(size_t size); - -/// Destroy array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_Feedback__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_Feedback__Sequence__destroy(tf2_msgs__action__LookupTransform_Feedback__Sequence * array); - -/// Check for action/LookupTransform message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Feedback__Sequence__are_equal(const tf2_msgs__action__LookupTransform_Feedback__Sequence * lhs, const tf2_msgs__action__LookupTransform_Feedback__Sequence * rhs); - -/// Copy an array of action/LookupTransform messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_Feedback__Sequence__copy( - const tf2_msgs__action__LookupTransform_Feedback__Sequence * input, - tf2_msgs__action__LookupTransform_Feedback__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__action__LookupTransform_SendGoal__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__action__LookupTransform_SendGoal__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__action__LookupTransform_SendGoal__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__action__LookupTransform_SendGoal__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/LookupTransform message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__action__LookupTransform_SendGoal_Request - * )) before or use - * tf2_msgs__action__LookupTransform_SendGoal_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Request__init(tf2_msgs__action__LookupTransform_SendGoal_Request * msg); - -/// Finalize action/LookupTransform message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_SendGoal_Request__fini(tf2_msgs__action__LookupTransform_SendGoal_Request * msg); - -/// Create action/LookupTransform message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__action__LookupTransform_SendGoal_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_SendGoal_Request * -tf2_msgs__action__LookupTransform_SendGoal_Request__create(void); - -/// Destroy action/LookupTransform message. -/** - * It calls - * tf2_msgs__action__LookupTransform_SendGoal_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_SendGoal_Request__destroy(tf2_msgs__action__LookupTransform_SendGoal_Request * msg); - -/// Check for action/LookupTransform message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Request__are_equal(const tf2_msgs__action__LookupTransform_SendGoal_Request * lhs, const tf2_msgs__action__LookupTransform_SendGoal_Request * rhs); - -/// Copy a action/LookupTransform message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Request__copy( - const tf2_msgs__action__LookupTransform_SendGoal_Request * input, - tf2_msgs__action__LookupTransform_SendGoal_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__action__LookupTransform_SendGoal_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__action__LookupTransform_SendGoal_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__action__LookupTransform_SendGoal_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__action__LookupTransform_SendGoal_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/LookupTransform messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__action__LookupTransform_SendGoal_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence__init(tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence * array, size_t size); - -/// Finalize array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_SendGoal_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence__fini(tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence * array); - -/// Create array of action/LookupTransform messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence * -tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence__create(size_t size); - -/// Destroy array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence__destroy(tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence * array); - -/// Check for action/LookupTransform message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence__are_equal(const tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence * lhs, const tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence * rhs); - -/// Copy an array of action/LookupTransform messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence__copy( - const tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence * input, - tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence * output); - -/// Initialize action/LookupTransform message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__action__LookupTransform_SendGoal_Response - * )) before or use - * tf2_msgs__action__LookupTransform_SendGoal_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Response__init(tf2_msgs__action__LookupTransform_SendGoal_Response * msg); - -/// Finalize action/LookupTransform message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_SendGoal_Response__fini(tf2_msgs__action__LookupTransform_SendGoal_Response * msg); - -/// Create action/LookupTransform message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__action__LookupTransform_SendGoal_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_SendGoal_Response * -tf2_msgs__action__LookupTransform_SendGoal_Response__create(void); - -/// Destroy action/LookupTransform message. -/** - * It calls - * tf2_msgs__action__LookupTransform_SendGoal_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_SendGoal_Response__destroy(tf2_msgs__action__LookupTransform_SendGoal_Response * msg); - -/// Check for action/LookupTransform message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Response__are_equal(const tf2_msgs__action__LookupTransform_SendGoal_Response * lhs, const tf2_msgs__action__LookupTransform_SendGoal_Response * rhs); - -/// Copy a action/LookupTransform message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Response__copy( - const tf2_msgs__action__LookupTransform_SendGoal_Response * input, - tf2_msgs__action__LookupTransform_SendGoal_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__action__LookupTransform_SendGoal_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__action__LookupTransform_SendGoal_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__action__LookupTransform_SendGoal_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__action__LookupTransform_SendGoal_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/LookupTransform messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__action__LookupTransform_SendGoal_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence__init(tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence * array, size_t size); - -/// Finalize array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_SendGoal_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence__fini(tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence * array); - -/// Create array of action/LookupTransform messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence * -tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence__create(size_t size); - -/// Destroy array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence__destroy(tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence * array); - -/// Check for action/LookupTransform message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence__are_equal(const tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence * lhs, const tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence * rhs); - -/// Copy an array of action/LookupTransform messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence__copy( - const tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence * input, - tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence * output); - -/// Initialize action/LookupTransform message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__action__LookupTransform_SendGoal_Event - * )) before or use - * tf2_msgs__action__LookupTransform_SendGoal_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Event__init(tf2_msgs__action__LookupTransform_SendGoal_Event * msg); - -/// Finalize action/LookupTransform message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_SendGoal_Event__fini(tf2_msgs__action__LookupTransform_SendGoal_Event * msg); - -/// Create action/LookupTransform message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__action__LookupTransform_SendGoal_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_SendGoal_Event * -tf2_msgs__action__LookupTransform_SendGoal_Event__create(void); - -/// Destroy action/LookupTransform message. -/** - * It calls - * tf2_msgs__action__LookupTransform_SendGoal_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_SendGoal_Event__destroy(tf2_msgs__action__LookupTransform_SendGoal_Event * msg); - -/// Check for action/LookupTransform message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Event__are_equal(const tf2_msgs__action__LookupTransform_SendGoal_Event * lhs, const tf2_msgs__action__LookupTransform_SendGoal_Event * rhs); - -/// Copy a action/LookupTransform message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Event__copy( - const tf2_msgs__action__LookupTransform_SendGoal_Event * input, - tf2_msgs__action__LookupTransform_SendGoal_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__action__LookupTransform_SendGoal_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__action__LookupTransform_SendGoal_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__action__LookupTransform_SendGoal_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__action__LookupTransform_SendGoal_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/LookupTransform messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__action__LookupTransform_SendGoal_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence__init(tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence * array, size_t size); - -/// Finalize array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_SendGoal_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence__fini(tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence * array); - -/// Create array of action/LookupTransform messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence * -tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence__create(size_t size); - -/// Destroy array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence__destroy(tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence * array); - -/// Check for action/LookupTransform message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence__are_equal(const tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence * lhs, const tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence * rhs); - -/// Copy an array of action/LookupTransform messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence__copy( - const tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence * input, - tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__action__LookupTransform_GetResult__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__action__LookupTransform_GetResult__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__action__LookupTransform_GetResult__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__action__LookupTransform_GetResult__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize action/LookupTransform message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__action__LookupTransform_GetResult_Request - * )) before or use - * tf2_msgs__action__LookupTransform_GetResult_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Request__init(tf2_msgs__action__LookupTransform_GetResult_Request * msg); - -/// Finalize action/LookupTransform message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_GetResult_Request__fini(tf2_msgs__action__LookupTransform_GetResult_Request * msg); - -/// Create action/LookupTransform message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__action__LookupTransform_GetResult_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_GetResult_Request * -tf2_msgs__action__LookupTransform_GetResult_Request__create(void); - -/// Destroy action/LookupTransform message. -/** - * It calls - * tf2_msgs__action__LookupTransform_GetResult_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_GetResult_Request__destroy(tf2_msgs__action__LookupTransform_GetResult_Request * msg); - -/// Check for action/LookupTransform message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Request__are_equal(const tf2_msgs__action__LookupTransform_GetResult_Request * lhs, const tf2_msgs__action__LookupTransform_GetResult_Request * rhs); - -/// Copy a action/LookupTransform message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Request__copy( - const tf2_msgs__action__LookupTransform_GetResult_Request * input, - tf2_msgs__action__LookupTransform_GetResult_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__action__LookupTransform_GetResult_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__action__LookupTransform_GetResult_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__action__LookupTransform_GetResult_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__action__LookupTransform_GetResult_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/LookupTransform messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__action__LookupTransform_GetResult_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Request__Sequence__init(tf2_msgs__action__LookupTransform_GetResult_Request__Sequence * array, size_t size); - -/// Finalize array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_GetResult_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_GetResult_Request__Sequence__fini(tf2_msgs__action__LookupTransform_GetResult_Request__Sequence * array); - -/// Create array of action/LookupTransform messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__action__LookupTransform_GetResult_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_GetResult_Request__Sequence * -tf2_msgs__action__LookupTransform_GetResult_Request__Sequence__create(size_t size); - -/// Destroy array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_GetResult_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_GetResult_Request__Sequence__destroy(tf2_msgs__action__LookupTransform_GetResult_Request__Sequence * array); - -/// Check for action/LookupTransform message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Request__Sequence__are_equal(const tf2_msgs__action__LookupTransform_GetResult_Request__Sequence * lhs, const tf2_msgs__action__LookupTransform_GetResult_Request__Sequence * rhs); - -/// Copy an array of action/LookupTransform messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Request__Sequence__copy( - const tf2_msgs__action__LookupTransform_GetResult_Request__Sequence * input, - tf2_msgs__action__LookupTransform_GetResult_Request__Sequence * output); - -/// Initialize action/LookupTransform message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__action__LookupTransform_GetResult_Response - * )) before or use - * tf2_msgs__action__LookupTransform_GetResult_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Response__init(tf2_msgs__action__LookupTransform_GetResult_Response * msg); - -/// Finalize action/LookupTransform message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_GetResult_Response__fini(tf2_msgs__action__LookupTransform_GetResult_Response * msg); - -/// Create action/LookupTransform message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__action__LookupTransform_GetResult_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_GetResult_Response * -tf2_msgs__action__LookupTransform_GetResult_Response__create(void); - -/// Destroy action/LookupTransform message. -/** - * It calls - * tf2_msgs__action__LookupTransform_GetResult_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_GetResult_Response__destroy(tf2_msgs__action__LookupTransform_GetResult_Response * msg); - -/// Check for action/LookupTransform message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Response__are_equal(const tf2_msgs__action__LookupTransform_GetResult_Response * lhs, const tf2_msgs__action__LookupTransform_GetResult_Response * rhs); - -/// Copy a action/LookupTransform message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Response__copy( - const tf2_msgs__action__LookupTransform_GetResult_Response * input, - tf2_msgs__action__LookupTransform_GetResult_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__action__LookupTransform_GetResult_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__action__LookupTransform_GetResult_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__action__LookupTransform_GetResult_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__action__LookupTransform_GetResult_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/LookupTransform messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__action__LookupTransform_GetResult_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Response__Sequence__init(tf2_msgs__action__LookupTransform_GetResult_Response__Sequence * array, size_t size); - -/// Finalize array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_GetResult_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_GetResult_Response__Sequence__fini(tf2_msgs__action__LookupTransform_GetResult_Response__Sequence * array); - -/// Create array of action/LookupTransform messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__action__LookupTransform_GetResult_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_GetResult_Response__Sequence * -tf2_msgs__action__LookupTransform_GetResult_Response__Sequence__create(size_t size); - -/// Destroy array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_GetResult_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_GetResult_Response__Sequence__destroy(tf2_msgs__action__LookupTransform_GetResult_Response__Sequence * array); - -/// Check for action/LookupTransform message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Response__Sequence__are_equal(const tf2_msgs__action__LookupTransform_GetResult_Response__Sequence * lhs, const tf2_msgs__action__LookupTransform_GetResult_Response__Sequence * rhs); - -/// Copy an array of action/LookupTransform messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Response__Sequence__copy( - const tf2_msgs__action__LookupTransform_GetResult_Response__Sequence * input, - tf2_msgs__action__LookupTransform_GetResult_Response__Sequence * output); - -/// Initialize action/LookupTransform message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__action__LookupTransform_GetResult_Event - * )) before or use - * tf2_msgs__action__LookupTransform_GetResult_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Event__init(tf2_msgs__action__LookupTransform_GetResult_Event * msg); - -/// Finalize action/LookupTransform message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_GetResult_Event__fini(tf2_msgs__action__LookupTransform_GetResult_Event * msg); - -/// Create action/LookupTransform message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__action__LookupTransform_GetResult_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_GetResult_Event * -tf2_msgs__action__LookupTransform_GetResult_Event__create(void); - -/// Destroy action/LookupTransform message. -/** - * It calls - * tf2_msgs__action__LookupTransform_GetResult_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_GetResult_Event__destroy(tf2_msgs__action__LookupTransform_GetResult_Event * msg); - -/// Check for action/LookupTransform message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Event__are_equal(const tf2_msgs__action__LookupTransform_GetResult_Event * lhs, const tf2_msgs__action__LookupTransform_GetResult_Event * rhs); - -/// Copy a action/LookupTransform message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Event__copy( - const tf2_msgs__action__LookupTransform_GetResult_Event * input, - tf2_msgs__action__LookupTransform_GetResult_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__action__LookupTransform_GetResult_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__action__LookupTransform_GetResult_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__action__LookupTransform_GetResult_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__action__LookupTransform_GetResult_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/LookupTransform messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__action__LookupTransform_GetResult_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Event__Sequence__init(tf2_msgs__action__LookupTransform_GetResult_Event__Sequence * array, size_t size); - -/// Finalize array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_GetResult_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_GetResult_Event__Sequence__fini(tf2_msgs__action__LookupTransform_GetResult_Event__Sequence * array); - -/// Create array of action/LookupTransform messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__action__LookupTransform_GetResult_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_GetResult_Event__Sequence * -tf2_msgs__action__LookupTransform_GetResult_Event__Sequence__create(size_t size); - -/// Destroy array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_GetResult_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_GetResult_Event__Sequence__destroy(tf2_msgs__action__LookupTransform_GetResult_Event__Sequence * array); - -/// Check for action/LookupTransform message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Event__Sequence__are_equal(const tf2_msgs__action__LookupTransform_GetResult_Event__Sequence * lhs, const tf2_msgs__action__LookupTransform_GetResult_Event__Sequence * rhs); - -/// Copy an array of action/LookupTransform messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_GetResult_Event__Sequence__copy( - const tf2_msgs__action__LookupTransform_GetResult_Event__Sequence * input, - tf2_msgs__action__LookupTransform_GetResult_Event__Sequence * output); - -/// Initialize action/LookupTransform message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__action__LookupTransform_FeedbackMessage - * )) before or use - * tf2_msgs__action__LookupTransform_FeedbackMessage__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_FeedbackMessage__init(tf2_msgs__action__LookupTransform_FeedbackMessage * msg); - -/// Finalize action/LookupTransform message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_FeedbackMessage__fini(tf2_msgs__action__LookupTransform_FeedbackMessage * msg); - -/// Create action/LookupTransform message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__action__LookupTransform_FeedbackMessage__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_FeedbackMessage * -tf2_msgs__action__LookupTransform_FeedbackMessage__create(void); - -/// Destroy action/LookupTransform message. -/** - * It calls - * tf2_msgs__action__LookupTransform_FeedbackMessage__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_FeedbackMessage__destroy(tf2_msgs__action__LookupTransform_FeedbackMessage * msg); - -/// Check for action/LookupTransform message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_FeedbackMessage__are_equal(const tf2_msgs__action__LookupTransform_FeedbackMessage * lhs, const tf2_msgs__action__LookupTransform_FeedbackMessage * rhs); - -/// Copy a action/LookupTransform message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_FeedbackMessage__copy( - const tf2_msgs__action__LookupTransform_FeedbackMessage * input, - tf2_msgs__action__LookupTransform_FeedbackMessage * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__action__LookupTransform_FeedbackMessage__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__action__LookupTransform_FeedbackMessage__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__action__LookupTransform_FeedbackMessage__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__action__LookupTransform_FeedbackMessage__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of action/LookupTransform messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__action__LookupTransform_FeedbackMessage__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence__init(tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence * array, size_t size); - -/// Finalize array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_FeedbackMessage__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence__fini(tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence * array); - -/// Create array of action/LookupTransform messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence * -tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence__create(size_t size); - -/// Destroy array of action/LookupTransform messages. -/** - * It calls - * tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence__destroy(tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence * array); - -/// Check for action/LookupTransform message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence__are_equal(const tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence * lhs, const tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence * rhs); - -/// Copy an array of action/LookupTransform messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence__copy( - const tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence * input, - tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__FUNCTIONS_H_ diff --git a/src/tf2_msgs/action/detail/lookup_transform__rosidl_typesupport_introspection_c.h b/src/tf2_msgs/action/detail/lookup_transform__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 8991daefb..000000000 --- a/src/tf2_msgs/action/detail/lookup_transform__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,146 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from tf2_msgs:action/LookupTransform.idl -// generated code does not contain a copyright notice - -#ifndef TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, action, LookupTransform_Goal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, action, LookupTransform_Result)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, action, LookupTransform_Feedback)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, action, LookupTransform_SendGoal_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, action, LookupTransform_SendGoal_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, action, LookupTransform_SendGoal_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, action, LookupTransform_SendGoal)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, action, LookupTransform_GetResult_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, action, LookupTransform_GetResult_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, action, LookupTransform_GetResult_Event)(); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, action, LookupTransform_GetResult)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, action, LookupTransform_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/tf2_msgs/action/detail/lookup_transform__rosidl_typesupport_microxrcedds_c.h b/src/tf2_msgs/action/detail/lookup_transform__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 581da41f9..000000000 --- a/src/tf2_msgs/action/detail/lookup_transform__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,411 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from tf2_msgs:action/LookupTransform.idl -// generated code does not contain a copyright notice -#ifndef TF2_MSGS__ACTION__LOOKUP_TRANSFORM__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TF2_MSGS__ACTION__LOOKUP_TRANSFORM__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__action__LookupTransform_Goal( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__action__LookupTransform_Goal( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, action, LookupTransform_Goal)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__action__LookupTransform_Result( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__action__LookupTransform_Result( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, action, LookupTransform_Result)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__action__LookupTransform_Feedback( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__action__LookupTransform_Feedback( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, action, LookupTransform_Feedback)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__action__LookupTransform_SendGoal_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__action__LookupTransform_SendGoal_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, action, LookupTransform_SendGoal_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__action__LookupTransform_SendGoal_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__action__LookupTransform_SendGoal_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, action, LookupTransform_SendGoal_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__action__LookupTransform_SendGoal_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__action__LookupTransform_SendGoal_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, action, LookupTransform_SendGoal_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, action, LookupTransform_SendGoal)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__action__LookupTransform_GetResult_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__action__LookupTransform_GetResult_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, action, LookupTransform_GetResult_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__action__LookupTransform_GetResult_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__action__LookupTransform_GetResult_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, action, LookupTransform_GetResult_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__action__LookupTransform_GetResult_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__action__LookupTransform_GetResult_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, action, LookupTransform_GetResult_Event)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, action, LookupTransform_GetResult)(); - -#ifdef __cplusplus -} -#endif - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__action__LookupTransform_FeedbackMessage( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__action__LookupTransform_FeedbackMessage( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, action, LookupTransform_FeedbackMessage)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TF2_MSGS__ACTION__LOOKUP_TRANSFORM__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/tf2_msgs/action/detail/lookup_transform__struct.h b/src/tf2_msgs/action/detail/lookup_transform__struct.h deleted file mode 100755 index c2f5cb9fd..000000000 --- a/src/tf2_msgs/action/detail/lookup_transform__struct.h +++ /dev/null @@ -1,301 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from tf2_msgs:action/LookupTransform.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "tf2_msgs/action/lookup_transform.h" - - -#ifndef TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__STRUCT_H_ -#define TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'target_frame' -// Member 'source_frame' -// Member 'fixed_frame' -#include "rosidl_runtime_c/string.h" -// Member 'source_time' -// Member 'target_time' -#include "builtin_interfaces/msg/detail/time__struct.h" -// Member 'timeout' -#include "builtin_interfaces/msg/detail/duration__struct.h" - -/// Struct defined in action/LookupTransform in the package tf2_msgs. -typedef struct tf2_msgs__action__LookupTransform_Goal -{ - rosidl_runtime_c__String target_frame; - rosidl_runtime_c__String source_frame; - builtin_interfaces__msg__Time source_time; - builtin_interfaces__msg__Duration timeout; - /// Advanced API - builtin_interfaces__msg__Time target_time; - rosidl_runtime_c__String fixed_frame; - /// Whether or not to use the advanced API - bool advanced; -} tf2_msgs__action__LookupTransform_Goal; - -// Struct for a sequence of tf2_msgs__action__LookupTransform_Goal. -typedef struct tf2_msgs__action__LookupTransform_Goal__Sequence -{ - tf2_msgs__action__LookupTransform_Goal * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__action__LookupTransform_Goal__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'transform' -#include "geometry_msgs/msg/detail/transform_stamped__struct.h" -// Member 'error' -#include "tf2_msgs/msg/detail/tf2_error__struct.h" - -/// Struct defined in action/LookupTransform in the package tf2_msgs. -typedef struct tf2_msgs__action__LookupTransform_Result -{ - geometry_msgs__msg__TransformStamped transform; - tf2_msgs__msg__TF2Error error; -} tf2_msgs__action__LookupTransform_Result; - -// Struct for a sequence of tf2_msgs__action__LookupTransform_Result. -typedef struct tf2_msgs__action__LookupTransform_Result__Sequence -{ - tf2_msgs__action__LookupTransform_Result * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__action__LookupTransform_Result__Sequence; - -// Constants defined in the message - -/// Struct defined in action/LookupTransform in the package tf2_msgs. -typedef struct tf2_msgs__action__LookupTransform_Feedback -{ - uint8_t structure_needs_at_least_one_member; -} tf2_msgs__action__LookupTransform_Feedback; - -// Struct for a sequence of tf2_msgs__action__LookupTransform_Feedback. -typedef struct tf2_msgs__action__LookupTransform_Feedback__Sequence -{ - tf2_msgs__action__LookupTransform_Feedback * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__action__LookupTransform_Feedback__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -#include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'goal' -#include "tf2_msgs/action/detail/lookup_transform__struct.h" - -/// Struct defined in action/LookupTransform in the package tf2_msgs. -typedef struct tf2_msgs__action__LookupTransform_SendGoal_Request -{ - unique_identifier_msgs__msg__UUID goal_id; - tf2_msgs__action__LookupTransform_Goal goal; -} tf2_msgs__action__LookupTransform_SendGoal_Request; - -// Struct for a sequence of tf2_msgs__action__LookupTransform_SendGoal_Request. -typedef struct tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence -{ - tf2_msgs__action__LookupTransform_SendGoal_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'stamp' -// already included above -// #include "builtin_interfaces/msg/detail/time__struct.h" - -/// Struct defined in action/LookupTransform in the package tf2_msgs. -typedef struct tf2_msgs__action__LookupTransform_SendGoal_Response -{ - bool accepted; - builtin_interfaces__msg__Time stamp; -} tf2_msgs__action__LookupTransform_SendGoal_Response; - -// Struct for a sequence of tf2_msgs__action__LookupTransform_SendGoal_Response. -typedef struct tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence -{ - tf2_msgs__action__LookupTransform_SendGoal_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - tf2_msgs__action__LookupTransform_SendGoal_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - tf2_msgs__action__LookupTransform_SendGoal_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/LookupTransform in the package tf2_msgs. -typedef struct tf2_msgs__action__LookupTransform_SendGoal_Event -{ - service_msgs__msg__ServiceEventInfo info; - tf2_msgs__action__LookupTransform_SendGoal_Request__Sequence request; - tf2_msgs__action__LookupTransform_SendGoal_Response__Sequence response; -} tf2_msgs__action__LookupTransform_SendGoal_Event; - -// Struct for a sequence of tf2_msgs__action__LookupTransform_SendGoal_Event. -typedef struct tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence -{ - tf2_msgs__action__LookupTransform_SendGoal_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__action__LookupTransform_SendGoal_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" - -/// Struct defined in action/LookupTransform in the package tf2_msgs. -typedef struct tf2_msgs__action__LookupTransform_GetResult_Request -{ - unique_identifier_msgs__msg__UUID goal_id; -} tf2_msgs__action__LookupTransform_GetResult_Request; - -// Struct for a sequence of tf2_msgs__action__LookupTransform_GetResult_Request. -typedef struct tf2_msgs__action__LookupTransform_GetResult_Request__Sequence -{ - tf2_msgs__action__LookupTransform_GetResult_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__action__LookupTransform_GetResult_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'result' -// already included above -// #include "tf2_msgs/action/detail/lookup_transform__struct.h" - -/// Struct defined in action/LookupTransform in the package tf2_msgs. -typedef struct tf2_msgs__action__LookupTransform_GetResult_Response -{ - int8_t status; - tf2_msgs__action__LookupTransform_Result result; -} tf2_msgs__action__LookupTransform_GetResult_Response; - -// Struct for a sequence of tf2_msgs__action__LookupTransform_GetResult_Response. -typedef struct tf2_msgs__action__LookupTransform_GetResult_Response__Sequence -{ - tf2_msgs__action__LookupTransform_GetResult_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__action__LookupTransform_GetResult_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -// already included above -// #include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - tf2_msgs__action__LookupTransform_GetResult_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - tf2_msgs__action__LookupTransform_GetResult_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in action/LookupTransform in the package tf2_msgs. -typedef struct tf2_msgs__action__LookupTransform_GetResult_Event -{ - service_msgs__msg__ServiceEventInfo info; - tf2_msgs__action__LookupTransform_GetResult_Request__Sequence request; - tf2_msgs__action__LookupTransform_GetResult_Response__Sequence response; -} tf2_msgs__action__LookupTransform_GetResult_Event; - -// Struct for a sequence of tf2_msgs__action__LookupTransform_GetResult_Event. -typedef struct tf2_msgs__action__LookupTransform_GetResult_Event__Sequence -{ - tf2_msgs__action__LookupTransform_GetResult_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__action__LookupTransform_GetResult_Event__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'goal_id' -// already included above -// #include "unique_identifier_msgs/msg/detail/uuid__struct.h" -// Member 'feedback' -// already included above -// #include "tf2_msgs/action/detail/lookup_transform__struct.h" - -/// Struct defined in action/LookupTransform in the package tf2_msgs. -typedef struct tf2_msgs__action__LookupTransform_FeedbackMessage -{ - unique_identifier_msgs__msg__UUID goal_id; - tf2_msgs__action__LookupTransform_Feedback feedback; -} tf2_msgs__action__LookupTransform_FeedbackMessage; - -// Struct for a sequence of tf2_msgs__action__LookupTransform_FeedbackMessage. -typedef struct tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence -{ - tf2_msgs__action__LookupTransform_FeedbackMessage * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__action__LookupTransform_FeedbackMessage__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__STRUCT_H_ diff --git a/src/tf2_msgs/action/detail/lookup_transform__type_support.h b/src/tf2_msgs/action/detail/lookup_transform__type_support.h deleted file mode 100755 index 8d18ecbcb..000000000 --- a/src/tf2_msgs/action/detail/lookup_transform__type_support.h +++ /dev/null @@ -1,242 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from tf2_msgs:action/LookupTransform.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "tf2_msgs/action/lookup_transform.h" - - -#ifndef TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__TYPE_SUPPORT_H_ -#define TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "tf2_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/action_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_action_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__ACTION_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform -)(void); - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_Goal -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_Result -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_Feedback -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_SendGoal_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_SendGoal_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_SendGoal_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_SendGoal -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_SendGoal -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_SendGoal -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_GetResult_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_GetResult_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_GetResult_Event -)(void); - -// already included above -// #include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_GetResult -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_GetResult -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_GetResult -)( - void * event_msg, - rcutils_allocator_t * allocator); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - action, - LookupTransform_FeedbackMessage -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__TYPE_SUPPORT_H_ diff --git a/src/tf2_msgs/action/lookup_transform.h b/src/tf2_msgs/action/lookup_transform.h deleted file mode 100755 index 3251b657f..000000000 --- a/src/tf2_msgs/action/lookup_transform.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from tf2_msgs:action/LookupTransform.idl -// generated code does not contain a copyright notice - -#ifndef TF2_MSGS__ACTION__LOOKUP_TRANSFORM_H_ -#define TF2_MSGS__ACTION__LOOKUP_TRANSFORM_H_ - -#include "tf2_msgs/action/detail/lookup_transform__struct.h" -#include "tf2_msgs/action/detail/lookup_transform__functions.h" -#include "tf2_msgs/action/detail/lookup_transform__type_support.h" - -#endif // TF2_MSGS__ACTION__LOOKUP_TRANSFORM_H_ diff --git a/src/tf2_msgs/msg/detail/tf2_error__functions.h b/src/tf2_msgs/msg/detail/tf2_error__functions.h deleted file mode 100755 index 53ac4a018..000000000 --- a/src/tf2_msgs/msg/detail/tf2_error__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from tf2_msgs:msg/TF2Error.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "tf2_msgs/msg/tf2_error.h" - - -#ifndef TF2_MSGS__MSG__DETAIL__TF2_ERROR__FUNCTIONS_H_ -#define TF2_MSGS__MSG__DETAIL__TF2_ERROR__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "tf2_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "tf2_msgs/msg/detail/tf2_error__struct.h" - -/// Initialize msg/TF2Error message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__msg__TF2Error - * )) before or use - * tf2_msgs__msg__TF2Error__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__msg__TF2Error__init(tf2_msgs__msg__TF2Error * msg); - -/// Finalize msg/TF2Error message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__msg__TF2Error__fini(tf2_msgs__msg__TF2Error * msg); - -/// Create msg/TF2Error message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__msg__TF2Error__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__msg__TF2Error * -tf2_msgs__msg__TF2Error__create(void); - -/// Destroy msg/TF2Error message. -/** - * It calls - * tf2_msgs__msg__TF2Error__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__msg__TF2Error__destroy(tf2_msgs__msg__TF2Error * msg); - -/// Check for msg/TF2Error message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__msg__TF2Error__are_equal(const tf2_msgs__msg__TF2Error * lhs, const tf2_msgs__msg__TF2Error * rhs); - -/// Copy a msg/TF2Error message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__msg__TF2Error__copy( - const tf2_msgs__msg__TF2Error * input, - tf2_msgs__msg__TF2Error * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__msg__TF2Error__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__msg__TF2Error__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__msg__TF2Error__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__msg__TF2Error__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/TF2Error messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__msg__TF2Error__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__msg__TF2Error__Sequence__init(tf2_msgs__msg__TF2Error__Sequence * array, size_t size); - -/// Finalize array of msg/TF2Error messages. -/** - * It calls - * tf2_msgs__msg__TF2Error__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__msg__TF2Error__Sequence__fini(tf2_msgs__msg__TF2Error__Sequence * array); - -/// Create array of msg/TF2Error messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__msg__TF2Error__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__msg__TF2Error__Sequence * -tf2_msgs__msg__TF2Error__Sequence__create(size_t size); - -/// Destroy array of msg/TF2Error messages. -/** - * It calls - * tf2_msgs__msg__TF2Error__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__msg__TF2Error__Sequence__destroy(tf2_msgs__msg__TF2Error__Sequence * array); - -/// Check for msg/TF2Error message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__msg__TF2Error__Sequence__are_equal(const tf2_msgs__msg__TF2Error__Sequence * lhs, const tf2_msgs__msg__TF2Error__Sequence * rhs); - -/// Copy an array of msg/TF2Error messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__msg__TF2Error__Sequence__copy( - const tf2_msgs__msg__TF2Error__Sequence * input, - tf2_msgs__msg__TF2Error__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__MSG__DETAIL__TF2_ERROR__FUNCTIONS_H_ diff --git a/src/tf2_msgs/msg/detail/tf2_error__rosidl_typesupport_introspection_c.h b/src/tf2_msgs/msg/detail/tf2_error__rosidl_typesupport_introspection_c.h deleted file mode 100755 index aa0423207..000000000 --- a/src/tf2_msgs/msg/detail/tf2_error__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from tf2_msgs:msg/TF2Error.idl -// generated code does not contain a copyright notice - -#ifndef TF2_MSGS__MSG__DETAIL__TF2_ERROR__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TF2_MSGS__MSG__DETAIL__TF2_ERROR__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, msg, TF2Error)(); - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__MSG__DETAIL__TF2_ERROR__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/tf2_msgs/msg/detail/tf2_error__rosidl_typesupport_microxrcedds_c.h b/src/tf2_msgs/msg/detail/tf2_error__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index e647d197f..000000000 --- a/src/tf2_msgs/msg/detail/tf2_error__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from tf2_msgs:msg/TF2Error.idl -// generated code does not contain a copyright notice -#ifndef TF2_MSGS__MSG__TF2_ERROR__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TF2_MSGS__MSG__TF2_ERROR__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__msg__TF2Error( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__msg__TF2Error( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, msg, TF2Error)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TF2_MSGS__MSG__TF2_ERROR__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/tf2_msgs/msg/detail/tf2_error__struct.h b/src/tf2_msgs/msg/detail/tf2_error__struct.h deleted file mode 100755 index 135953a40..000000000 --- a/src/tf2_msgs/msg/detail/tf2_error__struct.h +++ /dev/null @@ -1,89 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from tf2_msgs:msg/TF2Error.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "tf2_msgs/msg/tf2_error.h" - - -#ifndef TF2_MSGS__MSG__DETAIL__TF2_ERROR__STRUCT_H_ -#define TF2_MSGS__MSG__DETAIL__TF2_ERROR__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'NO_ERROR'. -enum -{ - tf2_msgs__msg__TF2Error__NO_ERROR = 0 -}; - -/// Constant 'LOOKUP_ERROR'. -enum -{ - tf2_msgs__msg__TF2Error__LOOKUP_ERROR = 1 -}; - -/// Constant 'CONNECTIVITY_ERROR'. -enum -{ - tf2_msgs__msg__TF2Error__CONNECTIVITY_ERROR = 2 -}; - -/// Constant 'EXTRAPOLATION_ERROR'. -enum -{ - tf2_msgs__msg__TF2Error__EXTRAPOLATION_ERROR = 3 -}; - -/// Constant 'INVALID_ARGUMENT_ERROR'. -enum -{ - tf2_msgs__msg__TF2Error__INVALID_ARGUMENT_ERROR = 4 -}; - -/// Constant 'TIMEOUT_ERROR'. -enum -{ - tf2_msgs__msg__TF2Error__TIMEOUT_ERROR = 5 -}; - -/// Constant 'TRANSFORM_ERROR'. -enum -{ - tf2_msgs__msg__TF2Error__TRANSFORM_ERROR = 6 -}; - -// Include directives for member types -// Member 'error_string' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/TF2Error in the package tf2_msgs. -typedef struct tf2_msgs__msg__TF2Error -{ - uint8_t error; - rosidl_runtime_c__String error_string; -} tf2_msgs__msg__TF2Error; - -// Struct for a sequence of tf2_msgs__msg__TF2Error. -typedef struct tf2_msgs__msg__TF2Error__Sequence -{ - tf2_msgs__msg__TF2Error * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__msg__TF2Error__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__MSG__DETAIL__TF2_ERROR__STRUCT_H_ diff --git a/src/tf2_msgs/msg/detail/tf2_error__type_support.h b/src/tf2_msgs/msg/detail/tf2_error__type_support.h deleted file mode 100755 index 09033563b..000000000 --- a/src/tf2_msgs/msg/detail/tf2_error__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from tf2_msgs:msg/TF2Error.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "tf2_msgs/msg/tf2_error.h" - - -#ifndef TF2_MSGS__MSG__DETAIL__TF2_ERROR__TYPE_SUPPORT_H_ -#define TF2_MSGS__MSG__DETAIL__TF2_ERROR__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "tf2_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - msg, - TF2Error -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__MSG__DETAIL__TF2_ERROR__TYPE_SUPPORT_H_ diff --git a/src/tf2_msgs/msg/detail/tf_message__functions.h b/src/tf2_msgs/msg/detail/tf_message__functions.h deleted file mode 100755 index 1690925c8..000000000 --- a/src/tf2_msgs/msg/detail/tf_message__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from tf2_msgs:msg/TFMessage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "tf2_msgs/msg/tf_message.h" - - -#ifndef TF2_MSGS__MSG__DETAIL__TF_MESSAGE__FUNCTIONS_H_ -#define TF2_MSGS__MSG__DETAIL__TF_MESSAGE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "tf2_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "tf2_msgs/msg/detail/tf_message__struct.h" - -/// Initialize msg/TFMessage message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__msg__TFMessage - * )) before or use - * tf2_msgs__msg__TFMessage__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__msg__TFMessage__init(tf2_msgs__msg__TFMessage * msg); - -/// Finalize msg/TFMessage message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__msg__TFMessage__fini(tf2_msgs__msg__TFMessage * msg); - -/// Create msg/TFMessage message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__msg__TFMessage__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__msg__TFMessage * -tf2_msgs__msg__TFMessage__create(void); - -/// Destroy msg/TFMessage message. -/** - * It calls - * tf2_msgs__msg__TFMessage__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__msg__TFMessage__destroy(tf2_msgs__msg__TFMessage * msg); - -/// Check for msg/TFMessage message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__msg__TFMessage__are_equal(const tf2_msgs__msg__TFMessage * lhs, const tf2_msgs__msg__TFMessage * rhs); - -/// Copy a msg/TFMessage message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__msg__TFMessage__copy( - const tf2_msgs__msg__TFMessage * input, - tf2_msgs__msg__TFMessage * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__msg__TFMessage__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__msg__TFMessage__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__msg__TFMessage__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__msg__TFMessage__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/TFMessage messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__msg__TFMessage__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__msg__TFMessage__Sequence__init(tf2_msgs__msg__TFMessage__Sequence * array, size_t size); - -/// Finalize array of msg/TFMessage messages. -/** - * It calls - * tf2_msgs__msg__TFMessage__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__msg__TFMessage__Sequence__fini(tf2_msgs__msg__TFMessage__Sequence * array); - -/// Create array of msg/TFMessage messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__msg__TFMessage__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__msg__TFMessage__Sequence * -tf2_msgs__msg__TFMessage__Sequence__create(size_t size); - -/// Destroy array of msg/TFMessage messages. -/** - * It calls - * tf2_msgs__msg__TFMessage__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__msg__TFMessage__Sequence__destroy(tf2_msgs__msg__TFMessage__Sequence * array); - -/// Check for msg/TFMessage message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__msg__TFMessage__Sequence__are_equal(const tf2_msgs__msg__TFMessage__Sequence * lhs, const tf2_msgs__msg__TFMessage__Sequence * rhs); - -/// Copy an array of msg/TFMessage messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__msg__TFMessage__Sequence__copy( - const tf2_msgs__msg__TFMessage__Sequence * input, - tf2_msgs__msg__TFMessage__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__MSG__DETAIL__TF_MESSAGE__FUNCTIONS_H_ diff --git a/src/tf2_msgs/msg/detail/tf_message__rosidl_typesupport_introspection_c.h b/src/tf2_msgs/msg/detail/tf_message__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 3fb20e267..000000000 --- a/src/tf2_msgs/msg/detail/tf_message__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from tf2_msgs:msg/TFMessage.idl -// generated code does not contain a copyright notice - -#ifndef TF2_MSGS__MSG__DETAIL__TF_MESSAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TF2_MSGS__MSG__DETAIL__TF_MESSAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, msg, TFMessage)(); - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__MSG__DETAIL__TF_MESSAGE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/tf2_msgs/msg/detail/tf_message__rosidl_typesupport_microxrcedds_c.h b/src/tf2_msgs/msg/detail/tf_message__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 578a6ce26..000000000 --- a/src/tf2_msgs/msg/detail/tf_message__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from tf2_msgs:msg/TFMessage.idl -// generated code does not contain a copyright notice -#ifndef TF2_MSGS__MSG__TF_MESSAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TF2_MSGS__MSG__TF_MESSAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__msg__TFMessage( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__msg__TFMessage( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, msg, TFMessage)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TF2_MSGS__MSG__TF_MESSAGE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/tf2_msgs/msg/detail/tf_message__struct.h b/src/tf2_msgs/msg/detail/tf_message__struct.h deleted file mode 100755 index 4ebcd689f..000000000 --- a/src/tf2_msgs/msg/detail/tf_message__struct.h +++ /dev/null @@ -1,46 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from tf2_msgs:msg/TFMessage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "tf2_msgs/msg/tf_message.h" - - -#ifndef TF2_MSGS__MSG__DETAIL__TF_MESSAGE__STRUCT_H_ -#define TF2_MSGS__MSG__DETAIL__TF_MESSAGE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'transforms' -#include "geometry_msgs/msg/detail/transform_stamped__struct.h" - -/// Struct defined in msg/TFMessage in the package tf2_msgs. -typedef struct tf2_msgs__msg__TFMessage -{ - geometry_msgs__msg__TransformStamped__Sequence transforms; -} tf2_msgs__msg__TFMessage; - -// Struct for a sequence of tf2_msgs__msg__TFMessage. -typedef struct tf2_msgs__msg__TFMessage__Sequence -{ - tf2_msgs__msg__TFMessage * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__msg__TFMessage__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__MSG__DETAIL__TF_MESSAGE__STRUCT_H_ diff --git a/src/tf2_msgs/msg/detail/tf_message__type_support.h b/src/tf2_msgs/msg/detail/tf_message__type_support.h deleted file mode 100755 index 8916659ed..000000000 --- a/src/tf2_msgs/msg/detail/tf_message__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from tf2_msgs:msg/TFMessage.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "tf2_msgs/msg/tf_message.h" - - -#ifndef TF2_MSGS__MSG__DETAIL__TF_MESSAGE__TYPE_SUPPORT_H_ -#define TF2_MSGS__MSG__DETAIL__TF_MESSAGE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "tf2_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - msg, - TFMessage -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__MSG__DETAIL__TF_MESSAGE__TYPE_SUPPORT_H_ diff --git a/src/tf2_msgs/msg/rosidl_generator_c__visibility_control.h b/src/tf2_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 6a008a8b3..000000000 --- a/src/tf2_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef TF2_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define TF2_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_tf2_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_tf2_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_tf2_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_tf2_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_tf2_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs ROSIDL_GENERATOR_C_EXPORT_tf2_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs ROSIDL_GENERATOR_C_IMPORT_tf2_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_tf2_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_tf2_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 9dfe3fcea..000000000 --- a/src/tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef TF2_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define TF2_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_tf2_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_tf2_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_tf2_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_tf2_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_tf2_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_tf2_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_tf2_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_tf2_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_tf2_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 7ec10d896..000000000 --- a/src/tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef TF2_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define TF2_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_tf2_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_tf2_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_tf2_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_tf2_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_tf2_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_tf2_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_tf2_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_tf2_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_tf2_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/tf2_msgs/msg/tf2_error.h b/src/tf2_msgs/msg/tf2_error.h deleted file mode 100755 index c6ba9236b..000000000 --- a/src/tf2_msgs/msg/tf2_error.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from tf2_msgs:msg/TF2Error.idl -// generated code does not contain a copyright notice - -#ifndef TF2_MSGS__MSG__TF2_ERROR_H_ -#define TF2_MSGS__MSG__TF2_ERROR_H_ - -#include "tf2_msgs/msg/detail/tf2_error__struct.h" -#include "tf2_msgs/msg/detail/tf2_error__functions.h" -#include "tf2_msgs/msg/detail/tf2_error__type_support.h" - -#endif // TF2_MSGS__MSG__TF2_ERROR_H_ diff --git a/src/tf2_msgs/msg/tf_message.h b/src/tf2_msgs/msg/tf_message.h deleted file mode 100755 index ab9594590..000000000 --- a/src/tf2_msgs/msg/tf_message.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from tf2_msgs:msg/TFMessage.idl -// generated code does not contain a copyright notice - -#ifndef TF2_MSGS__MSG__TF_MESSAGE_H_ -#define TF2_MSGS__MSG__TF_MESSAGE_H_ - -#include "tf2_msgs/msg/detail/tf_message__struct.h" -#include "tf2_msgs/msg/detail/tf_message__functions.h" -#include "tf2_msgs/msg/detail/tf_message__type_support.h" - -#endif // TF2_MSGS__MSG__TF_MESSAGE_H_ diff --git a/src/tf2_msgs/srv/detail/frame_graph__functions.h b/src/tf2_msgs/srv/detail/frame_graph__functions.h deleted file mode 100755 index 5d01bc6f0..000000000 --- a/src/tf2_msgs/srv/detail/frame_graph__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from tf2_msgs:srv/FrameGraph.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "tf2_msgs/srv/frame_graph.h" - - -#ifndef TF2_MSGS__SRV__DETAIL__FRAME_GRAPH__FUNCTIONS_H_ -#define TF2_MSGS__SRV__DETAIL__FRAME_GRAPH__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "tf2_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "tf2_msgs/srv/detail/frame_graph__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__srv__FrameGraph__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__srv__FrameGraph__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__srv__FrameGraph__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__srv__FrameGraph__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/FrameGraph message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__srv__FrameGraph_Request - * )) before or use - * tf2_msgs__srv__FrameGraph_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Request__init(tf2_msgs__srv__FrameGraph_Request * msg); - -/// Finalize srv/FrameGraph message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__srv__FrameGraph_Request__fini(tf2_msgs__srv__FrameGraph_Request * msg); - -/// Create srv/FrameGraph message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__srv__FrameGraph_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__srv__FrameGraph_Request * -tf2_msgs__srv__FrameGraph_Request__create(void); - -/// Destroy srv/FrameGraph message. -/** - * It calls - * tf2_msgs__srv__FrameGraph_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__srv__FrameGraph_Request__destroy(tf2_msgs__srv__FrameGraph_Request * msg); - -/// Check for srv/FrameGraph message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Request__are_equal(const tf2_msgs__srv__FrameGraph_Request * lhs, const tf2_msgs__srv__FrameGraph_Request * rhs); - -/// Copy a srv/FrameGraph message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Request__copy( - const tf2_msgs__srv__FrameGraph_Request * input, - tf2_msgs__srv__FrameGraph_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__srv__FrameGraph_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__srv__FrameGraph_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__srv__FrameGraph_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__srv__FrameGraph_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/FrameGraph messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__srv__FrameGraph_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Request__Sequence__init(tf2_msgs__srv__FrameGraph_Request__Sequence * array, size_t size); - -/// Finalize array of srv/FrameGraph messages. -/** - * It calls - * tf2_msgs__srv__FrameGraph_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__srv__FrameGraph_Request__Sequence__fini(tf2_msgs__srv__FrameGraph_Request__Sequence * array); - -/// Create array of srv/FrameGraph messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__srv__FrameGraph_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__srv__FrameGraph_Request__Sequence * -tf2_msgs__srv__FrameGraph_Request__Sequence__create(size_t size); - -/// Destroy array of srv/FrameGraph messages. -/** - * It calls - * tf2_msgs__srv__FrameGraph_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__srv__FrameGraph_Request__Sequence__destroy(tf2_msgs__srv__FrameGraph_Request__Sequence * array); - -/// Check for srv/FrameGraph message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Request__Sequence__are_equal(const tf2_msgs__srv__FrameGraph_Request__Sequence * lhs, const tf2_msgs__srv__FrameGraph_Request__Sequence * rhs); - -/// Copy an array of srv/FrameGraph messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Request__Sequence__copy( - const tf2_msgs__srv__FrameGraph_Request__Sequence * input, - tf2_msgs__srv__FrameGraph_Request__Sequence * output); - -/// Initialize srv/FrameGraph message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__srv__FrameGraph_Response - * )) before or use - * tf2_msgs__srv__FrameGraph_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Response__init(tf2_msgs__srv__FrameGraph_Response * msg); - -/// Finalize srv/FrameGraph message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__srv__FrameGraph_Response__fini(tf2_msgs__srv__FrameGraph_Response * msg); - -/// Create srv/FrameGraph message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__srv__FrameGraph_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__srv__FrameGraph_Response * -tf2_msgs__srv__FrameGraph_Response__create(void); - -/// Destroy srv/FrameGraph message. -/** - * It calls - * tf2_msgs__srv__FrameGraph_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__srv__FrameGraph_Response__destroy(tf2_msgs__srv__FrameGraph_Response * msg); - -/// Check for srv/FrameGraph message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Response__are_equal(const tf2_msgs__srv__FrameGraph_Response * lhs, const tf2_msgs__srv__FrameGraph_Response * rhs); - -/// Copy a srv/FrameGraph message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Response__copy( - const tf2_msgs__srv__FrameGraph_Response * input, - tf2_msgs__srv__FrameGraph_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__srv__FrameGraph_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__srv__FrameGraph_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__srv__FrameGraph_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__srv__FrameGraph_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/FrameGraph messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__srv__FrameGraph_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Response__Sequence__init(tf2_msgs__srv__FrameGraph_Response__Sequence * array, size_t size); - -/// Finalize array of srv/FrameGraph messages. -/** - * It calls - * tf2_msgs__srv__FrameGraph_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__srv__FrameGraph_Response__Sequence__fini(tf2_msgs__srv__FrameGraph_Response__Sequence * array); - -/// Create array of srv/FrameGraph messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__srv__FrameGraph_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__srv__FrameGraph_Response__Sequence * -tf2_msgs__srv__FrameGraph_Response__Sequence__create(size_t size); - -/// Destroy array of srv/FrameGraph messages. -/** - * It calls - * tf2_msgs__srv__FrameGraph_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__srv__FrameGraph_Response__Sequence__destroy(tf2_msgs__srv__FrameGraph_Response__Sequence * array); - -/// Check for srv/FrameGraph message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Response__Sequence__are_equal(const tf2_msgs__srv__FrameGraph_Response__Sequence * lhs, const tf2_msgs__srv__FrameGraph_Response__Sequence * rhs); - -/// Copy an array of srv/FrameGraph messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Response__Sequence__copy( - const tf2_msgs__srv__FrameGraph_Response__Sequence * input, - tf2_msgs__srv__FrameGraph_Response__Sequence * output); - -/// Initialize srv/FrameGraph message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * tf2_msgs__srv__FrameGraph_Event - * )) before or use - * tf2_msgs__srv__FrameGraph_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Event__init(tf2_msgs__srv__FrameGraph_Event * msg); - -/// Finalize srv/FrameGraph message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__srv__FrameGraph_Event__fini(tf2_msgs__srv__FrameGraph_Event * msg); - -/// Create srv/FrameGraph message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * tf2_msgs__srv__FrameGraph_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__srv__FrameGraph_Event * -tf2_msgs__srv__FrameGraph_Event__create(void); - -/// Destroy srv/FrameGraph message. -/** - * It calls - * tf2_msgs__srv__FrameGraph_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__srv__FrameGraph_Event__destroy(tf2_msgs__srv__FrameGraph_Event * msg); - -/// Check for srv/FrameGraph message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Event__are_equal(const tf2_msgs__srv__FrameGraph_Event * lhs, const tf2_msgs__srv__FrameGraph_Event * rhs); - -/// Copy a srv/FrameGraph message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Event__copy( - const tf2_msgs__srv__FrameGraph_Event * input, - tf2_msgs__srv__FrameGraph_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_type_hash_t * -tf2_msgs__srv__FrameGraph_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeDescription * -tf2_msgs__srv__FrameGraph_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource * -tf2_msgs__srv__FrameGraph_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -tf2_msgs__srv__FrameGraph_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/FrameGraph messages. -/** - * It allocates the memory for the number of elements and calls - * tf2_msgs__srv__FrameGraph_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Event__Sequence__init(tf2_msgs__srv__FrameGraph_Event__Sequence * array, size_t size); - -/// Finalize array of srv/FrameGraph messages. -/** - * It calls - * tf2_msgs__srv__FrameGraph_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__srv__FrameGraph_Event__Sequence__fini(tf2_msgs__srv__FrameGraph_Event__Sequence * array); - -/// Create array of srv/FrameGraph messages. -/** - * It allocates the memory for the array and calls - * tf2_msgs__srv__FrameGraph_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -tf2_msgs__srv__FrameGraph_Event__Sequence * -tf2_msgs__srv__FrameGraph_Event__Sequence__create(size_t size); - -/// Destroy array of srv/FrameGraph messages. -/** - * It calls - * tf2_msgs__srv__FrameGraph_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void -tf2_msgs__srv__FrameGraph_Event__Sequence__destroy(tf2_msgs__srv__FrameGraph_Event__Sequence * array); - -/// Check for srv/FrameGraph message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Event__Sequence__are_equal(const tf2_msgs__srv__FrameGraph_Event__Sequence * lhs, const tf2_msgs__srv__FrameGraph_Event__Sequence * rhs); - -/// Copy an array of srv/FrameGraph messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -tf2_msgs__srv__FrameGraph_Event__Sequence__copy( - const tf2_msgs__srv__FrameGraph_Event__Sequence * input, - tf2_msgs__srv__FrameGraph_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__SRV__DETAIL__FRAME_GRAPH__FUNCTIONS_H_ diff --git a/src/tf2_msgs/srv/detail/frame_graph__rosidl_typesupport_introspection_c.h b/src/tf2_msgs/srv/detail/frame_graph__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 2d3b8f536..000000000 --- a/src/tf2_msgs/srv/detail/frame_graph__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from tf2_msgs:srv/FrameGraph.idl -// generated code does not contain a copyright notice - -#ifndef TF2_MSGS__SRV__DETAIL__FRAME_GRAPH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TF2_MSGS__SRV__DETAIL__FRAME_GRAPH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, srv, FrameGraph_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, srv, FrameGraph_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, srv, FrameGraph_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_tf2_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, tf2_msgs, srv, FrameGraph)(); - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__SRV__DETAIL__FRAME_GRAPH__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/tf2_msgs/srv/detail/frame_graph__rosidl_typesupport_microxrcedds_c.h b/src/tf2_msgs/srv/detail/frame_graph__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 84f0e21cd..000000000 --- a/src/tf2_msgs/srv/detail/frame_graph__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from tf2_msgs:srv/FrameGraph.idl -// generated code does not contain a copyright notice -#ifndef TF2_MSGS__SRV__FRAME_GRAPH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TF2_MSGS__SRV__FRAME_GRAPH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__srv__FrameGraph_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__srv__FrameGraph_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, srv, FrameGraph_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__srv__FrameGraph_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__srv__FrameGraph_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, srv, FrameGraph_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t get_serialized_size_tf2_msgs__srv__FrameGraph_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -size_t max_serialized_size_tf2_msgs__srv__FrameGraph_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, srv, FrameGraph_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "tf2_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_tf2_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, tf2_msgs, srv, FrameGraph)(); - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__SRV__FRAME_GRAPH__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/tf2_msgs/srv/detail/frame_graph__struct.h b/src/tf2_msgs/srv/detail/frame_graph__struct.h deleted file mode 100755 index 028b4cef0..000000000 --- a/src/tf2_msgs/srv/detail/frame_graph__struct.h +++ /dev/null @@ -1,101 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from tf2_msgs:srv/FrameGraph.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "tf2_msgs/srv/frame_graph.h" - - -#ifndef TF2_MSGS__SRV__DETAIL__FRAME_GRAPH__STRUCT_H_ -#define TF2_MSGS__SRV__DETAIL__FRAME_GRAPH__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/FrameGraph in the package tf2_msgs. -typedef struct tf2_msgs__srv__FrameGraph_Request -{ - uint8_t structure_needs_at_least_one_member; -} tf2_msgs__srv__FrameGraph_Request; - -// Struct for a sequence of tf2_msgs__srv__FrameGraph_Request. -typedef struct tf2_msgs__srv__FrameGraph_Request__Sequence -{ - tf2_msgs__srv__FrameGraph_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__srv__FrameGraph_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'frame_yaml' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/FrameGraph in the package tf2_msgs. -typedef struct tf2_msgs__srv__FrameGraph_Response -{ - rosidl_runtime_c__String frame_yaml; -} tf2_msgs__srv__FrameGraph_Response; - -// Struct for a sequence of tf2_msgs__srv__FrameGraph_Response. -typedef struct tf2_msgs__srv__FrameGraph_Response__Sequence -{ - tf2_msgs__srv__FrameGraph_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__srv__FrameGraph_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - tf2_msgs__srv__FrameGraph_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - tf2_msgs__srv__FrameGraph_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/FrameGraph in the package tf2_msgs. -typedef struct tf2_msgs__srv__FrameGraph_Event -{ - service_msgs__msg__ServiceEventInfo info; - tf2_msgs__srv__FrameGraph_Request__Sequence request; - tf2_msgs__srv__FrameGraph_Response__Sequence response; -} tf2_msgs__srv__FrameGraph_Event; - -// Struct for a sequence of tf2_msgs__srv__FrameGraph_Event. -typedef struct tf2_msgs__srv__FrameGraph_Event__Sequence -{ - tf2_msgs__srv__FrameGraph_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} tf2_msgs__srv__FrameGraph_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__SRV__DETAIL__FRAME_GRAPH__STRUCT_H_ diff --git a/src/tf2_msgs/srv/detail/frame_graph__type_support.h b/src/tf2_msgs/srv/detail/frame_graph__type_support.h deleted file mode 100755 index 25385fb5f..000000000 --- a/src/tf2_msgs/srv/detail/frame_graph__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from tf2_msgs:srv/FrameGraph.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "tf2_msgs/srv/frame_graph.h" - - -#ifndef TF2_MSGS__SRV__DETAIL__FRAME_GRAPH__TYPE_SUPPORT_H_ -#define TF2_MSGS__SRV__DETAIL__FRAME_GRAPH__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "tf2_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - srv, - FrameGraph_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - srv, - FrameGraph_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - srv, - FrameGraph_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - srv, - FrameGraph -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - srv, - FrameGraph -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_tf2_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - tf2_msgs, - srv, - FrameGraph -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // TF2_MSGS__SRV__DETAIL__FRAME_GRAPH__TYPE_SUPPORT_H_ diff --git a/src/tf2_msgs/srv/frame_graph.h b/src/tf2_msgs/srv/frame_graph.h deleted file mode 100755 index 919595d5d..000000000 --- a/src/tf2_msgs/srv/frame_graph.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from tf2_msgs:srv/FrameGraph.idl -// generated code does not contain a copyright notice - -#ifndef TF2_MSGS__SRV__FRAME_GRAPH_H_ -#define TF2_MSGS__SRV__FRAME_GRAPH_H_ - -#include "tf2_msgs/srv/detail/frame_graph__struct.h" -#include "tf2_msgs/srv/detail/frame_graph__functions.h" -#include "tf2_msgs/srv/detail/frame_graph__type_support.h" - -#endif // TF2_MSGS__SRV__FRAME_GRAPH_H_ diff --git a/src/tracetools/config.h b/src/tracetools/config.h deleted file mode 100755 index b2cd9771a..000000000 --- a/src/tracetools/config.h +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2019 Robert Bosch GmbH -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef TRACETOOLS__CONFIG_H_ -#define TRACETOOLS__CONFIG_H_ - -#define TRACETOOLS_DISABLED -#define TRACETOOLS_TRACEPOINTS_EXCLUDED - -#endif // TRACETOOLS__CONFIG_H_ diff --git a/src/tracetools/tracetools.h b/src/tracetools/tracetools.h deleted file mode 100755 index eab8016b6..000000000 --- a/src/tracetools/tracetools.h +++ /dev/null @@ -1,732 +0,0 @@ -// Copyright 2019 Robert Bosch GmbH -// Copyright 2020 Christophe Bedard -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** \mainpage tracetools: tracing tools and instrumentation for ROS 2 - * - * `tracetools` provides utilities to instrument ROS. - * It provides two main headers: - * - * - tracetools/tracetools.h - * - instrumentation functions - * - tracetools/utils.hpp - * - utility functions - */ - -#ifndef TRACETOOLS__TRACETOOLS_H_ -#define TRACETOOLS__TRACETOOLS_H_ - -#include -#include -#include - -#include "tracetools/config.h" -#include "tracetools/visibility_control.h" - -#ifndef TRACETOOLS_DISABLED -/** - * This allows us to select between two versions of each macro - * to avoid the 'gnu-zero-variadic-macro-arguments' warning: - * 1. Only one macro argument for tracepoints without any arguments. - * 2. Up to 10 macro arguments for tracepoints with up to 9 arguments. - * We can easily support more than 10 macro arguments if needed. - */ -# define _GET_MACRO(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, NAME, ...) NAME - -// *INDENT-OFF* -# define _FUNC_TRACEPOINT(event_name) \ - (ros_trace_ ## event_name) -# define _FUNC_TRACEPOINT_ENABLED(event_name) \ - (ros_trace_enabled_ ## event_name) -# define _FUNC_DO_TRACEPOINT(event_name) \ - (ros_trace_do_ ## event_name) -# define _TRACEPOINT_NOARGS(event_name) \ - _FUNC_TRACEPOINT(event_name)() -# define _TRACEPOINT_ARGS(event_name, ...) \ - _FUNC_TRACEPOINT(event_name)(__VA_ARGS__) -# define _DO_TRACEPOINT_NOARGS(event_name) \ - _FUNC_DO_TRACEPOINT(event_name)() -# define _DO_TRACEPOINT_ARGS(event_name, ...) \ - _FUNC_DO_TRACEPOINT(event_name)(__VA_ARGS__) -# define _DECLARE_TRACEPOINT_NOARGS(event_name) \ - TRACETOOLS_PUBLIC void _FUNC_TRACEPOINT(event_name)(void); \ - TRACETOOLS_PUBLIC bool _FUNC_TRACEPOINT_ENABLED(event_name)(void); \ - TRACETOOLS_PUBLIC void _FUNC_DO_TRACEPOINT(event_name)(void); -# define _DECLARE_TRACEPOINT_ARGS(event_name, ...) \ - TRACETOOLS_PUBLIC void _FUNC_TRACEPOINT(event_name)(__VA_ARGS__); \ - TRACETOOLS_PUBLIC bool _FUNC_TRACEPOINT_ENABLED(event_name)(void); \ - TRACETOOLS_PUBLIC void _FUNC_DO_TRACEPOINT(event_name)(__VA_ARGS__); - -# define _GET_MACRO_TRACEPOINT(...) \ - _GET_MACRO( \ - __VA_ARGS__, \ - _TRACEPOINT_ARGS, _TRACEPOINT_ARGS, _TRACEPOINT_ARGS, _TRACEPOINT_ARGS, _TRACEPOINT_ARGS, \ - _TRACEPOINT_ARGS, _TRACEPOINT_ARGS, _TRACEPOINT_ARGS, _TRACEPOINT_ARGS, _TRACEPOINT_NOARGS, \ - shoud_not_be_called_without_any_arguments) -# define _GET_MACRO_DO_TRACEPOINT(...) \ - _GET_MACRO( \ - __VA_ARGS__, \ - _DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_ARGS, \ - _DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_ARGS, \ - _DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_NOARGS, shoud_not_be_called_without_any_arguments) -# define _GET_MACRO_DECLARE_TRACEPOINT(...) \ - _GET_MACRO( \ - __VA_ARGS__, \ - _DECLARE_TRACEPOINT_ARGS, _DECLARE_TRACEPOINT_ARGS, _DECLARE_TRACEPOINT_ARGS, \ - _DECLARE_TRACEPOINT_ARGS, _DECLARE_TRACEPOINT_ARGS, _DECLARE_TRACEPOINT_ARGS, \ - _DECLARE_TRACEPOINT_ARGS, _DECLARE_TRACEPOINT_ARGS, _DECLARE_TRACEPOINT_ARGS, \ - _DECLARE_TRACEPOINT_NOARGS, shoud_not_be_called_without_any_arguments) -# define _DECLARE_TRACEPOINT(...) \ - _GET_MACRO_DECLARE_TRACEPOINT(__VA_ARGS__)(__VA_ARGS__) - -/// Call a tracepoint. -/** - * The first argument is mandatory and should be the tracepoint event name. - * The other arguments should be the tracepoint arguments. - * This is the preferred method over calling the underlying function directly. - * - * This macro currently supports up to 9 tracepoint arguments after the event name. - */ -# define TRACETOOLS_TRACEPOINT(...) \ - _GET_MACRO_TRACEPOINT(__VA_ARGS__)(__VA_ARGS__) -/// Check if a tracepoint is enabled at runtime. -/** - * This can be useful to only compute tracepoint arguments if the tracepoint is actually enabled at - * runtime. Combine this with `DO_TRACEPOINT()` instead of `TRACEPOINT()` to trigger a tracepoint - * after checking if it is enabled and computing its arguments. - * - * This is the preferred method over calling the underlying function directly. - */ -# define TRACETOOLS_TRACEPOINT_ENABLED(event_name) \ - _FUNC_TRACEPOINT_ENABLED(event_name)() -/// Call a tracepoint, without checking if it is enabled. -/** - * Combine this with `TRACEPOINT_ENABLED()` to check if a tracepoint is enabled before triggering - * it. - * - * The first argument is mandatory and should be the tracepoint event name. - * The other arguments should be the tracepoint arguments. - * This is the preferred method over calling the underlying function directly. - * - * This macro currently supports up to 9 tracepoint arguments after the event name. - */ -# define TRACETOOLS_DO_TRACEPOINT(...) \ - _GET_MACRO_DO_TRACEPOINT(__VA_ARGS__)(__VA_ARGS__) -#else -# define TRACETOOLS_TRACEPOINT(...) ((void) (0)) -# define TRACETOOLS_TRACEPOINT_ENABLED(event_name) false -# define TRACETOOLS_DO_TRACEPOINT(...) ((void) (0)) -# define _DECLARE_TRACEPOINT(...) -#endif // TRACETOOLS_DISABLED -// *INDENT-ON* - -#ifdef __cplusplus -extern "C" -{ -#endif - -/// Get tracing compilation status. -/** - * \return `true` if tracing is enabled, `false` otherwise - */ -TRACETOOLS_PUBLIC bool ros_trace_compile_status(void); - -/// `rcl_init` -/** - * Initialisation for the whole process. - * Notes the `tracetools` version automatically. - * - * \param[in] context_handle pointer to the `rcl_context_t` handle - */ -_DECLARE_TRACEPOINT( - rcl_init, - const void * context_handle) - -/// `rcl_node_init` -/** - * Node initialisation. - * Links a `rcl_node_t` handle to its `rmw_node_t` handle. - * - * \param[in] node_handle pointer to the node's `rcl_node_t` handle - * \param[in] rmw_handle pointer to the node's `rmw_node_t` handle - * \param[in] node_name node name - * \param[in] node_namespace node namespace - */ -_DECLARE_TRACEPOINT( - rcl_node_init, - const void * node_handle, - const void * rmw_handle, - const char * node_name, - const char * node_namespace) - -/// `rmw_publisher_init` -/** - * RMW publisher initialisation. - * Links a `rmw_publisher_t` handle to its DDS/rmw GID. - * - * \param[in] rmw_publisher_handle pointer to the publisher's `rmw_publisher_t` handle - * \param[in] gid pointer to the publisher's DDS/rmw GID - */ -_DECLARE_TRACEPOINT( - rmw_publisher_init, - const void * rmw_publisher_handle, - const uint8_t * gid) - -/// `rcl_publisher_init` -/** - * Publisher initialisation. - * Links a `rcl_publisher_t` handle to its `rcl_node_t` handle - * and its `rmw_publisher_t` handle, and links it to a topic name. - * - * \param[in] publisher_handle pointer to the publisher's `rcl_publisher_t` handle - * \param[in] node_handle pointer to the `rcl_node_t` handle of the node the publisher belongs to - * \param[in] rmw_publisher_handle pointer to the publisher's `rmw_publisher_t` handle - * \param[in] topic_name full topic name - * \param[in] queue_depth publisher history depth - */ -_DECLARE_TRACEPOINT( - rcl_publisher_init, - const void * publisher_handle, - const void * node_handle, - const void * rmw_publisher_handle, - const char * topic_name, - const size_t queue_depth) - -/// `rclcpp_publish` -/** - * Message publication. - * Notes the pointer to the message being published at the `rclcpp` level. - * - * \param[in] publisher_handle not used, but kept for API/ABI stability - * \param[in] message pointer to the message being published - */ -_DECLARE_TRACEPOINT( - rclcpp_publish, - const void * publisher_handle, - const void * message) - -/// `rclcpp_intra_publish` -/** - * Intra-process message publication. - * Notes the pointer to the message being published in intra process at the `rclcpp` level. - * - * \param[in] publisher_handle pointer to the publisher's `rcl_publisher_t` handle - * \param[in] message pointer to the message being published - */ -_DECLARE_TRACEPOINT( - rclcpp_intra_publish, - const void * publisher_handle, - const void * message) - -/// `rcl_publish` -/** - * Message publication. - * Links a `rcl_publisher_t` handle to a pointer to a message being published at the `rcl` level. - * - * \param[in] publisher_handle pointer to the publisher's `rcl_publisher_t` handle - * \param[in] message pointer to the message being published - */ -_DECLARE_TRACEPOINT( - rcl_publish, - const void * publisher_handle, - const void * message) - -/// `rmw_publish` -/** - * Message publication. - * Notes the pointer to the message being published at the `rmw` level. - * Also notes the source timestamp of the message. - * - * \param[in] rmw_publisher_handle pointer to the publisher's `rmw_publisher_t` handle - * \param[in] message pointer to the message being published - * \param[in] timestamp the source timestamp of the message - */ -_DECLARE_TRACEPOINT( - rmw_publish, - const void * rmw_publisher_handle, - const void * message, - int64_t timestamp) - -/// `rmw_subscription_init` -/** - * RMW subscription initialisation. - * Links a `rmw_subscription_handle` handle to its DDS/rmw GID. - * - * \param[in] rmw_subscription_handle pointer to the publisher's `rmw_subscription_t` handle - * \param[in] gid pointer to the subscription's DDS/rmw GID - */ -_DECLARE_TRACEPOINT( - rmw_subscription_init, - const void * rmw_subscription_handle, - const uint8_t * gid) - -/// `rcl_subscription_init` -/** - * Subscription initialisation. - * Links a `rcl_subscription_t` handle to its `rcl_node_t` handle - * and its `rmw_subscription_t` handle, and links it to a topic name. - * - * \param[in] subscription_handle pointer to the subscription's `rcl_subscription_t` handle - * \param[in] node_handle - * pointer to the `rcl_node_t` handle of the node the subscription belongs to - * \param[in] rmw_subscription_handle pointer to the subscription's `rmw_subscription_t` handle - * \param[in] topic_name full topic name - * \param[in] queue_depth subscription history depth - */ -_DECLARE_TRACEPOINT( - rcl_subscription_init, - const void * subscription_handle, - const void * node_handle, - const void * rmw_subscription_handle, - const char * topic_name, - const size_t queue_depth) - -/// `rclcpp_subscription_init` -/** - * Subscription object initialisation. - * Links the `rclcpp::*Subscription*` object to a `rcl_subscription_t` handle. - * Needed since there could be more than 1 `rclcpp::*Subscription*` object - * for one `rcl` subscription (e.g. when using intra-process). - * - * \param[in] subscription_handle - * pointer to the `rcl_subscription_t` handle of the subscription this object belongs to - * \param[in] subscription pointer to this subscription object (e.g. `rclcpp::*Subscription*`) - */ -_DECLARE_TRACEPOINT( - rclcpp_subscription_init, - const void * subscription_handle, - const void * subscription) - -/// `rclcpp_subscription_callback_added` -/** - * Link a subscription callback object to a subscription object. - * - * \param[in] subscription pointer to the subscription object this callback belongs to - * \param[in] callback pointer to this callback object (e.g. `rclcpp::AnySubscriptionCallback`) - */ -_DECLARE_TRACEPOINT( - rclcpp_subscription_callback_added, - const void * subscription, - const void * callback) - -/// `rmw_take` -/** - * Message taking. - * Links a `rmw_subscription_t` handle to a pointer to a message being taken at the `rmw` level. - * Notes the source timestamp of the message. - * - * \param[in] rmw_subscription_handle pointer to the subscription's `rmw_subscription_t` handle - * \param[in] message pointer to the message being taken - * \param[in] source_timestamp the source timestamp of the message, - * or 0 (if no message or no info) - * \param[in] taken whether a message was taken - */ -_DECLARE_TRACEPOINT( - rmw_take, - const void * rmw_subscription_handle, - const void * message, - int64_t source_timestamp, - const bool taken) - -/// `rcl_take` -/** - * Message taking. - * Notes the pointer to the message being taken at the `rcl` level. - * - * \param[in] message pointer to the message being taken - */ -_DECLARE_TRACEPOINT( - rcl_take, - const void * message) - -/// `rclcpp_take` -/** - * Message taking. - * Notes the pointer to the message being taken at the `rclcpp` level. - * - * \param[in] message pointer to the message being taken - */ -_DECLARE_TRACEPOINT( - rclcpp_take, - const void * message) - -/// `rcl_service_init` -/** - * Service initialisation. - * Links a `rcl_service_t` handle to its `rcl_node_t` handle - * and its `rmw_service_t` handle, and links it to a service name. - * - * \param[in] service_handle pointer to the service's `rcl_service_t` handle - * \param[in] node_handle pointer to the `rcl_node_t` handle of the node the service belongs to - * \param[in] rmw_service_handle pointer to the service's `rmw_service_t` handle - * \param[in] service_name full service name - */ -_DECLARE_TRACEPOINT( - rcl_service_init, - const void * service_handle, - const void * node_handle, - const void * rmw_service_handle, - const char * service_name) - -/// `rclcpp_service_callback_added` -/** - * Link a service callback object to a service. - * - * \param[in] service_handle - * pointer to the `rcl_service_t` handle of the service this callback belongs to - * \param[in] callback pointer to this callback object (e.g. `rclcpp::AnyServiceCallback`) - */ -_DECLARE_TRACEPOINT( - rclcpp_service_callback_added, - const void * service_handle, - const void * callback) - -/// `rmw_take_request` -/** - * Request taking. - * Links a `rmw_service_t` handle to a pointer to a request being taken at the `rmw` level. - * Also notes the sequence number of the request and the GID of the requesting client. - * - * \param[in] rmw_service_handle pointer to the service's `rmw_service_t` handle - * \param[in] request pointer to the request being taken - * \param[in] client_gid the GID of the requesting client - * \param[in] sequence_number the sequence number of the received request, - * or 0 (if no request or no info) - * \param[in] taken whether a request was taken - */ -_DECLARE_TRACEPOINT( - rmw_take_request, - const void * rmw_service_handle, - const void * request, - const uint8_t * client_gid, - int64_t sequence_number, - const bool taken) - -/// `rmw_send_response` -/** - * Response publication. - * Notes the pointer to the response being sent at the `rmw` level. - * Also notes the sequence number of the request that this response is for and the GID of the - * requesting client, and notes the source timestamp of the response. - * - * \param[in] rmw_service_handle pointer to the service's `rmw_service_t` handle - * \param[in] response pointer to the request being sent - * \param[in] client_gid the GID of the requesting client - * \param[in] sequence_number the sequence number of the request this response is for - * \param[in] timestamp the source timestamp of the response - */ -_DECLARE_TRACEPOINT( - rmw_send_response, - const void * rmw_service_handle, - const void * response, - const uint8_t * client_gid, - int64_t sequence_number, - int64_t timestamp) - -/// `rmw_client_init` -/** - * RMW client initialisation. - * Links a `rmw_client_t` handle to its DDS/rmw GID. - * This GID should be the same client GID that is collected by the `rmw_take_request` and - * `rmw_send_response` tracepoints for requests made by this client and responses to requests made - * by this client. - * - * \param[in] rmw_client_handle pointer to the client's `rmw_client_t` handle - * \param[in] gid pointer to the client's DDS/rmw GID - */ -_DECLARE_TRACEPOINT( - rmw_client_init, - const void * rmw_client_handle, - const uint8_t * gid) - -/// `rcl_client_init` -/** - * Client initialisation. - * Links a `rcl_client_t` handle to its `rcl_node_t` handle - * and its `rmw_client_t` handle, and links it to a client name. - * - * \param[in] client_handle pointer to the client's `rcl_client_t` handle - * \param[in] node_handle pointer to the `rcl_node_t` handle of the node the client belongs to - * \param[in] rmw_client_handle pointer to the client's `rmw_client_t` handle - * \param[in] service_name full client name - */ -_DECLARE_TRACEPOINT( - rcl_client_init, - const void * client_handle, - const void * node_handle, - const void * rmw_client_handle, - const char * service_name) - -/// `rmw_send_request` -/** - * Request publication. - * Notes the pointer to the request being sent at the `rmw` level. - * Also notes the sequence number of the request. - * - * \param[in] rmw_client_handle pointer to the client's `rmw_client_t` handle - * \param[in] request pointer to the request being sent - * \param[in] sequence_number the sequence number of the request - */ -_DECLARE_TRACEPOINT( - rmw_send_request, - const void * rmw_client_handle, - const void * request, - int64_t sequence_number) - -/// `rmw_take_response` -/** - * Response taking. - * Links a `rmw_client_t` handle to a pointer to a response being taken at the `rmw` level. - * Notes the source timestamp of the response. Also notes the sequence number of the request this - * response is for. It does not note the request's client GID, since it is assumed that the matching - * of the response to the original client is performed before this tracepoint. - * - * \param[in] rmw_client_handle pointer to the client's `rmw_client_t` handle - * \param[in] response pointer to the response being taken - * \param[in] sequence_number the sequence number of the request this response is for, - * or 0 (if no response or no info) - * \param[in] source_timestamp the source timestamp of the response, - * or 0 (if no response or no info) - * \param[in] taken whether a response was taken - */ -_DECLARE_TRACEPOINT( - rmw_take_response, - const void * rmw_client_handle, - const void * response, - int64_t sequence_number, - int64_t source_timestamp, - const bool taken) - -/// `rcl_timer_init` -/** - * Timer initialisation. - * Notes the timer's period. - * - * \param[in] timer_handle pointer to the timer's `rcl_timer_t` handle - * \param[in] period period in nanoseconds - */ -_DECLARE_TRACEPOINT( - rcl_timer_init, - const void * timer_handle, - int64_t period) - -/// `rclcpp_timer_callback_added` -/** - * Link a timer callback object to its `rcl_timer_t` handle. - * - * \param[in] timer_handle - * pointer to the `rcl_timer_t` handle of the timer this callback belongs to - * \param[in] callback pointer to the callback object (`std::function`) - */ -_DECLARE_TRACEPOINT( - rclcpp_timer_callback_added, - const void * timer_handle, - const void * callback) - -/// `rclcpp_timer_link_node` -/** - * Link a timer to a node. - * - * \param[in] timer_handle pointer to the timer's `rcl_timer_t` handle - * \param[in] node_handle pointer to the `rcl_node_t` handle of the node the timer belongs to - */ -_DECLARE_TRACEPOINT( - rclcpp_timer_link_node, - const void * timer_handle, - const void * node_handle) - -/// `rclcpp_callback_register` -/** - * Register a demangled function symbol with a callback. - * - * \param[in] callback pointer to the callback object - * (e.g. `rclcpp::AnySubscriptionCallback`, - * `rclcpp::AnyServiceCallback`, timer `std::function`, etc.) - * \param[in] function_symbol demangled symbol of the callback function/lambda, - * see \ref get_symbol() - */ -_DECLARE_TRACEPOINT( - rclcpp_callback_register, - const void * callback, - const char * function_symbol) - -/// `callback_start` -/** - * Start of a callback. - * - * \param[in] callback pointer to this callback object - * (e.g. `rclcpp::AnySubscriptionCallback`, - * `rclcpp::AnyServiceCallback`, timer `std::function`, etc.) - * \param[in] is_intra_process whether this callback is done via intra-process or not - */ -_DECLARE_TRACEPOINT( - callback_start, - const void * callback, - const bool is_intra_process) - -/// `callback_end` -/** - * End of a callback. - * - * \param[in] callback pointer to this callback object - * (e.g. `rclcpp::AnySubscriptionCallback`, - * `rclcpp::AnyServiceCallback`, timer `std::function`, etc.) - */ -_DECLARE_TRACEPOINT( - callback_end, - const void * callback) - -/// `rcl_lifecycle_state_machine_init` -/** - * Lifecycle state machine initialisation. - * Links a `rcl_lifecycle_state_machine_t` handle to a `rcl_node_t` handle. - * - * \param[in] node_handle pointer to the node handle - * \param[in] state_machine pointer to the state machine - */ -_DECLARE_TRACEPOINT( - rcl_lifecycle_state_machine_init, - const void * node_handle, - const void * state_machine) - -/// `rcl_lifecycle_transition` -/** - * Lifecycle transition between two states. - * - * \param[in] state_machine pointer to the state machine for the transition - * \param[in] start_label start state label - * \param[in] goal_label goal state label - */ -_DECLARE_TRACEPOINT( - rcl_lifecycle_transition, - const void * state_machine, - const char * start_label, - const char * goal_label) - -/// `rclcpp_executor_get_next_ready` -/** - * Notes the start time of the executor phase that gets the next executable that's ready. - */ -_DECLARE_TRACEPOINT( - rclcpp_executor_get_next_ready) - -/// `rclcpp_executor_wait_for_work` -/** - * Notes the start time of the executor phase that waits for work and notes the timeout value. - * - * \param[in] timeout the timeout value for the wait call - */ -_DECLARE_TRACEPOINT( - rclcpp_executor_wait_for_work, - const int64_t timeout) - -/// `rclcpp_executor_execute` -/** - * Executable execution. - * Notes an executable being executed using its `rcl` handle, which can be a: - * * timer - * * subscription - * - * \param[in] handle pointer to the `rcl` handle of the executable being executed - */ -_DECLARE_TRACEPOINT( - rclcpp_executor_execute, - const void * handle) - -/// `rclcpp_ipb_to_subscription` -/** - * Subscription intra-process buffer initialization. - * Notes the `IntraProcessBuffer` and the `SubscriptionIntraProcess` that owns it. - * - * \param[in] ipb pointer to the `IntraProcessBuffer` - * \param[in] subscription pointer to the `SubscriptionIntraProcess` - */ -_DECLARE_TRACEPOINT( - rclcpp_ipb_to_subscription, - const void * ipb, - const void * subscription) - -/// `rclcpp_buffer_to_ipb` -/** - * Intra-process buffer initialization. - * Notes the `BufferImplementationBase` and the `IntraProcessBuffer` that owns it. - * - * \param[in] buffer the pointer to the `BufferImplementationBase` - * \param[in] ipb to pointer to the `IntraProcessBuffer` - */ -_DECLARE_TRACEPOINT( - rclcpp_buffer_to_ipb, - const void * buffer, - const void * ipb) - -/// `rclcpp_construct_ring_buffer` -/** - * Ring buffer construction. - * Notes the buffer address and its capacity. - * - * \param[in] buffer pointer to the buffer - * \param[in] capacity buffer size - */ -_DECLARE_TRACEPOINT( - rclcpp_construct_ring_buffer, - const void * buffer, - const uint64_t capacity) - -/// `rclcpp_ring_buffer_enqueue` -/** - * Notes buffer address, the index to write to, and the occurrence of the lost. - * - * \param[in] buffer pointer to the buffer - * \param[in] index the index to write to - * \param[in] size the size of the buffer after this operation - * \param[in] overwritten occurrence of the lost - */ -_DECLARE_TRACEPOINT( - rclcpp_ring_buffer_enqueue, - const void * buffer, - const uint64_t index, - const uint64_t size, - const bool overwritten) - -/// `rclcpp_ring_buffer_dequeue` -/** - * Ring buffer dequeue. - * Notes buffer address, the index to read from, and the size of the buffer after this operation. - * - * \param[in] buffer pointer to the buffer - * \param[in] index the index to read from - * \param[in] size the size of the buffer after this operation - */ -_DECLARE_TRACEPOINT( - rclcpp_ring_buffer_dequeue, - const void * buffer, - const uint64_t index, - const uint64_t size) - -/// `rclcpp_ring_buffer_clear` -/** - * Ring buffer clear. - * Notes the address of the cleared buffer. - * - * \param[in] buffer pointer to the buffer - */ -_DECLARE_TRACEPOINT( - rclcpp_ring_buffer_clear, - const void * buffer) - -#ifdef __cplusplus -} -#endif - -#endif // TRACETOOLS__TRACETOOLS_H_ diff --git a/src/tracetools/utils.hpp b/src/tracetools/utils.hpp deleted file mode 100755 index d5cd2a9f3..000000000 --- a/src/tracetools/utils.hpp +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2019 Robert Bosch GmbH -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef TRACETOOLS__UTILS_HPP_ -#define TRACETOOLS__UTILS_HPP_ - -#include -#include - -#include "tracetools/config.h" - -#ifndef TRACETOOLS_DISABLED - -namespace tracetools -{ - -namespace detail -{ - -/// Demangle symbol string. -/** - * \param[in] mangled the pointer to the mangled symbol string - * \return the demangled symbol, or nullptr if demangling failed. The caller is responsible for - * deallocating this memory using free. - */ -char * demangle_symbol(const char * mangled); - -/// Get demangled symbol string from function pointer. -/** - * \param[in] funcptr the function pointer - * \return the demangled symbol, or nullptr if the pointer could not be matched to a shared object - * or if demangling failed. The caller is responsible for deallocating this memory using free. - */ -char * get_symbol_funcptr(const void * funcptr); - -} // namespace detail - -/// Get demangled symbol from an std::function object. -/** - * \param[in] f the std::function object - * \return the symbol, or nullptr if the symbol could not be retrieved or if demangling failed. The - * caller is responsible for deallocating this memory using free. - */ -template -char * get_symbol(std::function f) -{ - typedef T (fnType)(U...); - fnType ** fnPointer = f.template target(); - // If we get an actual address - if (fnPointer != nullptr) { - void * funcptr = reinterpret_cast(*fnPointer); - return detail::get_symbol_funcptr(funcptr); - } - // Otherwise we have to go through target_type() - return detail::demangle_symbol(f.target_type().name()); -} - -/// Get demangled symbol from a function-related object. -/** - * Fallback meant for lambdas with captures. - * - * \param[in] l a generic object - * \return the symbol, or nullptr if demangling failed. The caller is responsible for deallocating - * this memory using free. - */ -template -char * get_symbol(L && l) -{ - return detail::demangle_symbol(typeid(l).name()); -} - -} // namespace tracetools - -#endif // TRACETOOLS_DISABLED - -#endif // TRACETOOLS__UTILS_HPP_ diff --git a/src/tracetools/visibility_control.h b/src/tracetools/visibility_control.h deleted file mode 100755 index 4a93d998b..000000000 --- a/src/tracetools/visibility_control.h +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2015 Open Source Robotics Foundation, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/* This header must be included by all TRACETOOLS headers which declare symbols - * which are defined in the TRACETOOLS library. When not building the TRACETOOLS - * library, i.e. when using the headers in other package's code, the contents - * of this header change the visibility of certain symbols which the TRACETOOLS - * library cannot have, but the consuming code must have inorder to link. - */ - -#ifndef TRACETOOLS__VISIBILITY_CONTROL_H_ -#define TRACETOOLS__VISIBILITY_CONTROL_H_ - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define TRACETOOLS_EXPORT __attribute__ ((dllexport)) - #define TRACETOOLS_IMPORT __attribute__ ((dllimport)) - #else - #define TRACETOOLS_EXPORT __declspec(dllexport) - #define TRACETOOLS_IMPORT __declspec(dllimport) - #endif - #ifdef TRACETOOLS_BUILDING_DLL - #define TRACETOOLS_PUBLIC TRACETOOLS_EXPORT - #else - #define TRACETOOLS_PUBLIC TRACETOOLS_IMPORT - #endif - #define TRACETOOLS_PUBLIC_TYPE TRACETOOLS_PUBLIC - #define TRACETOOLS_LOCAL -#else - #define TRACETOOLS_EXPORT __attribute__ ((visibility("default"))) - #define TRACETOOLS_IMPORT - #if __GNUC__ >= 4 - #define TRACETOOLS_PUBLIC __attribute__ ((visibility("default"))) - #define TRACETOOLS_LOCAL __attribute__ ((visibility("hidden"))) - #else - #define TRACETOOLS_PUBLIC - #define TRACETOOLS_LOCAL - #endif - #define TRACETOOLS_PUBLIC_TYPE -#endif - -#endif // TRACETOOLS__VISIBILITY_CONTROL_H_ diff --git a/src/trajectory_msgs/msg/detail/joint_trajectory__functions.h b/src/trajectory_msgs/msg/detail/joint_trajectory__functions.h deleted file mode 100755 index f106ced4a..000000000 --- a/src/trajectory_msgs/msg/detail/joint_trajectory__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from trajectory_msgs:msg/JointTrajectory.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "trajectory_msgs/msg/joint_trajectory.h" - - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY__FUNCTIONS_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "trajectory_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "trajectory_msgs/msg/detail/joint_trajectory__struct.h" - -/// Initialize msg/JointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * trajectory_msgs__msg__JointTrajectory - * )) before or use - * trajectory_msgs__msg__JointTrajectory__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__JointTrajectory__init(trajectory_msgs__msg__JointTrajectory * msg); - -/// Finalize msg/JointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__JointTrajectory__fini(trajectory_msgs__msg__JointTrajectory * msg); - -/// Create msg/JointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * trajectory_msgs__msg__JointTrajectory__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -trajectory_msgs__msg__JointTrajectory * -trajectory_msgs__msg__JointTrajectory__create(void); - -/// Destroy msg/JointTrajectory message. -/** - * It calls - * trajectory_msgs__msg__JointTrajectory__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__JointTrajectory__destroy(trajectory_msgs__msg__JointTrajectory * msg); - -/// Check for msg/JointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__JointTrajectory__are_equal(const trajectory_msgs__msg__JointTrajectory * lhs, const trajectory_msgs__msg__JointTrajectory * rhs); - -/// Copy a msg/JointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__JointTrajectory__copy( - const trajectory_msgs__msg__JointTrajectory * input, - trajectory_msgs__msg__JointTrajectory * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_type_hash_t * -trajectory_msgs__msg__JointTrajectory__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_runtime_c__type_description__TypeDescription * -trajectory_msgs__msg__JointTrajectory__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_runtime_c__type_description__TypeSource * -trajectory_msgs__msg__JointTrajectory__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -trajectory_msgs__msg__JointTrajectory__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/JointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * trajectory_msgs__msg__JointTrajectory__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__JointTrajectory__Sequence__init(trajectory_msgs__msg__JointTrajectory__Sequence * array, size_t size); - -/// Finalize array of msg/JointTrajectory messages. -/** - * It calls - * trajectory_msgs__msg__JointTrajectory__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__JointTrajectory__Sequence__fini(trajectory_msgs__msg__JointTrajectory__Sequence * array); - -/// Create array of msg/JointTrajectory messages. -/** - * It allocates the memory for the array and calls - * trajectory_msgs__msg__JointTrajectory__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -trajectory_msgs__msg__JointTrajectory__Sequence * -trajectory_msgs__msg__JointTrajectory__Sequence__create(size_t size); - -/// Destroy array of msg/JointTrajectory messages. -/** - * It calls - * trajectory_msgs__msg__JointTrajectory__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__JointTrajectory__Sequence__destroy(trajectory_msgs__msg__JointTrajectory__Sequence * array); - -/// Check for msg/JointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__JointTrajectory__Sequence__are_equal(const trajectory_msgs__msg__JointTrajectory__Sequence * lhs, const trajectory_msgs__msg__JointTrajectory__Sequence * rhs); - -/// Copy an array of msg/JointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__JointTrajectory__Sequence__copy( - const trajectory_msgs__msg__JointTrajectory__Sequence * input, - trajectory_msgs__msg__JointTrajectory__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY__FUNCTIONS_H_ diff --git a/src/trajectory_msgs/msg/detail/joint_trajectory__rosidl_typesupport_introspection_c.h b/src/trajectory_msgs/msg/detail/joint_trajectory__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 8ba75f893..000000000 --- a/src/trajectory_msgs/msg/detail/joint_trajectory__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from trajectory_msgs:msg/JointTrajectory.idl -// generated code does not contain a copyright notice - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "trajectory_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_trajectory_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, trajectory_msgs, msg, JointTrajectory)(); - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/trajectory_msgs/msg/detail/joint_trajectory__rosidl_typesupport_microxrcedds_c.h b/src/trajectory_msgs/msg/detail/joint_trajectory__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 0fcbb57a3..000000000 --- a/src/trajectory_msgs/msg/detail/joint_trajectory__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from trajectory_msgs:msg/JointTrajectory.idl -// generated code does not contain a copyright notice -#ifndef TRAJECTORY_MSGS__MSG__JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TRAJECTORY_MSGS__MSG__JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "trajectory_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs -size_t get_serialized_size_trajectory_msgs__msg__JointTrajectory( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs -size_t max_serialized_size_trajectory_msgs__msg__JointTrajectory( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, trajectory_msgs, msg, JointTrajectory)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TRAJECTORY_MSGS__MSG__JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/trajectory_msgs/msg/detail/joint_trajectory__struct.h b/src/trajectory_msgs/msg/detail/joint_trajectory__struct.h deleted file mode 100755 index 38ed31b7d..000000000 --- a/src/trajectory_msgs/msg/detail/joint_trajectory__struct.h +++ /dev/null @@ -1,60 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from trajectory_msgs:msg/JointTrajectory.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "trajectory_msgs/msg/joint_trajectory.h" - - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY__STRUCT_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'joint_names' -#include "rosidl_runtime_c/string.h" -// Member 'points' -#include "trajectory_msgs/msg/detail/joint_trajectory_point__struct.h" - -/// Struct defined in msg/JointTrajectory in the package trajectory_msgs. -/** - * The header is used to specify the coordinate frame and the reference time for - * the trajectory durations - */ -typedef struct trajectory_msgs__msg__JointTrajectory -{ - std_msgs__msg__Header header; - /// The names of the active joints in each trajectory point. These names are - /// ordered and must correspond to the values in each trajectory point. - rosidl_runtime_c__String__Sequence joint_names; - /// Array of trajectory points, which describe the positions, velocities, - /// accelerations and/or efforts of the joints at each time point. - trajectory_msgs__msg__JointTrajectoryPoint__Sequence points; -} trajectory_msgs__msg__JointTrajectory; - -// Struct for a sequence of trajectory_msgs__msg__JointTrajectory. -typedef struct trajectory_msgs__msg__JointTrajectory__Sequence -{ - trajectory_msgs__msg__JointTrajectory * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} trajectory_msgs__msg__JointTrajectory__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY__STRUCT_H_ diff --git a/src/trajectory_msgs/msg/detail/joint_trajectory__type_support.h b/src/trajectory_msgs/msg/detail/joint_trajectory__type_support.h deleted file mode 100755 index 661f54067..000000000 --- a/src/trajectory_msgs/msg/detail/joint_trajectory__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from trajectory_msgs:msg/JointTrajectory.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "trajectory_msgs/msg/joint_trajectory.h" - - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY__TYPE_SUPPORT_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "trajectory_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - trajectory_msgs, - msg, - JointTrajectory -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY__TYPE_SUPPORT_H_ diff --git a/src/trajectory_msgs/msg/detail/joint_trajectory_point__functions.h b/src/trajectory_msgs/msg/detail/joint_trajectory_point__functions.h deleted file mode 100755 index c17e99308..000000000 --- a/src/trajectory_msgs/msg/detail/joint_trajectory_point__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from trajectory_msgs:msg/JointTrajectoryPoint.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "trajectory_msgs/msg/joint_trajectory_point.h" - - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_POINT__FUNCTIONS_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_POINT__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "trajectory_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "trajectory_msgs/msg/detail/joint_trajectory_point__struct.h" - -/// Initialize msg/JointTrajectoryPoint message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * trajectory_msgs__msg__JointTrajectoryPoint - * )) before or use - * trajectory_msgs__msg__JointTrajectoryPoint__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__JointTrajectoryPoint__init(trajectory_msgs__msg__JointTrajectoryPoint * msg); - -/// Finalize msg/JointTrajectoryPoint message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__JointTrajectoryPoint__fini(trajectory_msgs__msg__JointTrajectoryPoint * msg); - -/// Create msg/JointTrajectoryPoint message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * trajectory_msgs__msg__JointTrajectoryPoint__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -trajectory_msgs__msg__JointTrajectoryPoint * -trajectory_msgs__msg__JointTrajectoryPoint__create(void); - -/// Destroy msg/JointTrajectoryPoint message. -/** - * It calls - * trajectory_msgs__msg__JointTrajectoryPoint__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__JointTrajectoryPoint__destroy(trajectory_msgs__msg__JointTrajectoryPoint * msg); - -/// Check for msg/JointTrajectoryPoint message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__JointTrajectoryPoint__are_equal(const trajectory_msgs__msg__JointTrajectoryPoint * lhs, const trajectory_msgs__msg__JointTrajectoryPoint * rhs); - -/// Copy a msg/JointTrajectoryPoint message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__JointTrajectoryPoint__copy( - const trajectory_msgs__msg__JointTrajectoryPoint * input, - trajectory_msgs__msg__JointTrajectoryPoint * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_type_hash_t * -trajectory_msgs__msg__JointTrajectoryPoint__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_runtime_c__type_description__TypeDescription * -trajectory_msgs__msg__JointTrajectoryPoint__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_runtime_c__type_description__TypeSource * -trajectory_msgs__msg__JointTrajectoryPoint__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -trajectory_msgs__msg__JointTrajectoryPoint__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/JointTrajectoryPoint messages. -/** - * It allocates the memory for the number of elements and calls - * trajectory_msgs__msg__JointTrajectoryPoint__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__JointTrajectoryPoint__Sequence__init(trajectory_msgs__msg__JointTrajectoryPoint__Sequence * array, size_t size); - -/// Finalize array of msg/JointTrajectoryPoint messages. -/** - * It calls - * trajectory_msgs__msg__JointTrajectoryPoint__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__JointTrajectoryPoint__Sequence__fini(trajectory_msgs__msg__JointTrajectoryPoint__Sequence * array); - -/// Create array of msg/JointTrajectoryPoint messages. -/** - * It allocates the memory for the array and calls - * trajectory_msgs__msg__JointTrajectoryPoint__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -trajectory_msgs__msg__JointTrajectoryPoint__Sequence * -trajectory_msgs__msg__JointTrajectoryPoint__Sequence__create(size_t size); - -/// Destroy array of msg/JointTrajectoryPoint messages. -/** - * It calls - * trajectory_msgs__msg__JointTrajectoryPoint__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__JointTrajectoryPoint__Sequence__destroy(trajectory_msgs__msg__JointTrajectoryPoint__Sequence * array); - -/// Check for msg/JointTrajectoryPoint message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__JointTrajectoryPoint__Sequence__are_equal(const trajectory_msgs__msg__JointTrajectoryPoint__Sequence * lhs, const trajectory_msgs__msg__JointTrajectoryPoint__Sequence * rhs); - -/// Copy an array of msg/JointTrajectoryPoint messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__JointTrajectoryPoint__Sequence__copy( - const trajectory_msgs__msg__JointTrajectoryPoint__Sequence * input, - trajectory_msgs__msg__JointTrajectoryPoint__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_POINT__FUNCTIONS_H_ diff --git a/src/trajectory_msgs/msg/detail/joint_trajectory_point__rosidl_typesupport_introspection_c.h b/src/trajectory_msgs/msg/detail/joint_trajectory_point__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 3516db7c6..000000000 --- a/src/trajectory_msgs/msg/detail/joint_trajectory_point__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from trajectory_msgs:msg/JointTrajectoryPoint.idl -// generated code does not contain a copyright notice - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_POINT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_POINT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "trajectory_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_trajectory_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, trajectory_msgs, msg, JointTrajectoryPoint)(); - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_POINT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/trajectory_msgs/msg/detail/joint_trajectory_point__rosidl_typesupport_microxrcedds_c.h b/src/trajectory_msgs/msg/detail/joint_trajectory_point__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 3e4d055c7..000000000 --- a/src/trajectory_msgs/msg/detail/joint_trajectory_point__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from trajectory_msgs:msg/JointTrajectoryPoint.idl -// generated code does not contain a copyright notice -#ifndef TRAJECTORY_MSGS__MSG__JOINT_TRAJECTORY_POINT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TRAJECTORY_MSGS__MSG__JOINT_TRAJECTORY_POINT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "trajectory_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs -size_t get_serialized_size_trajectory_msgs__msg__JointTrajectoryPoint( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs -size_t max_serialized_size_trajectory_msgs__msg__JointTrajectoryPoint( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, trajectory_msgs, msg, JointTrajectoryPoint)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TRAJECTORY_MSGS__MSG__JOINT_TRAJECTORY_POINT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/trajectory_msgs/msg/detail/joint_trajectory_point__struct.h b/src/trajectory_msgs/msg/detail/joint_trajectory_point__struct.h deleted file mode 100755 index 6a1428719..000000000 --- a/src/trajectory_msgs/msg/detail/joint_trajectory_point__struct.h +++ /dev/null @@ -1,73 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from trajectory_msgs:msg/JointTrajectoryPoint.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "trajectory_msgs/msg/joint_trajectory_point.h" - - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_POINT__STRUCT_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_POINT__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'positions' -// Member 'velocities' -// Member 'accelerations' -// Member 'effort' -#include "rosidl_runtime_c/primitives_sequence.h" -// Member 'time_from_start' -#include "builtin_interfaces/msg/detail/duration__struct.h" - -/// Struct defined in msg/JointTrajectoryPoint in the package trajectory_msgs. -/** - * Each trajectory point specifies either positions[, velocities[, accelerations]] - * or positions[, effort] for the trajectory to be executed. - * All specified values are in the same order as the joint names in JointTrajectory.msg. - */ -typedef struct trajectory_msgs__msg__JointTrajectoryPoint -{ - /// Single DOF joint positions for each joint relative to their "0" position. - /// The units depend on the specific joint type: radians for revolute or - /// continuous joints, and meters for prismatic joints. - rosidl_runtime_c__double__Sequence positions; - /// The rate of change in position of each joint. Units are joint type dependent. - /// Radians/second for revolute or continuous joints, and meters/second for - /// prismatic joints. - rosidl_runtime_c__double__Sequence velocities; - /// Rate of change in velocity of each joint. Units are joint type dependent. - /// Radians/second^2 for revolute or continuous joints, and meters/second^2 for - /// prismatic joints. - rosidl_runtime_c__double__Sequence accelerations; - /// The torque or the force to be applied at each joint. For revolute/continuous - /// joints effort denotes a torque in newton-meters. For prismatic joints, effort - /// denotes a force in newtons. - rosidl_runtime_c__double__Sequence effort; - /// Desired time from the trajectory start to arrive at this trajectory point. - builtin_interfaces__msg__Duration time_from_start; -} trajectory_msgs__msg__JointTrajectoryPoint; - -// Struct for a sequence of trajectory_msgs__msg__JointTrajectoryPoint. -typedef struct trajectory_msgs__msg__JointTrajectoryPoint__Sequence -{ - trajectory_msgs__msg__JointTrajectoryPoint * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} trajectory_msgs__msg__JointTrajectoryPoint__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_POINT__STRUCT_H_ diff --git a/src/trajectory_msgs/msg/detail/joint_trajectory_point__type_support.h b/src/trajectory_msgs/msg/detail/joint_trajectory_point__type_support.h deleted file mode 100755 index a3b045398..000000000 --- a/src/trajectory_msgs/msg/detail/joint_trajectory_point__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from trajectory_msgs:msg/JointTrajectoryPoint.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "trajectory_msgs/msg/joint_trajectory_point.h" - - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_POINT__TYPE_SUPPORT_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_POINT__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "trajectory_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - trajectory_msgs, - msg, - JointTrajectoryPoint -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__JOINT_TRAJECTORY_POINT__TYPE_SUPPORT_H_ diff --git a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__functions.h b/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__functions.h deleted file mode 100755 index 37ece90f4..000000000 --- a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from trajectory_msgs:msg/MultiDOFJointTrajectory.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "trajectory_msgs/msg/multi_dof_joint_trajectory.h" - - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY__FUNCTIONS_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "trajectory_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "trajectory_msgs/msg/detail/multi_dof_joint_trajectory__struct.h" - -/// Initialize msg/MultiDOFJointTrajectory message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * trajectory_msgs__msg__MultiDOFJointTrajectory - * )) before or use - * trajectory_msgs__msg__MultiDOFJointTrajectory__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__MultiDOFJointTrajectory__init(trajectory_msgs__msg__MultiDOFJointTrajectory * msg); - -/// Finalize msg/MultiDOFJointTrajectory message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__MultiDOFJointTrajectory__fini(trajectory_msgs__msg__MultiDOFJointTrajectory * msg); - -/// Create msg/MultiDOFJointTrajectory message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * trajectory_msgs__msg__MultiDOFJointTrajectory__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -trajectory_msgs__msg__MultiDOFJointTrajectory * -trajectory_msgs__msg__MultiDOFJointTrajectory__create(void); - -/// Destroy msg/MultiDOFJointTrajectory message. -/** - * It calls - * trajectory_msgs__msg__MultiDOFJointTrajectory__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__MultiDOFJointTrajectory__destroy(trajectory_msgs__msg__MultiDOFJointTrajectory * msg); - -/// Check for msg/MultiDOFJointTrajectory message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__MultiDOFJointTrajectory__are_equal(const trajectory_msgs__msg__MultiDOFJointTrajectory * lhs, const trajectory_msgs__msg__MultiDOFJointTrajectory * rhs); - -/// Copy a msg/MultiDOFJointTrajectory message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__MultiDOFJointTrajectory__copy( - const trajectory_msgs__msg__MultiDOFJointTrajectory * input, - trajectory_msgs__msg__MultiDOFJointTrajectory * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_type_hash_t * -trajectory_msgs__msg__MultiDOFJointTrajectory__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_runtime_c__type_description__TypeDescription * -trajectory_msgs__msg__MultiDOFJointTrajectory__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_runtime_c__type_description__TypeSource * -trajectory_msgs__msg__MultiDOFJointTrajectory__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -trajectory_msgs__msg__MultiDOFJointTrajectory__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MultiDOFJointTrajectory messages. -/** - * It allocates the memory for the number of elements and calls - * trajectory_msgs__msg__MultiDOFJointTrajectory__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence__init(trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence * array, size_t size); - -/// Finalize array of msg/MultiDOFJointTrajectory messages. -/** - * It calls - * trajectory_msgs__msg__MultiDOFJointTrajectory__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence__fini(trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence * array); - -/// Create array of msg/MultiDOFJointTrajectory messages. -/** - * It allocates the memory for the array and calls - * trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence * -trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence__create(size_t size); - -/// Destroy array of msg/MultiDOFJointTrajectory messages. -/** - * It calls - * trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence__destroy(trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence * array); - -/// Check for msg/MultiDOFJointTrajectory message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence__are_equal(const trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence * lhs, const trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence * rhs); - -/// Copy an array of msg/MultiDOFJointTrajectory messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence__copy( - const trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence * input, - trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY__FUNCTIONS_H_ diff --git a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__rosidl_typesupport_introspection_c.h b/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 4d34a3138..000000000 --- a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from trajectory_msgs:msg/MultiDOFJointTrajectory.idl -// generated code does not contain a copyright notice - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "trajectory_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_trajectory_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, trajectory_msgs, msg, MultiDOFJointTrajectory)(); - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__rosidl_typesupport_microxrcedds_c.h b/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 1e8e46da3..000000000 --- a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from trajectory_msgs:msg/MultiDOFJointTrajectory.idl -// generated code does not contain a copyright notice -#ifndef TRAJECTORY_MSGS__MSG__MULTI_DOF_JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TRAJECTORY_MSGS__MSG__MULTI_DOF_JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "trajectory_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs -size_t get_serialized_size_trajectory_msgs__msg__MultiDOFJointTrajectory( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs -size_t max_serialized_size_trajectory_msgs__msg__MultiDOFJointTrajectory( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, trajectory_msgs, msg, MultiDOFJointTrajectory)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TRAJECTORY_MSGS__MSG__MULTI_DOF_JOINT_TRAJECTORY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__struct.h b/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__struct.h deleted file mode 100755 index 76f836da6..000000000 --- a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__struct.h +++ /dev/null @@ -1,59 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from trajectory_msgs:msg/MultiDOFJointTrajectory.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "trajectory_msgs/msg/multi_dof_joint_trajectory.h" - - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY__STRUCT_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'joint_names' -#include "rosidl_runtime_c/string.h" -// Member 'points' -#include "trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__struct.h" - -/// Struct defined in msg/MultiDOFJointTrajectory in the package trajectory_msgs. -/** - * The header is used to specify the coordinate frame and the reference time for the trajectory durations - */ -typedef struct trajectory_msgs__msg__MultiDOFJointTrajectory -{ - std_msgs__msg__Header header; - /// A representation of a multi-dof joint trajectory (each point is a transformation) - /// Each point along the trajectory will include an array of positions/velocities/accelerations - /// that has the same length as the array of joint names, and has the same order of joints as - /// the joint names array. - rosidl_runtime_c__String__Sequence joint_names; - trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence points; -} trajectory_msgs__msg__MultiDOFJointTrajectory; - -// Struct for a sequence of trajectory_msgs__msg__MultiDOFJointTrajectory. -typedef struct trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence -{ - trajectory_msgs__msg__MultiDOFJointTrajectory * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} trajectory_msgs__msg__MultiDOFJointTrajectory__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY__STRUCT_H_ diff --git a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__type_support.h b/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__type_support.h deleted file mode 100755 index 11d12d1f7..000000000 --- a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from trajectory_msgs:msg/MultiDOFJointTrajectory.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "trajectory_msgs/msg/multi_dof_joint_trajectory.h" - - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY__TYPE_SUPPORT_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "trajectory_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - trajectory_msgs, - msg, - MultiDOFJointTrajectory -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY__TYPE_SUPPORT_H_ diff --git a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__functions.h b/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__functions.h deleted file mode 100755 index 7e0b6229b..000000000 --- a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from trajectory_msgs:msg/MultiDOFJointTrajectoryPoint.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "trajectory_msgs/msg/multi_dof_joint_trajectory_point.h" - - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY_POINT__FUNCTIONS_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY_POINT__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "trajectory_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__struct.h" - -/// Initialize msg/MultiDOFJointTrajectoryPoint message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * trajectory_msgs__msg__MultiDOFJointTrajectoryPoint - * )) before or use - * trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__init(trajectory_msgs__msg__MultiDOFJointTrajectoryPoint * msg); - -/// Finalize msg/MultiDOFJointTrajectoryPoint message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__fini(trajectory_msgs__msg__MultiDOFJointTrajectoryPoint * msg); - -/// Create msg/MultiDOFJointTrajectoryPoint message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint * -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__create(void); - -/// Destroy msg/MultiDOFJointTrajectoryPoint message. -/** - * It calls - * trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__destroy(trajectory_msgs__msg__MultiDOFJointTrajectoryPoint * msg); - -/// Check for msg/MultiDOFJointTrajectoryPoint message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__are_equal(const trajectory_msgs__msg__MultiDOFJointTrajectoryPoint * lhs, const trajectory_msgs__msg__MultiDOFJointTrajectoryPoint * rhs); - -/// Copy a msg/MultiDOFJointTrajectoryPoint message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__copy( - const trajectory_msgs__msg__MultiDOFJointTrajectoryPoint * input, - trajectory_msgs__msg__MultiDOFJointTrajectoryPoint * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_type_hash_t * -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_runtime_c__type_description__TypeDescription * -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_runtime_c__type_description__TypeSource * -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MultiDOFJointTrajectoryPoint messages. -/** - * It allocates the memory for the number of elements and calls - * trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence__init(trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence * array, size_t size); - -/// Finalize array of msg/MultiDOFJointTrajectoryPoint messages. -/** - * It calls - * trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence__fini(trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence * array); - -/// Create array of msg/MultiDOFJointTrajectoryPoint messages. -/** - * It allocates the memory for the array and calls - * trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence * -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence__create(size_t size); - -/// Destroy array of msg/MultiDOFJointTrajectoryPoint messages. -/** - * It calls - * trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -void -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence__destroy(trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence * array); - -/// Check for msg/MultiDOFJointTrajectoryPoint message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence__are_equal(const trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence * lhs, const trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence * rhs); - -/// Copy an array of msg/MultiDOFJointTrajectoryPoint messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -bool -trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence__copy( - const trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence * input, - trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY_POINT__FUNCTIONS_H_ diff --git a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__rosidl_typesupport_introspection_c.h b/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__rosidl_typesupport_introspection_c.h deleted file mode 100755 index d31fd2d85..000000000 --- a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from trajectory_msgs:msg/MultiDOFJointTrajectoryPoint.idl -// generated code does not contain a copyright notice - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY_POINT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY_POINT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "trajectory_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_trajectory_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, trajectory_msgs, msg, MultiDOFJointTrajectoryPoint)(); - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY_POINT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__rosidl_typesupport_microxrcedds_c.h b/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 21cd90768..000000000 --- a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from trajectory_msgs:msg/MultiDOFJointTrajectoryPoint.idl -// generated code does not contain a copyright notice -#ifndef TRAJECTORY_MSGS__MSG__MULTI_DOF_JOINT_TRAJECTORY_POINT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TRAJECTORY_MSGS__MSG__MULTI_DOF_JOINT_TRAJECTORY_POINT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "trajectory_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs -size_t get_serialized_size_trajectory_msgs__msg__MultiDOFJointTrajectoryPoint( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs -size_t max_serialized_size_trajectory_msgs__msg__MultiDOFJointTrajectoryPoint( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, trajectory_msgs, msg, MultiDOFJointTrajectoryPoint)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TRAJECTORY_MSGS__MSG__MULTI_DOF_JOINT_TRAJECTORY_POINT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__struct.h b/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__struct.h deleted file mode 100755 index 119ca571c..000000000 --- a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__struct.h +++ /dev/null @@ -1,60 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from trajectory_msgs:msg/MultiDOFJointTrajectoryPoint.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "trajectory_msgs/msg/multi_dof_joint_trajectory_point.h" - - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY_POINT__STRUCT_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY_POINT__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'transforms' -#include "geometry_msgs/msg/detail/transform__struct.h" -// Member 'velocities' -// Member 'accelerations' -#include "geometry_msgs/msg/detail/twist__struct.h" -// Member 'time_from_start' -#include "builtin_interfaces/msg/detail/duration__struct.h" - -/// Struct defined in msg/MultiDOFJointTrajectoryPoint in the package trajectory_msgs. -/** - * Each multi-dof joint can specify a transform (up to 6 DOF). - */ -typedef struct trajectory_msgs__msg__MultiDOFJointTrajectoryPoint -{ - geometry_msgs__msg__Transform__Sequence transforms; - /// There can be a velocity specified for the origin of the joint. - geometry_msgs__msg__Twist__Sequence velocities; - /// There can be an acceleration specified for the origin of the joint. - geometry_msgs__msg__Twist__Sequence accelerations; - /// Desired time from the trajectory start to arrive at this trajectory point. - builtin_interfaces__msg__Duration time_from_start; -} trajectory_msgs__msg__MultiDOFJointTrajectoryPoint; - -// Struct for a sequence of trajectory_msgs__msg__MultiDOFJointTrajectoryPoint. -typedef struct trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence -{ - trajectory_msgs__msg__MultiDOFJointTrajectoryPoint * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} trajectory_msgs__msg__MultiDOFJointTrajectoryPoint__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY_POINT__STRUCT_H_ diff --git a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__type_support.h b/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__type_support.h deleted file mode 100755 index 1e19a5c85..000000000 --- a/src/trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from trajectory_msgs:msg/MultiDOFJointTrajectoryPoint.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "trajectory_msgs/msg/multi_dof_joint_trajectory_point.h" - - -#ifndef TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY_POINT__TYPE_SUPPORT_H_ -#define TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY_POINT__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "trajectory_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - trajectory_msgs, - msg, - MultiDOFJointTrajectoryPoint -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__DETAIL__MULTI_DOF_JOINT_TRAJECTORY_POINT__TYPE_SUPPORT_H_ diff --git a/src/trajectory_msgs/msg/joint_trajectory.h b/src/trajectory_msgs/msg/joint_trajectory.h deleted file mode 100755 index d54e9dccf..000000000 --- a/src/trajectory_msgs/msg/joint_trajectory.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from trajectory_msgs:msg/JointTrajectory.idl -// generated code does not contain a copyright notice - -#ifndef TRAJECTORY_MSGS__MSG__JOINT_TRAJECTORY_H_ -#define TRAJECTORY_MSGS__MSG__JOINT_TRAJECTORY_H_ - -#include "trajectory_msgs/msg/detail/joint_trajectory__struct.h" -#include "trajectory_msgs/msg/detail/joint_trajectory__functions.h" -#include "trajectory_msgs/msg/detail/joint_trajectory__type_support.h" - -#endif // TRAJECTORY_MSGS__MSG__JOINT_TRAJECTORY_H_ diff --git a/src/trajectory_msgs/msg/joint_trajectory_point.h b/src/trajectory_msgs/msg/joint_trajectory_point.h deleted file mode 100755 index d581c2674..000000000 --- a/src/trajectory_msgs/msg/joint_trajectory_point.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from trajectory_msgs:msg/JointTrajectoryPoint.idl -// generated code does not contain a copyright notice - -#ifndef TRAJECTORY_MSGS__MSG__JOINT_TRAJECTORY_POINT_H_ -#define TRAJECTORY_MSGS__MSG__JOINT_TRAJECTORY_POINT_H_ - -#include "trajectory_msgs/msg/detail/joint_trajectory_point__struct.h" -#include "trajectory_msgs/msg/detail/joint_trajectory_point__functions.h" -#include "trajectory_msgs/msg/detail/joint_trajectory_point__type_support.h" - -#endif // TRAJECTORY_MSGS__MSG__JOINT_TRAJECTORY_POINT_H_ diff --git a/src/trajectory_msgs/msg/multi_dof_joint_trajectory.h b/src/trajectory_msgs/msg/multi_dof_joint_trajectory.h deleted file mode 100755 index 349df5552..000000000 --- a/src/trajectory_msgs/msg/multi_dof_joint_trajectory.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from trajectory_msgs:msg/MultiDOFJointTrajectory.idl -// generated code does not contain a copyright notice - -#ifndef TRAJECTORY_MSGS__MSG__MULTI_DOF_JOINT_TRAJECTORY_H_ -#define TRAJECTORY_MSGS__MSG__MULTI_DOF_JOINT_TRAJECTORY_H_ - -#include "trajectory_msgs/msg/detail/multi_dof_joint_trajectory__struct.h" -#include "trajectory_msgs/msg/detail/multi_dof_joint_trajectory__functions.h" -#include "trajectory_msgs/msg/detail/multi_dof_joint_trajectory__type_support.h" - -#endif // TRAJECTORY_MSGS__MSG__MULTI_DOF_JOINT_TRAJECTORY_H_ diff --git a/src/trajectory_msgs/msg/multi_dof_joint_trajectory_point.h b/src/trajectory_msgs/msg/multi_dof_joint_trajectory_point.h deleted file mode 100755 index 8045d1a45..000000000 --- a/src/trajectory_msgs/msg/multi_dof_joint_trajectory_point.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from trajectory_msgs:msg/MultiDOFJointTrajectoryPoint.idl -// generated code does not contain a copyright notice - -#ifndef TRAJECTORY_MSGS__MSG__MULTI_DOF_JOINT_TRAJECTORY_POINT_H_ -#define TRAJECTORY_MSGS__MSG__MULTI_DOF_JOINT_TRAJECTORY_POINT_H_ - -#include "trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__struct.h" -#include "trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__functions.h" -#include "trajectory_msgs/msg/detail/multi_dof_joint_trajectory_point__type_support.h" - -#endif // TRAJECTORY_MSGS__MSG__MULTI_DOF_JOINT_TRAJECTORY_POINT_H_ diff --git a/src/trajectory_msgs/msg/rosidl_generator_c__visibility_control.h b/src/trajectory_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 10ff3cccc..000000000 --- a/src/trajectory_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef TRAJECTORY_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define TRAJECTORY_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_trajectory_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_trajectory_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_trajectory_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_trajectory_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_trajectory_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs ROSIDL_GENERATOR_C_EXPORT_trajectory_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs ROSIDL_GENERATOR_C_IMPORT_trajectory_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_trajectory_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_trajectory_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_trajectory_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/trajectory_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/trajectory_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 6abf16e47..000000000 --- a/src/trajectory_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef TRAJECTORY_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define TRAJECTORY_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_trajectory_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_trajectory_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_trajectory_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_trajectory_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_trajectory_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_trajectory_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_trajectory_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_trajectory_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_trajectory_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_trajectory_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_trajectory_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_trajectory_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_trajectory_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/trajectory_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/trajectory_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 7c1661c35..000000000 --- a/src/trajectory_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef TRAJECTORY_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define TRAJECTORY_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_trajectory_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_trajectory_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_trajectory_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_trajectory_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_trajectory_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_trajectory_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_trajectory_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_trajectory_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_trajectory_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_trajectory_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TRAJECTORY_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/type_description_interfaces/msg/detail/field__functions.h b/src/type_description_interfaces/msg/detail/field__functions.h deleted file mode 100755 index 4e9090f79..000000000 --- a/src/type_description_interfaces/msg/detail/field__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from type_description_interfaces:msg/Field.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/field.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD__FUNCTIONS_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "type_description_interfaces/msg/detail/field__struct.h" - -/// Initialize msg/Field message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * type_description_interfaces__msg__Field - * )) before or use - * type_description_interfaces__msg__Field__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__Field__init(type_description_interfaces__msg__Field * msg); - -/// Finalize msg/Field message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__Field__fini(type_description_interfaces__msg__Field * msg); - -/// Create msg/Field message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * type_description_interfaces__msg__Field__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__msg__Field * -type_description_interfaces__msg__Field__create(void); - -/// Destroy msg/Field message. -/** - * It calls - * type_description_interfaces__msg__Field__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__Field__destroy(type_description_interfaces__msg__Field * msg); - -/// Check for msg/Field message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__Field__are_equal(const type_description_interfaces__msg__Field * lhs, const type_description_interfaces__msg__Field * rhs); - -/// Copy a msg/Field message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__Field__copy( - const type_description_interfaces__msg__Field * input, - type_description_interfaces__msg__Field * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_type_hash_t * -type_description_interfaces__msg__Field__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -type_description_interfaces__msg__Field__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource * -type_description_interfaces__msg__Field__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -type_description_interfaces__msg__Field__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Field messages. -/** - * It allocates the memory for the number of elements and calls - * type_description_interfaces__msg__Field__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__Field__Sequence__init(type_description_interfaces__msg__Field__Sequence * array, size_t size); - -/// Finalize array of msg/Field messages. -/** - * It calls - * type_description_interfaces__msg__Field__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__Field__Sequence__fini(type_description_interfaces__msg__Field__Sequence * array); - -/// Create array of msg/Field messages. -/** - * It allocates the memory for the array and calls - * type_description_interfaces__msg__Field__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__msg__Field__Sequence * -type_description_interfaces__msg__Field__Sequence__create(size_t size); - -/// Destroy array of msg/Field messages. -/** - * It calls - * type_description_interfaces__msg__Field__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__Field__Sequence__destroy(type_description_interfaces__msg__Field__Sequence * array); - -/// Check for msg/Field message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__Field__Sequence__are_equal(const type_description_interfaces__msg__Field__Sequence * lhs, const type_description_interfaces__msg__Field__Sequence * rhs); - -/// Copy an array of msg/Field messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__Field__Sequence__copy( - const type_description_interfaces__msg__Field__Sequence * input, - type_description_interfaces__msg__Field__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD__FUNCTIONS_H_ diff --git a/src/type_description_interfaces/msg/detail/field__rosidl_typesupport_introspection_c.h b/src/type_description_interfaces/msg/detail/field__rosidl_typesupport_introspection_c.h deleted file mode 100755 index f150fee06..000000000 --- a/src/type_description_interfaces/msg/detail/field__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from type_description_interfaces:msg/Field.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, type_description_interfaces, msg, Field)(); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/type_description_interfaces/msg/detail/field__rosidl_typesupport_microxrcedds_c.h b/src/type_description_interfaces/msg/detail/field__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index dfea30238..000000000 --- a/src/type_description_interfaces/msg/detail/field__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from type_description_interfaces:msg/Field.idl -// generated code does not contain a copyright notice -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__FIELD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__FIELD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t get_serialized_size_type_description_interfaces__msg__Field( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t max_serialized_size_type_description_interfaces__msg__Field( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, type_description_interfaces, msg, Field)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__FIELD__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/type_description_interfaces/msg/detail/field__struct.h b/src/type_description_interfaces/msg/detail/field__struct.h deleted file mode 100755 index 5eaa070c8..000000000 --- a/src/type_description_interfaces/msg/detail/field__struct.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from type_description_interfaces:msg/Field.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/field.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD__STRUCT_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'name' -// Member 'default_value' -#include "rosidl_runtime_c/string.h" -// Member 'type' -#include "type_description_interfaces/msg/detail/field_type__struct.h" - -/// Struct defined in msg/Field in the package type_description_interfaces. -/** - * Represents a single field in a type. - */ -typedef struct type_description_interfaces__msg__Field -{ - /// Name of the field. - rosidl_runtime_c__String name; - /// Type of the field, including details about the type like length, nested name, etc. - type_description_interfaces__msg__FieldType type; - /// Literal default value of the field as a string, as it appeared in the original - /// message description file, whether that be .msg/.srv/.action or .idl. - rosidl_runtime_c__String default_value; -} type_description_interfaces__msg__Field; - -// Struct for a sequence of type_description_interfaces__msg__Field. -typedef struct type_description_interfaces__msg__Field__Sequence -{ - type_description_interfaces__msg__Field * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} type_description_interfaces__msg__Field__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD__STRUCT_H_ diff --git a/src/type_description_interfaces/msg/detail/field__type_support.h b/src/type_description_interfaces/msg/detail/field__type_support.h deleted file mode 100755 index 90b7c5d27..000000000 --- a/src/type_description_interfaces/msg/detail/field__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from type_description_interfaces:msg/Field.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/field.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD__TYPE_SUPPORT_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - type_description_interfaces, - msg, - Field -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD__TYPE_SUPPORT_H_ diff --git a/src/type_description_interfaces/msg/detail/field_type__functions.h b/src/type_description_interfaces/msg/detail/field_type__functions.h deleted file mode 100755 index 709a361a5..000000000 --- a/src/type_description_interfaces/msg/detail/field_type__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from type_description_interfaces:msg/FieldType.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/field_type.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD_TYPE__FUNCTIONS_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD_TYPE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "type_description_interfaces/msg/detail/field_type__struct.h" - -/// Initialize msg/FieldType message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * type_description_interfaces__msg__FieldType - * )) before or use - * type_description_interfaces__msg__FieldType__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__FieldType__init(type_description_interfaces__msg__FieldType * msg); - -/// Finalize msg/FieldType message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__FieldType__fini(type_description_interfaces__msg__FieldType * msg); - -/// Create msg/FieldType message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * type_description_interfaces__msg__FieldType__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__msg__FieldType * -type_description_interfaces__msg__FieldType__create(void); - -/// Destroy msg/FieldType message. -/** - * It calls - * type_description_interfaces__msg__FieldType__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__FieldType__destroy(type_description_interfaces__msg__FieldType * msg); - -/// Check for msg/FieldType message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__FieldType__are_equal(const type_description_interfaces__msg__FieldType * lhs, const type_description_interfaces__msg__FieldType * rhs); - -/// Copy a msg/FieldType message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__FieldType__copy( - const type_description_interfaces__msg__FieldType * input, - type_description_interfaces__msg__FieldType * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_type_hash_t * -type_description_interfaces__msg__FieldType__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -type_description_interfaces__msg__FieldType__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource * -type_description_interfaces__msg__FieldType__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -type_description_interfaces__msg__FieldType__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/FieldType messages. -/** - * It allocates the memory for the number of elements and calls - * type_description_interfaces__msg__FieldType__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__FieldType__Sequence__init(type_description_interfaces__msg__FieldType__Sequence * array, size_t size); - -/// Finalize array of msg/FieldType messages. -/** - * It calls - * type_description_interfaces__msg__FieldType__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__FieldType__Sequence__fini(type_description_interfaces__msg__FieldType__Sequence * array); - -/// Create array of msg/FieldType messages. -/** - * It allocates the memory for the array and calls - * type_description_interfaces__msg__FieldType__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__msg__FieldType__Sequence * -type_description_interfaces__msg__FieldType__Sequence__create(size_t size); - -/// Destroy array of msg/FieldType messages. -/** - * It calls - * type_description_interfaces__msg__FieldType__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__FieldType__Sequence__destroy(type_description_interfaces__msg__FieldType__Sequence * array); - -/// Check for msg/FieldType message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__FieldType__Sequence__are_equal(const type_description_interfaces__msg__FieldType__Sequence * lhs, const type_description_interfaces__msg__FieldType__Sequence * rhs); - -/// Copy an array of msg/FieldType messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__FieldType__Sequence__copy( - const type_description_interfaces__msg__FieldType__Sequence * input, - type_description_interfaces__msg__FieldType__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD_TYPE__FUNCTIONS_H_ diff --git a/src/type_description_interfaces/msg/detail/field_type__rosidl_typesupport_introspection_c.h b/src/type_description_interfaces/msg/detail/field_type__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 9b73698e0..000000000 --- a/src/type_description_interfaces/msg/detail/field_type__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from type_description_interfaces:msg/FieldType.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD_TYPE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD_TYPE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, type_description_interfaces, msg, FieldType)(); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD_TYPE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/type_description_interfaces/msg/detail/field_type__rosidl_typesupport_microxrcedds_c.h b/src/type_description_interfaces/msg/detail/field_type__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a6ac37340..000000000 --- a/src/type_description_interfaces/msg/detail/field_type__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from type_description_interfaces:msg/FieldType.idl -// generated code does not contain a copyright notice -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__FIELD_TYPE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__FIELD_TYPE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t get_serialized_size_type_description_interfaces__msg__FieldType( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t max_serialized_size_type_description_interfaces__msg__FieldType( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, type_description_interfaces, msg, FieldType)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__FIELD_TYPE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/type_description_interfaces/msg/detail/field_type__struct.h b/src/type_description_interfaces/msg/detail/field_type__struct.h deleted file mode 100755 index 87d1cff7e..000000000 --- a/src/type_description_interfaces/msg/detail/field_type__struct.h +++ /dev/null @@ -1,662 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from type_description_interfaces:msg/FieldType.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/field_type.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD_TYPE__STRUCT_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD_TYPE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'FIELD_TYPE_NOT_SET'. -/** - * A constant for each type supported according to: - * http://design.ros2.org/articles/legacy_interface_definition.html - * and: - * http://design.ros2.org/articles/idl_interface_definition.html - * Order is loosely coupled to the order of appearance in the IDL 4.2 spec: - * https://www.omg.org/spec/IDL/4.2 - * Layout of constants across the 0-255 decimal values in the uint8: - * - * - 000 : Reserved for "not set" - * - 001-048: Primitive types, strings, and reserved space for future primitive types - * - 049-096: Fixed sized array of primitive and string types - * - 097-144: Bounded Sequences of primitive and string types - * - 145-192: Unbounded Sequences of primitive and string types - * - 193-255: Reserved space for future array/sequence-like types - */ -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_NOT_SET = 0 -}; - -/// Constant 'FIELD_TYPE_NESTED_TYPE'. -/** - * Nested type defined in other .msg/.idl files. - */ -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_NESTED_TYPE = 1 -}; - -/// Constant 'FIELD_TYPE_INT8'. -/** - * Integer Types - */ -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT8 = 2 -}; - -/// Constant 'FIELD_TYPE_UINT8'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT8 = 3 -}; - -/// Constant 'FIELD_TYPE_INT16'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT16 = 4 -}; - -/// Constant 'FIELD_TYPE_UINT16'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT16 = 5 -}; - -/// Constant 'FIELD_TYPE_INT32'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT32 = 6 -}; - -/// Constant 'FIELD_TYPE_UINT32'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT32 = 7 -}; - -/// Constant 'FIELD_TYPE_INT64'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT64 = 8 -}; - -/// Constant 'FIELD_TYPE_UINT64'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT64 = 9 -}; - -/// Constant 'FIELD_TYPE_FLOAT'. -/** - * Floating-Point Types - */ -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_FLOAT = 10 -}; - -/// Constant 'FIELD_TYPE_DOUBLE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_DOUBLE = 11 -}; - -/// Constant 'FIELD_TYPE_LONG_DOUBLE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_LONG_DOUBLE = 12 -}; - -/// Constant 'FIELD_TYPE_CHAR'. -/** - * Char and WChar Types - */ -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_CHAR = 13 -}; - -/// Constant 'FIELD_TYPE_WCHAR'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_WCHAR = 14 -}; - -/// Constant 'FIELD_TYPE_BOOLEAN'. -/** - * Boolean Type - */ -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BOOLEAN = 15 -}; - -/// Constant 'FIELD_TYPE_BYTE'. -/** - * Byte/Octet Type - */ -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BYTE = 16 -}; - -/// Constant 'FIELD_TYPE_STRING'. -/** - * String Types - */ -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_STRING = 17 -}; - -/// Constant 'FIELD_TYPE_WSTRING'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_WSTRING = 18 -}; - -/// Constant 'FIELD_TYPE_FIXED_STRING'. -/** - * Fixed String Types - */ -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_FIXED_STRING = 19 -}; - -/// Constant 'FIELD_TYPE_FIXED_WSTRING'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_FIXED_WSTRING = 20 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_STRING'. -/** - * Bounded String Types - */ -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BOUNDED_STRING = 21 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_WSTRING'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BOUNDED_WSTRING = 22 -}; - -/// Constant 'FIELD_TYPE_NESTED_TYPE_ARRAY'. -/** - * Fixed Sized Array Types - */ -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_NESTED_TYPE_ARRAY = 49 -}; - -/// Constant 'FIELD_TYPE_INT8_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT8_ARRAY = 50 -}; - -/// Constant 'FIELD_TYPE_UINT8_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT8_ARRAY = 51 -}; - -/// Constant 'FIELD_TYPE_INT16_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT16_ARRAY = 52 -}; - -/// Constant 'FIELD_TYPE_UINT16_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT16_ARRAY = 53 -}; - -/// Constant 'FIELD_TYPE_INT32_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT32_ARRAY = 54 -}; - -/// Constant 'FIELD_TYPE_UINT32_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT32_ARRAY = 55 -}; - -/// Constant 'FIELD_TYPE_INT64_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT64_ARRAY = 56 -}; - -/// Constant 'FIELD_TYPE_UINT64_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT64_ARRAY = 57 -}; - -/// Constant 'FIELD_TYPE_FLOAT_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_FLOAT_ARRAY = 58 -}; - -/// Constant 'FIELD_TYPE_DOUBLE_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_DOUBLE_ARRAY = 59 -}; - -/// Constant 'FIELD_TYPE_LONG_DOUBLE_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_LONG_DOUBLE_ARRAY = 60 -}; - -/// Constant 'FIELD_TYPE_CHAR_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_CHAR_ARRAY = 61 -}; - -/// Constant 'FIELD_TYPE_WCHAR_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_WCHAR_ARRAY = 62 -}; - -/// Constant 'FIELD_TYPE_BOOLEAN_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BOOLEAN_ARRAY = 63 -}; - -/// Constant 'FIELD_TYPE_BYTE_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BYTE_ARRAY = 64 -}; - -/// Constant 'FIELD_TYPE_STRING_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_STRING_ARRAY = 65 -}; - -/// Constant 'FIELD_TYPE_WSTRING_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_WSTRING_ARRAY = 66 -}; - -/// Constant 'FIELD_TYPE_FIXED_STRING_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_FIXED_STRING_ARRAY = 67 -}; - -/// Constant 'FIELD_TYPE_FIXED_WSTRING_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_FIXED_WSTRING_ARRAY = 68 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_STRING_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BOUNDED_STRING_ARRAY = 69 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_WSTRING_ARRAY'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BOUNDED_WSTRING_ARRAY = 70 -}; - -/// Constant 'FIELD_TYPE_NESTED_TYPE_BOUNDED_SEQUENCE'. -/** - * Bounded Sequence Types - */ -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_NESTED_TYPE_BOUNDED_SEQUENCE = 97 -}; - -/// Constant 'FIELD_TYPE_INT8_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT8_BOUNDED_SEQUENCE = 98 -}; - -/// Constant 'FIELD_TYPE_UINT8_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT8_BOUNDED_SEQUENCE = 99 -}; - -/// Constant 'FIELD_TYPE_INT16_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT16_BOUNDED_SEQUENCE = 100 -}; - -/// Constant 'FIELD_TYPE_UINT16_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT16_BOUNDED_SEQUENCE = 101 -}; - -/// Constant 'FIELD_TYPE_INT32_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT32_BOUNDED_SEQUENCE = 102 -}; - -/// Constant 'FIELD_TYPE_UINT32_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT32_BOUNDED_SEQUENCE = 103 -}; - -/// Constant 'FIELD_TYPE_INT64_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT64_BOUNDED_SEQUENCE = 104 -}; - -/// Constant 'FIELD_TYPE_UINT64_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT64_BOUNDED_SEQUENCE = 105 -}; - -/// Constant 'FIELD_TYPE_FLOAT_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_FLOAT_BOUNDED_SEQUENCE = 106 -}; - -/// Constant 'FIELD_TYPE_DOUBLE_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_DOUBLE_BOUNDED_SEQUENCE = 107 -}; - -/// Constant 'FIELD_TYPE_LONG_DOUBLE_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_LONG_DOUBLE_BOUNDED_SEQUENCE = 108 -}; - -/// Constant 'FIELD_TYPE_CHAR_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_CHAR_BOUNDED_SEQUENCE = 109 -}; - -/// Constant 'FIELD_TYPE_WCHAR_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_WCHAR_BOUNDED_SEQUENCE = 110 -}; - -/// Constant 'FIELD_TYPE_BOOLEAN_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BOOLEAN_BOUNDED_SEQUENCE = 111 -}; - -/// Constant 'FIELD_TYPE_BYTE_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BYTE_BOUNDED_SEQUENCE = 112 -}; - -/// Constant 'FIELD_TYPE_STRING_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_STRING_BOUNDED_SEQUENCE = 113 -}; - -/// Constant 'FIELD_TYPE_WSTRING_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_WSTRING_BOUNDED_SEQUENCE = 114 -}; - -/// Constant 'FIELD_TYPE_FIXED_STRING_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_FIXED_STRING_BOUNDED_SEQUENCE = 115 -}; - -/// Constant 'FIELD_TYPE_FIXED_WSTRING_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_FIXED_WSTRING_BOUNDED_SEQUENCE = 116 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_STRING_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BOUNDED_STRING_BOUNDED_SEQUENCE = 117 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_WSTRING_BOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BOUNDED_WSTRING_BOUNDED_SEQUENCE = 118 -}; - -/// Constant 'FIELD_TYPE_NESTED_TYPE_UNBOUNDED_SEQUENCE'. -/** - * Unbounded Sequence Types - */ -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_NESTED_TYPE_UNBOUNDED_SEQUENCE = 145 -}; - -/// Constant 'FIELD_TYPE_INT8_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT8_UNBOUNDED_SEQUENCE = 146 -}; - -/// Constant 'FIELD_TYPE_UINT8_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT8_UNBOUNDED_SEQUENCE = 147 -}; - -/// Constant 'FIELD_TYPE_INT16_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT16_UNBOUNDED_SEQUENCE = 148 -}; - -/// Constant 'FIELD_TYPE_UINT16_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT16_UNBOUNDED_SEQUENCE = 149 -}; - -/// Constant 'FIELD_TYPE_INT32_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT32_UNBOUNDED_SEQUENCE = 150 -}; - -/// Constant 'FIELD_TYPE_UINT32_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT32_UNBOUNDED_SEQUENCE = 151 -}; - -/// Constant 'FIELD_TYPE_INT64_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_INT64_UNBOUNDED_SEQUENCE = 152 -}; - -/// Constant 'FIELD_TYPE_UINT64_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_UINT64_UNBOUNDED_SEQUENCE = 153 -}; - -/// Constant 'FIELD_TYPE_FLOAT_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_FLOAT_UNBOUNDED_SEQUENCE = 154 -}; - -/// Constant 'FIELD_TYPE_DOUBLE_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_DOUBLE_UNBOUNDED_SEQUENCE = 155 -}; - -/// Constant 'FIELD_TYPE_LONG_DOUBLE_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_LONG_DOUBLE_UNBOUNDED_SEQUENCE = 156 -}; - -/// Constant 'FIELD_TYPE_CHAR_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_CHAR_UNBOUNDED_SEQUENCE = 157 -}; - -/// Constant 'FIELD_TYPE_WCHAR_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_WCHAR_UNBOUNDED_SEQUENCE = 158 -}; - -/// Constant 'FIELD_TYPE_BOOLEAN_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BOOLEAN_UNBOUNDED_SEQUENCE = 159 -}; - -/// Constant 'FIELD_TYPE_BYTE_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BYTE_UNBOUNDED_SEQUENCE = 160 -}; - -/// Constant 'FIELD_TYPE_STRING_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_STRING_UNBOUNDED_SEQUENCE = 161 -}; - -/// Constant 'FIELD_TYPE_WSTRING_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_WSTRING_UNBOUNDED_SEQUENCE = 162 -}; - -/// Constant 'FIELD_TYPE_FIXED_STRING_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_FIXED_STRING_UNBOUNDED_SEQUENCE = 163 -}; - -/// Constant 'FIELD_TYPE_FIXED_WSTRING_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_FIXED_WSTRING_UNBOUNDED_SEQUENCE = 164 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_STRING_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BOUNDED_STRING_UNBOUNDED_SEQUENCE = 165 -}; - -/// Constant 'FIELD_TYPE_BOUNDED_WSTRING_UNBOUNDED_SEQUENCE'. -enum -{ - type_description_interfaces__msg__FieldType__FIELD_TYPE_BOUNDED_WSTRING_UNBOUNDED_SEQUENCE = 166 -}; - -// Include directives for member types -// Member 'nested_type_name' -#include "rosidl_runtime_c/string.h" - -// constants for array fields with an upper bound -// nested_type_name -enum -{ - type_description_interfaces__msg__FieldType__nested_type_name__MAX_STRING_SIZE = 255 -}; - -/// Struct defined in msg/FieldType in the package type_description_interfaces. -/** - * Represents the type of a field and related meta-data. - */ -typedef struct type_description_interfaces__msg__FieldType -{ - /// Identifying number for the type of the field, using one of the above constants. - uint8_t type_id; - /// Only used when the type is an array or a bounded sequence. - /// In the case of an array, this is the fixed capacity of the array. - /// In the case of a bounded sequence, this is the maximum capacity of the sequence. - /// In all other cases this field is unused. - uint64_t capacity; - /// Only used when the type is a fixed or bounded string/wstring, or a array/sequence of those. - /// In the case of a fixed string/wstring, it is the fixed length of the string. - /// In the case of a bounded string/wstring, it is the maximum capacity of the string. - /// In the case of an array/sequence of fixed string/wstring, it is the fixed length of the strings. - /// In the case of an array/sequence of bounded string/wstring, it is the maximum capacity of the strings. - /// It is not currently possible to have different string capacities per element in the array/sequence. - uint64_t string_capacity; - /// Only used when the type is a nested type or array/sequence of nested types. - /// This is limited to 255 characters. - /// TODO(wjwwood): this 255 character limit was chosen due to this being the limit - /// for DDSI-RTPS based middlewares, which is the most commonly used right now. - /// We lack a ROS 2 specific limit in our design documents, but we should update - /// this and/or link to the design doc when that is available. - rosidl_runtime_c__String nested_type_name; -} type_description_interfaces__msg__FieldType; - -// Struct for a sequence of type_description_interfaces__msg__FieldType. -typedef struct type_description_interfaces__msg__FieldType__Sequence -{ - type_description_interfaces__msg__FieldType * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} type_description_interfaces__msg__FieldType__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD_TYPE__STRUCT_H_ diff --git a/src/type_description_interfaces/msg/detail/field_type__type_support.h b/src/type_description_interfaces/msg/detail/field_type__type_support.h deleted file mode 100755 index 829f484db..000000000 --- a/src/type_description_interfaces/msg/detail/field_type__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from type_description_interfaces:msg/FieldType.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/field_type.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD_TYPE__TYPE_SUPPORT_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD_TYPE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - type_description_interfaces, - msg, - FieldType -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__FIELD_TYPE__TYPE_SUPPORT_H_ diff --git a/src/type_description_interfaces/msg/detail/individual_type_description__functions.h b/src/type_description_interfaces/msg/detail/individual_type_description__functions.h deleted file mode 100755 index 7ff36522a..000000000 --- a/src/type_description_interfaces/msg/detail/individual_type_description__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from type_description_interfaces:msg/IndividualTypeDescription.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/individual_type_description.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__INDIVIDUAL_TYPE_DESCRIPTION__FUNCTIONS_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__INDIVIDUAL_TYPE_DESCRIPTION__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "type_description_interfaces/msg/detail/individual_type_description__struct.h" - -/// Initialize msg/IndividualTypeDescription message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * type_description_interfaces__msg__IndividualTypeDescription - * )) before or use - * type_description_interfaces__msg__IndividualTypeDescription__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__IndividualTypeDescription__init(type_description_interfaces__msg__IndividualTypeDescription * msg); - -/// Finalize msg/IndividualTypeDescription message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__IndividualTypeDescription__fini(type_description_interfaces__msg__IndividualTypeDescription * msg); - -/// Create msg/IndividualTypeDescription message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * type_description_interfaces__msg__IndividualTypeDescription__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__msg__IndividualTypeDescription * -type_description_interfaces__msg__IndividualTypeDescription__create(void); - -/// Destroy msg/IndividualTypeDescription message. -/** - * It calls - * type_description_interfaces__msg__IndividualTypeDescription__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__IndividualTypeDescription__destroy(type_description_interfaces__msg__IndividualTypeDescription * msg); - -/// Check for msg/IndividualTypeDescription message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__IndividualTypeDescription__are_equal(const type_description_interfaces__msg__IndividualTypeDescription * lhs, const type_description_interfaces__msg__IndividualTypeDescription * rhs); - -/// Copy a msg/IndividualTypeDescription message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__IndividualTypeDescription__copy( - const type_description_interfaces__msg__IndividualTypeDescription * input, - type_description_interfaces__msg__IndividualTypeDescription * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_type_hash_t * -type_description_interfaces__msg__IndividualTypeDescription__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -type_description_interfaces__msg__IndividualTypeDescription__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource * -type_description_interfaces__msg__IndividualTypeDescription__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -type_description_interfaces__msg__IndividualTypeDescription__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/IndividualTypeDescription messages. -/** - * It allocates the memory for the number of elements and calls - * type_description_interfaces__msg__IndividualTypeDescription__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__IndividualTypeDescription__Sequence__init(type_description_interfaces__msg__IndividualTypeDescription__Sequence * array, size_t size); - -/// Finalize array of msg/IndividualTypeDescription messages. -/** - * It calls - * type_description_interfaces__msg__IndividualTypeDescription__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__IndividualTypeDescription__Sequence__fini(type_description_interfaces__msg__IndividualTypeDescription__Sequence * array); - -/// Create array of msg/IndividualTypeDescription messages. -/** - * It allocates the memory for the array and calls - * type_description_interfaces__msg__IndividualTypeDescription__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__msg__IndividualTypeDescription__Sequence * -type_description_interfaces__msg__IndividualTypeDescription__Sequence__create(size_t size); - -/// Destroy array of msg/IndividualTypeDescription messages. -/** - * It calls - * type_description_interfaces__msg__IndividualTypeDescription__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__IndividualTypeDescription__Sequence__destroy(type_description_interfaces__msg__IndividualTypeDescription__Sequence * array); - -/// Check for msg/IndividualTypeDescription message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__IndividualTypeDescription__Sequence__are_equal(const type_description_interfaces__msg__IndividualTypeDescription__Sequence * lhs, const type_description_interfaces__msg__IndividualTypeDescription__Sequence * rhs); - -/// Copy an array of msg/IndividualTypeDescription messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__IndividualTypeDescription__Sequence__copy( - const type_description_interfaces__msg__IndividualTypeDescription__Sequence * input, - type_description_interfaces__msg__IndividualTypeDescription__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__INDIVIDUAL_TYPE_DESCRIPTION__FUNCTIONS_H_ diff --git a/src/type_description_interfaces/msg/detail/individual_type_description__rosidl_typesupport_introspection_c.h b/src/type_description_interfaces/msg/detail/individual_type_description__rosidl_typesupport_introspection_c.h deleted file mode 100755 index a1321998d..000000000 --- a/src/type_description_interfaces/msg/detail/individual_type_description__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from type_description_interfaces:msg/IndividualTypeDescription.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__INDIVIDUAL_TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__INDIVIDUAL_TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, type_description_interfaces, msg, IndividualTypeDescription)(); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__INDIVIDUAL_TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/type_description_interfaces/msg/detail/individual_type_description__rosidl_typesupport_microxrcedds_c.h b/src/type_description_interfaces/msg/detail/individual_type_description__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index f0a564b22..000000000 --- a/src/type_description_interfaces/msg/detail/individual_type_description__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from type_description_interfaces:msg/IndividualTypeDescription.idl -// generated code does not contain a copyright notice -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__INDIVIDUAL_TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__INDIVIDUAL_TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t get_serialized_size_type_description_interfaces__msg__IndividualTypeDescription( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t max_serialized_size_type_description_interfaces__msg__IndividualTypeDescription( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, type_description_interfaces, msg, IndividualTypeDescription)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__INDIVIDUAL_TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/type_description_interfaces/msg/detail/individual_type_description__struct.h b/src/type_description_interfaces/msg/detail/individual_type_description__struct.h deleted file mode 100755 index f56c5eecc..000000000 --- a/src/type_description_interfaces/msg/detail/individual_type_description__struct.h +++ /dev/null @@ -1,66 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from type_description_interfaces:msg/IndividualTypeDescription.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/individual_type_description.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__INDIVIDUAL_TYPE_DESCRIPTION__STRUCT_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__INDIVIDUAL_TYPE_DESCRIPTION__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'type_name' -#include "rosidl_runtime_c/string.h" -// Member 'fields' -#include "type_description_interfaces/msg/detail/field__struct.h" - -// constants for array fields with an upper bound -// type_name -enum -{ - type_description_interfaces__msg__IndividualTypeDescription__type_name__MAX_STRING_SIZE = 255 -}; - -/// Struct defined in msg/IndividualTypeDescription in the package type_description_interfaces. -/** - * Represents a single type, without the types it references, if any. - */ -typedef struct type_description_interfaces__msg__IndividualTypeDescription -{ - /// Name of the type. - /// This is limited to 255 characters. - /// TODO(wjwwood): this 255 character limit was chosen due to this being the limit - /// for DDSI-RTPS based middlewares, which is the most commonly used right now. - /// We lack a ROS 2 specific limit in our design documents, but we should update - /// this and/or link to the design doc when that is available. - rosidl_runtime_c__String type_name; - /// Fields of the type. - type_description_interfaces__msg__Field__Sequence fields; -} type_description_interfaces__msg__IndividualTypeDescription; - -// Struct for a sequence of type_description_interfaces__msg__IndividualTypeDescription. -typedef struct type_description_interfaces__msg__IndividualTypeDescription__Sequence -{ - type_description_interfaces__msg__IndividualTypeDescription * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} type_description_interfaces__msg__IndividualTypeDescription__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__INDIVIDUAL_TYPE_DESCRIPTION__STRUCT_H_ diff --git a/src/type_description_interfaces/msg/detail/individual_type_description__type_support.h b/src/type_description_interfaces/msg/detail/individual_type_description__type_support.h deleted file mode 100755 index f4f4c6f5a..000000000 --- a/src/type_description_interfaces/msg/detail/individual_type_description__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from type_description_interfaces:msg/IndividualTypeDescription.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/individual_type_description.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__INDIVIDUAL_TYPE_DESCRIPTION__TYPE_SUPPORT_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__INDIVIDUAL_TYPE_DESCRIPTION__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - type_description_interfaces, - msg, - IndividualTypeDescription -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__INDIVIDUAL_TYPE_DESCRIPTION__TYPE_SUPPORT_H_ diff --git a/src/type_description_interfaces/msg/detail/key_value__functions.h b/src/type_description_interfaces/msg/detail/key_value__functions.h deleted file mode 100755 index 3e2139ee2..000000000 --- a/src/type_description_interfaces/msg/detail/key_value__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from type_description_interfaces:msg/KeyValue.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/key_value.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__KEY_VALUE__FUNCTIONS_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__KEY_VALUE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "type_description_interfaces/msg/detail/key_value__struct.h" - -/// Initialize msg/KeyValue message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * type_description_interfaces__msg__KeyValue - * )) before or use - * type_description_interfaces__msg__KeyValue__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__KeyValue__init(type_description_interfaces__msg__KeyValue * msg); - -/// Finalize msg/KeyValue message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__KeyValue__fini(type_description_interfaces__msg__KeyValue * msg); - -/// Create msg/KeyValue message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * type_description_interfaces__msg__KeyValue__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__msg__KeyValue * -type_description_interfaces__msg__KeyValue__create(void); - -/// Destroy msg/KeyValue message. -/** - * It calls - * type_description_interfaces__msg__KeyValue__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__KeyValue__destroy(type_description_interfaces__msg__KeyValue * msg); - -/// Check for msg/KeyValue message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__KeyValue__are_equal(const type_description_interfaces__msg__KeyValue * lhs, const type_description_interfaces__msg__KeyValue * rhs); - -/// Copy a msg/KeyValue message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__KeyValue__copy( - const type_description_interfaces__msg__KeyValue * input, - type_description_interfaces__msg__KeyValue * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_type_hash_t * -type_description_interfaces__msg__KeyValue__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -type_description_interfaces__msg__KeyValue__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource * -type_description_interfaces__msg__KeyValue__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -type_description_interfaces__msg__KeyValue__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/KeyValue messages. -/** - * It allocates the memory for the number of elements and calls - * type_description_interfaces__msg__KeyValue__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__KeyValue__Sequence__init(type_description_interfaces__msg__KeyValue__Sequence * array, size_t size); - -/// Finalize array of msg/KeyValue messages. -/** - * It calls - * type_description_interfaces__msg__KeyValue__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__KeyValue__Sequence__fini(type_description_interfaces__msg__KeyValue__Sequence * array); - -/// Create array of msg/KeyValue messages. -/** - * It allocates the memory for the array and calls - * type_description_interfaces__msg__KeyValue__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__msg__KeyValue__Sequence * -type_description_interfaces__msg__KeyValue__Sequence__create(size_t size); - -/// Destroy array of msg/KeyValue messages. -/** - * It calls - * type_description_interfaces__msg__KeyValue__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__KeyValue__Sequence__destroy(type_description_interfaces__msg__KeyValue__Sequence * array); - -/// Check for msg/KeyValue message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__KeyValue__Sequence__are_equal(const type_description_interfaces__msg__KeyValue__Sequence * lhs, const type_description_interfaces__msg__KeyValue__Sequence * rhs); - -/// Copy an array of msg/KeyValue messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__KeyValue__Sequence__copy( - const type_description_interfaces__msg__KeyValue__Sequence * input, - type_description_interfaces__msg__KeyValue__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__KEY_VALUE__FUNCTIONS_H_ diff --git a/src/type_description_interfaces/msg/detail/key_value__rosidl_typesupport_introspection_c.h b/src/type_description_interfaces/msg/detail/key_value__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 262fd2948..000000000 --- a/src/type_description_interfaces/msg/detail/key_value__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from type_description_interfaces:msg/KeyValue.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__KEY_VALUE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__KEY_VALUE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, type_description_interfaces, msg, KeyValue)(); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__KEY_VALUE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/type_description_interfaces/msg/detail/key_value__rosidl_typesupport_microxrcedds_c.h b/src/type_description_interfaces/msg/detail/key_value__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a6f639dfe..000000000 --- a/src/type_description_interfaces/msg/detail/key_value__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from type_description_interfaces:msg/KeyValue.idl -// generated code does not contain a copyright notice -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__KEY_VALUE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__KEY_VALUE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t get_serialized_size_type_description_interfaces__msg__KeyValue( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t max_serialized_size_type_description_interfaces__msg__KeyValue( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, type_description_interfaces, msg, KeyValue)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__KEY_VALUE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/type_description_interfaces/msg/detail/key_value__struct.h b/src/type_description_interfaces/msg/detail/key_value__struct.h deleted file mode 100755 index 5db9e5b7d..000000000 --- a/src/type_description_interfaces/msg/detail/key_value__struct.h +++ /dev/null @@ -1,51 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from type_description_interfaces:msg/KeyValue.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/key_value.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__KEY_VALUE__STRUCT_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__KEY_VALUE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'key' -// Member 'value' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/KeyValue in the package type_description_interfaces. -/** - * Represents an arbitrary key-value pair for application-specific information. - */ -typedef struct type_description_interfaces__msg__KeyValue -{ - rosidl_runtime_c__String key; - rosidl_runtime_c__String value; -} type_description_interfaces__msg__KeyValue; - -// Struct for a sequence of type_description_interfaces__msg__KeyValue. -typedef struct type_description_interfaces__msg__KeyValue__Sequence -{ - type_description_interfaces__msg__KeyValue * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} type_description_interfaces__msg__KeyValue__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__KEY_VALUE__STRUCT_H_ diff --git a/src/type_description_interfaces/msg/detail/key_value__type_support.h b/src/type_description_interfaces/msg/detail/key_value__type_support.h deleted file mode 100755 index ecaf370f4..000000000 --- a/src/type_description_interfaces/msg/detail/key_value__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from type_description_interfaces:msg/KeyValue.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/key_value.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__KEY_VALUE__TYPE_SUPPORT_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__KEY_VALUE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - type_description_interfaces, - msg, - KeyValue -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__KEY_VALUE__TYPE_SUPPORT_H_ diff --git a/src/type_description_interfaces/msg/detail/type_description__functions.h b/src/type_description_interfaces/msg/detail/type_description__functions.h deleted file mode 100755 index 2d93f7188..000000000 --- a/src/type_description_interfaces/msg/detail/type_description__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from type_description_interfaces:msg/TypeDescription.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/type_description.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_DESCRIPTION__FUNCTIONS_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_DESCRIPTION__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "type_description_interfaces/msg/detail/type_description__struct.h" - -/// Initialize msg/TypeDescription message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * type_description_interfaces__msg__TypeDescription - * )) before or use - * type_description_interfaces__msg__TypeDescription__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__TypeDescription__init(type_description_interfaces__msg__TypeDescription * msg); - -/// Finalize msg/TypeDescription message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__TypeDescription__fini(type_description_interfaces__msg__TypeDescription * msg); - -/// Create msg/TypeDescription message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * type_description_interfaces__msg__TypeDescription__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__msg__TypeDescription * -type_description_interfaces__msg__TypeDescription__create(void); - -/// Destroy msg/TypeDescription message. -/** - * It calls - * type_description_interfaces__msg__TypeDescription__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__TypeDescription__destroy(type_description_interfaces__msg__TypeDescription * msg); - -/// Check for msg/TypeDescription message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__TypeDescription__are_equal(const type_description_interfaces__msg__TypeDescription * lhs, const type_description_interfaces__msg__TypeDescription * rhs); - -/// Copy a msg/TypeDescription message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__TypeDescription__copy( - const type_description_interfaces__msg__TypeDescription * input, - type_description_interfaces__msg__TypeDescription * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_type_hash_t * -type_description_interfaces__msg__TypeDescription__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -type_description_interfaces__msg__TypeDescription__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource * -type_description_interfaces__msg__TypeDescription__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -type_description_interfaces__msg__TypeDescription__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/TypeDescription messages. -/** - * It allocates the memory for the number of elements and calls - * type_description_interfaces__msg__TypeDescription__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__TypeDescription__Sequence__init(type_description_interfaces__msg__TypeDescription__Sequence * array, size_t size); - -/// Finalize array of msg/TypeDescription messages. -/** - * It calls - * type_description_interfaces__msg__TypeDescription__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__TypeDescription__Sequence__fini(type_description_interfaces__msg__TypeDescription__Sequence * array); - -/// Create array of msg/TypeDescription messages. -/** - * It allocates the memory for the array and calls - * type_description_interfaces__msg__TypeDescription__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__msg__TypeDescription__Sequence * -type_description_interfaces__msg__TypeDescription__Sequence__create(size_t size); - -/// Destroy array of msg/TypeDescription messages. -/** - * It calls - * type_description_interfaces__msg__TypeDescription__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__TypeDescription__Sequence__destroy(type_description_interfaces__msg__TypeDescription__Sequence * array); - -/// Check for msg/TypeDescription message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__TypeDescription__Sequence__are_equal(const type_description_interfaces__msg__TypeDescription__Sequence * lhs, const type_description_interfaces__msg__TypeDescription__Sequence * rhs); - -/// Copy an array of msg/TypeDescription messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__TypeDescription__Sequence__copy( - const type_description_interfaces__msg__TypeDescription__Sequence * input, - type_description_interfaces__msg__TypeDescription__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_DESCRIPTION__FUNCTIONS_H_ diff --git a/src/type_description_interfaces/msg/detail/type_description__rosidl_typesupport_introspection_c.h b/src/type_description_interfaces/msg/detail/type_description__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 11a2be792..000000000 --- a/src/type_description_interfaces/msg/detail/type_description__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from type_description_interfaces:msg/TypeDescription.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, type_description_interfaces, msg, TypeDescription)(); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/type_description_interfaces/msg/detail/type_description__rosidl_typesupport_microxrcedds_c.h b/src/type_description_interfaces/msg/detail/type_description__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 9f8f1d4a8..000000000 --- a/src/type_description_interfaces/msg/detail/type_description__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from type_description_interfaces:msg/TypeDescription.idl -// generated code does not contain a copyright notice -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t get_serialized_size_type_description_interfaces__msg__TypeDescription( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t max_serialized_size_type_description_interfaces__msg__TypeDescription( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, type_description_interfaces, msg, TypeDescription)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/type_description_interfaces/msg/detail/type_description__struct.h b/src/type_description_interfaces/msg/detail/type_description__struct.h deleted file mode 100755 index 59bf5e5ad..000000000 --- a/src/type_description_interfaces/msg/detail/type_description__struct.h +++ /dev/null @@ -1,53 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from type_description_interfaces:msg/TypeDescription.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/type_description.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_DESCRIPTION__STRUCT_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_DESCRIPTION__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'type_description' -// Member 'referenced_type_descriptions' -#include "type_description_interfaces/msg/detail/individual_type_description__struct.h" - -/// Struct defined in msg/TypeDescription in the package type_description_interfaces. -/** - * Represents a complete type description, including the type itself as well as the types it references. - */ -typedef struct type_description_interfaces__msg__TypeDescription -{ - /// Description of the type. - type_description_interfaces__msg__IndividualTypeDescription type_description; - /// Descriptions of all referenced types, recursively. - type_description_interfaces__msg__IndividualTypeDescription__Sequence referenced_type_descriptions; -} type_description_interfaces__msg__TypeDescription; - -// Struct for a sequence of type_description_interfaces__msg__TypeDescription. -typedef struct type_description_interfaces__msg__TypeDescription__Sequence -{ - type_description_interfaces__msg__TypeDescription * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} type_description_interfaces__msg__TypeDescription__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_DESCRIPTION__STRUCT_H_ diff --git a/src/type_description_interfaces/msg/detail/type_description__type_support.h b/src/type_description_interfaces/msg/detail/type_description__type_support.h deleted file mode 100755 index 7acf72400..000000000 --- a/src/type_description_interfaces/msg/detail/type_description__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from type_description_interfaces:msg/TypeDescription.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/type_description.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_DESCRIPTION__TYPE_SUPPORT_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_DESCRIPTION__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - type_description_interfaces, - msg, - TypeDescription -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_DESCRIPTION__TYPE_SUPPORT_H_ diff --git a/src/type_description_interfaces/msg/detail/type_source__functions.h b/src/type_description_interfaces/msg/detail/type_source__functions.h deleted file mode 100755 index 018be6b67..000000000 --- a/src/type_description_interfaces/msg/detail/type_source__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from type_description_interfaces:msg/TypeSource.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/type_source.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_SOURCE__FUNCTIONS_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_SOURCE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "type_description_interfaces/msg/detail/type_source__struct.h" - -/// Initialize msg/TypeSource message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * type_description_interfaces__msg__TypeSource - * )) before or use - * type_description_interfaces__msg__TypeSource__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__TypeSource__init(type_description_interfaces__msg__TypeSource * msg); - -/// Finalize msg/TypeSource message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__TypeSource__fini(type_description_interfaces__msg__TypeSource * msg); - -/// Create msg/TypeSource message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * type_description_interfaces__msg__TypeSource__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__msg__TypeSource * -type_description_interfaces__msg__TypeSource__create(void); - -/// Destroy msg/TypeSource message. -/** - * It calls - * type_description_interfaces__msg__TypeSource__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__TypeSource__destroy(type_description_interfaces__msg__TypeSource * msg); - -/// Check for msg/TypeSource message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__TypeSource__are_equal(const type_description_interfaces__msg__TypeSource * lhs, const type_description_interfaces__msg__TypeSource * rhs); - -/// Copy a msg/TypeSource message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__TypeSource__copy( - const type_description_interfaces__msg__TypeSource * input, - type_description_interfaces__msg__TypeSource * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_type_hash_t * -type_description_interfaces__msg__TypeSource__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -type_description_interfaces__msg__TypeSource__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource * -type_description_interfaces__msg__TypeSource__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -type_description_interfaces__msg__TypeSource__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/TypeSource messages. -/** - * It allocates the memory for the number of elements and calls - * type_description_interfaces__msg__TypeSource__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__TypeSource__Sequence__init(type_description_interfaces__msg__TypeSource__Sequence * array, size_t size); - -/// Finalize array of msg/TypeSource messages. -/** - * It calls - * type_description_interfaces__msg__TypeSource__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__TypeSource__Sequence__fini(type_description_interfaces__msg__TypeSource__Sequence * array); - -/// Create array of msg/TypeSource messages. -/** - * It allocates the memory for the array and calls - * type_description_interfaces__msg__TypeSource__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__msg__TypeSource__Sequence * -type_description_interfaces__msg__TypeSource__Sequence__create(size_t size); - -/// Destroy array of msg/TypeSource messages. -/** - * It calls - * type_description_interfaces__msg__TypeSource__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__msg__TypeSource__Sequence__destroy(type_description_interfaces__msg__TypeSource__Sequence * array); - -/// Check for msg/TypeSource message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__TypeSource__Sequence__are_equal(const type_description_interfaces__msg__TypeSource__Sequence * lhs, const type_description_interfaces__msg__TypeSource__Sequence * rhs); - -/// Copy an array of msg/TypeSource messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__msg__TypeSource__Sequence__copy( - const type_description_interfaces__msg__TypeSource__Sequence * input, - type_description_interfaces__msg__TypeSource__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_SOURCE__FUNCTIONS_H_ diff --git a/src/type_description_interfaces/msg/detail/type_source__rosidl_typesupport_introspection_c.h b/src/type_description_interfaces/msg/detail/type_source__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 74917de39..000000000 --- a/src/type_description_interfaces/msg/detail/type_source__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from type_description_interfaces:msg/TypeSource.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_SOURCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_SOURCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, type_description_interfaces, msg, TypeSource)(); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_SOURCE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/type_description_interfaces/msg/detail/type_source__rosidl_typesupport_microxrcedds_c.h b/src/type_description_interfaces/msg/detail/type_source__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index a0fd0f0dd..000000000 --- a/src/type_description_interfaces/msg/detail/type_source__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from type_description_interfaces:msg/TypeSource.idl -// generated code does not contain a copyright notice -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__TYPE_SOURCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__TYPE_SOURCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t get_serialized_size_type_description_interfaces__msg__TypeSource( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t max_serialized_size_type_description_interfaces__msg__TypeSource( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, type_description_interfaces, msg, TypeSource)(); - -#ifdef __cplusplus -} -#endif - - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__TYPE_SOURCE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/type_description_interfaces/msg/detail/type_source__struct.h b/src/type_description_interfaces/msg/detail/type_source__struct.h deleted file mode 100755 index a7638e538..000000000 --- a/src/type_description_interfaces/msg/detail/type_source__struct.h +++ /dev/null @@ -1,62 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from type_description_interfaces:msg/TypeSource.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/type_source.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_SOURCE__STRUCT_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_SOURCE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'type_name' -// Member 'encoding' -// Member 'raw_file_contents' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/TypeSource in the package type_description_interfaces. -/** - * Represents the original source of a ROS 2 interface definition. - */ -typedef struct type_description_interfaces__msg__TypeSource -{ - /// ROS interface type name, in PACKAGE/NAMESPACE/TYPENAME format. - rosidl_runtime_c__String type_name; - /// The type of the original source file, typically matching the file extension. - /// Well-known encodings: "idl", "msg", "srv", "action", "dynamic", "implicit". - /// "dynamic" specifies a type created programmatically by a user, thus having no source. - /// "implicit" specifies a type created automatically as a subtype of a - /// complex type (service or action) - such as the request message for a service. - /// Implicit types will have no contents, the full source will be available on the parent srv/action. - rosidl_runtime_c__String encoding; - /// Dumped contents of the interface definition source file. - /// If `encoding` is "dynamic" or "implicit", this field will be empty. - rosidl_runtime_c__String raw_file_contents; -} type_description_interfaces__msg__TypeSource; - -// Struct for a sequence of type_description_interfaces__msg__TypeSource. -typedef struct type_description_interfaces__msg__TypeSource__Sequence -{ - type_description_interfaces__msg__TypeSource * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} type_description_interfaces__msg__TypeSource__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_SOURCE__STRUCT_H_ diff --git a/src/type_description_interfaces/msg/detail/type_source__type_support.h b/src/type_description_interfaces/msg/detail/type_source__type_support.h deleted file mode 100755 index 3f72660b1..000000000 --- a/src/type_description_interfaces/msg/detail/type_source__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from type_description_interfaces:msg/TypeSource.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/msg/type_source.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_SOURCE__TYPE_SUPPORT_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_SOURCE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - type_description_interfaces, - msg, - TypeSource -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__DETAIL__TYPE_SOURCE__TYPE_SUPPORT_H_ diff --git a/src/type_description_interfaces/msg/field.h b/src/type_description_interfaces/msg/field.h deleted file mode 100755 index 92da39152..000000000 --- a/src/type_description_interfaces/msg/field.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from type_description_interfaces:msg/Field.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__FIELD_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__FIELD_H_ - -#include "type_description_interfaces/msg/detail/field__struct.h" -#include "type_description_interfaces/msg/detail/field__functions.h" -#include "type_description_interfaces/msg/detail/field__type_support.h" - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__FIELD_H_ diff --git a/src/type_description_interfaces/msg/field_type.h b/src/type_description_interfaces/msg/field_type.h deleted file mode 100755 index f53d6fade..000000000 --- a/src/type_description_interfaces/msg/field_type.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from type_description_interfaces:msg/FieldType.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__FIELD_TYPE_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__FIELD_TYPE_H_ - -#include "type_description_interfaces/msg/detail/field_type__struct.h" -#include "type_description_interfaces/msg/detail/field_type__functions.h" -#include "type_description_interfaces/msg/detail/field_type__type_support.h" - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__FIELD_TYPE_H_ diff --git a/src/type_description_interfaces/msg/individual_type_description.h b/src/type_description_interfaces/msg/individual_type_description.h deleted file mode 100755 index ada7fb5ec..000000000 --- a/src/type_description_interfaces/msg/individual_type_description.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from type_description_interfaces:msg/IndividualTypeDescription.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__INDIVIDUAL_TYPE_DESCRIPTION_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__INDIVIDUAL_TYPE_DESCRIPTION_H_ - -#include "type_description_interfaces/msg/detail/individual_type_description__struct.h" -#include "type_description_interfaces/msg/detail/individual_type_description__functions.h" -#include "type_description_interfaces/msg/detail/individual_type_description__type_support.h" - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__INDIVIDUAL_TYPE_DESCRIPTION_H_ diff --git a/src/type_description_interfaces/msg/key_value.h b/src/type_description_interfaces/msg/key_value.h deleted file mode 100755 index b09e96ed3..000000000 --- a/src/type_description_interfaces/msg/key_value.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from type_description_interfaces:msg/KeyValue.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__KEY_VALUE_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__KEY_VALUE_H_ - -#include "type_description_interfaces/msg/detail/key_value__struct.h" -#include "type_description_interfaces/msg/detail/key_value__functions.h" -#include "type_description_interfaces/msg/detail/key_value__type_support.h" - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__KEY_VALUE_H_ diff --git a/src/type_description_interfaces/msg/rosidl_generator_c__visibility_control.h b/src/type_description_interfaces/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 15df97cda..000000000 --- a/src/type_description_interfaces/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_type_description_interfaces __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_type_description_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_type_description_interfaces __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_type_description_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_type_description_interfaces - #define ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces ROSIDL_GENERATOR_C_EXPORT_type_description_interfaces - #else - #define ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces ROSIDL_GENERATOR_C_IMPORT_type_description_interfaces - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_type_description_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_type_description_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/type_description_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/type_description_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 906743e3a..000000000 --- a/src/type_description_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_type_description_interfaces __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_type_description_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_type_description_interfaces __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_type_description_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_type_description_interfaces - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_type_description_interfaces - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_type_description_interfaces - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_type_description_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_type_description_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/type_description_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/type_description_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 1033026c4..000000000 --- a/src/type_description_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_type_description_interfaces __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_type_description_interfaces __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_type_description_interfaces __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_type_description_interfaces __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_type_description_interfaces - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_type_description_interfaces - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_type_description_interfaces - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_type_description_interfaces __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_type_description_interfaces - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/type_description_interfaces/msg/type_description.h b/src/type_description_interfaces/msg/type_description.h deleted file mode 100755 index 45a120759..000000000 --- a/src/type_description_interfaces/msg/type_description.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from type_description_interfaces:msg/TypeDescription.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__TYPE_DESCRIPTION_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__TYPE_DESCRIPTION_H_ - -#include "type_description_interfaces/msg/detail/type_description__struct.h" -#include "type_description_interfaces/msg/detail/type_description__functions.h" -#include "type_description_interfaces/msg/detail/type_description__type_support.h" - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__TYPE_DESCRIPTION_H_ diff --git a/src/type_description_interfaces/msg/type_source.h b/src/type_description_interfaces/msg/type_source.h deleted file mode 100755 index f084d8d34..000000000 --- a/src/type_description_interfaces/msg/type_source.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from type_description_interfaces:msg/TypeSource.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__MSG__TYPE_SOURCE_H_ -#define TYPE_DESCRIPTION_INTERFACES__MSG__TYPE_SOURCE_H_ - -#include "type_description_interfaces/msg/detail/type_source__struct.h" -#include "type_description_interfaces/msg/detail/type_source__functions.h" -#include "type_description_interfaces/msg/detail/type_source__type_support.h" - -#endif // TYPE_DESCRIPTION_INTERFACES__MSG__TYPE_SOURCE_H_ diff --git a/src/type_description_interfaces/srv/detail/get_type_description__functions.h b/src/type_description_interfaces/srv/detail/get_type_description__functions.h deleted file mode 100755 index ae4e12d32..000000000 --- a/src/type_description_interfaces/srv/detail/get_type_description__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from type_description_interfaces:srv/GetTypeDescription.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/srv/get_type_description.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__SRV__DETAIL__GET_TYPE_DESCRIPTION__FUNCTIONS_H_ -#define TYPE_DESCRIPTION_INTERFACES__SRV__DETAIL__GET_TYPE_DESCRIPTION__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#include "type_description_interfaces/srv/detail/get_type_description__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_type_hash_t * -type_description_interfaces__srv__GetTypeDescription__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -type_description_interfaces__srv__GetTypeDescription__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource * -type_description_interfaces__srv__GetTypeDescription__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -type_description_interfaces__srv__GetTypeDescription__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/GetTypeDescription message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * type_description_interfaces__srv__GetTypeDescription_Request - * )) before or use - * type_description_interfaces__srv__GetTypeDescription_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Request__init(type_description_interfaces__srv__GetTypeDescription_Request * msg); - -/// Finalize srv/GetTypeDescription message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__srv__GetTypeDescription_Request__fini(type_description_interfaces__srv__GetTypeDescription_Request * msg); - -/// Create srv/GetTypeDescription message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * type_description_interfaces__srv__GetTypeDescription_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__srv__GetTypeDescription_Request * -type_description_interfaces__srv__GetTypeDescription_Request__create(void); - -/// Destroy srv/GetTypeDescription message. -/** - * It calls - * type_description_interfaces__srv__GetTypeDescription_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__srv__GetTypeDescription_Request__destroy(type_description_interfaces__srv__GetTypeDescription_Request * msg); - -/// Check for srv/GetTypeDescription message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Request__are_equal(const type_description_interfaces__srv__GetTypeDescription_Request * lhs, const type_description_interfaces__srv__GetTypeDescription_Request * rhs); - -/// Copy a srv/GetTypeDescription message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Request__copy( - const type_description_interfaces__srv__GetTypeDescription_Request * input, - type_description_interfaces__srv__GetTypeDescription_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_type_hash_t * -type_description_interfaces__srv__GetTypeDescription_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -type_description_interfaces__srv__GetTypeDescription_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource * -type_description_interfaces__srv__GetTypeDescription_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -type_description_interfaces__srv__GetTypeDescription_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetTypeDescription messages. -/** - * It allocates the memory for the number of elements and calls - * type_description_interfaces__srv__GetTypeDescription_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Request__Sequence__init(type_description_interfaces__srv__GetTypeDescription_Request__Sequence * array, size_t size); - -/// Finalize array of srv/GetTypeDescription messages. -/** - * It calls - * type_description_interfaces__srv__GetTypeDescription_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__srv__GetTypeDescription_Request__Sequence__fini(type_description_interfaces__srv__GetTypeDescription_Request__Sequence * array); - -/// Create array of srv/GetTypeDescription messages. -/** - * It allocates the memory for the array and calls - * type_description_interfaces__srv__GetTypeDescription_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__srv__GetTypeDescription_Request__Sequence * -type_description_interfaces__srv__GetTypeDescription_Request__Sequence__create(size_t size); - -/// Destroy array of srv/GetTypeDescription messages. -/** - * It calls - * type_description_interfaces__srv__GetTypeDescription_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__srv__GetTypeDescription_Request__Sequence__destroy(type_description_interfaces__srv__GetTypeDescription_Request__Sequence * array); - -/// Check for srv/GetTypeDescription message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Request__Sequence__are_equal(const type_description_interfaces__srv__GetTypeDescription_Request__Sequence * lhs, const type_description_interfaces__srv__GetTypeDescription_Request__Sequence * rhs); - -/// Copy an array of srv/GetTypeDescription messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Request__Sequence__copy( - const type_description_interfaces__srv__GetTypeDescription_Request__Sequence * input, - type_description_interfaces__srv__GetTypeDescription_Request__Sequence * output); - -/// Initialize srv/GetTypeDescription message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * type_description_interfaces__srv__GetTypeDescription_Response - * )) before or use - * type_description_interfaces__srv__GetTypeDescription_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Response__init(type_description_interfaces__srv__GetTypeDescription_Response * msg); - -/// Finalize srv/GetTypeDescription message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__srv__GetTypeDescription_Response__fini(type_description_interfaces__srv__GetTypeDescription_Response * msg); - -/// Create srv/GetTypeDescription message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * type_description_interfaces__srv__GetTypeDescription_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__srv__GetTypeDescription_Response * -type_description_interfaces__srv__GetTypeDescription_Response__create(void); - -/// Destroy srv/GetTypeDescription message. -/** - * It calls - * type_description_interfaces__srv__GetTypeDescription_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__srv__GetTypeDescription_Response__destroy(type_description_interfaces__srv__GetTypeDescription_Response * msg); - -/// Check for srv/GetTypeDescription message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Response__are_equal(const type_description_interfaces__srv__GetTypeDescription_Response * lhs, const type_description_interfaces__srv__GetTypeDescription_Response * rhs); - -/// Copy a srv/GetTypeDescription message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Response__copy( - const type_description_interfaces__srv__GetTypeDescription_Response * input, - type_description_interfaces__srv__GetTypeDescription_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_type_hash_t * -type_description_interfaces__srv__GetTypeDescription_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -type_description_interfaces__srv__GetTypeDescription_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource * -type_description_interfaces__srv__GetTypeDescription_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -type_description_interfaces__srv__GetTypeDescription_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetTypeDescription messages. -/** - * It allocates the memory for the number of elements and calls - * type_description_interfaces__srv__GetTypeDescription_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Response__Sequence__init(type_description_interfaces__srv__GetTypeDescription_Response__Sequence * array, size_t size); - -/// Finalize array of srv/GetTypeDescription messages. -/** - * It calls - * type_description_interfaces__srv__GetTypeDescription_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__srv__GetTypeDescription_Response__Sequence__fini(type_description_interfaces__srv__GetTypeDescription_Response__Sequence * array); - -/// Create array of srv/GetTypeDescription messages. -/** - * It allocates the memory for the array and calls - * type_description_interfaces__srv__GetTypeDescription_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__srv__GetTypeDescription_Response__Sequence * -type_description_interfaces__srv__GetTypeDescription_Response__Sequence__create(size_t size); - -/// Destroy array of srv/GetTypeDescription messages. -/** - * It calls - * type_description_interfaces__srv__GetTypeDescription_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__srv__GetTypeDescription_Response__Sequence__destroy(type_description_interfaces__srv__GetTypeDescription_Response__Sequence * array); - -/// Check for srv/GetTypeDescription message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Response__Sequence__are_equal(const type_description_interfaces__srv__GetTypeDescription_Response__Sequence * lhs, const type_description_interfaces__srv__GetTypeDescription_Response__Sequence * rhs); - -/// Copy an array of srv/GetTypeDescription messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Response__Sequence__copy( - const type_description_interfaces__srv__GetTypeDescription_Response__Sequence * input, - type_description_interfaces__srv__GetTypeDescription_Response__Sequence * output); - -/// Initialize srv/GetTypeDescription message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * type_description_interfaces__srv__GetTypeDescription_Event - * )) before or use - * type_description_interfaces__srv__GetTypeDescription_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Event__init(type_description_interfaces__srv__GetTypeDescription_Event * msg); - -/// Finalize srv/GetTypeDescription message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__srv__GetTypeDescription_Event__fini(type_description_interfaces__srv__GetTypeDescription_Event * msg); - -/// Create srv/GetTypeDescription message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * type_description_interfaces__srv__GetTypeDescription_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__srv__GetTypeDescription_Event * -type_description_interfaces__srv__GetTypeDescription_Event__create(void); - -/// Destroy srv/GetTypeDescription message. -/** - * It calls - * type_description_interfaces__srv__GetTypeDescription_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__srv__GetTypeDescription_Event__destroy(type_description_interfaces__srv__GetTypeDescription_Event * msg); - -/// Check for srv/GetTypeDescription message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Event__are_equal(const type_description_interfaces__srv__GetTypeDescription_Event * lhs, const type_description_interfaces__srv__GetTypeDescription_Event * rhs); - -/// Copy a srv/GetTypeDescription message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Event__copy( - const type_description_interfaces__srv__GetTypeDescription_Event * input, - type_description_interfaces__srv__GetTypeDescription_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_type_hash_t * -type_description_interfaces__srv__GetTypeDescription_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeDescription * -type_description_interfaces__srv__GetTypeDescription_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource * -type_description_interfaces__srv__GetTypeDescription_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_runtime_c__type_description__TypeSource__Sequence * -type_description_interfaces__srv__GetTypeDescription_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetTypeDescription messages. -/** - * It allocates the memory for the number of elements and calls - * type_description_interfaces__srv__GetTypeDescription_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Event__Sequence__init(type_description_interfaces__srv__GetTypeDescription_Event__Sequence * array, size_t size); - -/// Finalize array of srv/GetTypeDescription messages. -/** - * It calls - * type_description_interfaces__srv__GetTypeDescription_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__srv__GetTypeDescription_Event__Sequence__fini(type_description_interfaces__srv__GetTypeDescription_Event__Sequence * array); - -/// Create array of srv/GetTypeDescription messages. -/** - * It allocates the memory for the array and calls - * type_description_interfaces__srv__GetTypeDescription_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -type_description_interfaces__srv__GetTypeDescription_Event__Sequence * -type_description_interfaces__srv__GetTypeDescription_Event__Sequence__create(size_t size); - -/// Destroy array of srv/GetTypeDescription messages. -/** - * It calls - * type_description_interfaces__srv__GetTypeDescription_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void -type_description_interfaces__srv__GetTypeDescription_Event__Sequence__destroy(type_description_interfaces__srv__GetTypeDescription_Event__Sequence * array); - -/// Check for srv/GetTypeDescription message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Event__Sequence__are_equal(const type_description_interfaces__srv__GetTypeDescription_Event__Sequence * lhs, const type_description_interfaces__srv__GetTypeDescription_Event__Sequence * rhs); - -/// Copy an array of srv/GetTypeDescription messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -type_description_interfaces__srv__GetTypeDescription_Event__Sequence__copy( - const type_description_interfaces__srv__GetTypeDescription_Event__Sequence * input, - type_description_interfaces__srv__GetTypeDescription_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__SRV__DETAIL__GET_TYPE_DESCRIPTION__FUNCTIONS_H_ diff --git a/src/type_description_interfaces/srv/detail/get_type_description__rosidl_typesupport_introspection_c.h b/src/type_description_interfaces/srv/detail/get_type_description__rosidl_typesupport_introspection_c.h deleted file mode 100755 index c6b04d69b..000000000 --- a/src/type_description_interfaces/srv/detail/get_type_description__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from type_description_interfaces:srv/GetTypeDescription.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__SRV__DETAIL__GET_TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__SRV__DETAIL__GET_TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, type_description_interfaces, srv, GetTypeDescription_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "type_description_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, type_description_interfaces, srv, GetTypeDescription_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "type_description_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, type_description_interfaces, srv, GetTypeDescription_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "type_description_interfaces/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_type_description_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, type_description_interfaces, srv, GetTypeDescription)(); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__SRV__DETAIL__GET_TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/type_description_interfaces/srv/detail/get_type_description__rosidl_typesupport_microxrcedds_c.h b/src/type_description_interfaces/srv/detail/get_type_description__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index dd44c60c7..000000000 --- a/src/type_description_interfaces/srv/detail/get_type_description__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from type_description_interfaces:srv/GetTypeDescription.idl -// generated code does not contain a copyright notice -#ifndef TYPE_DESCRIPTION_INTERFACES__SRV__GET_TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define TYPE_DESCRIPTION_INTERFACES__SRV__GET_TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "type_description_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t get_serialized_size_type_description_interfaces__srv__GetTypeDescription_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t max_serialized_size_type_description_interfaces__srv__GetTypeDescription_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, type_description_interfaces, srv, GetTypeDescription_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "type_description_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t get_serialized_size_type_description_interfaces__srv__GetTypeDescription_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t max_serialized_size_type_description_interfaces__srv__GetTypeDescription_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, type_description_interfaces, srv, GetTypeDescription_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "type_description_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t get_serialized_size_type_description_interfaces__srv__GetTypeDescription_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -size_t max_serialized_size_type_description_interfaces__srv__GetTypeDescription_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, type_description_interfaces, srv, GetTypeDescription_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "type_description_interfaces/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_type_description_interfaces -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, type_description_interfaces, srv, GetTypeDescription)(); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__SRV__GET_TYPE_DESCRIPTION__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/type_description_interfaces/srv/detail/get_type_description__struct.h b/src/type_description_interfaces/srv/detail/get_type_description__struct.h deleted file mode 100755 index 3b31ad476..000000000 --- a/src/type_description_interfaces/srv/detail/get_type_description__struct.h +++ /dev/null @@ -1,131 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from type_description_interfaces:srv/GetTypeDescription.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/srv/get_type_description.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__SRV__DETAIL__GET_TYPE_DESCRIPTION__STRUCT_H_ -#define TYPE_DESCRIPTION_INTERFACES__SRV__DETAIL__GET_TYPE_DESCRIPTION__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -// Include directives for member types -// Member 'type_name' -// Member 'type_hash' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in srv/GetTypeDescription in the package type_description_interfaces. -typedef struct type_description_interfaces__srv__GetTypeDescription_Request -{ - rosidl_runtime_c__String type_name; - /// REP-2011 RIHS hash string. - rosidl_runtime_c__String type_hash; - /// Whether to return the original idl/msg/etc. source file(s) in the response. - bool include_type_sources; -} type_description_interfaces__srv__GetTypeDescription_Request; - -// Struct for a sequence of type_description_interfaces__srv__GetTypeDescription_Request. -typedef struct type_description_interfaces__srv__GetTypeDescription_Request__Sequence -{ - type_description_interfaces__srv__GetTypeDescription_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} type_description_interfaces__srv__GetTypeDescription_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'failure_reason' -// already included above -// #include "rosidl_runtime_c/string.h" -// Member 'type_description' -#include "type_description_interfaces/msg/detail/type_description__struct.h" -// Member 'type_sources' -#include "type_description_interfaces/msg/detail/type_source__struct.h" -// Member 'extra_information' -#include "type_description_interfaces/msg/detail/key_value__struct.h" - -/// Struct defined in srv/GetTypeDescription in the package type_description_interfaces. -typedef struct type_description_interfaces__srv__GetTypeDescription_Response -{ - bool successful; - /// If `successful` is false, contains a reason for failure. - /// If `successful` is true, this is left empty. - rosidl_runtime_c__String failure_reason; - /// The parsed type description which can be used programmatically. - type_description_interfaces__msg__TypeDescription type_description; - /// A list containing the interface definition source text of the requested type, - /// plus all types it recursively depends on. - /// Each source text is a copy of the original contents of the - /// .msg, .srv, .action, .idl, or other file if it exists, including comments and whitespace. - /// Sources can be matched with IndividualTypeDescriptions by their `type_name`. - /// The `encoding` field of each entry informs how to interpret its contents. - type_description_interfaces__msg__TypeSource__Sequence type_sources; - /// Key-value pairs of extra information. - type_description_interfaces__msg__KeyValue__Sequence extra_information; -} type_description_interfaces__srv__GetTypeDescription_Response; - -// Struct for a sequence of type_description_interfaces__srv__GetTypeDescription_Response. -typedef struct type_description_interfaces__srv__GetTypeDescription_Response__Sequence -{ - type_description_interfaces__srv__GetTypeDescription_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} type_description_interfaces__srv__GetTypeDescription_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - type_description_interfaces__srv__GetTypeDescription_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - type_description_interfaces__srv__GetTypeDescription_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/GetTypeDescription in the package type_description_interfaces. -typedef struct type_description_interfaces__srv__GetTypeDescription_Event -{ - service_msgs__msg__ServiceEventInfo info; - type_description_interfaces__srv__GetTypeDescription_Request__Sequence request; - type_description_interfaces__srv__GetTypeDescription_Response__Sequence response; -} type_description_interfaces__srv__GetTypeDescription_Event; - -// Struct for a sequence of type_description_interfaces__srv__GetTypeDescription_Event. -typedef struct type_description_interfaces__srv__GetTypeDescription_Event__Sequence -{ - type_description_interfaces__srv__GetTypeDescription_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} type_description_interfaces__srv__GetTypeDescription_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__SRV__DETAIL__GET_TYPE_DESCRIPTION__STRUCT_H_ diff --git a/src/type_description_interfaces/srv/detail/get_type_description__type_support.h b/src/type_description_interfaces/srv/detail/get_type_description__type_support.h deleted file mode 100755 index a68be9b22..000000000 --- a/src/type_description_interfaces/srv/detail/get_type_description__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from type_description_interfaces:srv/GetTypeDescription.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "type_description_interfaces/srv/get_type_description.h" - - -#ifndef TYPE_DESCRIPTION_INTERFACES__SRV__DETAIL__GET_TYPE_DESCRIPTION__TYPE_SUPPORT_H_ -#define TYPE_DESCRIPTION_INTERFACES__SRV__DETAIL__GET_TYPE_DESCRIPTION__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "type_description_interfaces/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - type_description_interfaces, - srv, - GetTypeDescription_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - type_description_interfaces, - srv, - GetTypeDescription_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - type_description_interfaces, - srv, - GetTypeDescription_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - type_description_interfaces, - srv, - GetTypeDescription -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - type_description_interfaces, - srv, - GetTypeDescription -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_type_description_interfaces -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - type_description_interfaces, - srv, - GetTypeDescription -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // TYPE_DESCRIPTION_INTERFACES__SRV__DETAIL__GET_TYPE_DESCRIPTION__TYPE_SUPPORT_H_ diff --git a/src/type_description_interfaces/srv/get_type_description.h b/src/type_description_interfaces/srv/get_type_description.h deleted file mode 100755 index 7c4d70d77..000000000 --- a/src/type_description_interfaces/srv/get_type_description.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from type_description_interfaces:srv/GetTypeDescription.idl -// generated code does not contain a copyright notice - -#ifndef TYPE_DESCRIPTION_INTERFACES__SRV__GET_TYPE_DESCRIPTION_H_ -#define TYPE_DESCRIPTION_INTERFACES__SRV__GET_TYPE_DESCRIPTION_H_ - -#include "type_description_interfaces/srv/detail/get_type_description__struct.h" -#include "type_description_interfaces/srv/detail/get_type_description__functions.h" -#include "type_description_interfaces/srv/detail/get_type_description__type_support.h" - -#endif // TYPE_DESCRIPTION_INTERFACES__SRV__GET_TYPE_DESCRIPTION_H_ diff --git a/src/ucdr/config.h b/src/ucdr/config.h deleted file mode 100755 index 16300b1bf..000000000 --- a/src/ucdr/config.h +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _MICROCDR_CONFIG_H_ -#define _MICROCDR_CONFIG_H_ - -// Version defines -#define MICROCDR_VERSION_MAJOR 2 -#define MICROCDR_VERSION_MINOR 0 -#define MICROCDR_VERSION_MICRO 1 -#define MICROCDR_VERSION_STR "2.0.1" - -// ucdrEndianness defines -#define UCDR_MACHINE_ENDIANNESS UCDR_LITTLE_ENDIANNESS - -#endif // _MICROCDR_CONFIG_H_ diff --git a/src/ucdr/microcdr.h b/src/ucdr/microcdr.h deleted file mode 100755 index a665fd5ff..000000000 --- a/src/ucdr/microcdr.h +++ /dev/null @@ -1,219 +0,0 @@ -// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _MICROCDR_MICRO_CDR_H_ -#define _MICROCDR_MICRO_CDR_H_ - -#ifdef __cplusplus -extern "C" { -#endif // ifdef __cplusplus - -#include -#include - -#include -#include -#include - -// ------------------------------------------------ -// Types -// ------------------------------------------------ - -struct ucdrBuffer; -typedef bool (* OnFullBuffer)( - struct ucdrBuffer* buffer, - void* args); - -typedef enum ucdrEndianness -{ - UCDR_BIG_ENDIANNESS = 0, - UCDR_LITTLE_ENDIANNESS = 1 - -} ucdrEndianness; - -typedef struct ucdrBuffer -{ - uint8_t* init; - uint8_t* final; - uint8_t* iterator; - - size_t origin; - size_t offset; - - ucdrEndianness endianness; - uint8_t last_data_size; - - bool error; - - OnFullBuffer on_full_buffer; - void* args; - -} ucdrBuffer; - -// ------------------------------------------------ -// Main functions -// ------------------------------------------------ - -UCDRDLLAPI void ucdr_init_buffer ( - ucdrBuffer* ub, - uint8_t* data, - size_t size); -UCDRDLLAPI void ucdr_init_buffer_origin ( - ucdrBuffer* ub, - uint8_t* data, - size_t size, - size_t origin); -UCDRDLLAPI void ucdr_init_buffer_origin_offset ( - ucdrBuffer* ub, - uint8_t* data, - size_t size, - size_t origin, - size_t offset); -UCDRDLLAPI void ucdr_init_buffer_origin_offset_endian ( - ucdrBuffer* ub, - uint8_t* data, - size_t size, - size_t origin, - size_t offset, - ucdrEndianness endianness); -UCDRDLLAPI void ucdr_copy_buffer ( - ucdrBuffer* ub_dest, - const ucdrBuffer* ub_source); -UCDRDLLAPI void ucdr_set_on_full_buffer_callback ( - ucdrBuffer* ub, - OnFullBuffer on_full_buffer, - void* args); - -UCDRDLLAPI void ucdr_reset_buffer ( - ucdrBuffer* ub); -UCDRDLLAPI void ucdr_reset_buffer_offset ( - ucdrBuffer* ub, - size_t offset); - -UCDRDLLAPI void ucdr_align_to ( - ucdrBuffer* ub, - size_t alignment); -UCDRDLLAPI size_t ucdr_alignment ( - size_t buffer_position, - size_t data_size); -UCDRDLLAPI size_t ucdr_buffer_alignment ( - const ucdrBuffer* ub, - size_t data_size); -UCDRDLLAPI void ucdr_advance_buffer ( - ucdrBuffer* ub, - size_t size); - -UCDRDLLAPI size_t ucdr_buffer_size ( - const ucdrBuffer* ub); -UCDRDLLAPI size_t ucdr_buffer_length ( - const ucdrBuffer* ub); -UCDRDLLAPI size_t ucdr_buffer_remaining ( - const ucdrBuffer* ub); -UCDRDLLAPI ucdrEndianness ucdr_buffer_endianness ( - const ucdrBuffer* ub); -UCDRDLLAPI bool ucdr_buffer_has_error ( - const ucdrBuffer* ub); - -// ------------------------------------------------------------------- -// PUBLIC DE-SERIALIZATION DECLARATIONS -// ------------------------------------------------------------------- - -#define UCDR_BASIC_TYPE_DECLARATIONS(SUFFIX, TYPE) \ - UCDRDLLAPI bool ucdr_serialize ## SUFFIX(ucdrBuffer * ub, TYPE value); \ - UCDRDLLAPI bool ucdr_serialize_endian ## SUFFIX(ucdrBuffer * ub, ucdrEndianness endianness, TYPE value); \ - UCDRDLLAPI bool ucdr_deserialize ## SUFFIX(ucdrBuffer * ub, TYPE * value); \ - UCDRDLLAPI bool ucdr_deserialize_endian ## SUFFIX(ucdrBuffer * ub, ucdrEndianness endianness, TYPE * value); \ - -#define UCDR_ARRAY_DECLARATIONS(SUFFIX, TYPE) \ - UCDRDLLAPI bool ucdr_serialize_array ## SUFFIX(ucdrBuffer * ub, const TYPE * array, size_t size); \ - UCDRDLLAPI bool ucdr_serialize_endian_array ## SUFFIX(ucdrBuffer * ub, ucdrEndianness endianness, \ - const TYPE * array, size_t size); \ - UCDRDLLAPI bool ucdr_deserialize_array ## SUFFIX(ucdrBuffer * ub, TYPE * array, size_t size); \ - UCDRDLLAPI bool ucdr_deserialize_endian_array ## SUFFIX(ucdrBuffer * ub, ucdrEndianness endianness, TYPE * array, \ - size_t size); \ - -#define UCDR_SEQUENCE_DECLARATIONS(SUFFIX, TYPE) \ - UCDRDLLAPI bool ucdr_serialize_sequence ## SUFFIX(ucdrBuffer * ub, const TYPE * array, uint32_t length); \ - UCDRDLLAPI bool ucdr_serialize_endian_sequence ## SUFFIX(ucdrBuffer * ub, ucdrEndianness endianness, \ - const TYPE * array, uint32_t length); \ - UCDRDLLAPI bool ucdr_deserialize_sequence ## SUFFIX(ucdrBuffer * ub, TYPE * array, size_t array_capacity, \ - uint32_t * length); \ - UCDRDLLAPI bool ucdr_deserialize_endian_sequence ## SUFFIX(ucdrBuffer * ub, ucdrEndianness endianness, TYPE * array, \ - size_t array_capacity, uint32_t * length); \ - -UCDRDLLAPI bool ucdr_serialize_string( - ucdrBuffer* ub, - const char* string); -UCDRDLLAPI bool ucdr_serialize_endian_string( - ucdrBuffer* ub, - ucdrEndianness endianness, - const char* string); -UCDRDLLAPI bool ucdr_deserialize_string( - ucdrBuffer* ub, - char* string, - size_t string_capacity); -UCDRDLLAPI bool ucdr_deserialize_endian_string( - ucdrBuffer* ub, - ucdrEndianness endianness, - char* string, - size_t string_capacity); - -// ------------------------------------------------------------------- -// VALID TYPES DECLARATIONS -// ------------------------------------------------------------------- - -UCDR_BASIC_TYPE_DECLARATIONS(_char, char) -UCDR_BASIC_TYPE_DECLARATIONS(_bool, bool) -UCDR_BASIC_TYPE_DECLARATIONS(_uint8_t, uint8_t) -UCDR_BASIC_TYPE_DECLARATIONS(_uint16_t, uint16_t) -UCDR_BASIC_TYPE_DECLARATIONS(_uint32_t, uint32_t) -UCDR_BASIC_TYPE_DECLARATIONS(_uint64_t, uint64_t) -UCDR_BASIC_TYPE_DECLARATIONS(_int8_t, int8_t) -UCDR_BASIC_TYPE_DECLARATIONS(_int16_t, int16_t) -UCDR_BASIC_TYPE_DECLARATIONS(_int32_t, int32_t) -UCDR_BASIC_TYPE_DECLARATIONS(_int64_t, int64_t) -UCDR_BASIC_TYPE_DECLARATIONS(_float, float) -UCDR_BASIC_TYPE_DECLARATIONS(_double, double) - -UCDR_ARRAY_DECLARATIONS(_char, char) -UCDR_ARRAY_DECLARATIONS(_bool, bool) -UCDR_ARRAY_DECLARATIONS(_uint8_t, uint8_t) -UCDR_ARRAY_DECLARATIONS(_uint16_t, uint16_t) -UCDR_ARRAY_DECLARATIONS(_uint32_t, uint32_t) -UCDR_ARRAY_DECLARATIONS(_uint64_t, uint64_t) -UCDR_ARRAY_DECLARATIONS(_int8_t, int8_t) -UCDR_ARRAY_DECLARATIONS(_int16_t, int16_t) -UCDR_ARRAY_DECLARATIONS(_int32_t, int32_t) -UCDR_ARRAY_DECLARATIONS(_int64_t, int64_t) -UCDR_ARRAY_DECLARATIONS(_float, float) -UCDR_ARRAY_DECLARATIONS(_double, double) - -UCDR_SEQUENCE_DECLARATIONS(_char, char) -UCDR_SEQUENCE_DECLARATIONS(_bool, bool) -UCDR_SEQUENCE_DECLARATIONS(_uint8_t, uint8_t) -UCDR_SEQUENCE_DECLARATIONS(_uint16_t, uint16_t) -UCDR_SEQUENCE_DECLARATIONS(_uint32_t, uint32_t) -UCDR_SEQUENCE_DECLARATIONS(_uint64_t, uint64_t) -UCDR_SEQUENCE_DECLARATIONS(_int8_t, int8_t) -UCDR_SEQUENCE_DECLARATIONS(_int16_t, int16_t) -UCDR_SEQUENCE_DECLARATIONS(_int32_t, int32_t) -UCDR_SEQUENCE_DECLARATIONS(_int64_t, int64_t) -UCDR_SEQUENCE_DECLARATIONS(_float, float) -UCDR_SEQUENCE_DECLARATIONS(_double, double) - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif //_MICROCDR_MICRO_CDR_H_ diff --git a/src/ucdr/visibility.h b/src/ucdr/visibility.h deleted file mode 100755 index fb5fa6e6f..000000000 --- a/src/ucdr/visibility.h +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - - -#ifndef _MICROCDR_VISIBILITY_H_ -#define _MICROCDR_VISIBILITY_H_ - -#if defined(_WIN32) -#if defined(microcdr_SHARED) -#if defined(microcdr_EXPORTS) -#define UCDRDLLAPI __declspec( dllexport ) -#else -#define UCDRDLLAPI __declspec( dllimport ) -#endif // microcdr_EXPORTS -#else -#define UCDRDLLAPI -#endif // BUILDING_SHARED_LIBS -#else -#define UCDRDLLAPI -#endif // _WIN32 - -#endif // _MICROCDR_VISIBILITY_H_ diff --git a/src/unique_identifier_msgs/msg/detail/uuid__functions.h b/src/unique_identifier_msgs/msg/detail/uuid__functions.h deleted file mode 100755 index ee17fc8af..000000000 --- a/src/unique_identifier_msgs/msg/detail/uuid__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from unique_identifier_msgs:msg/UUID.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "unique_identifier_msgs/msg/uuid.h" - - -#ifndef UNIQUE_IDENTIFIER_MSGS__MSG__DETAIL__UUID__FUNCTIONS_H_ -#define UNIQUE_IDENTIFIER_MSGS__MSG__DETAIL__UUID__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "unique_identifier_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "unique_identifier_msgs/msg/detail/uuid__struct.h" - -/// Initialize msg/UUID message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * unique_identifier_msgs__msg__UUID - * )) before or use - * unique_identifier_msgs__msg__UUID__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -bool -unique_identifier_msgs__msg__UUID__init(unique_identifier_msgs__msg__UUID * msg); - -/// Finalize msg/UUID message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -void -unique_identifier_msgs__msg__UUID__fini(unique_identifier_msgs__msg__UUID * msg); - -/// Create msg/UUID message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * unique_identifier_msgs__msg__UUID__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -unique_identifier_msgs__msg__UUID * -unique_identifier_msgs__msg__UUID__create(void); - -/// Destroy msg/UUID message. -/** - * It calls - * unique_identifier_msgs__msg__UUID__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -void -unique_identifier_msgs__msg__UUID__destroy(unique_identifier_msgs__msg__UUID * msg); - -/// Check for msg/UUID message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -bool -unique_identifier_msgs__msg__UUID__are_equal(const unique_identifier_msgs__msg__UUID * lhs, const unique_identifier_msgs__msg__UUID * rhs); - -/// Copy a msg/UUID message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -bool -unique_identifier_msgs__msg__UUID__copy( - const unique_identifier_msgs__msg__UUID * input, - unique_identifier_msgs__msg__UUID * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -const rosidl_type_hash_t * -unique_identifier_msgs__msg__UUID__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -const rosidl_runtime_c__type_description__TypeDescription * -unique_identifier_msgs__msg__UUID__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -const rosidl_runtime_c__type_description__TypeSource * -unique_identifier_msgs__msg__UUID__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -unique_identifier_msgs__msg__UUID__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UUID messages. -/** - * It allocates the memory for the number of elements and calls - * unique_identifier_msgs__msg__UUID__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -bool -unique_identifier_msgs__msg__UUID__Sequence__init(unique_identifier_msgs__msg__UUID__Sequence * array, size_t size); - -/// Finalize array of msg/UUID messages. -/** - * It calls - * unique_identifier_msgs__msg__UUID__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -void -unique_identifier_msgs__msg__UUID__Sequence__fini(unique_identifier_msgs__msg__UUID__Sequence * array); - -/// Create array of msg/UUID messages. -/** - * It allocates the memory for the array and calls - * unique_identifier_msgs__msg__UUID__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -unique_identifier_msgs__msg__UUID__Sequence * -unique_identifier_msgs__msg__UUID__Sequence__create(size_t size); - -/// Destroy array of msg/UUID messages. -/** - * It calls - * unique_identifier_msgs__msg__UUID__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -void -unique_identifier_msgs__msg__UUID__Sequence__destroy(unique_identifier_msgs__msg__UUID__Sequence * array); - -/// Check for msg/UUID message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -bool -unique_identifier_msgs__msg__UUID__Sequence__are_equal(const unique_identifier_msgs__msg__UUID__Sequence * lhs, const unique_identifier_msgs__msg__UUID__Sequence * rhs); - -/// Copy an array of msg/UUID messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -bool -unique_identifier_msgs__msg__UUID__Sequence__copy( - const unique_identifier_msgs__msg__UUID__Sequence * input, - unique_identifier_msgs__msg__UUID__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // UNIQUE_IDENTIFIER_MSGS__MSG__DETAIL__UUID__FUNCTIONS_H_ diff --git a/src/unique_identifier_msgs/msg/detail/uuid__rosidl_typesupport_introspection_c.h b/src/unique_identifier_msgs/msg/detail/uuid__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 37518bbd7..000000000 --- a/src/unique_identifier_msgs/msg/detail/uuid__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from unique_identifier_msgs:msg/UUID.idl -// generated code does not contain a copyright notice - -#ifndef UNIQUE_IDENTIFIER_MSGS__MSG__DETAIL__UUID__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define UNIQUE_IDENTIFIER_MSGS__MSG__DETAIL__UUID__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "unique_identifier_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_unique_identifier_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, unique_identifier_msgs, msg, UUID)(); - -#ifdef __cplusplus -} -#endif - -#endif // UNIQUE_IDENTIFIER_MSGS__MSG__DETAIL__UUID__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/unique_identifier_msgs/msg/detail/uuid__rosidl_typesupport_microxrcedds_c.h b/src/unique_identifier_msgs/msg/detail/uuid__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ae7eeda3e..000000000 --- a/src/unique_identifier_msgs/msg/detail/uuid__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from unique_identifier_msgs:msg/UUID.idl -// generated code does not contain a copyright notice -#ifndef UNIQUE_IDENTIFIER_MSGS__MSG__UUID__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define UNIQUE_IDENTIFIER_MSGS__MSG__UUID__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "unique_identifier_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_unique_identifier_msgs -size_t get_serialized_size_unique_identifier_msgs__msg__UUID( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_unique_identifier_msgs -size_t max_serialized_size_unique_identifier_msgs__msg__UUID( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_unique_identifier_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, unique_identifier_msgs, msg, UUID)(); - -#ifdef __cplusplus -} -#endif - - -#endif // UNIQUE_IDENTIFIER_MSGS__MSG__UUID__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/unique_identifier_msgs/msg/detail/uuid__struct.h b/src/unique_identifier_msgs/msg/detail/uuid__struct.h deleted file mode 100755 index 4752bfa54..000000000 --- a/src/unique_identifier_msgs/msg/detail/uuid__struct.h +++ /dev/null @@ -1,48 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from unique_identifier_msgs:msg/UUID.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "unique_identifier_msgs/msg/uuid.h" - - -#ifndef UNIQUE_IDENTIFIER_MSGS__MSG__DETAIL__UUID__STRUCT_H_ -#define UNIQUE_IDENTIFIER_MSGS__MSG__DETAIL__UUID__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/UUID in the package unique_identifier_msgs. -/** - * A universally unique identifier (UUID). - * - * http://en.wikipedia.org/wiki/Universally_unique_identifier - * http://tools.ietf.org/html/rfc4122.html - */ -typedef struct unique_identifier_msgs__msg__UUID -{ - uint8_t uuid[16]; -} unique_identifier_msgs__msg__UUID; - -// Struct for a sequence of unique_identifier_msgs__msg__UUID. -typedef struct unique_identifier_msgs__msg__UUID__Sequence -{ - unique_identifier_msgs__msg__UUID * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} unique_identifier_msgs__msg__UUID__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // UNIQUE_IDENTIFIER_MSGS__MSG__DETAIL__UUID__STRUCT_H_ diff --git a/src/unique_identifier_msgs/msg/detail/uuid__type_support.h b/src/unique_identifier_msgs/msg/detail/uuid__type_support.h deleted file mode 100755 index 907f7e3fc..000000000 --- a/src/unique_identifier_msgs/msg/detail/uuid__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from unique_identifier_msgs:msg/UUID.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "unique_identifier_msgs/msg/uuid.h" - - -#ifndef UNIQUE_IDENTIFIER_MSGS__MSG__DETAIL__UUID__TYPE_SUPPORT_H_ -#define UNIQUE_IDENTIFIER_MSGS__MSG__DETAIL__UUID__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "unique_identifier_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - unique_identifier_msgs, - msg, - UUID -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // UNIQUE_IDENTIFIER_MSGS__MSG__DETAIL__UUID__TYPE_SUPPORT_H_ diff --git a/src/unique_identifier_msgs/msg/rosidl_generator_c__visibility_control.h b/src/unique_identifier_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 27752f488..000000000 --- a/src/unique_identifier_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef UNIQUE_IDENTIFIER_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define UNIQUE_IDENTIFIER_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_unique_identifier_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_unique_identifier_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_unique_identifier_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_unique_identifier_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_unique_identifier_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs ROSIDL_GENERATOR_C_EXPORT_unique_identifier_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs ROSIDL_GENERATOR_C_IMPORT_unique_identifier_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_unique_identifier_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_unique_identifier_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_unique_identifier_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // UNIQUE_IDENTIFIER_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/unique_identifier_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/unique_identifier_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 49c67b0a2..000000000 --- a/src/unique_identifier_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef UNIQUE_IDENTIFIER_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define UNIQUE_IDENTIFIER_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_unique_identifier_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_unique_identifier_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_unique_identifier_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_unique_identifier_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_unique_identifier_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_unique_identifier_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_unique_identifier_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_unique_identifier_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_unique_identifier_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_unique_identifier_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_unique_identifier_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_unique_identifier_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_unique_identifier_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // UNIQUE_IDENTIFIER_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/unique_identifier_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/unique_identifier_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index dfd9ad47a..000000000 --- a/src/unique_identifier_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef UNIQUE_IDENTIFIER_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define UNIQUE_IDENTIFIER_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_unique_identifier_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_unique_identifier_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_unique_identifier_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_unique_identifier_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_unique_identifier_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_unique_identifier_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_unique_identifier_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_unique_identifier_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_unique_identifier_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_unique_identifier_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_unique_identifier_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_unique_identifier_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_unique_identifier_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // UNIQUE_IDENTIFIER_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/unique_identifier_msgs/msg/uuid.h b/src/unique_identifier_msgs/msg/uuid.h deleted file mode 100755 index 437505c26..000000000 --- a/src/unique_identifier_msgs/msg/uuid.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from unique_identifier_msgs:msg/UUID.idl -// generated code does not contain a copyright notice - -#ifndef UNIQUE_IDENTIFIER_MSGS__MSG__UUID_H_ -#define UNIQUE_IDENTIFIER_MSGS__MSG__UUID_H_ - -#include "unique_identifier_msgs/msg/detail/uuid__struct.h" -#include "unique_identifier_msgs/msg/detail/uuid__functions.h" -#include "unique_identifier_msgs/msg/detail/uuid__type_support.h" - -#endif // UNIQUE_IDENTIFIER_MSGS__MSG__UUID_H_ diff --git a/src/uxr/client/client.h b/src/uxr/client/client.h deleted file mode 100755 index e31d5439b..000000000 --- a/src/uxr/client/client.h +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_CLIENT_H_ -#define _UXR_CLIENT_CLIENT_H_ - -#include - -#ifdef UCLIENT_PROFILE_DISCOVERY -#include -#endif //UCLIENT_PROFILE_DISCOVERY - -#include -#include -#include -#include -#include -#include - -#include -#include - -#endif // _UXR_CLIENT_CLIENT_H_ diff --git a/src/uxr/client/config.h b/src/uxr/client/config.h deleted file mode 100755 index e9b4d357f..000000000 --- a/src/uxr/client/config.h +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_CONFIG_H_ -#define _UXR_CLIENT_CONFIG_H_ - -#define UXR_CLIENT_VERSION_MAJOR 2 -#define UXR_CLIENT_VERSION_MINOR 4 -#define UXR_CLIENT_VERSION_MICRO 2 -#define UXR_CLIENT_VERSION_STR "2.4.2" - -/* #undef UCLIENT_PROFILE_DISCOVERY */ - -/* #undef UCLIENT_PROFILE_UDP */ -/* #undef UCLIENT_PROFILE_TCP */ -/* #undef UCLIENT_PROFILE_CAN */ -/* #undef UCLIENT_PROFILE_SERIAL */ -#define UCLIENT_PROFILE_CUSTOM_TRANSPORT -/* #undef UCLIENT_PROFILE_MULTITHREAD */ -/* #undef UCLIENT_PROFILE_SHARED_MEMORY */ -#define UCLIENT_PROFILE_STREAM_FRAMING - -/* #undef UCLIENT_PLATFORM_POSIX */ -/* #undef UCLIENT_PLATFORM_POSIX_NOPOLL */ -/* #undef UCLIENT_PLATFORM_WINDOWS */ -/* #undef UCLIENT_PLATFORM_FREERTOS_PLUS_TCP */ -/* #undef UCLIENT_PLATFORM_RTEMS_BSD_NET */ -/* #undef UCLIENT_PLATFORM_ZEPHYR */ - -#define UXR_CONFIG_MAX_OUTPUT_BEST_EFFORT_STREAMS 1 -#define UXR_CONFIG_MAX_OUTPUT_RELIABLE_STREAMS 1 -#define UXR_CONFIG_MAX_INPUT_BEST_EFFORT_STREAMS 1 -#define UXR_CONFIG_MAX_INPUT_RELIABLE_STREAMS 1 - -#define UXR_CONFIG_MAX_SESSION_CONNECTION_ATTEMPTS 10 -#define UXR_CONFIG_MIN_SESSION_CONNECTION_INTERVAL 1000 -#define UXR_CONFIG_MIN_HEARTBEAT_TIME_INTERVAL 100 - -#ifdef UCLIENT_PROFILE_UDP -#define UXR_CONFIG_UDP_TRANSPORT_MTU 512 -#endif -#ifdef UCLIENT_PROFILE_TCP -#define UXR_CONFIG_TCP_TRANSPORT_MTU 512 -#endif -#ifdef UCLIENT_PROFILE_SERIAL -#define UXR_CONFIG_SERIAL_TRANSPORT_MTU 512 -#endif -#ifdef UCLIENT_PROFILE_CUSTOM_TRANSPORT -#define UXR_CONFIG_CUSTOM_TRANSPORT_MTU 512 -#endif - -#ifdef UCLIENT_PROFILE_SHARED_MEMORY -#define UXR_CONFIG_SHARED_MEMORY_MAX_ENTITIES 4 -#define UXR_CONFIG_SHARED_MEMORY_STATIC_MEM_SIZE 10 -#endif - -#define UCLIENT_TWEAK_XRCE_WRITE_LIMIT - -/* #undef UCLIENT_HARD_LIVELINESS_CHECK */ - -#ifdef UCLIENT_HARD_LIVELINESS_CHECK -#define UXR_CONFIG_HARD_LIVELINESS_CHECK_TIMEOUT_STR "10000" -#endif - - -// Version checks -#if UXR_CLIENT_VERSION_MAJOR >= 3 -#error UCLIENT_HARD_LIVELINESS_CHECK shall be included in session API -#error MTU must be included in CREATE_CLIENT_Payload properties -#error Reorder ObjectInfo https://github.com/eProsima/Micro-XRCE-DDS/issues/137 -#endif - -#endif // _UXR_CLIENT_CONFIG_H_ diff --git a/src/uxr/client/core/communication/communication.h b/src/uxr/client/core/communication/communication.h deleted file mode 100755 index dbe94af12..000000000 --- a/src/uxr/client/core/communication/communication.h +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_CORE_COMMUNICATION_COMMUNICATION_H_ -#define _UXR_CLIENT_CORE_COMMUNICATION_COMMUNICATION_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include - -#include -#include -#include - -#ifdef UCLIENT_PROFILE_MULTITHREAD -#include -#endif // ifdef UCLIENT_PROFILE_MULTITHREAD - -typedef bool (* send_msg_func)( - void* instance, - const uint8_t* buf, - size_t len); -typedef bool (* recv_msg_func)( - void* instance, - uint8_t** buf, - size_t* len, - int timeout); -typedef uint8_t (* comm_error_func)( - void); - -typedef struct uxrCommunication -{ - void* instance; - send_msg_func send_msg; - recv_msg_func recv_msg; - comm_error_func comm_error; - uint16_t mtu; - -#ifdef UCLIENT_PROFILE_MULTITHREAD - uxrMutex mutex; -#endif // ifdef UCLIENT_PROFILE_MULTITHREAD - -} uxrCommunication; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif //_UXR_CLIENT_CORE_COMMUNICATION_COMMUNICATION_H_ diff --git a/src/uxr/client/core/session/common_create_entities.h b/src/uxr/client/core/session/common_create_entities.h deleted file mode 100755 index 9e9338473..000000000 --- a/src/uxr/client/core/session/common_create_entities.h +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_CORE_SESSION_COMMON_CREATE_ENTITIES_H_ -#define UXR_CLIENT_CORE_SESSION_COMMON_CREATE_ENTITIES_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include - -/** \addtogroup create_common Create entities common profile - * These functions are enabled when either PROFILE_CREATE_ENTITIES_XML or PROFILE_CREATE_ENTITIES_REF are activated as CMake arguments. The declaration of these functions can be found in uxr/client/profile/session/common_create_entities.h. - * @{ - */ - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE DELETE submessage. - * The submessage will be sent when `uxr_flash_output_stream` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will delete an XRCE entity. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE entity. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_delete_entity( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id); - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_CORE_SESSION_COMMON_CREATE_ENTITIES_H_ diff --git a/src/uxr/client/core/session/create_entities_bin.h b/src/uxr/client/core/session/create_entities_bin.h deleted file mode 100755 index fc17728b2..000000000 --- a/src/uxr/client/core/session/create_entities_bin.h +++ /dev/null @@ -1,279 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_CORE_SESSION_CREATE_ENTITIES_BIN_H_ -#define UXR_CLIENT_CORE_SESSION_CREATE_ENTITIES_BIN_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include - -//================================================================== -// PUBLIC -//================================================================== - -/** - * The enum that identifies the durability of the QoS of the DDS entity. - */ - -typedef enum uxrQoSDurability -{ - UXR_DURABILITY_TRANSIENT_LOCAL = 0, - UXR_DURABILITY_TRANSIENT, - UXR_DURABILITY_VOLATILE, - UXR_DURABILITY_PERSISTENT -} uxrQoSDurability; - -typedef enum uxrQoSReliability -{ - UXR_RELIABILITY_RELIABLE = 0, - UXR_RELIABILITY_BEST_EFFORT, -} uxrQoSReliability; - - -// uxrQosHistory -typedef enum uxrQoSHistory -{ - UXR_HISTORY_KEEP_LAST = 0, - UXR_HISTORY_KEEP_ALL -} uxrQoSHistory; - -typedef struct uxrQoS_t -{ - uxrQoSDurability durability; - uxrQoSReliability reliability; - uxrQoSHistory history; - uint16_t depth; -} uxrQoS_t; - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Participant payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Participant according to - * the binary provided in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Participant. - * @param domain_id The identifier of the Domain to which the XRCE Participant belongs. - * @param participant_name The XRCE Participant name. Can be NULL. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_participant_bin( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uint16_t domain_id, - const char* participant_name, - uint8_t mode); -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Topic payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Topic according to - * the binary provided in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Topic. - * @param participant_id The identifier of the associated XRCE Participant. - * @param topic_name The XRCE Topic name. - * @param type_name The XRCE Topic type. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_topic_bin( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId participant_id, - const char* topic_name, - const char* type_name, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Subscriber payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Publisher according to - * the binary provided in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_publisher_bin( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId participant_id, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Subscriber payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Subscriber according to - * the binary provided in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Subscriber. - * @param participant_id The identifier of the associated XRCE Participant. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_subscriber_bin( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId participant_id, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE DataWriter payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE DataWriter according to - * the binary provided in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE DataWriter. - * @param publisher_id The identifier of the associated XRCE Publisher. - * @param topic_id The identifier of the associated XRCE Topic. - * @param qos QoS definition. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_datawriter_bin( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId publisher_id, - uxrObjectId topic_id, - uxrQoS_t qos, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE DataReader payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE DataReader according to - * the binary provided in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE DataReader. - * @param subscriber_id The identifier of the associated XRCE Subscriber. - * @param topic_id The identifier of the associated XRCE Topic. - * @param qos QoS definition. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_datareader_bin( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId subscriber_id, - uxrObjectId topic_id, - uxrQoS_t qos, - uint8_t mode); -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Requester payload. - * The submessage will be sent when `uxr_flag_output_streams` or `uxr_run_session` functions are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Requester according to - * the binary provided in the CREATE submessage. - * - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Requester. - * @param participant_id The identifier of the associated XRCE Participant. - * @param service_name Requester service name. - * @param request_type Requester request type. - * @param reply_type Requester reply type. - * @param request_topic_name Requester request topic name. - * @param reply_topic_name Requester reply topic name. - * @param qos QoS definition. - * @param mode The set of flags that determines the entitiy creation mode. - * the Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_requester_bin( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId participant_id, - const char* service_name, - const char* request_type, - const char* reply_type, - const char* request_topic_name, - const char* reply_topic_name, - uxrQoS_t qos, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Replier payload. - * The submessage will be sent when `uxr_flag_output_streams` or `uxr_run_session` functions are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Replier according to - * the binary provided in the CREATE submessage. - * - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Requester. - * @param participant_id The identifier of the associated XRCE Participant. - * @param service_name Replier service name. - * @param request_type Replier request type. - * @param reply_type Replier reply type. - * @param request_topic_name Replier request topic name. - * @param reply_topic_name Replier reply topic name. - * @param qos QoS definition. - * @param mode The set of flags that determines the entitiy creation mode. - * the Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_replier_bin( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId participant_id, - const char* service_name, - const char* request_type, - const char* reply_type, - const char* request_topic_name, - const char* reply_topic_name, - uxrQoS_t qos, - uint8_t mode); - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_CORE_SESSION_CREATE_ENTITIES_BIN_H_ diff --git a/src/uxr/client/core/session/create_entities_ref.h b/src/uxr/client/core/session/create_entities_ref.h deleted file mode 100755 index 4049e5d60..000000000 --- a/src/uxr/client/core/session/create_entities_ref.h +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_CORE_SESSION_CREATE_ENTITIES_REF_H_ -#define UXR_CLIENT_CORE_SESSION_CREATE_ENTITIES_REF_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include - -/** \addtogroup create_ref Create entities by reference - * These functions are enabled when PROFILE_CREATE_ENTITIES_REF is activated as a CMake argument. The declaration of these functions can be found in uxr/client/profile/session/create_entities_ref.h. - * @{ - */ - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Participant payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Participant according to - * the reference provided in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Participant. - * @param domain_id The identifier of the Domain to which the XRCE Participant belongs. - * @param ref The reference of the XRCE Participant. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_participant_ref( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uint16_t domain_id, - const char* ref, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Topic payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Topic according to - * the reference provided in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Topic. - * @param participant_id The identifier of the associated XRCE Participant. - * @param ref The reference of the XRCE Topic. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_topic_ref( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId participant_id, - const char* ref, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE DataWriter payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE DataWriter according to - * the reference provided in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE DataWriter. - * @param publisher_id The identifier of the associated XRCE Publisher. - * @param ref The reference of the XRCE DataWriter. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_datawriter_ref( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId publisher_id, - const char* ref, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE DataReader payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE DataReader according to - * the reference provided in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE DataReader. - * @param subscriber_id The identifier of the associated XRCE Subscriber. - * @param ref The reference of the XRCE DataReader. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_datareader_ref( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId subscriber_id, - const char* ref, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Requester payload. - * The submessage will be sent when `uxr_flag_output_streams` or `uxr_run_session` functions are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Requester according to - * the reference provided in the CREATE submessage. - * - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Requester. - * @param participant_id The identifier of the associated XRCE Participant. - * @param ref The reference of the XRCE Requester. - * @param mode The set of flags that determines the entitiy creation mode. - * the Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_requester_ref( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId participant_id, - const char* ref, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Replier payload. - * The submessage will be sent when `uxr_flag_output_streams` or `uxr_run_session` functions are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Replier according to - * the reference provided in the CREATE submessage. - * - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Requester. - * @param participant_id The identifier of the associated XRCE Participant. - * @param ref The reference of the XRCE Replier. - * @param mode The set of flags that determines the entitiy creation mode. - * the Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_replier_ref( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId participant_id, - const char* ref, - uint8_t mode); - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_CORE_SESSION_CREATE_ENTITIES_REF_H_ diff --git a/src/uxr/client/core/session/create_entities_xml.h b/src/uxr/client/core/session/create_entities_xml.h deleted file mode 100755 index e797382ca..000000000 --- a/src/uxr/client/core/session/create_entities_xml.h +++ /dev/null @@ -1,234 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_CORE_SESSION_CREATE_ENTITIES_XML_H_ -#define UXR_CLIENT_CORE_SESSION_CREATE_ENTITIES_XML_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include - -/** \addtogroup create_xml Create entities by XML - * These functions are enabled when the PROFILE_CREATE_ENTITIES_XML is activated as a CMake argument. The declaration of these functions can be found in uxr/client/profile/session/create_entities_xml.h. - * @{ - */ - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Participant payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Participant according to - * the XML provides in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Participant. - * @param domain_id The identifier of the Domain to which the XRCE Participant belongs. - * @param xml The XML that describes the XRCE Participant entity. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_participant_xml( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uint16_t domain_id, - const char* xml, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Topic payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Topic according to - * the XML provides in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Topic. - * @param participant_id The identifier of the associated XRCE Participant. - * @param xml The XML that describes the XRCE Topic. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_topic_xml( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId participant_id, - const char* xml, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Subscriber payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Publisher according to - * the XML provides in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Publisher. - * @param participant_id The identifier of the associated XRCE Participant. - * @param xml The XML that describes the XRCE DataWriter. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_publisher_xml( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId participant_id, - const char* xml, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Subscriber payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Subscriber according to - * the XML provides in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Subscriber. - * @param participant_id The identifier of the associated XRCE Participant. - * @param xml The XML that describes the XRCE DataWriter. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_subscriber_xml( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId participant_id, - const char* xml, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE DataWriter payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE DataWriter according to - * the XML provides in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE DataWriter. - * @param publisher_id The identifier of the associated XRCE Publisher. - * @param xml The XML that describes the XRCE DataWriter. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_datawriter_xml( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId publisher_id, - const char* xml, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE DataReader payload. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will create an XRCE DataReader according to - * the XML provides in the CREATE submessage. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE DataReader. - * @param subscriber_id The identifier of the associated XRCE Subscriber. - * @param xml The XML that describes the XRCE DataReader. - * @param mode The set of flags that determines the entity creation mode. - * The Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_datareader_xml( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId subscriber_id, - const char* xml, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Requester payload. - * The submessage will be sent when `uxr_flag_output_streams` or `uxr_run_session` functions are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Requester according to - * the reference provided in the CREATE submessage. - * - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Requester. - * @param participant_id The identifier of the associated XRCE Participant. - * @param xml The XML that describes XRCE Requester. - * @param mode The set of flags that determines the entitiy creation mode. - * the Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_requester_xml( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId participant_id, - const char* xml, - uint8_t mode); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE CREATE submessage with an XRCE Replier payload. - * The submessage will be sent when `uxr_flag_output_streams` or `uxr_run_session` functions are called. - * As a result of the reception of this submessage, the Agent will create an XRCE Replier according to - * the reference provided in the CREATE submessage. - * - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the CREATE submessage will be buffered. - * @param object_id The identifier of the XRCE Requester. - * @param participant_id The identifier of the associated XRCE Participant. - * @param xml The XML that describes the XRCE Replier. - * @param mode The set of flags that determines the entitiy creation mode. - * the Creation Mode Table describes the entities creation behaviour according to the - * `UXR_REUSE` and `UXR_REPLACE` flags. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_create_replier_xml( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId object_id, - uxrObjectId participant_id, - const char* xml, - uint8_t mode); - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_CORE_SESSION_CREATE_ENTITIES_XML_H_ diff --git a/src/uxr/client/core/session/object_id.h b/src/uxr/client/core/session/object_id.h deleted file mode 100755 index 6864441a3..000000000 --- a/src/uxr/client/core/session/object_id.h +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_CORE_SESSION_OBJECT_ID_H_ -#define _UXR_CLIENT_CORE_SESSION_OBJECT_ID_H_ - -/** - * @file - */ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include - -#define UXR_INVALID_ID 0x00 -#define UXR_PARTICIPANT_ID 0x01 -#define UXR_TOPIC_ID 0x02 -#define UXR_PUBLISHER_ID 0x03 -#define UXR_SUBSCRIBER_ID 0x04 -#define UXR_DATAWRITER_ID 0x05 -#define UXR_DATAREADER_ID 0x06 -#define UXR_REQUESTER_ID 0x07 -#define UXR_REPLIER_ID 0x08 -#define UXR_OTHER_ID 0x0F - -typedef struct uxrObjectId -{ - uint16_t id; - uint8_t type; - -} uxrObjectId; - -/** - * @brief This function creates an identifier to reference an entity. - * @ingroup general_utils - * @param id Identifier of the object, different for each type. There can be several objects with the same ID, provided they have different types. - * @param type The type of the entity. It can be: UXR_PARTICIPANT_ID, UXR_TOPIC_ID, UXR_PUBLISHER_ID, UXR_SUBSCRIBER_ID, UXR_DATAWRITER_ID, UXR_DATAREADER_ID, UXR_REQUESTER_ID, or UXR_REPLIER_ID. - * @return Generated entity identifier. - */ -UXRDLLAPI uxrObjectId uxr_object_id( - uint16_t id, - uint8_t type); - -UXRDLLAPI uxrObjectId uxr_object_id_from_raw( - const uint8_t* raw); - -UXRDLLAPI void uxr_object_id_to_raw( - uxrObjectId object_id, - uint8_t* raw); - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif //_UXR_CLIENT_CORE_SESSION_OBJECT_ID_H_ diff --git a/src/uxr/client/core/session/read_access.h b/src/uxr/client/core/session/read_access.h deleted file mode 100755 index 498b96237..000000000 --- a/src/uxr/client/core/session/read_access.h +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_CORE_SESSION_READ_ACCESS_H_ -#define UXR_CLIENT_CORE_SESSION_READ_ACCESS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include - -#define UXR_MAX_SAMPLES_UNLIMITED 0xFFFF -#define UXR_MAX_ELAPSED_TIME_UNLIMITED 0x0000 -#define UXR_MAX_BYTES_PER_SECOND_UNLIMITED 0x0000 - -/** \addtogroup read Read access - * The Read Access is used by the Client to handle the read operation on the Agent. The declaration of these functions can be found in uxr/client/profile/session/read_access.h. - * @{ - */ - -/** @struct uxrDeliveryControl - * @brief A structure used for controlling the delivery of topic from the Agent to the Client. - * - * @var uxrDeliveryControl::max_samples - * The maximum number of topics that the Agent shall send to the Client. - * - * @var uxrDeliveryControl::max_elapsed_time - * The maximum amount of time in seconds that shall be spent by the Agent delivering the topic. - * - * @var uxrDeliveryControl::max_bytes_per_second - * The maximum transfer rate, in bytes per second, that the Agent shall use. - * - * @var uxrDeliveryControl::min_pace_period - * The minimum elapsed time, in milliseconds, between two topics deliveries. - */ - -typedef struct uxrDeliveryControl -{ - uint16_t max_samples; - uint16_t max_elapsed_time; - uint16_t max_bytes_per_second; - uint16_t min_pace_period; - -} uxrDeliveryControl; - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE READ_DATA submessage. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will start to read a topic from the - * DDS Global-Data-Space. - * Each time the Agent reads a message from the topic, it will be sent to the Client according to the uxrDeliveryControl set - * by the Client. - * Each time the Client receives a topic message from the Agent, it will call the `on_topic_callback` set by the user. - * This callback provides the `request_id` returned by this function in order to identify the topic. - * In case of error at the Agent side, it will send an XRCE STATUS submessage with the error code. - * When the STATUS submessage is received by the Client, it will call the `on_status_callback` with the - * `request_id` returned by this function. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the READ_DATA submessage will be buffered. - * @param datareader_id The identifier of the XRCE DataReader that will read the topics from the DDS GDS. - * @param data_stream_id The identifier of the input stream through which the data will be received. - * @param delivery_control An optional parameter that is used for controlling the delivery of topics from the Agent. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_request_data( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId datareader_id, - uxrStreamId data_stream_id, - const uxrDeliveryControl* const delivery_control); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE READ_DATA submessage. - * The submessage will be sent when `uxr_flash_output_streams` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will cancel any previous read operation. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the READ_DATA submessage will be buffered. - * @param datareader_id The identifier of the XRCE DataReader that will read the topics from the DDS GDS. - * @return A `request_id` that identifies the request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -UXRDLLAPI uint16_t uxr_buffer_cancel_data( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId datareader_id); - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_CORE_SESSION_READ_ACCESS_H_ diff --git a/src/uxr/client/core/session/session.h b/src/uxr/client/core/session/session.h deleted file mode 100755 index d319fcc45..000000000 --- a/src/uxr/client/core/session/session.h +++ /dev/null @@ -1,573 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_CORE_SESSION_SESSION_H_ -#define UXR_CLIENT_CORE_SESSION_SESSION_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include -#include - -#ifdef UCLIENT_PROFILE_MULTITHREAD -#include -#endif // ifdef UCLIENT_PROFILE_MULTITHREAD - -#define UXR_TIMEOUT_INF -1 - -struct uxrSession; -struct uxrCommunication; - -/** \addtogroup session Session - * These functions are available even if no profile has been enabled. The declaration of these functions can be found in uxr/client/core/session/session.h. - * @{ - */ - - -/** - * @brief Function signature used for on_status_func callbacks. - * @param session Session structure related to the status. - * @param object_id The identifier of the entity related to the status. - * @param request_id Status request id. - * @param status Status value. - * @param args User pointer data. - */ -typedef void (* uxrOnStatusFunc) ( - struct uxrSession* session, - uxrObjectId object_id, - uint16_t request_id, - uint8_t status, - void* args); - -/** - * @brief Function signature used for on_topic_func callbacks. - * @param session Session structure related to the topic. - * @param object_id The identifier of the entity related to the topic. - * @param request_id Request id of the``request_data`` transaction. - * @param stream_id Id of the stream used for the communication. - * @param ub Serialized topic data. - * @param length Length of the serialized data. - * @param args User pointer data. - */ -typedef void (* uxrOnTopicFunc) ( - struct uxrSession* session, - uxrObjectId object_id, - uint16_t request_id, - uxrStreamId stream_id, - struct ucdrBuffer* ub, - uint16_t length, - void* args); - -/** - * @brief Function signature used for on_time_func callbacks. - * @param session Session structure related to the topic. - * @param current_timestamp Client’s timestamp of the response packet reception. - * @param transmit_timestamp Client’s timestamp of the request packet transmission. - * @param received_timestamp Agent’s timestamp of the request packet reception. - * @param originate_timestamp Agent’s timestamp of the response packet transmission. - * @param args User pointer data. - */ -typedef void (* uxrOnTimeFunc) ( - struct uxrSession* session, - int64_t current_timestamp, - int64_t transmit_timestamp, - int64_t received_timestamp, - int64_t originate_timestamp, - void* args); - -/** - * @brief Function signature used for on_request_func callbacks. - * @param session Session structure related to the topic. - * @param object_id The identifier of the entity related to the request. - * @param request_id Request id of the``request_data`` transaction. - * @param sample_id Identifier of the request. - * @param ub Serialized request data. - * @param length Length of the serialized data. - * @param args User pointer data. - */ -typedef void (* uxrOnRequestFunc) ( - struct uxrSession* session, - uxrObjectId object_id, - uint16_t request_id, - SampleIdentity* sample_id, - struct ucdrBuffer* ub, - uint16_t length, - void* args); - -/** - * @brief Sets the reply callback, which is called when the Agent sends a READ_DATA submessage associated with a Replier. - * @param session Session structure related to the topic. - * @param object_id The identifier of the entity related to the request. - * @param request_id Request id of the``request_data`` transaction. - * @param reply_id Identifier of the reply. - * @param ub Serialized request data. - * @param length Length of the serialized data. - * @param args User pointer data. - */ -typedef void (* uxrOnReplyFunc) ( - struct uxrSession* session, - uxrObjectId object_id, - uint16_t request_id, - uint16_t reply_id, - struct ucdrBuffer* ub, - uint16_t length, - void* args); - -/** - * @brief Function signature used for flush_callback callbacks. - * @param session Session structure related to the buffer to be flushed. - * @param args Flush callback args pointer. - */ -typedef bool (* uxrOnBuffersFull) ( - struct uxrSession* session, - void* args); - -#ifdef PERFORMANCE_TESTING -/** - * @nosubgrouping - */ -typedef void (* uxrOnPerformanceFunc) ( - struct uxrSession* session, - struct ucdrBuffer* mb, - void* args); -#endif // ifdef PERFORMANCE_TESTING - -/** - * @nosubgrouping - */ -typedef struct uxrContinuousArgs -{ - uxrOnBuffersFull flush_callback; - void* flush_callback_args; - uxrStreamId stream_id; - size_t data_size; -} uxrContinuousArgs; - -typedef uint8_t pong_status_t; -#define NO_PONG_STATUS 0x00 -#define PONG_IN_SESSION_STATUS 0x01 -#define PONG_NO_SESSION_STATUS 0x02 - -/** - * @nosubgrouping - */ -typedef struct uxrSession -{ - uxrSessionInfo info; - uxrStreamStorage streams; - struct uxrCommunication* comm; - - const uint16_t* request_list; - uint8_t* status_list; - size_t request_status_list_size; - - uxrOnStatusFunc on_status; - void* on_status_args; - - uxrOnTopicFunc on_topic; - void* on_topic_args; - - uxrOnTimeFunc on_time; - void* on_time_args; - int64_t time_offset; - bool synchronized; - - uxrOnRequestFunc on_request; - void* on_request_args; - - uxrOnReplyFunc on_reply; - void* on_reply_args; - - bool on_data_flag; - pong_status_t on_pong_flag; - uxrContinuousArgs continuous_args; - -#ifdef UCLIENT_PROFILE_MULTITHREAD - uxrMutex mutex; -#endif // ifdef UCLIENT_PROFILE_MULTITHREAD - -#ifdef PERFORMANCE_TESTING - uxrOnPerformanceFunc on_performance; - void* on_performance_args; -#endif // ifdef PERFORMANCE_TESTING -} uxrSession; - -/** - * @brief Initializes a uxrSession structure. - * @param session The structure where the session data is stored. - * @param comm The uxrCommunication used for connecting with the Agent. - * This parameter shall not be shared between active sessions. - * @param key The identifier of the Client. - * All Client connected to an Agent shall have different key. - */ -UXRDLLAPI void uxr_init_session( - uxrSession* session, - struct uxrCommunication* comm, - uint32_t key); - -/** - * @brief Sets the status callback. - * This is called when a status message is received from the Agent. - * @param session A uxrSession structure previously initialized. - * @param on_status_func The function that will be called when a valid status message arrives from the Agent. - * @param args User pointer data. The args will be provided to the `on_status_func` callback. - */ -UXRDLLAPI void uxr_set_status_callback( - uxrSession* session, - uxrOnStatusFunc on_status_func, - void* args); - -/** - * @brief Sets the topic callback. - * This is called when a topic is received from the Agent. - * The topics will be received only if a `request_data` function has been called with a `DataReader` object id. - * @param session A uxrSession structure previously initialized. - * @param on_topic_func The function that will be called when a valid data message arrives from the Agent. - * @param args User pointer data. The args will be provided to the `on_topic_func` callback. - */ -UXRDLLAPI void uxr_set_topic_callback( - uxrSession* session, - uxrOnTopicFunc on_topic_func, - void* args); - -/** - * @brief Sets the time synchronization callback. - * The callback is called when a TIMESTAMP_REPLY submessage is received from the Agent. - * The user could use this callback to implement her/his own time synchronization protocol. - * @param session A uxrSession structure previously initialized. - * @param on_time_func The function that will be called when a TIMESTAMP_REPLY submessage arrives from the Agent. - * @param args A user pointer data. The args will be provided to the `on_time_func` callback. - */ -UXRDLLAPI void uxr_set_time_callback( - uxrSession* session, - uxrOnTimeFunc on_time_func, - void* args); - -/** - * @brief Sets the request callback. - * It will be called when a request is received from the Agent. - * The requests will be received only if a `request_data` function has been called with a `Requester` object id. - * - * @param session A uxrSession structure previously initialized. - * @param on_request_func The function that will be called when a valid request message arrives from the Agent. - * @param args User pointer data. The args will be provided to the `on_request_func` callback. - */ -UXRDLLAPI void uxr_set_request_callback( - uxrSession* session, - uxrOnRequestFunc on_request_func, - void* args); - -/** - * @brief Sets the reply callback. - * It will be called when a reply is received from the Agent. - * The reply will be received only if a `request_data` function has been called with a `Replier` object id. - * - * @param session A uxrSession structure previosly initialized. - * @param on_reply_func The function that will be called when a valid reply message arrives from the Agent. - * @param args User pointer data. The args will be provided to the `on_reply_func` callback. - */ -UXRDLLAPI void uxr_set_reply_callback( - uxrSession* session, - uxrOnReplyFunc on_reply_func, - void* args); - -#ifdef PERFORMANCE_TESTING -/** - * @nosubgrouping - */ -UXRDLLAPI void uxr_set_performance_callback( - uxrSession* session, - uxrOnPerformanceFunc on_performance_func, - void* args); -#endif // ifdef PERFORMANCE_TESTING - -/** - * @brief Creates a new session with the Agent. - * This function logs in a session, enabling any other XRCE communication with the Agent. - * @param session A uxrSesssion structure previously initialized. - * @return true in case of successful session establishment, and false in other case. - */ -UXRDLLAPI bool uxr_create_session( - uxrSession* session); - -/** - * @brief Creates a new session with the Agent. - * This function logs in a session, enabling any other XRCE communication with the Agent. - * @param session A uxrSesssion structure previously initialized. - * @param retries Max attempts for creating the session. - * @return true in case of successful session establishment, and false in other case. - */ -UXRDLLAPI bool uxr_create_session_retries( - uxrSession* session, - size_t retries); - -/** - * @brief Deletes a session previously created. - * All XRCE entities created within the session will be removed. - * This function logs out a session, disabling any other XRCE communication with the Agent. - * @param session A uxrSession structure previously initialized. - * @return true in case of successful session deletion, and false in other case. - */ -UXRDLLAPI bool uxr_delete_session( - uxrSession* session); - -/** - * @brief Deletes a session previously created. - * All XRCE entities created within the session will be removed. - * This function logs out a session, disabling any other XRCE communication with the Agent. - * @param session A uxrSession structure previously initialized. - * @param retries Max attempts for deleting the session. - * @return true in case of successful session deletion, and false in other case. - */ -UXRDLLAPI bool uxr_delete_session_retries( - uxrSession* session, - size_t retries); - -/** - * @brief Creates and initializes an output best-effort stream. - * The maximum number of output best-effort streams is set by the `UCLIENT_MAX_OUTPUT_BEST_EFFORT_STREAMS`. - * @param session A uxrSession structure previously initialized. - * @param buffer The memory block where the messages will be written. - * @param size The buffer size. - * @return A uxrStreamId which could by used for managing the stream. - */ -UXRDLLAPI uxrStreamId uxr_create_output_best_effort_stream( - uxrSession* session, - uint8_t* buffer, - size_t size); - -/** - * @brief Creates and initializes an output reliable stream. - * The maximum number of output reliable streams is set by the `UCLIENT_MAX_OUTPUT_RELIABLE_STREAMS`. - * @param session A uxrSession structure previously initialized. - * @param buffer The memory block where the messages will be written. - * @param size The buffer size. - * @param history The amount of messages that the stream is able to manage. - * The buffer size will be splitted into blocks according to this value. - * This value shall be power of 2. - * @return A uxrStreamId which could by used for managing the stream. - */ -UXRDLLAPI uxrStreamId uxr_create_output_reliable_stream( - uxrSession* session, - uint8_t* buffer, - size_t size, - uint16_t history); - -/** - * @brief Creates and initializes an input best-effort stream. - * The maximum number of input best-effort streams is set by the `UCLIENT_MAX_INPUT_BEST_EFFORT_STREAMS`. - * @param session A uxrSession structure previously initialized. - * @return A uxrStreamId which could by used for managing the stream. - */ -UXRDLLAPI uxrStreamId uxr_create_input_best_effort_stream( - uxrSession* session); - -/** - * @brief Creates and initializes an input reliable stream. - * The maximum number of input reliable streams is set by the `UCLIENT_MAX_INPUT_RELIABLE_STREAMS`. - * @param session A uxrSession structure previously initialized. - * @param buffer The memory block where the messages will be written. - * @param size The buffer size. - * @param history The amount of messages that the stream is able to manage. - * The buffer size will be splitted into blocks according to this value. - * This value shall be power of 2. - * @return A uxrStreamId which could by used for managing the stream. - */ -UXRDLLAPI uxrStreamId uxr_create_input_reliable_stream( - uxrSession* session, - uint8_t* buffer, - size_t size, - uint16_t history); - -/** - * @brief Flashes all the output streams seding the data through the transport. - * @param session A uxrSession structure previously initialized. - */ -UXRDLLAPI void uxr_flash_output_streams( - uxrSession* session); - -/** - * @brief Keeps communication between the Client and the Agent. - * This function involves the following actions: - * 1. flushing all the output streams sending the data through the transport, - * 2. listening messages from the Agent calling the associated callback (topic and status). - * The aforementioned actions will be performed in a loop until the waiting time for a new message - * exceeds the `timeout`. - * @param session A uxrSession structure previously initialized. - * @param timeout The waiting time in milliseconds. - * @return `true` in case of the Agent confirms the reception of all the output messages. `false` in other case. - */ -UXRDLLAPI bool uxr_run_session_time( - uxrSession* session, - int timeout); - -/** - * @brief Keeps communication between the Client and the Agent. - * This function involves the following actions: - * 1. flushing all the output streams sending the data through the transport, - * 2. listening messages from the Agent calling the associated callback (topic and status). - * The aforementioned actions will be performed in a loop until the `timeout` is exceeded. - * @param session A uxrSession structure previously initialized. - * @param timeout The waiting time in milliseconds. - * @return `true` in case of the Agent confirms the reception of all the output messages. `false` in other case. - */ -UXRDLLAPI bool uxr_run_session_timeout( - uxrSession* session, - int timeout); - -/** - * @brief Keeps communication between the Client and the Agent. - * This function involves the following actions: - * 1. flushing all the output streams sending the data through the transport, - * 2. listening messages from the Agent calling the associated callback (topic, status, request and replies). - * The aforementioned actions will be performed in a loop until a data message is received - * or the `timeout` is exceeded. - * @param session A uxrSession structure previously initialized. - * @param timeout The waiting time in milliseconds. - * @return `true` in case of a data message is received before the timeout. `false` in other case. - */ -UXRDLLAPI bool uxr_run_session_until_data( - uxrSession* session, - int timeout); - -/** - * @brief Keeps communication between the Client and the Agent. - * This function involves the following actions: - * 1. flushing all the output streams sending the data through the transport, - * 2. listening messages from the Agent calling the associated callback (topic and status). - * The aforementioned actions will be performed in a loop until a message is received - * or the `timeout` is exceeded. - * @param session A uxrSession structure previously initialized. - * @param timeout The waiting time in milliseconds. - * @return `true` if a message is received. `false` in other case. - */ -UXRDLLAPI bool uxr_run_session_until_timeout( - uxrSession* session, - int timeout); - -/** - * @brief Keeps communication between the Client and the Agent. - * This function involves the following actions: - * 1. flushing all the output streams sending the data through the transport, - * 2. listening messages from the Agent calling the associated callback (topic and status). - * The aforementioned actions will be performed in a loop until a the `timeout` is exceeded - * or the output reliable streams confirm the delivery of all their messages. - * @param session A uxrSession structure previously initialized. - * @param timeout The waiting time in milliseconds. - * @return `true` if all output reliable streams confirm the delivery of their messages. `false` in other case. - */ -UXRDLLAPI bool uxr_run_session_until_confirm_delivery( - uxrSession* session, - int timeout); - -/** - * @brief Keeps communication between the Client and the Agent. - * This function involves the following actions: - * 1. flushing all the output streams sending the data through the transport, - * 2. listening messages from the Agent calling the associated callback (topic and status). - * The aforementioned actions will be performed in a loop until a the `timeout` is exceeded - * or all the requested status are received. - * @param session A uxrSession structure previously initialized. - * @param timeout The waiting time in milliseconds. - * @param request_list The array of requests to confirm with a status. - * @param status_list The uninitialized array with the same size as `request_list` - * where the status values will be written. - * @param list_size the size of `request_list` and `status_list` arrays. - * @return `true` if all status are received. `false` in other case. - */ -UXRDLLAPI bool uxr_run_session_until_all_status( - uxrSession* session, - int timeout, - const uint16_t* request_list, - uint8_t* status_list, - size_t list_size); - -/** - * @brief Keeps communication between the Client and the Agent. - * This function involves the following actions: - * 1. flushing all the output streams sending the data through the transport, - * 2. listening messages from the Agent calling the associated callback (topic and status). - * The aforementioned actions will be performed in a loop until a the `timeout` is exceeded - * or one of the requested status is received. - * @param session A uxrSession structure previously initialized. - * @param timeout The waiting time in milliseconds. - * @param request_list The array of requests to confirm with a status. - * @param status_list The uninitialized array with the same size as `request_list` - * where the status values will be written. - * @param list_size the size of `request_list` and `status_list` arrays. - * @return `true` if a status is received and its value is `UXR_STATUS_OK` or `UXR_STATUS_OK_MATCHED`. - * `false` in other case. - */ -UXRDLLAPI bool uxr_run_session_until_one_status( - uxrSession* session, - int timeout, - const uint16_t* request_list, - uint8_t* status_list, - size_t list_size); - -/** - * @brief Synchronizes the session time using by default the NTP protocol. - * @param session A uxrSession structure previously initialized. - * @param time The waiting time in milliseconds. - * @return `true` in case of successful synchronization. `false` in other case. - */ -UXRDLLAPI bool uxr_sync_session( - uxrSession* session, - int time); - -/** - * @brief Returns the epoch time in milliseconds taking into account the offset computed during the time synchronization. - * @param session A uxrSession structure previosly initialized. - * @return The epoch time in milliseconds. - */ -UXRDLLAPI int64_t uxr_epoch_millis( - uxrSession* session); - -/** - * @brief Returns the epoch time in nanoseconds taking into account the offset computed during the time synchronization. - * @param session A uxrSession structure previosly initialized. - * @return The epoch time in nanoseconds. - */ -UXRDLLAPI int64_t uxr_epoch_nanos( - uxrSession* session); - -#ifdef PERFORMANCE_TESTING -/** - * @nosubgrouping - */ -UXRDLLAPI bool uxr_buffer_performance( - uxrSession* session, - uxrStreamId stream_id, - uint64_t epoch_time, - uint8_t* buf, - uint16_t len, - bool echo); -#endif // ifdef PERFORMANCE_TESTING - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_CORE_SESSION_SESSION_H diff --git a/src/uxr/client/core/session/session_info.h b/src/uxr/client/core/session/session_info.h deleted file mode 100755 index 8777cd4bf..000000000 --- a/src/uxr/client/core/session/session_info.h +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_CORE_SESSION_SESSION_INFO_H_ -#define _UXR_CLIENT_CORE_SESSION_SESSION_INFO_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include - -#define UXR_STATUS_OK 0x00 -#define UXR_STATUS_OK_MATCHED 0x01 -#define UXR_STATUS_ERR_DDS_ERROR 0x80 -#define UXR_STATUS_ERR_MISMATCH 0x81 -#define UXR_STATUS_ERR_ALREADY_EXISTS 0x82 -#define UXR_STATUS_ERR_DENIED 0x83 -#define UXR_STATUS_ERR_UNKNOWN_REFERENCE 0x84 -#define UXR_STATUS_ERR_INVALID_DATA 0x85 -#define UXR_STATUS_ERR_INCOMPATIBLE 0x86 -#define UXR_STATUS_ERR_RESOURCES 0x87 -#define UXR_STATUS_NONE 0xFF //Never sent or received. It is used for managing an unknown status - -#define UXR_REUSE 0x01 << 1 -#define UXR_REPLACE 0x01 << 2 -#ifdef PERFORMANCE_TESTING -#define UXR_ECHO 0x01 << 7 -#endif // ifdef PERFORMANCE_TESTING - -#define UXR_INVALID_REQUEST_ID 0 - -#define UXR_REQUEST_NONE 0x00 -#define UXR_REQUEST_LOGIN 0x01 -#define UXR_REQUEST_LOGOUT 0x02 - -typedef struct uxrSessionInfo -{ - uint8_t id; - uint8_t key[4]; - uint8_t last_requested_status; - uint16_t last_request_id; - -} uxrSessionInfo; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // _UXR_CLIENT_CORE_SESSION_SESSION_INFO_H diff --git a/src/uxr/client/core/session/stream/input_best_effort_stream.h b/src/uxr/client/core/session/stream/input_best_effort_stream.h deleted file mode 100755 index 8b3f1a419..000000000 --- a/src/uxr/client/core/session/stream/input_best_effort_stream.h +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_CORE_SESSION_STREAM_INPUT_BEST_EFFORT_STREAM_H_ -#define _UXR_CLIENT_CORE_SESSION_STREAM_INPUT_BEST_EFFORT_STREAM_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include - -#ifdef UCLIENT_PROFILE_MULTITHREAD -#include -#endif // ifdef UCLIENT_PROFILE_MULTITHREAD - -#include -#include - -typedef struct uxrInputBestEffortStream -{ - uxrSeqNum last_handled; - -#ifdef UCLIENT_PROFILE_MULTITHREAD - uxrMutex mutex; -#endif // ifdef UCLIENT_PROFILE_MULTITHREAD - -} uxrInputBestEffortStream; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // _UXR_CLIENT_CORE_SESSION_STREAM_INPUT_BEST_EFFORT_STREAM_H_ diff --git a/src/uxr/client/core/session/stream/input_reliable_stream.h b/src/uxr/client/core/session/stream/input_reliable_stream.h deleted file mode 100755 index 9dcac5120..000000000 --- a/src/uxr/client/core/session/stream/input_reliable_stream.h +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2017-present Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR__CLIENT__CORE__SESSION__STREAM__INPUT_RELIABLE_STREAM_H_ -#define UXR__CLIENT__CORE__SESSION__STREAM__INPUT_RELIABLE_STREAM_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include - -#ifdef UCLIENT_PROFILE_MULTITHREAD -#include -#endif // ifdef UCLIENT_PROFILE_MULTITHREAD - -#include - -struct ucdrBuffer; - -typedef enum FragmentationInfo -{ - NO_FRAGMENTED, - INTERMEDIATE_FRAGMENT, - LAST_FRAGMENT - -} FragmentationInfo; - -typedef FragmentationInfo (* OnGetFragmentationInfo)( - uint8_t* buffer); - -typedef struct uxrInputReliableStream -{ - uxrReliableStream base; - - uxrSeqNum last_handled; - uxrSeqNum last_announced; - - OnGetFragmentationInfo on_get_fragmentation_info; - - bool cleanup_flag; - -#ifdef UCLIENT_PROFILE_MULTITHREAD - uxrMutex mutex; -#endif // ifdef UCLIENT_PROFILE_MULTITHREAD - -} uxrInputReliableStream; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR__CLIENT__CORE__SESSION__STREAM__INPUT_RELIABLE_STREAM_H_ diff --git a/src/uxr/client/core/session/stream/output_best_effort_stream.h b/src/uxr/client/core/session/stream/output_best_effort_stream.h deleted file mode 100755 index a4a9ff75a..000000000 --- a/src/uxr/client/core/session/stream/output_best_effort_stream.h +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_CORE_SESSION_STREAM_OUTPUT_BEST_EFFORT_STREAM_H_ -#define _UXR_CLIENT_CORE_SESSION_STREAM_OUTPUT_BEST_EFFORT_STREAM_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include - -#ifdef UCLIENT_PROFILE_MULTITHREAD -#include -#endif // ifdef UCLIENT_PROFILE_MULTITHREAD - -#include -#include - -struct ucdrBuffer; -typedef struct uxrOutputBestEffortStream -{ - uint8_t* buffer; - size_t writer; - size_t size; - uint8_t offset; - - uxrSeqNum last_send; - -#ifdef UCLIENT_PROFILE_MULTITHREAD - uxrMutex mutex; -#endif // ifdef UCLIENT_PROFILE_MULTITHREAD - -} uxrOutputBestEffortStream; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // _UXR_CLIENT_CORE_SESSION_STREAM_OUTPUT_BEST_EFFORT_STREAM_H diff --git a/src/uxr/client/core/session/stream/output_reliable_stream.h b/src/uxr/client/core/session/stream/output_reliable_stream.h deleted file mode 100755 index 342f40ac3..000000000 --- a/src/uxr/client/core/session/stream/output_reliable_stream.h +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2017-present Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR__CLIENT__CORE__SESSION__STREAM__OUTPUT_RELIABLE_STREAM_H_ -#define UXR__CLIENT__CORE__SESSION__STREAM__OUTPUT_RELIABLE_STREAM_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include - -#ifdef UCLIENT_PROFILE_MULTITHREAD -#include -#endif // ifdef UCLIENT_PROFILE_MULTITHREAD - -#include - -struct ucdrBuffer; -struct uxrOutputReliableStream; - -typedef void (* OnNewFragment)( - struct ucdrBuffer* ub, - struct uxrOutputReliableStream* stream); - -typedef struct uxrOutputReliableStream -{ - uxrReliableStream base; - uint8_t offset; - - uxrSeqNum last_written; - uxrSeqNum last_sent; - uxrSeqNum last_acknown; - - int64_t next_heartbeat_timestamp; - uint8_t next_heartbeat_tries; - bool send_lost; - -#ifdef UCLIENT_PROFILE_MULTITHREAD - uxrMutex mutex; -#endif // ifdef UCLIENT_PROFILE_MULTITHREAD - -} uxrOutputReliableStream; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR__CLIENT__CORE__SESSION__STREAM__OUTPUT_RELIABLE_STREAM_H_ diff --git a/src/uxr/client/core/session/stream/reliable_stream.h b/src/uxr/client/core/session/stream/reliable_stream.h deleted file mode 100755 index 0da6e1000..000000000 --- a/src/uxr/client/core/session/stream/reliable_stream.h +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2017-present Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR__CLIENT__CORE__SESSION__STREAM__RELIABLE_STREAM_H_ -#define UXR__CLIENT__CORE__SESSION__STREAM__RELIABLE_STREAM_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include - -typedef struct uxrReliableStream -{ - uint8_t* buffer; - size_t size; - uint16_t history; - -} uxrReliableStream; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR__CLIENT__CORE__SESSION__STREAM__RELIABLE_STREAM_H_ diff --git a/src/uxr/client/core/session/stream/seq_num.h b/src/uxr/client/core/session/stream/seq_num.h deleted file mode 100755 index 9f889a657..000000000 --- a/src/uxr/client/core/session/stream/seq_num.h +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_CORE_SESSION_STREAM_SEQ_NUM_H_ -#define _UXR_CLIENT_CORE_SESSION_STREAM_SEQ_NUM_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include - -typedef uint16_t uxrSeqNum; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // _UXR_CLIENT_CORE_SESSION_STREAM_SEQ_NUM_H_ diff --git a/src/uxr/client/core/session/stream/stream_id.h b/src/uxr/client/core/session/stream/stream_id.h deleted file mode 100755 index 86bf12e55..000000000 --- a/src/uxr/client/core/session/stream/stream_id.h +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_CORE_SESSION_STREAM_STREAM_ID_H_ -#define UXR_CLIENT_CORE_SESSION_STREAM_STREAM_ID_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include - -/** \addtogroup general_utils General utilities - * Utility functions. The declaration of these functions can be found in uxr/client/core/session/stream_id.h and uxr/client/core/session/object_id.h. - * @{ - */ - -/** - * The enum that identifies the kind of stream. - * According to the XRCE standard, a stream represents an independent flow of messages within a session. - * The XRCE standard defines 3 different kinds of streams: - * * **none** streams do not provide neither non-out-of-order delivery nor guarantee for the delivery. - * * **best-effort** streams provide non-out-of-order delivery but they do not provide guarantee for delivery. - * * **reliable** streams provide both non-out-of-order delivery and guarantee for delivery. - * - * The streams are identified by an octet. Each session is able to handle - * 1 none stream (id 0x00), - * 127 best-effort streams (id 0x01 - 0x7F), - * and 128 reliable streams (id 0x80 - 0xFF), - * for each direction: output (Client to Agent) and input (Agent to Client). - */ -typedef enum uxrStreamType -{ - /** Identifies a none stream. */ - UXR_NONE_STREAM, - /** Identifies a best-effort stream. */ - UXR_BEST_EFFORT_STREAM, - /** Identifies a reliable stream. */ - UXR_RELIABLE_STREAM, - /** Identifies a shared memory stream. */ - UXR_SHARED_MEMORY_STREAM - -} uxrStreamType; - -/** - * The enum that identifies the direction of a stream. - * There are two different directions: output (Client to Agent) and input (Agent to Client). - */ -typedef enum uxrStreamDirection -{ - /** Indicates the input direction of the stream. */ - UXR_INPUT_STREAM, - /** Indicates the output direction of the stream. */ - UXR_OUTPUT_STREAM - -} uxrStreamDirection; - -/** - * @nosubgrouping - */ -typedef struct uxrStreamId -{ - uint8_t raw; - uint8_t index; - uint8_t type; - uint8_t direction; - -} uxrStreamId; - -/** - * @brief Creates a stream identifier. - * This function does not create a new stream, but only creates the identifier to be used in the Client API. - * @param index The identifier of the stream. - * Its value corresponds to the creation order of each kind of stream. - * @param type The uxrStreamType of the stream. - * @param direction The uxrStreamDirection of the stream. - * @return A identifier of a stream. - */ -UXRDLLAPI uxrStreamId uxr_stream_id( - uint8_t index, - uxrStreamType type, - uxrStreamDirection direction); - -/** - * @brief Creates a stream identifier. - * This function does not create a new stream, but only creates the identifier to be used in the Client API. - * @param stream_id_raw The identifier of the stream. - * 0 corresponds to the UXR_NONE_STREAM; - * from 1 to 127 correspond to a UXR_BEST_EFFORT_STREAM; - * from 128 to 255 correspond to a UXR_RELIABLE_STREAM; - * @param direction The uxrStreamDirection of the stream. - * @return A identifier of a stream. - */ -UXRDLLAPI uxrStreamId uxr_stream_id_from_raw( - uint8_t stream_id_raw, - uxrStreamDirection direction); - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_CORE_SESSION_STREAM_STREAM_ID_H diff --git a/src/uxr/client/core/session/stream/stream_storage.h b/src/uxr/client/core/session/stream/stream_storage.h deleted file mode 100755 index d4712d1d3..000000000 --- a/src/uxr/client/core/session/stream/stream_storage.h +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_CORE_SESSION_STREAM_STREAM_STORAGE_H_ -#define _UXR_CLIENT_CORE_SESSION_STREAM_STREAM_STORAGE_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include -#include -#include -#include - -typedef struct uxrStreamStorage -{ - uxrOutputBestEffortStream output_best_effort[UXR_CONFIG_MAX_OUTPUT_BEST_EFFORT_STREAMS]; - uint8_t output_best_effort_size; - uxrOutputReliableStream output_reliable[UXR_CONFIG_MAX_OUTPUT_RELIABLE_STREAMS]; - uint8_t output_reliable_size; - uxrInputBestEffortStream input_best_effort[UXR_CONFIG_MAX_INPUT_BEST_EFFORT_STREAMS]; - uint8_t input_best_effort_size; - uxrInputReliableStream input_reliable[UXR_CONFIG_MAX_INPUT_RELIABLE_STREAMS]; - uint8_t input_reliable_size; - -} uxrStreamStorage; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // _UXR_CLIENT_CORE_SESSION_STREAM_STREAM_STORAGE_H diff --git a/src/uxr/client/core/session/time_sync.h b/src/uxr/client/core/session/time_sync.h deleted file mode 100755 index e69de29bb..000000000 diff --git a/src/uxr/client/core/session/write_access.h b/src/uxr/client/core/session/write_access.h deleted file mode 100755 index 61045ff19..000000000 --- a/src/uxr/client/core/session/write_access.h +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_CORE_SESSION_WRITE_ACCESS_H_ -#define UXR_CLIENT_CORE_SESSION_WRITE_ACCESS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include - -/** \addtogroup write Write access profile - * The Write Access is used by the Client to handle the write operation on the Agent. The declaration of these functions can be found in uxr/client/profile/session/write_access.h. - * @{ - */ - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE WRITE_DATA submessage. - * As a consequence, an XRCE request is generated associated to the WRITE_DATA submessage. - * - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the WRITE_DATA submessage will be buffered. - * @param requester_id The identifier of the XRCE Requester that will write the request into the DDS GDS. - * @param buffer The pointer to the request data. - * @param len The length of the request data. - * @return A `request_id` that identifies the XRCE request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -uint16_t uxr_buffer_request( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId requester_id, - uint8_t* buffer, - size_t len); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE WRITE_DATA submessage. - * As a consequence, an XRCE request is generated associated to the WRITE_DATA submessage. - * - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the WRITE_DATA submessage will be buffered. - * @param replier_id The identifier of the XRCE Replier that will write the reply into the DDS GDS. - * @param sample_id The `SampleIdentity` that identifies the request. - * It will be read by the Requester to filter and identify the reply. - * @param buffer The pointer to the reply data. - * @param len The length of the reply data. - * @return A `request_id` that identifies the XRCE request made by the Client. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -uint16_t uxr_buffer_reply( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId replier_id, - SampleIdentity* sample_id, - uint8_t* buffer, - size_t len); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE WRITE_DATA submessage. - * As a consequence, an XRCE request is generated associated to the WRITE_DATA submessage. - * - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the WRITE_DATA submessage will be buffered. - * @param datawriter_id The identifier of the XRCE Datawriter that will write the topic into the DDS GDS. - * @param buffer The pointer to the topic data. - * @param len The length of the topic data. - * @return A `request_id` that identifies the XRCE request made by the Publisher. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - */ -uint16_t uxr_buffer_topic( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId datawriter_id, - uint8_t* buffer, - size_t len); - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE WRITE_DATA submessage. - * The submessage will be sent when `uxr_flash_output_stream` or `uxr_run_session` function are called. - * As a result of the reception of this submessage, the Agent will write a topic into the DDS Global-Data-Space. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the WRITE_DATA submessage will be buffered. - * @param entity_id The identifier of the XRCE DataWriter that will write the topic into the DDS GDS. - * @param ub The ucdrBuffer structure used for serializing the topic. - * @param len The size of the topic in bytes. - * @return A `request_id` that identifies the XRCE request made by the Entity. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - * */ -UXRDLLAPI uint16_t uxr_prepare_output_stream( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId entity_id, - struct ucdrBuffer* ub, - uint32_t len); - - -/** - * @brief Buffers into the stream identified by `stream_id` an XRCE WRITE_DATA submessage. - * The submessage will be sent when `uxr_flash_output_stream` or `uxr_run_session` function are called. - * This function handles the buffer flush by means of `uxrOnBuffersFull` callback. - * As a result of the reception of this submessage, the Agent will write a topic into the DDS Global-Data-Space. - * @param session A uxrSession structure previously initialized. - * @param stream_id The output stream identifier where the WRITE_DATA submessage will be buffered. - * @param datawriter_id The identifier of the XRCE DataWriter that will write the topic into the DDS GDS. - * @param ub The ucdrBuffer structure used for serializing the topic. - * @param data_size The size of the topic in bytes. - * @param flush_callback Callback that is call by the library when user should flush output buffers. - * @param flush_callback_args Arguments passed to flush callback. - * @return A `request_id` that identifies the XRCE request made by the Entity. - * This could be used in the `uxr_run_session_until_one_status` or `uxr_run_session_until_all_status` functions. - * */ - -UXRDLLAPI uint16_t uxr_prepare_output_stream_fragmented( - uxrSession* session, - uxrStreamId stream_id, - uxrObjectId datawriter_id, - ucdrBuffer* ub, - size_t data_size, - uxrOnBuffersFull flush_callback, - void* flush_callback_args); - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_CORE_SESSION_WRITE_ACCESS_H_ diff --git a/src/uxr/client/core/type/xrce_types.h b/src/uxr/client/core/type/xrce_types.h deleted file mode 100755 index f733245e1..000000000 --- a/src/uxr/client/core/type/xrce_types.h +++ /dev/null @@ -1,1840 +0,0 @@ -// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_CORE_TYPE_XRCETYPES_H_ -#define UXR_CLIENT_CORE_TYPE_XRCETYPES_H_ - -#ifdef __cplusplus -extern "C" -{ -#define INLINE_STRUCT(x) (x) -#else -#define INLINE_STRUCT(x) x -#endif // ifdef __cplusplus - -#include -#include - -#include -#include -#include - -// TODO (julibert): move this configuration to CMake flags. -#define UXR_STRING_SIZE_MAX 512 -#define UXR_SAMPLE_DATA_SIZE_MAX 512 -#define UXR_STRING_SEQUENCE_MAX 8 -#define UXR_BINARY_SEQUENCE_MAX 512 -#define UXR_BINARY_SEQUENCE_SMALL_MAX 8 -#define UXR_SAMPLE_SEQUENCE_MAX 8 -#define UXR_SAMPLE_DATA_SEQUENCE_MAX 8 -#define UXR_SAMPLE_DELTA_SEQUENCE_MAX 8 -#define UXR_PACKED_SAMPLES_SEQUENCE_MAX 8 -#define UXR_TRANSPORT_LOCATOR_SEQUENCE_MAX 4 - -#ifdef UCLIENT_PROFILE_SHARED_MEMORY -#define PROFILE_SHARED_MEMORY_SEQ_COUNT 1 -#else -#define PROFILE_SHARED_MEMORY_SEQ_COUNT 0 -#endif // ifdef UCLIENT_PROFILE_SHARED_MEMORY - -#ifdef UCLIENT_HARD_LIVELINESS_CHECK -#define HARD_LIVELINESS_CHECK_SEQ_COUNT 1 -#else -#define HARD_LIVELINESS_CHECK_SEQ_COUNT 0 -#endif // ifdef UCLIENT_HARD_LIVELINESS_CHECK - -#if (PROFILE_SHARED_MEMORY_SEQ_COUNT + HARD_LIVELINESS_CHECK_SEQ_COUNT) == 0 -#define UXR_PROPERTY_SEQUENCE_MAX 1 -#else -#define UXR_PROPERTY_SEQUENCE_MAX PROFILE_SHARED_MEMORY_SEQ_COUNT + HARD_LIVELINESS_CHECK_SEQ_COUNT -#endif // if (PROFILE_SHARED_MEMORY_SEQ_COUNT + HARD_LIVELINESS_CHECK_SEQ_COUNT) == 0 - -typedef struct Time_t -{ - int32_t seconds; - uint32_t nanoseconds; - -} Time_t; - -typedef struct BinarySequence_t -{ - uint32_t size; - uint8_t data[UXR_BINARY_SEQUENCE_MAX]; - -} BinarySequence_t; - -typedef struct BinarySequenceSmall_t -{ - uint32_t size; - uint8_t data[UXR_BINARY_SEQUENCE_SMALL_MAX]; - -} BinarySequenceSmall_t; - -typedef struct StringSequence_t -{ - uint32_t size; - char* data[UXR_STRING_SEQUENCE_MAX]; - -} StringSequence_t; - -typedef struct ClientKey -{ - uint8_t data[4]; - -} ClientKey; - - -#define DDS_XRCE_CLIENT_INVALID COMPOUND_LITERAL(ClientKey){{0x00, 0x00, 0x00, 0x00}} - -typedef uint8_t ObjectKind; -#define DDS_XRCE_OBJK_INVALID 0x00 -#define DDS_XRCE_OBJK_PARTICIPANT 0x01 -#define DDS_XRCE_OBJK_TOPIC 0x02 -#define DDS_XRCE_OBJK_PUBLISHER 0x03 -#define DDS_XRCE_OBJK_SUBSCRIBER 0x04 -#define DDS_XRCE_OBJK_DATAWRITER 0x05 -#define DDS_XRCE_OBJK_DATAREADER 0x06 -#define DDS_XRCE_OBJK_REQUESTER 0x07 -#define DDS_XRCE_OBJK_REPLIER 0x08 -#define DDS_XRCE_OBJK_TYPE 0x0A -#define DDS_XRCE_OBJK_QOSPROFILE 0x0B -#define DDS_XRCE_OBJK_APPLICATION 0x0C -#define DDS_XRCE_OBJK_AGENT 0x0D -#define DDS_XRCE_OBJK_CLIENT 0x0E -#define DDS_XRCE_OBJK_OTHER 0x0F - - -typedef struct ObjectId -{ - uint8_t data[2]; - -} ObjectId; - - -typedef struct ObjectPrefix -{ - uint8_t data[2]; - -} ObjectPrefix; -#define DDS_XRCE_OBJECTID_INVALID COMPOUND_LITERAL(ObjectId){{0x00, 0x00}} -#define DDS_XRCE_OBJECTID_AGENT COMPOUND_LITERAL(ObjectId){{0xFF, 0xFD}} -#define DDS_XRCE_OBJECTID_CLIENT COMPOUND_LITERAL(ObjectId){{0xFF, 0xFE}} -#define DDS_XRCE_OBJECTID_SESSION COMPOUND_LITERAL(ObjectId){{0xFF, 0xFF}} - - -typedef struct XrceCookie -{ - uint8_t data[4]; - -} XrceCookie; -#define DDS_XRCE_XRCE_COOKIE COMPOUND_LITERAL(XrceCookie){{0x58, 0x52, 0x43, 0x45}} - - -typedef struct XrceVersion -{ - uint8_t data[2]; - -} XrceVersion; -#define DDS_XRCE_XRCE_VERSION_MAJOR 0x01 -#define DDS_XRCE_XRCE_VERSION_MINOR 0x00 -#define DDS_XRCE_XRCE_VERSION COMPOUND_LITERAL(XrceVersion){{DDS_XRCE_XRCE_VERSION_MAJOR, DDS_XRCE_XRCE_VERSION_MINOR}} - - -typedef struct XrceVendorId -{ - uint8_t data[2]; - -} XrceVendorId; -#define DDS_XRCE_XRCE_VENDOR_INVALID {0x00, 0x00} - -typedef enum TransportLocatorFormat -{ - ADDRESS_FORMAT_SMALL = 0, - ADDRESS_FORMAT_MEDIUM = 1, - ADDRESS_FORMAT_LARGE = 2, - ADDRESS_FORMAT_STRING = 3 - -} TransportLocatorFormat; - - -typedef struct TransportLocatorSmall -{ - uint8_t address[2]; - uint8_t locator_port; - -} TransportLocatorSmall; - - -typedef struct TransportLocatorMedium -{ - uint8_t address[4]; - uint16_t locator_port; - -} TransportLocatorMedium; - - -typedef struct TransportLocatorLarge -{ - uint8_t address[16]; - uint32_t locator_port; - -} TransportLocatorLarge; - - -typedef struct TransportLocatorString -{ - char* value; - -} TransportLocatorString; - - -typedef union TransportLocatorU -{ - TransportLocatorSmall small_locator; - TransportLocatorMedium medium_locator; - TransportLocatorLarge large_locator; - TransportLocatorString string_locator; - -} TransportLocatorU; - - -typedef struct TransportLocator -{ - uint8_t format; - TransportLocatorU _; - -} TransportLocator; - - -typedef struct TransportLocatorSeq -{ - uint32_t size; - TransportLocator data[UXR_TRANSPORT_LOCATOR_SEQUENCE_MAX]; - -} TransportLocatorSeq; - - -typedef struct Property -{ - char* name; - char* value; - -} Property; - - -typedef struct PropertySeq -{ - uint32_t size; - Property data[UXR_PROPERTY_SEQUENCE_MAX]; - -} PropertySeq; - - -typedef struct CLIENT_Representation -{ - XrceCookie xrce_cookie; - XrceVersion xrce_version; - XrceVendorId xrce_vendor_id; - ClientKey client_key; - uint8_t session_id; - bool optional_properties; - PropertySeq properties; - uint16_t mtu; - -} CLIENT_Representation; - - -typedef struct AGENT_Representation -{ - XrceCookie xrce_cookie; - XrceVersion xrce_version; - XrceVendorId xrce_vendor_id; - bool optional_properties; - PropertySeq properties; - -} AGENT_Representation; - -typedef uint8_t RepresentationFormat; -#define DDS_XRCE_REPRESENTATION_BY_REFERENCE 0x01 -#define DDS_XRCE_REPRESENTATION_AS_XML_STRING 0x02 -#define DDS_XRCE_REPRESENTATION_IN_BINARY 0x03 -#define DDS_XRCE_REFERENCE_MAX_LEN 128 - - -typedef union OBJK_Representation3FormatsU -{ - char* object_reference; - char* xml_string_represenatation; - BinarySequence_t binary_representation; - -} OBJK_Representation3FormatsU; - - -typedef struct OBJK_Representation3Formats -{ - uint8_t format; - OBJK_Representation3FormatsU _; - -} OBJK_Representation3Formats; - - -typedef union OBJK_RepresentationRefAndXMLFormatsU -{ - char* object_name; - char* xml_string_represenatation; - -} OBJK_RepresentationRefAndXMLFormatsU; - - -typedef struct OBJK_RepresentationRefAndXMLFormats -{ - uint8_t format; - OBJK_RepresentationRefAndXMLFormatsU _; - -} OBJK_RepresentationRefAndXMLFormats; - - -typedef union OBJK_RepresentationBinAndXMLFormatsU -{ - BinarySequence_t binary_representation; - char* string_represenatation; - -} OBJK_RepresentationBinAndXMLFormatsU; - - -typedef struct OBJK_RepresentationBinAndXMLFormats -{ - uint8_t format; - OBJK_RepresentationBinAndXMLFormatsU _; - -} OBJK_RepresentationBinAndXMLFormats; - - -typedef struct OBJK_RepresentationRefAndXML_Base -{ - OBJK_RepresentationRefAndXMLFormats representation; - -} OBJK_RepresentationRefAndXML_Base; - - -typedef struct OBJK_RepresentationBinAndXML_Base -{ - OBJK_RepresentationBinAndXMLFormats representation; - -} OBJK_RepresentationBinAndXML_Base; - - -typedef struct OBJK_Representation3_Base -{ - OBJK_Representation3Formats representation; - -} OBJK_Representation3_Base; - - -typedef struct OBJK_QOSPROFILE_Representation -{ - OBJK_RepresentationRefAndXML_Base base; - -} OBJK_QOSPROFILE_Representation; - - -typedef struct OBJK_TYPE_Representation -{ - OBJK_RepresentationRefAndXML_Base base; - -} OBJK_TYPE_Representation; - - -typedef struct OBJK_DOMAIN_Representation -{ - OBJK_RepresentationRefAndXML_Base base; - -} OBJK_DOMAIN_Representation; - - -typedef struct OBJK_APPLICATION_Representation -{ - OBJK_RepresentationRefAndXML_Base base; - -} OBJK_APPLICATION_Representation; - - -typedef struct OBJK_PUBLISHER_Representation -{ - OBJK_RepresentationBinAndXML_Base base; - ObjectId participant_id; - -} OBJK_PUBLISHER_Representation; - - -typedef struct OBJK_SUBSCRIBER_Representation -{ - OBJK_RepresentationBinAndXML_Base base; - ObjectId participant_id; - -} OBJK_SUBSCRIBER_Representation; - - -typedef struct DATAWRITER_Representation -{ - OBJK_Representation3_Base base; - ObjectId publisher_id; - -} DATAWRITER_Representation; - - -typedef struct DATAREADER_Representation -{ - OBJK_Representation3_Base base; - ObjectId subscriber_id; - -} DATAREADER_Representation; - - -typedef struct OBJK_PARTICIPANT_Representation -{ - OBJK_Representation3_Base base; - int16_t domain_id; - -} OBJK_PARTICIPANT_Representation; - - -typedef struct OBJK_TOPIC_Representation -{ - OBJK_Representation3_Base base; - ObjectId participant_id; - -} OBJK_TOPIC_Representation; - - -typedef struct OBJK_REQUESTER_Representation -{ - OBJK_Representation3_Base base; - ObjectId participant_id; - -} OBJK_REQUESTER_Representation; - - -typedef struct OBJK_REPLIER_Representation -{ - OBJK_Representation3_Base base; - ObjectId participant_id; - -} OBJK_REPLIER_Representation; - - -typedef struct OBJK_DomainParticipant_Binary -{ - bool optional_domain_reference; - char* domain_reference; - bool optional_qos_profile_reference; - char* qos_profile_reference; - -} OBJK_DomainParticipant_Binary; - - -typedef struct OBJK_Topic_Binary -{ - char* topic_name; - bool optional_type_reference; - char* type_reference; - bool optional_type_name; - char* type_name; - -} OBJK_Topic_Binary; - - -typedef struct OBJK_Publisher_Binary_Qos -{ - bool optional_partitions; - StringSequence_t partitions; - bool optional_group_data; - BinarySequence_t group_data; - -} OBJK_Publisher_Binary_Qos; - - -typedef struct OBJK_Publisher_Binary -{ - bool optional_publisher_name; - char* publisher_name; - bool optional_qos; - OBJK_Publisher_Binary_Qos qos; - -} OBJK_Publisher_Binary; - - -typedef struct OBJK_Subscriber_Binary_Qos -{ - bool optional_partitions; - StringSequence_t partitions; - bool optional_group_data; - BinarySequence_t group_data; - -} OBJK_Subscriber_Binary_Qos; - - -typedef struct OBJK_Subscriber_Binary -{ - bool optional_subscriber_name; - char* subscriber_name; - bool optional_qos; - OBJK_Subscriber_Binary_Qos qos; - -} OBJK_Subscriber_Binary; - - -typedef enum EndpointQosFlags -{ - is_reliable = 0x01 << 0, - is_history_keep_last = 0x01 << 1, - is_ownership_exclusive = 0x01 << 2, - is_durability_transient_local = 0x01 << 3, - is_durability_transient = 0x01 << 4, - is_durability_persistent = 0x01 << 5 - -} EndpointQosFlags; - - -typedef struct OBJK_Endpoint_QosBinary -{ - uint16_t qos_flags; - bool optional_history_depth; - uint16_t history_depth; - bool optional_deadline_msec; - uint32_t deadline_msec; - bool optional_lifespan_msec; - uint32_t lifespan_msec; - bool optional_user_data; - BinarySequenceSmall_t user_data; - -} OBJK_Endpoint_QosBinary; - - -typedef struct OBJK_DataWriter_Binary_Qos -{ - OBJK_Endpoint_QosBinary base; - bool optional_ownership_strength; - uint64_t ownership_strength; - -} OBJK_DataWriter_Binary_Qos; - - -typedef struct OBJK_DataReader_Binary_Qos -{ - OBJK_Endpoint_QosBinary base; - bool optional_timebasedfilter_msec; - uint64_t timebasedfilter_msec; - bool optional_contentbased_filter; - char* contentbased_filter; - -} OBJK_DataReader_Binary_Qos; - - -typedef struct OBJK_DataReader_Binary -{ - ObjectId topic_id; - bool optional_qos; - OBJK_DataReader_Binary_Qos qos; - -} OBJK_DataReader_Binary; - - -typedef struct OBJK_DataWriter_Binary -{ - ObjectId topic_id; - bool optional_qos; - OBJK_DataWriter_Binary_Qos qos; - -} OBJK_DataWriter_Binary; - -typedef struct OBJK_Requester_Binary -{ - char* service_name; - char* request_type; - char* reply_type; - bool optional_request_topic_name; - char* request_topic_name; - bool optional_reply_topic_name; - char* reply_topic_name; - -} OBJK_Requester_Binary; - -typedef struct OBJK_Replier_Binary -{ - char* service_name; - char* request_type; - char* reply_type; - bool optional_request_topic_name; - char* request_topic_name; - bool optional_reply_topic_name; - char* reply_topic_name; - -} OBJK_Replier_Binary; - -typedef union ObjectVariantU -{ - AGENT_Representation agent; - CLIENT_Representation client; - OBJK_APPLICATION_Representation application; - OBJK_PARTICIPANT_Representation participant; - OBJK_QOSPROFILE_Representation qos_profile; - OBJK_TYPE_Representation type; - OBJK_TOPIC_Representation topic; - OBJK_PUBLISHER_Representation publisher; - OBJK_SUBSCRIBER_Representation subscriber; - OBJK_REQUESTER_Representation requester; - OBJK_REPLIER_Representation replier; - DATAWRITER_Representation data_writer; - DATAREADER_Representation data_reader; - -} ObjectVariantU; - - -typedef struct ObjectVariant -{ - uint8_t kind; - ObjectVariantU _; - -} ObjectVariant; - - -typedef struct CreationMode -{ - bool reuse; - bool replace; - -} CreationMode; - - -typedef struct RequestId -{ - uint8_t data[2]; - -} RequestId; - - -typedef struct ResultStatus -{ - uint8_t status; - uint8_t implementation_status; - -} ResultStatus; - - -typedef struct BaseObjectRequest -{ - RequestId request_id; - ObjectId object_id; - -} BaseObjectRequest; - -typedef BaseObjectRequest RelatedObjectRequest; - -typedef enum InfoMask -{ - INFO_CONFIGURATION = 0x01 << 0, - INFO_ACTIVITY = 0x01 << 1 - -} InfoMask; - - -typedef struct AGENT_ActivityInfo -{ - int16_t availability; - TransportLocatorSeq address_seq; - -} AGENT_ActivityInfo; - - -typedef struct DATAREADER_ActivityInfo -{ - int16_t highest_acked_num; - -} DATAREADER_ActivityInfo; - - -typedef struct DATAWRITER_ActivityInfo -{ - int16_t stream_seq_num; - uint64_t sample_seq_num; - -} DATAWRITER_ActivityInfo; - - -typedef union ActivityInfoVariantU -{ - AGENT_ActivityInfo agent; - DATAWRITER_ActivityInfo data_writer; - DATAREADER_ActivityInfo data_reader; - -} ActivityInfoVariantU; - - -typedef struct ActivityInfoVariant -{ - uint8_t kind; - ActivityInfoVariantU _; - -} ActivityInfoVariant; - - -typedef struct ObjectInfo -{ - bool optional_config; - ObjectVariant config; - bool optional_activity; - ActivityInfoVariant activity; - -} ObjectInfo; - - -typedef struct BaseObjectReply -{ - BaseObjectRequest related_request; - ResultStatus result; - -} BaseObjectReply; - - -typedef enum DataFormat -{ - FORMAT_DATA = 0x00, - FORMAT_SAMPLE = 0x02, - FORMAT_DATA_SEQ = 0x08, - FORMAT_SAMPLE_SEQ = 0x0A, - FORMAT_PACKED_SAMPLES = 0x0E, - FORMAT_MASK = 0x0E - -} DataFormat; - - -typedef struct DataDeliveryControl -{ - uint16_t max_samples; - uint16_t max_elapsed_time; - uint16_t max_bytes_per_seconds; - uint16_t min_pace_period; - -} DataDeliveryControl; - - -typedef struct ReadSpecification -{ - uint8_t preferred_stream_id; - uint8_t data_format; - bool optional_content_filter_expression; - char* content_filter_expression; - bool optional_delivery_control; - DataDeliveryControl delivery_control; - -} ReadSpecification; - - -typedef enum SampleInfoFlags -{ - INSTANCE_STATE_UNREGISTERD = 0x01 << 0, - INSTANCE_STATE_DISPOSED = 0x01 << 1, - VIEW_STATE_NEW = 0x01 << 2, - SAMPLE_STATE_READ = 0x01 << 3 - -} SampleInfoFlags; - - -typedef enum SampleInfoFormat -{ - FORMAT_EMPTY = 0x00, - FORMAT_SEQNUM = 0x01, - FORMAT_TIMESTAMP = 0x02, - FORMAT_SEQN_TIMS = 0x03 - -} SampleInfoFormat; - - -typedef struct SeqNumberAndTimestamp -{ - uint32_t sequence_number; - uint32_t session_time_offset; - -} SeqNumberAndTimestamp; - - -typedef union SampleInfoDetailU -{ - uint32_t sequence_number; - uint32_t session_time_offset; - SeqNumberAndTimestamp seqnum_n_timestamp; - -} SampleInfoDetailU; - - -typedef struct SampleInfoDetail -{ - uint32_t format; - SampleInfoDetailU _; - -} SampleInfoDetail; - - -typedef struct SampleInfo -{ - uint8_t state; - SampleInfoDetail detail; - -} SampleInfo; - -typedef uint16_t DeciSecond; - - -typedef struct SampleInfoDelta -{ - uint8_t state; - uint8_t seq_number_delta; - uint16_t timestamp_delta; - -} SampleInfoDelta; - - -typedef struct SampleData -{ - uint32_t size; - uint8_t data[UXR_SAMPLE_DATA_SIZE_MAX]; - -} SampleData; - - -typedef struct SampleDataSeq -{ - uint32_t size; - SampleData data[UXR_SAMPLE_DATA_SEQUENCE_MAX]; - -} SampleDataSeq; - - -typedef struct Sample -{ - SampleInfo info; - SampleData data; - -} Sample; - - -typedef struct SampleSeq -{ - uint32_t size; - Sample data[UXR_SAMPLE_SEQUENCE_MAX]; - -} SampleSeq; - - -typedef struct SampleDelta -{ - SampleInfoDelta info_delta; - SampleData data; - -} SampleDelta; - - -typedef struct SampleDeltaSequence -{ - uint32_t size; - SampleDelta data[UXR_SAMPLE_DELTA_SEQUENCE_MAX]; - -} SampleDeltaSequence; - - -typedef struct PackedSamples -{ - SampleInfo info_base; - SampleDeltaSequence sample_delta_seq; - -} PackedSamples; - - -typedef struct SamplePackedSeq -{ - uint32_t size; - PackedSamples data[UXR_PACKED_SAMPLES_SEQUENCE_MAX]; - -} SamplePackedSeq; - - -typedef union DataRepresentationU -{ - SampleData data; - Sample sample; - SampleDataSeq data_seq; - SampleSeq sample_seq; - PackedSamples packed_samples; - -} DataRepresentationU; - - -typedef struct DataRepresentation -{ - uint8_t format; - DataRepresentationU _; - -} DataRepresentation; - - -typedef struct CREATE_CLIENT_Payload -{ - CLIENT_Representation client_representation; - -} CREATE_CLIENT_Payload; - - -typedef struct CREATE_Payload -{ - BaseObjectRequest base; - ObjectVariant object_representation; - -} CREATE_Payload; - - -typedef struct GET_INFO_Payload -{ - BaseObjectRequest base; - uint32_t info_mask; - -} GET_INFO_Payload; - - -typedef struct DELETE_Payload -{ - BaseObjectRequest base; - -} DELETE_Payload; - - -typedef struct STATUS_AGENT_Payload -{ - ResultStatus result; - AGENT_Representation agent_info; - -} STATUS_AGENT_Payload; - - -typedef struct STATUS_Payload -{ - BaseObjectReply base; - -} STATUS_Payload; - - -typedef struct INFO_Payload -{ - BaseObjectReply base; - ObjectInfo object_info; - -} INFO_Payload; - - -typedef struct READ_DATA_Payload -{ - BaseObjectRequest base; - ReadSpecification read_specification; - -} READ_DATA_Payload; - - -typedef struct WRITE_DATA_Payload_Data -{ - BaseObjectRequest base; - -} WRITE_DATA_Payload_Data; - - -typedef struct WRITE_DATA_Payload_Sample -{ - BaseObjectRequest base; - Sample sample; - -} WRITE_DATA_Payload_Sample; - - -typedef struct WRITE_DATA_Payload_DataSeq -{ - BaseObjectRequest base; - SampleDataSeq data_seq; - -} WRITE_DATA_Payload_DataSeq; - - -typedef struct WRITE_DATA_Payload_SampleSeq -{ - BaseObjectRequest base; - SampleSeq sample_seq; - -} WRITE_DATA_Payload_SampleSeq; - - -typedef struct WRITE_DATA_Payload_PackedSamples -{ - BaseObjectRequest base; - PackedSamples packed_samples; - -} WRITE_DATA_Payload_PackedSamples; - - -typedef struct DATA_Payload_Data -{ - BaseObjectRequest base; - -} DATA_Payload_Data; - - -typedef struct DATA_Payload_Sample -{ - BaseObjectRequest base; - Sample sample; - -} DATA_Payload_Sample; - - -typedef struct DATA_Payload_DataSeq -{ - BaseObjectRequest base; - SampleDataSeq data_seq; - -} DATA_Payload_DataSeq; - - -typedef struct DATA_Payload_SampleSeq -{ - BaseObjectRequest base; - SampleSeq sample_seq; - -} DATA_Payload_SampleSeq; - - -typedef struct DATA_Payload_PackedSamples -{ - BaseObjectRequest base; - PackedSamples packed_samples; - -} DATA_Payload_PackedSamples; - - -typedef struct ACKNACK_Payload -{ - uint16_t first_unacked_seq_num; - uint8_t nack_bitmap[2]; - uint8_t stream_id; - -} ACKNACK_Payload; - -typedef struct HEARTBEAT_Payload -{ - uint16_t first_unacked_seq_nr; - uint16_t last_unacked_seq_nr; - uint8_t stream_id; - -} HEARTBEAT_Payload; - -typedef struct TIMESTAMP_Payload -{ - Time_t transmit_timestamp; - -} TIMESTAMP_Payload; - -typedef struct TIMESTAMP_REPLY_Payload -{ - Time_t transmit_timestamp; - Time_t receive_timestamp; - Time_t originate_timestamp; - -} TIMESTAMP_REPLY_Payload; - -typedef struct GuidPrefix -{ - uint8_t data[12]; - -} GuidPrefix_t; - -typedef struct EntityId_t -{ - uint8_t entityKey[3]; - uint8_t entityKind; - -} EntityId_t; - -typedef struct GUID_t -{ - GuidPrefix_t guidPrefix; - EntityId_t entityId; - -} GUID_t; - -typedef struct SequenceNumber_t -{ - int32_t high; - uint32_t low; - -} SequenceNumber_t; - -typedef struct SampleIdentity -{ - GUID_t writer_guid; - SequenceNumber_t sequence_number; - -} SampleIdentity; - -#ifdef PERFORMANCE_TESTING -typedef struct PERFORMANCE_Payload -{ - uint32_t epoch_time_lsb; - uint32_t epoch_time_msb; - uint8_t* buf; - uint16_t len; - -} PERFORMANCE_Payload; -#endif // ifdef PERFORMANCE_TESTING - -bool uxr_serialize_Time_t( - ucdrBuffer* buffer, - const Time_t* input); -bool uxr_deserialize_Time_t( - ucdrBuffer* buffer, - Time_t* output); - -bool uxr_serialize_BinarySequence_t( - ucdrBuffer* buffer, - const BinarySequence_t* input); -bool uxr_deserialize_BinarySequence_t( - ucdrBuffer* buffer, - BinarySequence_t* output); - -bool uxr_serialize_StringSequence_t( - ucdrBuffer* buffer, - const StringSequence_t* input); -bool uxr_deserialize_StringSequence_t( - ucdrBuffer* buffer, - StringSequence_t* output); - -bool uxr_serialize_ClientKey( - ucdrBuffer* buffer, - const ClientKey* input); -bool uxr_deserialize_ClientKey( - ucdrBuffer* buffer, - ClientKey* output); - -bool uxr_serialize_ObjectId( - ucdrBuffer* buffer, - const ObjectId* input); -bool uxr_deserialize_ObjectId( - ucdrBuffer* buffer, - ObjectId* output); - -bool uxr_serialize_ObjectPrefix( - ucdrBuffer* buffer, - const ObjectPrefix* input); -bool uxr_deserialize_ObjectPrefix( - ucdrBuffer* buffer, - ObjectPrefix* output); - -bool uxr_serialize_XrceCookie( - ucdrBuffer* buffer, - const XrceCookie* input); -bool uxr_deserialize_XrceCookie( - ucdrBuffer* buffer, - XrceCookie* output); - -bool uxr_serialize_XrceVersion( - ucdrBuffer* buffer, - const XrceVersion* input); -bool uxr_deserialize_XrceVersion( - ucdrBuffer* buffer, - XrceVersion* output); - -bool uxr_serialize_XrceVendorId( - ucdrBuffer* buffer, - const XrceVendorId* input); -bool uxr_deserialize_XrceVendorId( - ucdrBuffer* buffer, - XrceVendorId* output); - -bool uxr_serialize_TransportLocatorSmall( - ucdrBuffer* buffer, - const TransportLocatorSmall* input); -bool uxr_deserialize_TransportLocatorSmall( - ucdrBuffer* buffer, - TransportLocatorSmall* output); - -bool uxr_serialize_TransportLocatorMedium( - ucdrBuffer* buffer, - const TransportLocatorMedium* input); -bool uxr_deserialize_TransportLocatorMedium( - ucdrBuffer* buffer, - TransportLocatorMedium* output); - -bool uxr_serialize_TransportLocatorLarge( - ucdrBuffer* buffer, - const TransportLocatorLarge* input); -bool uxr_deserialize_TransportLocatorLarge( - ucdrBuffer* buffer, - TransportLocatorLarge* output); - -bool uxr_serialize_TransportLocatorString( - ucdrBuffer* buffer, - const TransportLocatorString* input); -bool uxr_deserialize_TransportLocatorString( - ucdrBuffer* buffer, - TransportLocatorString* output); - -bool uxr_serialize_TransportLocator( - ucdrBuffer* buffer, - const TransportLocator* input); -bool uxr_deserialize_TransportLocator( - ucdrBuffer* buffer, - TransportLocator* output); - -bool uxr_serialize_TransportLocatorSeq( - ucdrBuffer* buffer, - const TransportLocatorSeq* input); -bool uxr_deserialize_TransportLocatorSeq( - ucdrBuffer* buffer, - TransportLocatorSeq* output); - -bool uxr_serialize_Property( - ucdrBuffer* buffer, - const Property* input); -bool uxr_deserialize_Property( - ucdrBuffer* buffer, - Property* output); - -bool uxr_serialize_PropertySeq( - ucdrBuffer* buffer, - const PropertySeq* input); -bool uxr_deserialize_PropertySeq( - ucdrBuffer* buffer, - PropertySeq* output); - -bool uxr_serialize_CLIENT_Representation( - ucdrBuffer* buffer, - const CLIENT_Representation* input); -bool uxr_deserialize_CLIENT_Representation( - ucdrBuffer* buffer, - CLIENT_Representation* output); - -bool uxr_serialize_AGENT_Representation( - ucdrBuffer* buffer, - const AGENT_Representation* input); -bool uxr_deserialize_AGENT_Representation( - ucdrBuffer* buffer, - AGENT_Representation* output); - -bool uxr_serialize_OBJK_Representation3Formats( - ucdrBuffer* buffer, - const OBJK_Representation3Formats* input); -bool uxr_deserialize_OBJK_Representation3Formats( - ucdrBuffer* buffer, - OBJK_Representation3Formats* output); - -bool uxr_serialize_OBJK_RepresentationRefAndXMLFormats( - ucdrBuffer* buffer, - const OBJK_RepresentationRefAndXMLFormats* input); -bool uxr_deserialize_OBJK_RepresentationRefAndXMLFormats( - ucdrBuffer* buffer, - OBJK_RepresentationRefAndXMLFormats* output); - -bool uxr_serialize_OBJK_RepresentationBinAndXMLFormats( - ucdrBuffer* buffer, - const OBJK_RepresentationBinAndXMLFormats* input); -bool uxr_deserialize_OBJK_RepresentationBinAndXMLFormats( - ucdrBuffer* buffer, - OBJK_RepresentationBinAndXMLFormats* output); - -bool uxr_serialize_OBJK_RepresentationRefAndXML_Base( - ucdrBuffer* buffer, - const OBJK_RepresentationRefAndXML_Base* input); -bool uxr_deserialize_OBJK_RepresentationRefAndXML_Base( - ucdrBuffer* buffer, - OBJK_RepresentationRefAndXML_Base* output); - -bool uxr_serialize_OBJK_RepresentationBinAndXML_Base( - ucdrBuffer* buffer, - const OBJK_RepresentationBinAndXML_Base* input); -bool uxr_deserialize_OBJK_RepresentationBinAndXML_Base( - ucdrBuffer* buffer, - OBJK_RepresentationBinAndXML_Base* output); - -bool uxr_serialize_OBJK_Representation3_Base( - ucdrBuffer* buffer, - const OBJK_Representation3_Base* input); -bool uxr_deserialize_OBJK_Representation3_Base( - ucdrBuffer* buffer, - OBJK_Representation3_Base* output); - -bool uxr_serialize_OBJK_QOSPROFILE_Representation( - ucdrBuffer* buffer, - const OBJK_QOSPROFILE_Representation* input); -bool uxr_deserialize_OBJK_QOSPROFILE_Representation( - ucdrBuffer* buffer, - OBJK_QOSPROFILE_Representation* output); - -bool uxr_serialize_OBJK_TYPE_Representation( - ucdrBuffer* buffer, - const OBJK_TYPE_Representation* input); -bool uxr_deserialize_OBJK_TYPE_Representation( - ucdrBuffer* buffer, - OBJK_TYPE_Representation* output); - -bool uxr_serialize_OBJK_DOMAIN_Representation( - ucdrBuffer* buffer, - const OBJK_DOMAIN_Representation* input); -bool uxr_deserialize_OBJK_DOMAIN_Representation( - ucdrBuffer* buffer, - OBJK_DOMAIN_Representation* output); - -bool uxr_serialize_OBJK_APPLICATION_Representation( - ucdrBuffer* buffer, - const OBJK_APPLICATION_Representation* input); -bool uxr_deserialize_OBJK_APPLICATION_Representation( - ucdrBuffer* buffer, - OBJK_APPLICATION_Representation* output); - -bool uxr_serialize_OBJK_PUBLISHER_Representation( - ucdrBuffer* buffer, - const OBJK_PUBLISHER_Representation* input); -bool uxr_deserialize_OBJK_PUBLISHER_Representation( - ucdrBuffer* buffer, - OBJK_PUBLISHER_Representation* output); - -bool uxr_serialize_OBJK_SUBSCRIBER_Representation( - ucdrBuffer* buffer, - const OBJK_SUBSCRIBER_Representation* input); -bool uxr_deserialize_OBJK_SUBSCRIBER_Representation( - ucdrBuffer* buffer, - OBJK_SUBSCRIBER_Representation* output); - -bool uxr_serialize_DATAWRITER_Representation( - ucdrBuffer* buffer, - const DATAWRITER_Representation* input); -bool uxr_deserialize_DATAWRITER_Representation( - ucdrBuffer* buffer, - DATAWRITER_Representation* output); - -bool uxr_serialize_DATAREADER_Representation( - ucdrBuffer* buffer, - const DATAREADER_Representation* input); -bool uxr_deserialize_DATAREADER_Representation( - ucdrBuffer* buffer, - DATAREADER_Representation* output); - -bool uxr_serialize_OBJK_PARTICIPANT_Representation( - ucdrBuffer* buffer, - const OBJK_PARTICIPANT_Representation* input); -bool uxr_deserialize_OBJK_PARTICIPANT_Representation( - ucdrBuffer* buffer, - OBJK_PARTICIPANT_Representation* output); - -bool uxr_serialize_OBJK_TOPIC_Representation( - ucdrBuffer* buffer, - const OBJK_TOPIC_Representation* input); -bool uxr_deserialize_OBJK_TOPIC_Representation( - ucdrBuffer* buffer, - OBJK_TOPIC_Representation* output); - -bool uxr_serialize_OBJK_REQUESTER_Representation( - ucdrBuffer* buffer, - const OBJK_REQUESTER_Representation* input); -bool uxr_deserialize_OBJK_REQUESTER_Representation( - ucdrBuffer* buffer, - OBJK_REQUESTER_Representation* output); - -bool uxr_serialize_OBJK_REPLIER_Representation( - ucdrBuffer* buffer, - const OBJK_REPLIER_Representation* input); -bool uxr_deserialize_OBJK_REPLIER_Representation( - ucdrBuffer* buffer, - OBJK_REPLIER_Representation* output); - -bool uxr_serialize_OBJK_DomainParticipant_Binary( - ucdrBuffer* buffer, - const OBJK_DomainParticipant_Binary* input); -bool uxr_deserialize_OBJK_DomainParticipant_Binary( - ucdrBuffer* buffer, - OBJK_DomainParticipant_Binary* output); - -bool uxr_serialize_OBJK_Topic_Binary( - ucdrBuffer* buffer, - const OBJK_Topic_Binary* input); -bool uxr_deserialize_OBJK_Topic_Binary( - ucdrBuffer* buffer, - OBJK_Topic_Binary* output); - -bool uxr_serialize_OBJK_Publisher_Binary_Qos( - ucdrBuffer* buffer, - const OBJK_Publisher_Binary_Qos* input); -bool uxr_deserialize_OBJK_Publisher_Binary_Qos( - ucdrBuffer* buffer, - OBJK_Publisher_Binary_Qos* output); - -bool uxr_serialize_OBJK_Publisher_Binary( - ucdrBuffer* buffer, - const OBJK_Publisher_Binary* input); -bool uxr_deserialize_OBJK_Publisher_Binary( - ucdrBuffer* buffer, - OBJK_Publisher_Binary* output); - -bool uxr_serialize_OBJK_Subscriber_Binary_Qos( - ucdrBuffer* buffer, - const OBJK_Subscriber_Binary_Qos* input); -bool uxr_deserialize_OBJK_Subscriber_Binary_Qos( - ucdrBuffer* buffer, - OBJK_Subscriber_Binary_Qos* output); - -bool uxr_serialize_OBJK_Subscriber_Binary( - ucdrBuffer* buffer, - const OBJK_Subscriber_Binary* input); -bool uxr_deserialize_OBJK_Subscriber_Binary( - ucdrBuffer* buffer, - OBJK_Subscriber_Binary* output); - -bool uxr_serialize_OBJK_Endpoint_QosBinary( - ucdrBuffer* buffer, - const OBJK_Endpoint_QosBinary* input); -bool uxr_deserialize_OBJK_Endpoint_QosBinary( - ucdrBuffer* buffer, - OBJK_Endpoint_QosBinary* output); - -bool uxr_serialize_OBJK_DataWriter_Binary_Qos( - ucdrBuffer* buffer, - const OBJK_DataWriter_Binary_Qos* input); -bool uxr_deserialize_OBJK_DataWriter_Binary_Qos( - ucdrBuffer* buffer, - OBJK_DataWriter_Binary_Qos* output); - -bool uxr_serialize_OBJK_DataReader_Binary_Qos( - ucdrBuffer* buffer, - const OBJK_DataReader_Binary_Qos* input); -bool uxr_deserialize_OBJK_DataReader_Binary_Qos( - ucdrBuffer* buffer, - OBJK_DataReader_Binary_Qos* output); - -bool uxr_serialize_OBJK_DataReader_Binary( - ucdrBuffer* buffer, - const OBJK_DataReader_Binary* input); -bool uxr_deserialize_OBJK_DataReader_Binary( - ucdrBuffer* buffer, - OBJK_DataReader_Binary* output); - -bool uxr_serialize_OBJK_DataWriter_Binary( - ucdrBuffer* buffer, - const OBJK_DataWriter_Binary* input); -bool uxr_deserialize_OBJK_DataWriter_Binary( - ucdrBuffer* buffer, - OBJK_DataWriter_Binary* output); - -bool uxr_serialize_OBJK_Requester_Binary( - ucdrBuffer* buffer, - const OBJK_Requester_Binary* input); -bool uxr_deserialize_OBJK_Requester_Binary( - ucdrBuffer* buffer, - OBJK_Requester_Binary* output); - -bool uxr_serialize_OBJK_Replier_Binary( - ucdrBuffer* buffer, - const OBJK_Replier_Binary* input); -bool uxr_deserialize_OBJK_Replier_Binary( - ucdrBuffer* buffer, - OBJK_Replier_Binary* output); - -bool uxr_serialize_ObjectVariant( - ucdrBuffer* buffer, - const ObjectVariant* input); -bool uxr_deserialize_ObjectVariant( - ucdrBuffer* buffer, - ObjectVariant* output); - -bool uxr_serialize_CreationMode( - ucdrBuffer* buffer, - const CreationMode* input); -bool uxr_deserialize_CreationMode( - ucdrBuffer* buffer, - CreationMode* output); - -bool uxr_serialize_RequestId( - ucdrBuffer* buffer, - const RequestId* input); -bool uxr_deserialize_RequestId( - ucdrBuffer* buffer, - RequestId* output); - -bool uxr_serialize_ResultStatus( - ucdrBuffer* buffer, - const ResultStatus* input); -bool uxr_deserialize_ResultStatus( - ucdrBuffer* buffer, - ResultStatus* output); - -bool uxr_serialize_BaseObjectRequest( - ucdrBuffer* buffer, - const BaseObjectRequest* input); -bool uxr_deserialize_BaseObjectRequest( - ucdrBuffer* buffer, - BaseObjectRequest* output); - -bool uxr_serialize_AGENT_ActivityInfo( - ucdrBuffer* buffer, - const AGENT_ActivityInfo* input); -bool uxr_deserialize_AGENT_ActivityInfo( - ucdrBuffer* buffer, - AGENT_ActivityInfo* output); - -bool uxr_serialize_DATAREADER_ActivityInfo( - ucdrBuffer* buffer, - const DATAREADER_ActivityInfo* input); -bool uxr_deserialize_DATAREADER_ActivityInfo( - ucdrBuffer* buffer, - DATAREADER_ActivityInfo* output); - -bool uxr_serialize_DATAWRITER_ActivityInfo( - ucdrBuffer* buffer, - const DATAWRITER_ActivityInfo* input); -bool uxr_deserialize_DATAWRITER_ActivityInfo( - ucdrBuffer* buffer, - DATAWRITER_ActivityInfo* output); - -bool uxr_serialize_ActivityInfoVariant( - ucdrBuffer* buffer, - const ActivityInfoVariant* input); -bool uxr_deserialize_ActivityInfoVariant( - ucdrBuffer* buffer, - ActivityInfoVariant* output); - -bool uxr_serialize_ObjectInfo( - ucdrBuffer* buffer, - const ObjectInfo* input); -bool uxr_deserialize_ObjectInfo( - ucdrBuffer* buffer, - ObjectInfo* output); - -bool uxr_serialize_BaseObjectReply( - ucdrBuffer* buffer, - const BaseObjectReply* input); -bool uxr_deserialize_BaseObjectReply( - ucdrBuffer* buffer, - BaseObjectReply* output); - -bool uxr_serialize_DataDeliveryControl( - ucdrBuffer* buffer, - const DataDeliveryControl* input); -bool uxr_deserialize_DataDeliveryControl( - ucdrBuffer* buffer, - DataDeliveryControl* output); - -bool uxr_serialize_ReadSpecification( - ucdrBuffer* buffer, - const ReadSpecification* input); -bool uxr_deserialize_ReadSpecification( - ucdrBuffer* buffer, - ReadSpecification* output); - -bool uxr_serialize_SeqNumberAndTimestamp( - ucdrBuffer* buffer, - const SeqNumberAndTimestamp* input); -bool uxr_deserialize_SeqNumberAndTimestamp( - ucdrBuffer* buffer, - SeqNumberAndTimestamp* output); - -bool uxr_serialize_SampleInfoDetail( - ucdrBuffer* buffer, - const SampleInfoDetail* input); -bool uxr_deserialize_SampleInfoDetail( - ucdrBuffer* buffer, - SampleInfoDetail* output); - -bool uxr_serialize_SampleInfo( - ucdrBuffer* buffer, - const SampleInfo* input); -bool uxr_deserialize_SampleInfo( - ucdrBuffer* buffer, - SampleInfo* output); - -bool uxr_serialize_SampleInfoDelta( - ucdrBuffer* buffer, - const SampleInfoDelta* input); -bool uxr_deserialize_SampleInfoDelta( - ucdrBuffer* buffer, - SampleInfoDelta* output); - -bool uxr_serialize_SampleData( - ucdrBuffer* buffer, - const SampleData* input); -bool uxr_deserialize_SampleData( - ucdrBuffer* buffer, - SampleData* output); - -bool uxr_serialize_SampleDataSeq( - ucdrBuffer* buffer, - const SampleDataSeq* input); -bool uxr_deserialize_SampleDataSeq( - ucdrBuffer* buffer, - SampleDataSeq* output); - -bool uxr_serialize_Sample( - ucdrBuffer* buffer, - const Sample* input); -bool uxr_deserialize_Sample( - ucdrBuffer* buffer, - Sample* output); - -bool uxr_serialize_SampleSeq( - ucdrBuffer* buffer, - const SampleSeq* input); -bool uxr_deserialize_SampleSeq( - ucdrBuffer* buffer, - SampleSeq* output); - -bool uxr_serialize_SampleDelta( - ucdrBuffer* buffer, - const SampleDelta* input); -bool uxr_deserialize_SampleDelta( - ucdrBuffer* buffer, - SampleDelta* output); - -bool uxr_serialize_SampleDeltaSequence( - ucdrBuffer* buffer, - const SampleDeltaSequence* input); -bool uxr_deserialize_SampleDeltaSequence( - ucdrBuffer* buffer, - SampleDeltaSequence* output); - -bool uxr_serialize_PackedSamples( - ucdrBuffer* buffer, - const PackedSamples* input); -bool uxr_deserialize_PackedSamples( - ucdrBuffer* buffer, - PackedSamples* output); - -bool uxr_serialize_SamplePackedSeq( - ucdrBuffer* buffer, - const SamplePackedSeq* input); -bool uxr_deserialize_SamplePackedSeq( - ucdrBuffer* buffer, - SamplePackedSeq* output); - -bool uxr_serialize_DataRepresentation( - ucdrBuffer* buffer, - const DataRepresentation* input); -bool uxr_deserialize_DataRepresentation( - ucdrBuffer* buffer, - DataRepresentation* output); - -bool uxr_serialize_CREATE_CLIENT_Payload( - ucdrBuffer* buffer, - const CREATE_CLIENT_Payload* input); -bool uxr_deserialize_CREATE_CLIENT_Payload( - ucdrBuffer* buffer, - CREATE_CLIENT_Payload* output); - -bool uxr_serialize_CREATE_Payload( - ucdrBuffer* buffer, - const CREATE_Payload* input); -bool uxr_deserialize_CREATE_Payload( - ucdrBuffer* buffer, - CREATE_Payload* output); - -bool uxr_serialize_GET_INFO_Payload( - ucdrBuffer* buffer, - const GET_INFO_Payload* input); -bool uxr_deserialize_GET_INFO_Payload( - ucdrBuffer* buffer, - GET_INFO_Payload* output); - -bool uxr_serialize_DELETE_Payload( - ucdrBuffer* buffer, - const DELETE_Payload* input); -bool uxr_deserialize_DELETE_Payload( - ucdrBuffer* buffer, - DELETE_Payload* output); - -bool uxr_serialize_STATUS_AGENT_Payload( - ucdrBuffer* buffer, - const STATUS_AGENT_Payload* input); -bool uxr_deserialize_STATUS_AGENT_Payload( - ucdrBuffer* buffer, - STATUS_AGENT_Payload* output); - -bool uxr_serialize_STATUS_Payload( - ucdrBuffer* buffer, - const STATUS_Payload* input); -bool uxr_deserialize_STATUS_Payload( - ucdrBuffer* buffer, - STATUS_Payload* output); - -bool uxr_serialize_INFO_Payload( - ucdrBuffer* buffer, - const INFO_Payload* input); -bool uxr_deserialize_INFO_Payload( - ucdrBuffer* buffer, - INFO_Payload* output); - -bool uxr_serialize_READ_DATA_Payload( - ucdrBuffer* buffer, - const READ_DATA_Payload* input); -bool uxr_deserialize_READ_DATA_Payload( - ucdrBuffer* buffer, - READ_DATA_Payload* output); - -bool uxr_serialize_WRITE_DATA_Payload_Data( - ucdrBuffer* buffer, - const WRITE_DATA_Payload_Data* input); -bool uxr_deserialize_WRITE_DATA_Payload_Data( - ucdrBuffer* buffer, - WRITE_DATA_Payload_Data* output); - -bool uxr_serialize_WRITE_DATA_Payload_Sample( - ucdrBuffer* buffer, - const WRITE_DATA_Payload_Sample* input); -bool uxr_deserialize_WRITE_DATA_Payload_Sample( - ucdrBuffer* buffer, - WRITE_DATA_Payload_Sample* output); - -bool uxr_serialize_WRITE_DATA_Payload_DataSeq( - ucdrBuffer* buffer, - const WRITE_DATA_Payload_DataSeq* input); -bool uxr_deserialize_WRITE_DATA_Payload_DataSeq( - ucdrBuffer* buffer, - WRITE_DATA_Payload_DataSeq* output); - -bool uxr_serialize_WRITE_DATA_Payload_SampleSeq( - ucdrBuffer* buffer, - const WRITE_DATA_Payload_SampleSeq* input); -bool uxr_deserialize_WRITE_DATA_Payload_SampleSeq( - ucdrBuffer* buffer, - WRITE_DATA_Payload_SampleSeq* output); - -bool uxr_serialize_WRITE_DATA_Payload_PackedSamples( - ucdrBuffer* buffer, - const WRITE_DATA_Payload_PackedSamples* input); -bool uxr_deserialize_WRITE_DATA_Payload_PackedSamples( - ucdrBuffer* buffer, - WRITE_DATA_Payload_PackedSamples* output); - -bool uxr_serialize_DATA_Payload_Data( - ucdrBuffer* buffer, - const DATA_Payload_Data* input); -bool uxr_deserialize_DATA_Payload_Data( - ucdrBuffer* buffer, - DATA_Payload_Data* output); - -bool uxr_serialize_DATA_Payload_Sample( - ucdrBuffer* buffer, - const DATA_Payload_Sample* input); -bool uxr_deserialize_DATA_Payload_Sample( - ucdrBuffer* buffer, - DATA_Payload_Sample* output); - -bool uxr_serialize_DATA_Payload_DataSeq( - ucdrBuffer* buffer, - const DATA_Payload_DataSeq* input); -bool uxr_deserialize_DATA_Payload_DataSeq( - ucdrBuffer* buffer, - DATA_Payload_DataSeq* output); - -bool uxr_serialize_DATA_Payload_SampleSeq( - ucdrBuffer* buffer, - const DATA_Payload_SampleSeq* input); -bool uxr_deserialize_DATA_Payload_SampleSeq( - ucdrBuffer* buffer, - DATA_Payload_SampleSeq* output); - -bool uxr_serialize_DATA_Payload_PackedSamples( - ucdrBuffer* buffer, - const DATA_Payload_PackedSamples* input); -bool uxr_deserialize_DATA_Payload_PackedSamples( - ucdrBuffer* buffer, - DATA_Payload_PackedSamples* output); - -bool uxr_serialize_ACKNACK_Payload( - ucdrBuffer* buffer, - const ACKNACK_Payload* input); -bool uxr_deserialize_ACKNACK_Payload( - ucdrBuffer* buffer, - ACKNACK_Payload* output); - -bool uxr_serialize_HEARTBEAT_Payload( - ucdrBuffer* buffer, - const HEARTBEAT_Payload* input); -bool uxr_deserialize_HEARTBEAT_Payload( - ucdrBuffer* buffer, - HEARTBEAT_Payload* output); - -bool uxr_serialize_TIMESTAMP_Payload( - ucdrBuffer* buffer, - const TIMESTAMP_Payload* input); -bool uxr_deserialize_TIMESTAMP_Payload( - ucdrBuffer* buffer, - TIMESTAMP_Payload* output); - -bool uxr_serialize_TIMESTAMP_REPLY_Payload( - ucdrBuffer* buffer, - const TIMESTAMP_REPLY_Payload* input); -bool uxr_deserialize_TIMESTAMP_REPLY_Payload( - ucdrBuffer* buffer, - TIMESTAMP_REPLY_Payload* output); - -bool uxr_serialize_GuidPrefix_t( - ucdrBuffer* buffer, - const GuidPrefix_t* input); -bool uxr_deserialize_GuidPrefix_t( - ucdrBuffer* buffer, - GuidPrefix_t* output); - -bool uxr_serialize_EntityId_t( - ucdrBuffer* buffer, - const EntityId_t* input); -bool uxr_deserialize_EntityId_t( - ucdrBuffer* buffer, - EntityId_t* output); - -bool uxr_serialize_GUID_t( - ucdrBuffer* buffer, - const GUID_t* input); -bool uxr_deserialize_GUID_t( - ucdrBuffer* buffer, - GUID_t* output); - -bool uxr_serialize_SequenceNumber_t( - ucdrBuffer* buffer, - const SequenceNumber_t* input); -bool uxr_deserialize_SequenceNumber_t( - ucdrBuffer* buffer, - SequenceNumber_t* output); - -bool uxr_serialize_SampleIdentity( - ucdrBuffer* buffer, - const SampleIdentity* input); -bool uxr_deserialize_SampleIdentity( - ucdrBuffer* buffer, - SampleIdentity* output); - -#ifdef PERFORMANCE_TESTING -bool uxr_serialize_PERFORMANCE_Payload( - ucdrBuffer* buffer, - const PERFORMANCE_Payload* input); -bool uxr_deserialize_PERFORMANCE_Payload( - ucdrBuffer* buffer, - PERFORMANCE_Payload* input); -#endif // ifdef PERFORMANCE_TESTING - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_CORE_TYPE_XRCETYPES_H_ diff --git a/src/uxr/client/defines.h b/src/uxr/client/defines.h deleted file mode 100755 index 506d6593b..000000000 --- a/src/uxr/client/defines.h +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_DEFINES_H_ -#define _UXR_CLIENT_DEFINES_H_ - -#ifdef __cplusplus -#define COMPOUND_LITERAL(x) x -#else -#define COMPOUND_LITERAL(x) (x) -#endif // ifdef __cplusplus - -#endif // _UXR_CLIENT_DEFINES_H_ diff --git a/src/uxr/client/profile/discovery/discovery.h b/src/uxr/client/profile/discovery/discovery.h deleted file mode 100755 index 0d0972511..000000000 --- a/src/uxr/client/profile/discovery/discovery.h +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_PROFILE_DISCOVERY_DISCOVERY_H_ -#define UXR_CLIENT_PROFILE_DISCOVERY_DISCOVERY_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include - -#include -#include -#include - -/** \addtogroup discovery Discovery profile - * The discovery profile allows discovering Agents in the network by UDP. The reachable Agents respond to the discovery call by sending information about themselves, as their IP and port. There are two modes: unicast and multicast. The discovery phase precedes the call to the uxr_create_session function, as it serves to determine the Agent to connect with. These functions are enabled when PROFILE_DISCOVERY is activated as a CMake argument. The declaration of these functions can be found in uxr/client/profile/discovery/discovery.h. - * @{ - */ - - -/** - * @brief Function signature used for on_status_func callbacks. - * @param locator Transport locator of a discovered agent - * @param args User pointer data. - * @return true means that the discovery routine has finished. A false implies that the discovery routine must continue searching Agents. - */ -typedef bool (* uxrOnAgentFound) ( - const TransportLocator* locator, - void* args); - -/** - * @brief Discovers Agents within the network using UDP/IP multicast with address "239.255.0.2" and port 7400. - * @param attempts The times a discovery message is sent across the network. - * @param period The period using to send multicast messages through the network. - * @param on_agent_func The callback function that will be called when an Agent is discovered. - * @param args The user argument provided to the callback function. - */ -UXRDLLAPI void uxr_discovery_agents_default( - uint32_t attempts, - int period, - uxrOnAgentFound on_agent_func, - void* args); - -/** - * @brief Discovers Agents within the network using UDP/IP unicast with the address and port set by the user. - * @param attempts The times a discovery message is sent across the network. - * @param period The period using to send unicast messages through the network. - * @param on_agent_func The callback function that will called when an Agent is discovered. - * @param args The user argument provided to the callback function. - * @param agent_list The list of addresses used for discovering Agents. - * @param agent_list_size The size of the address list. - */ -UXRDLLAPI void uxr_discovery_agents( - uint32_t attempts, - int period, - uxrOnAgentFound on_agent_func, - void* args, - const TransportLocator* agent_list, - size_t agent_list_size); - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_PROFILE_DISCOVERY_DISCOVERY_H_ diff --git a/src/uxr/client/profile/multithread/multithread.h b/src/uxr/client/profile/multithread/multithread.h deleted file mode 100755 index 189b4a7df..000000000 --- a/src/uxr/client/profile/multithread/multithread.h +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_PROFILE_MULTITHREAD_H_ -#define UXR_CLIENT_PROFILE_MULTITHREAD_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include - -struct uxrSession; - -#ifdef UCLIENT_PROFILE_MULTITHREAD - -#ifdef WIN32 -#elif defined(PLATFORM_NAME_FREERTOS) -#include "FreeRTOS.h" -#include "semphr.h" -#elif defined(UCLIENT_PLATFORM_ZEPHYR) -#elif defined(UCLIENT_PLATFORM_POSIX) -#include -#endif // ifdef WIN32 - -// Micro XRCE-DDS Client mutex implementation - -typedef struct uxrMutex -{ -#ifdef WIN32 -#elif defined(PLATFORM_NAME_FREERTOS) - SemaphoreHandle_t impl; - StaticSemaphore_t xMutexBuffer; -#elif defined(UCLIENT_PLATFORM_ZEPHYR) - struct k_mutex impl; -#elif defined(UCLIENT_PLATFORM_POSIX) - pthread_mutex_t impl; -#endif // ifdef WIN32 -} uxrMutex; - -UXRDLLAPI uxrMutex* uxr_get_stream_mutex_from_id( - struct uxrSession* session, - uxrStreamId stream_id); - -UXRDLLAPI void uxr_init_lock( - uxrMutex* mutex); - -UXRDLLAPI void uxr_lock( - uxrMutex* mutex); - -UXRDLLAPI void uxr_unlock( - uxrMutex* mutex); - -// Conditional defines - -#define UXR_INIT_LOCK(X) uxr_init_lock(X) -#define UXR_LOCK(X) uxr_lock(X) -#define UXR_UNLOCK(X) uxr_unlock(X) - -#define UXR_INIT_LOCK_SESSION uxr_init_lock(&session->mutex) -#define UXR_LOCK_SESSION(session) uxr_lock(&session->mutex) -#define UXR_UNLOCK_SESSION(session) uxr_unlock(&session->mutex) - -#define UXR_LOCK_TRANSPORT(comm) uxr_lock(&comm->mutex) -#define UXR_UNLOCK_TRANSPORT(comm) uxr_unlock(&comm->mutex) - -#define UXR_LOCK_STREAM_ID(session, stream_id) { \ - uxrMutex* stream_mutex = uxr_get_stream_mutex_from_id(session, stream_id); \ - if (stream_mutex != NULL){ \ - uxr_lock(stream_mutex); \ - } \ -} - -#define UXR_UNLOCK_STREAM_ID(session, stream_id){ \ - uxrMutex* stream_mutex = uxr_get_stream_mutex_from_id(session, stream_id); \ - if (stream_mutex != NULL){ \ - uxr_unlock(stream_mutex); \ - } \ -} - -#define UXR_LOCK_ALL_INPUT_STREAMS(session) \ - for (uint8_t i = 0; i < session->streams.input_best_effort_size; ++i){ \ - uxr_lock(&session->streams.input_best_effort[i].mutex); } \ - for (uint8_t i = 0; i < session->streams.input_reliable_size; ++i){ \ - uxr_lock(&session->streams.input_reliable[i].mutex); \ - } - -#define UXR_UNLOCK_ALL_INPUT_STREAMS(session) \ - for (uint8_t i = 0; i < session->streams.input_best_effort_size; ++i){ \ - uxr_unlock( &session->streams.input_best_effort[i].mutex); \ - } \ - for (uint8_t i = 0; i < session->streams.input_reliable_size; ++i){ \ - uxr_unlock( &session->streams.input_reliable[i].mutex); \ - } - - -#else // UCLIENT_PROFILE_MULTITHREAD - -#define UXR_INIT_LOCK(X) -#define UXR_LOCK(X) -#define UXR_UNLOCK(X) - -#define UXR_INIT_LOCK_SESSION -#define UXR_LOCK_SESSION(session) -#define UXR_UNLOCK_SESSION(session) - -#define UXR_LOCK_TRANSPORT(comm) -#define UXR_UNLOCK_TRANSPORT(comm) - -#define UXR_LOCK_STREAM_ID(session, stream_id) -#define UXR_UNLOCK_STREAM_ID(session, stream_id) - -#define UXR_LOCK_ALL_INPUT_STREAMS(session) -#define UXR_UNLOCK_ALL_INPUT_STREAMS(session) - -#endif // UCLIENT_PROFILE_MULTITHREAD - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_PROFILE_MULTITHREAD_H_ diff --git a/src/uxr/client/profile/transport/can/can_transport.h b/src/uxr/client/profile/transport/can/can_transport.h deleted file mode 100755 index cb77dc30b..000000000 --- a/src/uxr/client/profile/transport/can/can_transport.h +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_CAN_TRANSPORT_H_ -#define UXR_CLIENT_CAN_TRANSPORT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include -#include - -/* For CAN-FD, MTU is fixed value */ -#define UXR_CAN_TRANSPORT_MTU 63 - -typedef struct uxrCANTransport -{ - uint8_t buffer[UXR_CAN_TRANSPORT_MTU]; - uxrCommunication comm; - struct uxrCANPlatform platform; -} uxrCANTransport; - -/** \addtogroup transport Transport - * These functions are platform-dependent. The declaration of these functions can be found in the uxr/client/profile/transport/ folder. The common init transport functions follow the nomenclature below. - * @{ - */ - -/** - * @brief Initializes a CAN transport. - * @param transport The uninitialized transport structure used for managing the transport. - * This structure must be accesible during the connection. - * @param dev The CAN device name. - * @param can_id The can identifier of this Client in hexadecimal. - * @return `true` in case of successful initialization. `false` in other case. - */ -UXRDLLAPI bool uxr_init_can_transport( - uxrCANTransport* transport, - const char* dev, - uint32_t can_id); - -/** - * @brief Closes a CAN transport. - * @param transport The transport structure. - * @return `true` in case of successful closing. `false` in other case. - */ -UXRDLLAPI bool uxr_close_can_transport( - uxrCANTransport* transport); - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_CAN_TRANSPORT_H_ diff --git a/src/uxr/client/profile/transport/can/can_transport_posix.h b/src/uxr/client/profile/transport/can/can_transport_posix.h deleted file mode 100755 index eb0c74147..000000000 --- a/src/uxr/client/profile/transport/can/can_transport_posix.h +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_PROFILE_TRANSPORT_IP_CAN_CANTRANSPORTPOSIX_H_ -#define UXR_CLIENT_PROFILE_TRANSPORT_IP_CAN_CANTRANSPORTPOSIX_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include - -#include -#include - -typedef struct uxrCANPlatform -{ - struct pollfd poll_fd; - canid_t can_id; -} uxrCANPlatform; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_PROFILE_TRANSPORT_IP_CAN_CANTRANSPORTPOSIX_H_ diff --git a/src/uxr/client/profile/transport/custom/custom_transport.h b/src/uxr/client/profile/transport/custom/custom_transport.h deleted file mode 100755 index 86cffcc49..000000000 --- a/src/uxr/client/profile/transport/custom/custom_transport.h +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_CUSTOM_TRANSPORT_H_ -#define UXR_CLIENT_CUSTOM_TRANSPORT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include -#include - -struct uxrCustomTransport; - -/** \addtogroup transport Transport - * These functions are platform-dependent. The declaration of these functions can be found in the uxr/client/profile/transport/ folder. The common init transport functions follow the nomenclature below. - * @{ - */ - -/** - * @brief Function signature callback for opening a custom transport. - * @param transport Custom transport structure. Has the args passed through bool uxr_init_custom_transport(uxrCustomTransport* transport, void * args);. - * @return true in case of successful opened transport, and false in other case. - */ -typedef bool (* open_custom_func) ( - struct uxrCustomTransport* transport); - -/** - * @brief Function signature callback for closing a custom transport. - * @param transport Custom transport structure. Has the args passed through bool uxr_init_custom_transport(uxrCustomTransport* transport, void * args);. - * @return true in case of successful closed transport, and false in other case. - */ -typedef bool (* close_custom_func) ( - /** */ - struct uxrCustomTransport* transport); - -/** - * @brief Function signature callback for writing to a custom transport. - * @param transport Custom transport structure. Has the args passed through bool uxr_init_custom_transport(uxrCustomTransport* transport, void * args);. - * @param buffer Buffer to be sent. - * @param length Length of buffer. - * @param error_code Error code that should be set in case the write process experiences some error. - * @return Number of successfully sent bytes. - */ -typedef size_t (* write_custom_func) ( - struct uxrCustomTransport* transport, - const uint8_t* buffer, - size_t length, - uint8_t* error_code); - -/** - * @brief Function signature callback for reading from a custom transport. - * @param transport Custom transport structure. Has the args passed through bool uxr_init_custom_transport(uxrCustomTransport* transport, void * args);. - * @param buffer Buffer to write. - * @param length Maximum length of buffer. - * @param timeout Maximum timeout of the read operation. - * @param error_code Error code that should be set in case the write process experiences some error. - * @return Number of successfully received bytes. - */ -typedef size_t (* read_custom_func) ( - struct uxrCustomTransport* transport, - uint8_t* buffer, - size_t length, - int timeout, - uint8_t* error_code); - -/** - * @nosubgrouping - */ - -typedef struct uxrCustomTransport -{ - uint8_t buffer[UXR_CONFIG_CUSTOM_TRANSPORT_MTU]; - bool framing; - uxrFramingIO framing_io; - open_custom_func open; - close_custom_func close; - write_custom_func write; - read_custom_func read; - uxrCommunication comm; - void* args; -} uxrCustomTransport; - - -/** - * @brief Set a Custom transport callbacks. - * @param transport The uninitialized transport structure used for managing the transport. - * @param framing Transport framing. - * @param open Open callback. - * @param close Close callback. - * @param write Write callback. - * @param read Read callback. - */ -UXRDLLAPI void uxr_set_custom_transport_callbacks( - uxrCustomTransport* transport, - bool framing, - open_custom_func open, - close_custom_func close, - write_custom_func write, - read_custom_func read); - -/** - * @brief Initializes a Custom transport. - * @param transport The transport structure used for managing the transport. - * Callbacks must be set. - * @param args Arguments for the open function. - * @return `true` in case of successful initialization. `false` in other case. - */ -UXRDLLAPI bool uxr_init_custom_transport( - uxrCustomTransport* transport, - void* args); - -/** - * @brief Closes a Custom transport. - * @param transport The transport structure. - * @return `true` in case of successful closing. `false` in other case. - */ -UXRDLLAPI bool uxr_close_custom_transport( - uxrCustomTransport* transport); - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_CUSTOM_TRANSPORT_H_ diff --git a/src/uxr/client/profile/transport/ip/ip.h b/src/uxr/client/profile/transport/ip/ip.h deleted file mode 100755 index dd17a0087..000000000 --- a/src/uxr/client/profile/transport/ip/ip.h +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_PROFILE_TRANSPORT_IP_IP_H_ -#define UXR_CLIENT_PROFILE_TRANSPORT_IP_IP_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include - -typedef enum uxrIpProtocol -{ - UXR_IPv4, - UXR_IPv6 - -} uxrIpProtocol; - -/** \addtogroup transport Transport - * These functions are platform-dependent. The declaration of these functions can be found in the uxr/client/profile/transport/ folder. The common init transport functions follow the nomenclature below. - * @{ - */ - -/** - * @brief Converts IPv4/IPv6 address + port to a TransportLocator. - * - * @param ip The IP address to convert. - * It could be IPv4 or IPv6 address. - * @param port The port to convert. - * @param ip_protocol The IP protocol of the IP address. - * @param locator The TransportLocator resulted from the conversion. - * In case of error it will be NULL. - * @return true In case of successful conversion. - * @return false In other case. - */ -UXRDLLAPI bool uxr_ip_to_locator( - char const* ip, - uint16_t port, - uxrIpProtocol ip_protocol, - TransportLocator* locator); - -/** - * @brief Converts a TrasnportLocator to an IPv4/IPv6 address + port. - * - * @param locator The TransportLocator resulted from the conversion. - * In case of error it will be NULL. - * @param ip A char buffer there the address will be copied. - * @param size The size of the IP buffer. - * @param port The resulted port. - * @param ip_protocol The resulted IP protocol of the IP address. - * @return true In case of successful conversion. - * @return false In other case. - */ -UXRDLLAPI bool uxr_locator_to_ip( - TransportLocator const* locator, - char* ip, - size_t size, - uint16_t* port, - uxrIpProtocol* ip_protocol); - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_PROFILE_TRANSPORT_IP_IP_H_ diff --git a/src/uxr/client/profile/transport/ip/tcp/tcp_transport.h b/src/uxr/client/profile/transport/ip/tcp/tcp_transport.h deleted file mode 100755 index 41789f400..000000000 --- a/src/uxr/client/profile/transport/ip/tcp/tcp_transport.h +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_TCP_TRANSPORT_H_ -#define UXR_CLIENT_TCP_TRANSPORT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include -#include -#include -typedef enum uxrTCPInputBufferState -{ - UXR_TCP_BUFFER_EMPTY, - UXR_TCP_SIZE_INCOMPLETE, - UXR_TCP_SIZE_READ, - UXR_TCP_MESSAGE_INCOMPLETE, - UXR_TCP_MESSAGE_AVAILABLE - -} uxrTCPInputBufferState; - -typedef struct uxrTCPInputBuffer -{ - uint8_t buffer[UXR_CONFIG_TCP_TRANSPORT_MTU]; - size_t position; - uxrTCPInputBufferState state; - size_t msg_size; - -} uxrTCPInputBuffer; - -typedef struct uxrTCPTransport -{ - uxrTCPInputBuffer input_buffer; - uxrCommunication comm; - struct uxrTCPPlatform platform; - -} uxrTCPTransport; - -/** \addtogroup transport Transport - * These functions are platform-dependent. The declaration of these functions can be found in the uxr/client/profile/transport/ folder. The common init transport functions follow the nomenclature below. - * @{ - */ - -/** - * @brief Initializes a TCP transport. - * @param transport The uninitialized transport structure used for managing the transport. - * This structure must be accesible during the connection. - * @param ip_protocol The IP protocol, it could be UXR_IPv4 or UXR_IPv6. - * @param ip The IP address of the Agent. - * @param port The port of the Agent. - * @return `true` in case of successful initialization. `false` in other case. - */ -UXRDLLAPI bool uxr_init_tcp_transport( - uxrTCPTransport* transport, - uxrIpProtocol ip_protocol, - const char* ip, - const char* port); - -/** - * @brief Closes a TCP transport. - * @param transport The transport structure. - * @return `true` in case of successful closing. `false` in other case. - */ -UXRDLLAPI bool uxr_close_tcp_transport( - uxrTCPTransport* transport); - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_TCP_TRANSPORT_H_ diff --git a/src/uxr/client/profile/transport/ip/tcp/tcp_transport_freertos_plus_tcp.h b/src/uxr/client/profile/transport/ip/tcp/tcp_transport_freertos_plus_tcp.h deleted file mode 100755 index 623b94a4b..000000000 --- a/src/uxr/client/profile/transport/ip/tcp/tcp_transport_freertos_plus_tcp.h +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_TCP_TRANSPORT_FREERTOS_H_ -#define _UXR_CLIENT_TCP_TRANSPORT_FREERTOS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include "FreeRTOS.h" -#include "list.h" -#include "FreeRTOS_IP.h" -#include "FreeRTOS_Sockets.h" - -typedef struct uxrTCPPlatform -{ - struct freertos_sockaddr remote_addr; - SocketSet_t poll_fd; - Socket_t fd; - uint8_t use_ethernet; -} uxrTCPPlatform; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif //_UXR_CLIENT_TCP_TRANSPORT_FREERTOS_H_ diff --git a/src/uxr/client/profile/transport/ip/tcp/tcp_transport_posix.h b/src/uxr/client/profile/transport/ip/tcp/tcp_transport_posix.h deleted file mode 100755 index 3fb26b0f9..000000000 --- a/src/uxr/client/profile/transport/ip/tcp/tcp_transport_posix.h +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_PROFILE_TRANSPORT_IP_TCP_TCPTRANSPORTPOSIX_H_ -#define UXR_CLIENT_PROFILE_TRANSPORT_IP_TCP_TCPTRANSPORTPOSIX_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include - -typedef struct uxrTCPPlatform -{ - struct pollfd poll_fd; - -} uxrTCPPlatform; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_PROFILE_TRANSPORT_IP_TCP_TCPTRANSPORTPOSIX_H_ diff --git a/src/uxr/client/profile/transport/ip/tcp/tcp_transport_posix_nopoll.h b/src/uxr/client/profile/transport/ip/tcp/tcp_transport_posix_nopoll.h deleted file mode 100755 index 892433ee5..000000000 --- a/src/uxr/client/profile/transport/ip/tcp/tcp_transport_posix_nopoll.h +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_PROFILE_TRANSPORT_IP_TCP_TCPTRANSPORTPOSIXNOPOLL_H_ -#define UXR_CLIENT_PROFILE_TRANSPORT_IP_TCP_TCPTRANSPORTPOSIXNOPOLL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -typedef struct uxrTCPPlatform -{ - int fd; -} uxrTCPPlatform; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_PROFILE_TRANSPORT_IP_TCP_TCPTRANSPORTPOSIXNOPOLL_H_ \ No newline at end of file diff --git a/src/uxr/client/profile/transport/ip/tcp/tcp_transport_rtems_bsd_net.h b/src/uxr/client/profile/transport/ip/tcp/tcp_transport_rtems_bsd_net.h deleted file mode 100755 index 24a6a47f8..000000000 --- a/src/uxr/client/profile/transport/ip/tcp/tcp_transport_rtems_bsd_net.h +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_TCP_TRANSPORT_RTEMS_H_ -#define _UXR_CLIENT_TCP_TRANSPORT_RTEMS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include "arpa/inet.h" -#include "sys/socket.h" -#include "sys/select.h" -#include "netinet/in.h" - - -typedef struct uxrTCPPlatform -{ - struct sockaddr_in remote_addr; - struct fd_set select_fd; - int fd; -} uxrTCPPlatform; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif //_UXR_CLIENT_TCP_TRANSPORT_RTEMS_H_ diff --git a/src/uxr/client/profile/transport/ip/tcp/tcp_transport_windows.h b/src/uxr/client/profile/transport/ip/tcp/tcp_transport_windows.h deleted file mode 100755 index 980260f45..000000000 --- a/src/uxr/client/profile/transport/ip/tcp/tcp_transport_windows.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_TCP_TRANSPORT_WINDOWS_H_ -#define UXR_CLIENT_TCP_TRANSPORT_WINDOWS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include - -typedef struct uxrTCPPlatform -{ - WSAPOLLFD poll_fd; - -} uxrTCPPlatform; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_TCP_TRANSPORT_WINDOWS_H_ diff --git a/src/uxr/client/profile/transport/ip/udp/udp_transport.h b/src/uxr/client/profile/transport/ip/udp/udp_transport.h deleted file mode 100755 index e11b26a37..000000000 --- a/src/uxr/client/profile/transport/ip/udp/udp_transport.h +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_UDP_TRANSPORT_H_ -#define UXR_CLIENT_UDP_TRANSPORT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include -#include -#include - -typedef struct uxrUDPTransport -{ - uint8_t buffer[UXR_CONFIG_UDP_TRANSPORT_MTU]; - uxrCommunication comm; - struct uxrUDPPlatform platform; -} uxrUDPTransport; - -/** \addtogroup transport Transport - * These functions are platform-dependent. The declaration of these functions can be found in the uxr/client/profile/transport/ folder. The common init transport functions follow the nomenclature below. - * @{ - */ - -/** - * @brief Initializes a UDP transport. - * @param transport The uninitialized transport structure used for managing the transport. - * This structure must be accesible during the connection. - * @param ip_protocol The IP protocol, it could be UXR_IPv4 or UXR_IPv6. - * @param ip The IP address of the Agent. - * @param port The port of the Agent. - * @return `true` in case of successful initialization. `false` in other case. - */ -UXRDLLAPI bool uxr_init_udp_transport( - uxrUDPTransport* transport, - uxrIpProtocol ip_protocol, - const char* ip, - const char* port); - -/** - * @brief Closes a UDP transport. - * @param transport The transport structure. - * @return `true` in case of successful closing. `false` in other case. - */ -UXRDLLAPI bool uxr_close_udp_transport( - uxrUDPTransport* transport); - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_UDP_TRANSPORT_H_ diff --git a/src/uxr/client/profile/transport/ip/udp/udp_transport_freertos_plus_tcp.h b/src/uxr/client/profile/transport/ip/udp/udp_transport_freertos_plus_tcp.h deleted file mode 100755 index a923e1a42..000000000 --- a/src/uxr/client/profile/transport/ip/udp/udp_transport_freertos_plus_tcp.h +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_UDP_TRANSPORT_FREERTOS_H_ -#define _UXR_CLIENT_UDP_TRANSPORT_FREERTOS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include "FreeRTOS.h" -#include "list.h" -#include "FreeRTOS_IP.h" -#include "FreeRTOS_Sockets.h" - -typedef struct uxrUDPPlatform -{ - struct freertos_sockaddr remote_addr; - SocketSet_t poll_fd; - Socket_t fd; - uint8_t use_ethernet; - -} uxrUDPPlatform; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif //_UXR_CLIENT_UDP_TRANSPORT_FREERTOS_H_ diff --git a/src/uxr/client/profile/transport/ip/udp/udp_transport_posix.h b/src/uxr/client/profile/transport/ip/udp/udp_transport_posix.h deleted file mode 100755 index 160c59714..000000000 --- a/src/uxr/client/profile/transport/ip/udp/udp_transport_posix.h +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_PROFILE_TRANSPORT_IP_UDP_UDPTRANSPORTPOSIX_H_ -#define UXR_CLIENT_PROFILE_TRANSPORT_IP_UDP_UDPTRANSPORTPOSIX_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include - -typedef struct uxrUDPPlatform -{ - struct pollfd poll_fd; - -} uxrUDPPlatform; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_PROFILE_TRANSPORT_IP_UDP_UDPTRANSPORTPOSIX_H_ diff --git a/src/uxr/client/profile/transport/ip/udp/udp_transport_posix_nopoll.h b/src/uxr/client/profile/transport/ip/udp/udp_transport_posix_nopoll.h deleted file mode 100755 index 57447e596..000000000 --- a/src/uxr/client/profile/transport/ip/udp/udp_transport_posix_nopoll.h +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_PROFILE_TRANSPORT_IP_UDP_UDPTRANSPORTPOSIXNOPOLL_H_ -#define UXR_CLIENT_PROFILE_TRANSPORT_IP_UDP_UDPTRANSPORTPOSIXNOPOLL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -typedef struct uxrUDPPlatform -{ - int fd; -} uxrUDPPlatform; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_PROFILE_TRANSPORT_IP_UDP_UDPTRANSPORTPOSIXNOPOLL_H_ \ No newline at end of file diff --git a/src/uxr/client/profile/transport/ip/udp/udp_transport_rtems_bsd_net.h b/src/uxr/client/profile/transport/ip/udp/udp_transport_rtems_bsd_net.h deleted file mode 100755 index 19a3270aa..000000000 --- a/src/uxr/client/profile/transport/ip/udp/udp_transport_rtems_bsd_net.h +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_UDP_TRANSPORT_RTEMS_H_ -#define _UXR_CLIENT_UDP_TRANSPORT_RTEMS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include "arpa/inet.h" -#include "sys/socket.h" -#include "sys/select.h" -#include "netinet/in.h" - -typedef struct uxrUDPPlatform -{ - struct sockaddr_in remote_addr; - struct fd_set select_fd; - int fd; -} uxrUDPPlatform; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif //_UXR_CLIENT_UDP_TRANSPORT_RTEMS_H_ diff --git a/src/uxr/client/profile/transport/ip/udp/udp_transport_windows.h b/src/uxr/client/profile/transport/ip/udp/udp_transport_windows.h deleted file mode 100755 index 40a52c105..000000000 --- a/src/uxr/client/profile/transport/ip/udp/udp_transport_windows.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_UDP_TRANSPORT_WINDOWS_H_ -#define UXR_CLIENT_UDP_TRANSPORT_WINDOWS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include - -typedef struct uxrUDPPlatform -{ - WSAPOLLFD poll_fd; - -} uxrUDPPlatform; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_UDP_TRANSPORT_WINDOWS_H_ diff --git a/src/uxr/client/profile/transport/serial/serial_transport.h b/src/uxr/client/profile/transport/serial/serial_transport.h deleted file mode 100755 index ecfcd3998..000000000 --- a/src/uxr/client/profile/transport/serial/serial_transport.h +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_SERIAL_TRANSPORT_H_ -#define UXR_CLIENT_SERIAL_TRANSPORT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include -#include -#include - -typedef struct uxrSerialTransport -{ - uint8_t buffer[UXR_CONFIG_SERIAL_TRANSPORT_MTU]; - uxrFramingIO framing_io; - uint8_t remote_addr; - uxrCommunication comm; - struct uxrSerialPlatform platform; - -} uxrSerialTransport; - -/** \addtogroup transport Transport - * These functions are platform-dependent. The declaration of these functions can be found in the uxr/client/profile/transport/ folder. The common init transport functions follow the nomenclature below. - * @{ - */ - -/** - * @brief Initializes a UDP transport. - * @param transport The uninitialized transport structure used for managing the transport. - * This structure must be accesible during the connection. - * @param fd The file descriptor of the serial connection. - * The fd usually comes from the `open` OS function. - * @param remote_addr The addresss of the Agent in the serial connection. - * By default, the Agent address' in a serial transport is 0. - * @param local_addr The address of the Client in the serial connection. - * @return `true` in case of successful initialization. `false` in other case. - */ -UXRDLLAPI bool uxr_init_serial_transport( - uxrSerialTransport* transport, - const int fd, - uint8_t remote_addr, - uint8_t local_addr); - -/** - * @brief Closes a Serial transport. - * @param transport The transport structure. - * @return `true` in case of successful closing. `false` in other case. - */ -UXRDLLAPI bool uxr_close_serial_transport( - uxrSerialTransport* transport); - -/** @}*/ - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_SERIAL_TRANSPORT_H_ diff --git a/src/uxr/client/profile/transport/serial/serial_transport_platform.h b/src/uxr/client/profile/transport/serial/serial_transport_platform.h deleted file mode 100755 index 96b7e45a6..000000000 --- a/src/uxr/client/profile/transport/serial/serial_transport_platform.h +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _SRC_C_PROFILE_TRANSPORT_SERIAL_SERIAL_TRANSPORT_PLATFORM_H_ -#define _SRC_C_PROFILE_TRANSPORT_SERIAL_SERIAL_TRANSPORT_PLATFORM_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include - -bool uxr_init_serial_platform( - void* args, - const int fd, - uint8_t remote_addr, - uint8_t local_addr); -bool uxr_close_serial_platform( - void* args); - -size_t uxr_write_serial_data_platform( - void* args, - const uint8_t* buf, - size_t len, - uint8_t* errcode); - -size_t uxr_read_serial_data_platform( - void* args, - uint8_t* buf, - size_t len, - int timeout, - uint8_t* errcode); - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif //_SRC_C_PROFILE_TRANSPORT_SERIAL_SERIAL_TRANSPORT_PLATFORM_H_ diff --git a/src/uxr/client/profile/transport/serial/serial_transport_posix.h b/src/uxr/client/profile/transport/serial/serial_transport_posix.h deleted file mode 100755 index 55eba063b..000000000 --- a/src/uxr/client/profile/transport/serial/serial_transport_posix.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_PROFILE_TRANSPORT_SERIAL_SERIALTRANSPORTPOSIX_H_ -#define UXR_CLIENT_PROFILE_TRANSPORT_SERIAL_SERIALTRANSPORTPOSIX_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include - -typedef struct uxrSerialPlatform -{ - struct pollfd poll_fd; - -} uxrSerialPlatform; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_PROFILE_TRANSPORT_SERIAL_SERIALTRANSPORTPOSIX_H_ diff --git a/src/uxr/client/profile/transport/serial/serial_transport_rtems_bsd_net.h b/src/uxr/client/profile/transport/serial/serial_transport_rtems_bsd_net.h deleted file mode 100755 index 86e6e6c8d..000000000 --- a/src/uxr/client/profile/transport/serial/serial_transport_rtems_bsd_net.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_PROFILE_TRANSPORT_SERIAL_SERIALTRANSPORTRTEMS_H_ -#define UXR_CLIENT_PROFILE_TRANSPORT_SERIAL_SERIALTRANSPORTRTEMS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include "sys/select.h" - -typedef struct uxrSerialPlatform -{ - struct fd_set select_fd; - int fd; -} uxrSerialPlatform; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_PROFILE_TRANSPORT_SERIAL_SERIALTRANSPORTPOSIX_H_ diff --git a/src/uxr/client/profile/transport/stream_framing/stream_framing_protocol.h b/src/uxr/client/profile/transport/stream_framing/stream_framing_protocol.h deleted file mode 100755 index 66d6f55ef..000000000 --- a/src/uxr/client/profile/transport/stream_framing/stream_framing_protocol.h +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef _UXR_CLIENT_PROFILE_TRANSPORT_STREAM_FRAMING_PROTOCOL_H_ -#define _UXR_CLIENT_PROFILE_TRANSPORT_STREAM_FRAMING_PROTOCOL_H_ -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include - -#define UXR_FRAMING_BEGIN_FLAG 0x7E -#define UXR_FRAMING_ESC_FLAG 0x7D -#define UXR_FRAMING_XOR_FLAG 0x20 - -typedef enum uxrFramingInputState -{ - UXR_FRAMING_UNINITIALIZED, - UXR_FRAMING_READING_SRC_ADDR, - UXR_FRAMING_READING_DST_ADDR, - UXR_FRAMING_READING_LEN_LSB, - UXR_FRAMING_READING_LEN_MSB, - UXR_FRAMING_READING_PAYLOAD, - UXR_FRAMING_READING_CRC_LSB, - UXR_FRAMING_READING_CRC_MSB, - -} uxrFramingInputState; - -typedef struct uxrFramingIO -{ - uxrFramingInputState state; - uint8_t local_addr; - uint8_t rb[42]; - uint8_t rb_head; - uint8_t rb_tail; - uint8_t src_addr; - uint16_t msg_len; - uint16_t msg_pos; - uint16_t msg_crc; - uint16_t cmp_crc; - uint8_t wb[42]; - uint8_t wb_pos; - -} uxrFramingIO; - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif //_UXR_CLIENT_PROFILE_TRANSPORT_STREAM_FRAMING_PROTOCOL_H_ diff --git a/src/uxr/client/transport.h b/src/uxr/client/transport.h deleted file mode 100755 index 99f4b8c17..000000000 --- a/src/uxr/client/transport.h +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_TRANSPORT_H_ -#define UXR_CLIENT_TRANSPORT_H_ - -#include - -#ifdef UCLIENT_PROFILE_UDP -#if defined(UCLIENT_PLATFORM_POSIX_NOPOLL) -#include -#elif defined(UCLIENT_PLATFORM_POSIX) -#include -#elif defined(UCLIENT_PLATFORM_WINDOWS) -#include -#elif defined(UCLIENT_PLATFORM_FREERTOS_PLUS_TCP) -#include -#elif defined(UCLIENT_PLATFORM_RTEMS_BSD_NET) -#include -#endif // if defined(UCLIENT_EXTERNAL_UDP) -#include -#endif //UCLIENT_PROFILE_UDP - -#ifdef UCLIENT_PROFILE_TCP -#if defined(UCLIENT_PLATFORM_POSIX_NOPOLL) -#include -#elif defined(UCLIENT_PLATFORM_POSIX) -#include -#elif defined(UCLIENT_PLATFORM_WINDOWS) -#include -#elif defined(UCLIENT_PLATFORM_RTEMS_BSD_NET) -#include -#endif // if defined(UCLIENT_EXTERNAL_TCP) -#include -#endif //UCLIENT_PROFILE_TCP - -#ifdef UCLIENT_PROFILE_SERIAL -#if defined(UCLIENT_PLATFORM_POSIX) -#include -#elif defined(UCLIENT_PLATFORM_RTEMS_BSD_NET) -#include -#endif // if defined(UCLIENT_EXTERNAL_SERIAL) -#include -#endif //UCLIENT_PROFILE_SERIAL - -#ifdef UCLIENT_PROFILE_CAN -#if defined(UCLIENT_PLATFORM_POSIX) -#include -#endif // if defined(UCLIENT_EXTERNAL_CAN) -#include -#endif //UCLIENT_PROFILE_CAN - -#ifdef UCLIENT_PROFILE_CUSTOM_TRANSPORT -#include -#endif //UCLIENT_PROFILE_CUSTOM_TRANSPORT - -#endif // UXR_CLIENT_TRANSPORT_H_ diff --git a/src/uxr/client/util/ping.h b/src/uxr/client/util/ping.h deleted file mode 100755 index 20ba934a4..000000000 --- a/src/uxr/client/util/ping.h +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -/** - * @file - */ - -#ifndef UXR_CLIENT_UTIL_PING_H_ -#define UXR_CLIENT_UTIL_PING_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include -#include - -#include - -#define UXR_PING_BUF 16 // 4 (HEADER SIZE) + 4 (SUBHEADER_SIZE) + 8 (GET_Info payload) - -#define GET_INFO_MSG_SIZE 8 -#define GET_INFO_REQUEST_PING_ID 10 - -struct uxrSession; - -/** - * @brief Checks the availability status of a valid connection with an agent. - * This methods performs a single attempt. - * This method uses an already opened session in order to do not - * interfere with the rest of the application. - * @ingroup general_utils - * @param session Pointer to the uxrSession struct inited. - * @param timeout_ms Time, in milliseconds, for a ping attempt. - * @param attempts Maximum number of ping attempts to be performed. - * @return `true` in case of a successful ping to the agent, `false` otherwise. - */ -bool uxr_ping_agent_session( - struct uxrSession* session, - const int timeout_ms, - const uint8_t attempts); - -/** - * @brief Checks the availability status of a valid connection with an agent. - * This methods performs a single attempt. - * Transport must be properly initialized before calling this method. - * This method does not take care of init/fini the transport struct. - * @ingroup general_utils - * @param comm Pointer to the uxrCommunication struct holding the transport - * information and callback methods. - * @param timeout_ms Time, in milliseconds, for a ping attempt. - * @return `true` in case of a successful ping to the agent, `false` otherwise. - */ -UXRDLLAPI bool uxr_ping_agent( - uxrCommunication* comm, - const int timeout_ms); - -/** - * @brief Checks the availability status of a valid connection with an agent. - * Additionally, this method allows the user to specify the number - * of attempts to be performed. This number will not be reached if a - * successful ping occurs. - * Transport must be properly initialized before calling this method. - * This method does not take care of init/fini the transport struct. - * @ingroup general_utils - * @param comm Pointer to the uxrCommunication struct holding the transport - * information and callback methods. - * @param timeout_ms Time, in milliseconds, for a ping attempt. - * @param attempts Maximum number of ping attempts to be performed. - * @return `true` in case of a successful ping to the agent, `false` otherwise. - */ -UXRDLLAPI bool uxr_ping_agent_attempts( - uxrCommunication* comm, - const int timeout_ms, - const uint8_t attempts); - - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_UTIL_PING_H_ diff --git a/src/uxr/client/util/time.h b/src/uxr/client/util/time.h deleted file mode 100755 index 1dc04f1ec..000000000 --- a/src/uxr/client/util/time.h +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef UXR_CLIENT_UTIL_TIME_H_ -#define UXR_CLIENT_UTIL_TIME_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif // ifdef __cplusplus - -#include -#include - -UXRDLLAPI int64_t uxr_millis( - void); - -UXRDLLAPI int64_t uxr_nanos( - void); - -#ifdef __cplusplus -} -#endif // ifdef __cplusplus - -#endif // UXR_CLIENT_UTIL_TIME_H_ diff --git a/src/uxr/client/visibility.h b/src/uxr/client/visibility.h deleted file mode 100755 index 5c92508ff..000000000 --- a/src/uxr/client/visibility.h +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - - -#ifndef _UXR_CLIENT_VISIBILITY_H_ -#define _UXR_CLIENT_VISIBILITY_H_ - -#if defined(_WIN32) -#if defined(microxrcedds_client_SHARED) -#if defined(microxrcedds_client_EXPORTS) -#define UXRDLLAPI __declspec( dllexport ) -#else -#define UXRDLLAPI __declspec( dllimport ) -#endif // micro_xrce_client_dds_EXPORTS -#else -#define UXRDLLAPI -#endif // BUILDING_SHARED_LIBS -#else -#define UXRDLLAPI -#endif // _WIN32 - -#endif // _UXR_CLIENT_VISIBILITY_H_ diff --git a/src/visualization_msgs/msg/detail/image_marker__functions.h b/src/visualization_msgs/msg/detail/image_marker__functions.h deleted file mode 100755 index 54bfd36fa..000000000 --- a/src/visualization_msgs/msg/detail/image_marker__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from visualization_msgs:msg/ImageMarker.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/image_marker.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__IMAGE_MARKER__FUNCTIONS_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__IMAGE_MARKER__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "visualization_msgs/msg/detail/image_marker__struct.h" - -/// Initialize msg/ImageMarker message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__msg__ImageMarker - * )) before or use - * visualization_msgs__msg__ImageMarker__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__ImageMarker__init(visualization_msgs__msg__ImageMarker * msg); - -/// Finalize msg/ImageMarker message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__ImageMarker__fini(visualization_msgs__msg__ImageMarker * msg); - -/// Create msg/ImageMarker message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__msg__ImageMarker__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__ImageMarker * -visualization_msgs__msg__ImageMarker__create(void); - -/// Destroy msg/ImageMarker message. -/** - * It calls - * visualization_msgs__msg__ImageMarker__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__ImageMarker__destroy(visualization_msgs__msg__ImageMarker * msg); - -/// Check for msg/ImageMarker message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__ImageMarker__are_equal(const visualization_msgs__msg__ImageMarker * lhs, const visualization_msgs__msg__ImageMarker * rhs); - -/// Copy a msg/ImageMarker message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__ImageMarker__copy( - const visualization_msgs__msg__ImageMarker * input, - visualization_msgs__msg__ImageMarker * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__msg__ImageMarker__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__msg__ImageMarker__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__msg__ImageMarker__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__msg__ImageMarker__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/ImageMarker messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__msg__ImageMarker__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__ImageMarker__Sequence__init(visualization_msgs__msg__ImageMarker__Sequence * array, size_t size); - -/// Finalize array of msg/ImageMarker messages. -/** - * It calls - * visualization_msgs__msg__ImageMarker__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__ImageMarker__Sequence__fini(visualization_msgs__msg__ImageMarker__Sequence * array); - -/// Create array of msg/ImageMarker messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__msg__ImageMarker__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__ImageMarker__Sequence * -visualization_msgs__msg__ImageMarker__Sequence__create(size_t size); - -/// Destroy array of msg/ImageMarker messages. -/** - * It calls - * visualization_msgs__msg__ImageMarker__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__ImageMarker__Sequence__destroy(visualization_msgs__msg__ImageMarker__Sequence * array); - -/// Check for msg/ImageMarker message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__ImageMarker__Sequence__are_equal(const visualization_msgs__msg__ImageMarker__Sequence * lhs, const visualization_msgs__msg__ImageMarker__Sequence * rhs); - -/// Copy an array of msg/ImageMarker messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__ImageMarker__Sequence__copy( - const visualization_msgs__msg__ImageMarker__Sequence * input, - visualization_msgs__msg__ImageMarker__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__IMAGE_MARKER__FUNCTIONS_H_ diff --git a/src/visualization_msgs/msg/detail/image_marker__rosidl_typesupport_introspection_c.h b/src/visualization_msgs/msg/detail/image_marker__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 1c9790e97..000000000 --- a/src/visualization_msgs/msg/detail/image_marker__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from visualization_msgs:msg/ImageMarker.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__IMAGE_MARKER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__IMAGE_MARKER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, msg, ImageMarker)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__IMAGE_MARKER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/visualization_msgs/msg/detail/image_marker__rosidl_typesupport_microxrcedds_c.h b/src/visualization_msgs/msg/detail/image_marker__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ef2988932..000000000 --- a/src/visualization_msgs/msg/detail/image_marker__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from visualization_msgs:msg/ImageMarker.idl -// generated code does not contain a copyright notice -#ifndef VISUALIZATION_MSGS__MSG__IMAGE_MARKER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define VISUALIZATION_MSGS__MSG__IMAGE_MARKER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__msg__ImageMarker( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__msg__ImageMarker( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, msg, ImageMarker)(); - -#ifdef __cplusplus -} -#endif - - -#endif // VISUALIZATION_MSGS__MSG__IMAGE_MARKER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/visualization_msgs/msg/detail/image_marker__struct.h b/src/visualization_msgs/msg/detail/image_marker__struct.h deleted file mode 100755 index b12d1e3ad..000000000 --- a/src/visualization_msgs/msg/detail/image_marker__struct.h +++ /dev/null @@ -1,124 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from visualization_msgs:msg/ImageMarker.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/image_marker.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__IMAGE_MARKER__STRUCT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__IMAGE_MARKER__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'CIRCLE'. -enum -{ - visualization_msgs__msg__ImageMarker__CIRCLE = 0l -}; - -/// Constant 'LINE_STRIP'. -enum -{ - visualization_msgs__msg__ImageMarker__LINE_STRIP = 1l -}; - -/// Constant 'LINE_LIST'. -enum -{ - visualization_msgs__msg__ImageMarker__LINE_LIST = 2l -}; - -/// Constant 'POLYGON'. -enum -{ - visualization_msgs__msg__ImageMarker__POLYGON = 3l -}; - -/// Constant 'POINTS'. -enum -{ - visualization_msgs__msg__ImageMarker__POINTS = 4l -}; - -/// Constant 'ADD'. -enum -{ - visualization_msgs__msg__ImageMarker__ADD = 0l -}; - -/// Constant 'REMOVE'. -enum -{ - visualization_msgs__msg__ImageMarker__REMOVE = 1l -}; - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'ns' -#include "rosidl_runtime_c/string.h" -// Member 'position' -// Member 'points' -#include "geometry_msgs/msg/detail/point__struct.h" -// Member 'outline_color' -// Member 'fill_color' -// Member 'outline_colors' -#include "std_msgs/msg/detail/color_rgba__struct.h" -// Member 'lifetime' -#include "builtin_interfaces/msg/detail/duration__struct.h" - -/// Struct defined in msg/ImageMarker in the package visualization_msgs. -typedef struct visualization_msgs__msg__ImageMarker -{ - std_msgs__msg__Header header; - /// Namespace which is used with the id to form a unique id. - rosidl_runtime_c__String ns; - /// Unique id within the namespace. - int32_t id; - /// One of the above types, e.g. CIRCLE, LINE_STRIP, etc. - int32_t type; - /// Either ADD or REMOVE. - int32_t action; - /// Two-dimensional coordinate position, in pixel-coordinates. - geometry_msgs__msg__Point position; - /// The scale of the object, e.g. the diameter for a CIRCLE. - float scale; - /// The outline color of the marker. - std_msgs__msg__ColorRGBA outline_color; - /// Whether or not to fill in the shape with color. - uint8_t filled; - /// Fill color; in the range: - std_msgs__msg__ColorRGBA fill_color; - /// How long the object should last before being automatically deleted. - /// 0 indicates forever. - builtin_interfaces__msg__Duration lifetime; - /// Coordinates in 2D in pixel coords. Used for LINE_STRIP, LINE_LIST, POINTS, etc. - geometry_msgs__msg__Point__Sequence points; - /// The color for each line, point, etc. in the points field. - std_msgs__msg__ColorRGBA__Sequence outline_colors; -} visualization_msgs__msg__ImageMarker; - -// Struct for a sequence of visualization_msgs__msg__ImageMarker. -typedef struct visualization_msgs__msg__ImageMarker__Sequence -{ - visualization_msgs__msg__ImageMarker * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__msg__ImageMarker__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__IMAGE_MARKER__STRUCT_H_ diff --git a/src/visualization_msgs/msg/detail/image_marker__type_support.h b/src/visualization_msgs/msg/detail/image_marker__type_support.h deleted file mode 100755 index ecee45874..000000000 --- a/src/visualization_msgs/msg/detail/image_marker__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from visualization_msgs:msg/ImageMarker.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/image_marker.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__IMAGE_MARKER__TYPE_SUPPORT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__IMAGE_MARKER__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - msg, - ImageMarker -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__IMAGE_MARKER__TYPE_SUPPORT_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker__functions.h b/src/visualization_msgs/msg/detail/interactive_marker__functions.h deleted file mode 100755 index 4cdba04b0..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from visualization_msgs:msg/InteractiveMarker.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER__FUNCTIONS_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "visualization_msgs/msg/detail/interactive_marker__struct.h" - -/// Initialize msg/InteractiveMarker message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__msg__InteractiveMarker - * )) before or use - * visualization_msgs__msg__InteractiveMarker__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarker__init(visualization_msgs__msg__InteractiveMarker * msg); - -/// Finalize msg/InteractiveMarker message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarker__fini(visualization_msgs__msg__InteractiveMarker * msg); - -/// Create msg/InteractiveMarker message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__msg__InteractiveMarker__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__InteractiveMarker * -visualization_msgs__msg__InteractiveMarker__create(void); - -/// Destroy msg/InteractiveMarker message. -/** - * It calls - * visualization_msgs__msg__InteractiveMarker__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarker__destroy(visualization_msgs__msg__InteractiveMarker * msg); - -/// Check for msg/InteractiveMarker message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarker__are_equal(const visualization_msgs__msg__InteractiveMarker * lhs, const visualization_msgs__msg__InteractiveMarker * rhs); - -/// Copy a msg/InteractiveMarker message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarker__copy( - const visualization_msgs__msg__InteractiveMarker * input, - visualization_msgs__msg__InteractiveMarker * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__msg__InteractiveMarker__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__msg__InteractiveMarker__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__msg__InteractiveMarker__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__msg__InteractiveMarker__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/InteractiveMarker messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__msg__InteractiveMarker__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarker__Sequence__init(visualization_msgs__msg__InteractiveMarker__Sequence * array, size_t size); - -/// Finalize array of msg/InteractiveMarker messages. -/** - * It calls - * visualization_msgs__msg__InteractiveMarker__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarker__Sequence__fini(visualization_msgs__msg__InteractiveMarker__Sequence * array); - -/// Create array of msg/InteractiveMarker messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__msg__InteractiveMarker__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__InteractiveMarker__Sequence * -visualization_msgs__msg__InteractiveMarker__Sequence__create(size_t size); - -/// Destroy array of msg/InteractiveMarker messages. -/** - * It calls - * visualization_msgs__msg__InteractiveMarker__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarker__Sequence__destroy(visualization_msgs__msg__InteractiveMarker__Sequence * array); - -/// Check for msg/InteractiveMarker message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarker__Sequence__are_equal(const visualization_msgs__msg__InteractiveMarker__Sequence * lhs, const visualization_msgs__msg__InteractiveMarker__Sequence * rhs); - -/// Copy an array of msg/InteractiveMarker messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarker__Sequence__copy( - const visualization_msgs__msg__InteractiveMarker__Sequence * input, - visualization_msgs__msg__InteractiveMarker__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER__FUNCTIONS_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker__rosidl_typesupport_introspection_c.h b/src/visualization_msgs/msg/detail/interactive_marker__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 9d598d937..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from visualization_msgs:msg/InteractiveMarker.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, msg, InteractiveMarker)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker__rosidl_typesupport_microxrcedds_c.h b/src/visualization_msgs/msg/detail/interactive_marker__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 950211089..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from visualization_msgs:msg/InteractiveMarker.idl -// generated code does not contain a copyright notice -#ifndef VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__msg__InteractiveMarker( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__msg__InteractiveMarker( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, msg, InteractiveMarker)(); - -#ifdef __cplusplus -} -#endif - - -#endif // VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker__struct.h b/src/visualization_msgs/msg/detail/interactive_marker__struct.h deleted file mode 100755 index 9ebbc560e..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker__struct.h +++ /dev/null @@ -1,76 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from visualization_msgs:msg/InteractiveMarker.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER__STRUCT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'pose' -#include "geometry_msgs/msg/detail/pose__struct.h" -// Member 'name' -// Member 'description' -#include "rosidl_runtime_c/string.h" -// Member 'menu_entries' -#include "visualization_msgs/msg/detail/menu_entry__struct.h" -// Member 'controls' -#include "visualization_msgs/msg/detail/interactive_marker_control__struct.h" - -/// Struct defined in msg/InteractiveMarker in the package visualization_msgs. -/** - * Time/frame info. - * If header.time is set to 0, the marker will be retransformed into - * its frame on each timestep. You will receive the pose feedback - * in the same frame. - * Otherwise, you might receive feedback in a different frame. - * For rviz, this will be the current 'fixed frame' set by the user. - */ -typedef struct visualization_msgs__msg__InteractiveMarker -{ - std_msgs__msg__Header header; - /// Initial pose. Also, defines the pivot point for rotations. - geometry_msgs__msg__Pose pose; - /// Identifying string. Must be globally unique in - /// the topic that this message is sent through. - rosidl_runtime_c__String name; - /// Short description (< 40 characters). - rosidl_runtime_c__String description; - /// Scale to be used for default controls (default=1). - float scale; - /// All menu and submenu entries associated with this marker. - visualization_msgs__msg__MenuEntry__Sequence menu_entries; - /// List of controls displayed for this marker. - visualization_msgs__msg__InteractiveMarkerControl__Sequence controls; -} visualization_msgs__msg__InteractiveMarker; - -// Struct for a sequence of visualization_msgs__msg__InteractiveMarker. -typedef struct visualization_msgs__msg__InteractiveMarker__Sequence -{ - visualization_msgs__msg__InteractiveMarker * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__msg__InteractiveMarker__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER__STRUCT_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker__type_support.h b/src/visualization_msgs/msg/detail/interactive_marker__type_support.h deleted file mode 100755 index 7e6247dac..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from visualization_msgs:msg/InteractiveMarker.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER__TYPE_SUPPORT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - msg, - InteractiveMarker -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER__TYPE_SUPPORT_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_control__functions.h b/src/visualization_msgs/msg/detail/interactive_marker_control__functions.h deleted file mode 100755 index e6b35e129..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_control__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from visualization_msgs:msg/InteractiveMarkerControl.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_control.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_CONTROL__FUNCTIONS_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_CONTROL__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "visualization_msgs/msg/detail/interactive_marker_control__struct.h" - -/// Initialize msg/InteractiveMarkerControl message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__msg__InteractiveMarkerControl - * )) before or use - * visualization_msgs__msg__InteractiveMarkerControl__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerControl__init(visualization_msgs__msg__InteractiveMarkerControl * msg); - -/// Finalize msg/InteractiveMarkerControl message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerControl__fini(visualization_msgs__msg__InteractiveMarkerControl * msg); - -/// Create msg/InteractiveMarkerControl message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__msg__InteractiveMarkerControl__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__InteractiveMarkerControl * -visualization_msgs__msg__InteractiveMarkerControl__create(void); - -/// Destroy msg/InteractiveMarkerControl message. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerControl__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerControl__destroy(visualization_msgs__msg__InteractiveMarkerControl * msg); - -/// Check for msg/InteractiveMarkerControl message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerControl__are_equal(const visualization_msgs__msg__InteractiveMarkerControl * lhs, const visualization_msgs__msg__InteractiveMarkerControl * rhs); - -/// Copy a msg/InteractiveMarkerControl message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerControl__copy( - const visualization_msgs__msg__InteractiveMarkerControl * input, - visualization_msgs__msg__InteractiveMarkerControl * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__msg__InteractiveMarkerControl__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__msg__InteractiveMarkerControl__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__msg__InteractiveMarkerControl__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__msg__InteractiveMarkerControl__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/InteractiveMarkerControl messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__msg__InteractiveMarkerControl__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerControl__Sequence__init(visualization_msgs__msg__InteractiveMarkerControl__Sequence * array, size_t size); - -/// Finalize array of msg/InteractiveMarkerControl messages. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerControl__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerControl__Sequence__fini(visualization_msgs__msg__InteractiveMarkerControl__Sequence * array); - -/// Create array of msg/InteractiveMarkerControl messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__msg__InteractiveMarkerControl__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__InteractiveMarkerControl__Sequence * -visualization_msgs__msg__InteractiveMarkerControl__Sequence__create(size_t size); - -/// Destroy array of msg/InteractiveMarkerControl messages. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerControl__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerControl__Sequence__destroy(visualization_msgs__msg__InteractiveMarkerControl__Sequence * array); - -/// Check for msg/InteractiveMarkerControl message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerControl__Sequence__are_equal(const visualization_msgs__msg__InteractiveMarkerControl__Sequence * lhs, const visualization_msgs__msg__InteractiveMarkerControl__Sequence * rhs); - -/// Copy an array of msg/InteractiveMarkerControl messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerControl__Sequence__copy( - const visualization_msgs__msg__InteractiveMarkerControl__Sequence * input, - visualization_msgs__msg__InteractiveMarkerControl__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_CONTROL__FUNCTIONS_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_control__rosidl_typesupport_introspection_c.h b/src/visualization_msgs/msg/detail/interactive_marker_control__rosidl_typesupport_introspection_c.h deleted file mode 100755 index bd1fee7a9..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_control__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from visualization_msgs:msg/InteractiveMarkerControl.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_CONTROL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_CONTROL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, msg, InteractiveMarkerControl)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_CONTROL__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_control__rosidl_typesupport_microxrcedds_c.h b/src/visualization_msgs/msg/detail/interactive_marker_control__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 0a5ee57be..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_control__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from visualization_msgs:msg/InteractiveMarkerControl.idl -// generated code does not contain a copyright notice -#ifndef VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_CONTROL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_CONTROL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__msg__InteractiveMarkerControl( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__msg__InteractiveMarkerControl( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, msg, InteractiveMarkerControl)(); - -#ifdef __cplusplus -} -#endif - - -#endif // VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_CONTROL__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_control__struct.h b/src/visualization_msgs/msg/detail/interactive_marker_control__struct.h deleted file mode 100755 index 7ee34d196..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_control__struct.h +++ /dev/null @@ -1,184 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from visualization_msgs:msg/InteractiveMarkerControl.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_control.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_CONTROL__STRUCT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_CONTROL__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'INHERIT'. -/** - * Orientation mode: controls how orientation changes. - * INHERIT: Follow orientation of interactive marker - * FIXED: Keep orientation fixed at initial state - * VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up). - */ -enum -{ - visualization_msgs__msg__InteractiveMarkerControl__INHERIT = 0 -}; - -/// Constant 'FIXED'. -enum -{ - visualization_msgs__msg__InteractiveMarkerControl__FIXED = 1 -}; - -/// Constant 'VIEW_FACING'. -enum -{ - visualization_msgs__msg__InteractiveMarkerControl__VIEW_FACING = 2 -}; - -/// Constant 'NONE'. -/** - * Interaction mode for this control - * - * NONE: This control is only meant for visualization; no context menu. - * MENU: Like NONE, but right-click menu is active. - * BUTTON: Element can be left-clicked. - * MOVE_AXIS: Translate along local x-axis. - * MOVE_PLANE: Translate in local y-z plane. - * ROTATE_AXIS: Rotate around local x-axis. - * MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS. - */ -enum -{ - visualization_msgs__msg__InteractiveMarkerControl__NONE = 0 -}; - -/// Constant 'MENU'. -enum -{ - visualization_msgs__msg__InteractiveMarkerControl__MENU = 1 -}; - -/// Constant 'BUTTON'. -enum -{ - visualization_msgs__msg__InteractiveMarkerControl__BUTTON = 2 -}; - -/// Constant 'MOVE_AXIS'. -enum -{ - visualization_msgs__msg__InteractiveMarkerControl__MOVE_AXIS = 3 -}; - -/// Constant 'MOVE_PLANE'. -enum -{ - visualization_msgs__msg__InteractiveMarkerControl__MOVE_PLANE = 4 -}; - -/// Constant 'ROTATE_AXIS'. -enum -{ - visualization_msgs__msg__InteractiveMarkerControl__ROTATE_AXIS = 5 -}; - -/// Constant 'MOVE_ROTATE'. -enum -{ - visualization_msgs__msg__InteractiveMarkerControl__MOVE_ROTATE = 6 -}; - -/// Constant 'MOVE_3D'. -/** - * "3D" interaction modes work with the mouse+SHIFT+CTRL or with 3D cursors. - * MOVE_3D: Translate freely in 3D space. - * ROTATE_3D: Rotate freely in 3D space about the origin of parent frame. - * MOVE_ROTATE_3D: Full 6-DOF freedom of translation and rotation about the cursor origin. - */ -enum -{ - visualization_msgs__msg__InteractiveMarkerControl__MOVE_3D = 7 -}; - -/// Constant 'ROTATE_3D'. -enum -{ - visualization_msgs__msg__InteractiveMarkerControl__ROTATE_3D = 8 -}; - -/// Constant 'MOVE_ROTATE_3D'. -enum -{ - visualization_msgs__msg__InteractiveMarkerControl__MOVE_ROTATE_3D = 9 -}; - -// Include directives for member types -// Member 'name' -// Member 'description' -#include "rosidl_runtime_c/string.h" -// Member 'orientation' -#include "geometry_msgs/msg/detail/quaternion__struct.h" -// Member 'markers' -#include "visualization_msgs/msg/detail/marker__struct.h" - -/// Struct defined in msg/InteractiveMarkerControl in the package visualization_msgs. -/** - * Represents a control that is to be displayed together with an interactive marker - */ -typedef struct visualization_msgs__msg__InteractiveMarkerControl -{ - /// Identifying string for this control. - /// You need to assign a unique value to this to receive feedback from the GUI - /// on what actions the user performs on this control (e.g. a button click). - rosidl_runtime_c__String name; - /// Defines the local coordinate frame (relative to the pose of the parent - /// interactive marker) in which is being rotated and translated. - /// Default: Identity - geometry_msgs__msg__Quaternion orientation; - uint8_t orientation_mode; - uint8_t interaction_mode; - /// If true, the contained markers will also be visible - /// when the gui is not in interactive mode. - bool always_visible; - /// Markers to be displayed as custom visual representation. - /// Leave this empty to use the default control handles. - /// - /// Note: - /// - The markers can be defined in an arbitrary coordinate frame, - /// but will be transformed into the local frame of the interactive marker. - /// - If the header of a marker is empty, its pose will be interpreted as - /// relative to the pose of the parent interactive marker. - visualization_msgs__msg__Marker__Sequence markers; - /// In VIEW_FACING mode, set this to true if you don't want the markers - /// to be aligned with the camera view point. The markers will show up - /// as in INHERIT mode. - bool independent_marker_orientation; - /// Short description (< 40 characters) of what this control does, - /// e.g. "Move the robot". - /// Default: A generic description based on the interaction mode - rosidl_runtime_c__String description; -} visualization_msgs__msg__InteractiveMarkerControl; - -// Struct for a sequence of visualization_msgs__msg__InteractiveMarkerControl. -typedef struct visualization_msgs__msg__InteractiveMarkerControl__Sequence -{ - visualization_msgs__msg__InteractiveMarkerControl * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__msg__InteractiveMarkerControl__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_CONTROL__STRUCT_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_control__type_support.h b/src/visualization_msgs/msg/detail/interactive_marker_control__type_support.h deleted file mode 100755 index e9f468ec7..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_control__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from visualization_msgs:msg/InteractiveMarkerControl.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_control.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_CONTROL__TYPE_SUPPORT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_CONTROL__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - msg, - InteractiveMarkerControl -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_CONTROL__TYPE_SUPPORT_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_feedback__functions.h b/src/visualization_msgs/msg/detail/interactive_marker_feedback__functions.h deleted file mode 100755 index 88491a51e..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_feedback__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from visualization_msgs:msg/InteractiveMarkerFeedback.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_feedback.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_FEEDBACK__FUNCTIONS_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_FEEDBACK__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "visualization_msgs/msg/detail/interactive_marker_feedback__struct.h" - -/// Initialize msg/InteractiveMarkerFeedback message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__msg__InteractiveMarkerFeedback - * )) before or use - * visualization_msgs__msg__InteractiveMarkerFeedback__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerFeedback__init(visualization_msgs__msg__InteractiveMarkerFeedback * msg); - -/// Finalize msg/InteractiveMarkerFeedback message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerFeedback__fini(visualization_msgs__msg__InteractiveMarkerFeedback * msg); - -/// Create msg/InteractiveMarkerFeedback message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__msg__InteractiveMarkerFeedback__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__InteractiveMarkerFeedback * -visualization_msgs__msg__InteractiveMarkerFeedback__create(void); - -/// Destroy msg/InteractiveMarkerFeedback message. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerFeedback__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerFeedback__destroy(visualization_msgs__msg__InteractiveMarkerFeedback * msg); - -/// Check for msg/InteractiveMarkerFeedback message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerFeedback__are_equal(const visualization_msgs__msg__InteractiveMarkerFeedback * lhs, const visualization_msgs__msg__InteractiveMarkerFeedback * rhs); - -/// Copy a msg/InteractiveMarkerFeedback message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerFeedback__copy( - const visualization_msgs__msg__InteractiveMarkerFeedback * input, - visualization_msgs__msg__InteractiveMarkerFeedback * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__msg__InteractiveMarkerFeedback__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__msg__InteractiveMarkerFeedback__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__msg__InteractiveMarkerFeedback__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__msg__InteractiveMarkerFeedback__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/InteractiveMarkerFeedback messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__msg__InteractiveMarkerFeedback__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerFeedback__Sequence__init(visualization_msgs__msg__InteractiveMarkerFeedback__Sequence * array, size_t size); - -/// Finalize array of msg/InteractiveMarkerFeedback messages. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerFeedback__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerFeedback__Sequence__fini(visualization_msgs__msg__InteractiveMarkerFeedback__Sequence * array); - -/// Create array of msg/InteractiveMarkerFeedback messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__msg__InteractiveMarkerFeedback__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__InteractiveMarkerFeedback__Sequence * -visualization_msgs__msg__InteractiveMarkerFeedback__Sequence__create(size_t size); - -/// Destroy array of msg/InteractiveMarkerFeedback messages. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerFeedback__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerFeedback__Sequence__destroy(visualization_msgs__msg__InteractiveMarkerFeedback__Sequence * array); - -/// Check for msg/InteractiveMarkerFeedback message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerFeedback__Sequence__are_equal(const visualization_msgs__msg__InteractiveMarkerFeedback__Sequence * lhs, const visualization_msgs__msg__InteractiveMarkerFeedback__Sequence * rhs); - -/// Copy an array of msg/InteractiveMarkerFeedback messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerFeedback__Sequence__copy( - const visualization_msgs__msg__InteractiveMarkerFeedback__Sequence * input, - visualization_msgs__msg__InteractiveMarkerFeedback__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_FEEDBACK__FUNCTIONS_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_feedback__rosidl_typesupport_introspection_c.h b/src/visualization_msgs/msg/detail/interactive_marker_feedback__rosidl_typesupport_introspection_c.h deleted file mode 100755 index f340835a0..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_feedback__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from visualization_msgs:msg/InteractiveMarkerFeedback.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_FEEDBACK__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_FEEDBACK__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, msg, InteractiveMarkerFeedback)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_FEEDBACK__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_feedback__rosidl_typesupport_microxrcedds_c.h b/src/visualization_msgs/msg/detail/interactive_marker_feedback__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 971ccd5d6..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_feedback__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from visualization_msgs:msg/InteractiveMarkerFeedback.idl -// generated code does not contain a copyright notice -#ifndef VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_FEEDBACK__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_FEEDBACK__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__msg__InteractiveMarkerFeedback( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__msg__InteractiveMarkerFeedback( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, msg, InteractiveMarkerFeedback)(); - -#ifdef __cplusplus -} -#endif - - -#endif // VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_FEEDBACK__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_feedback__struct.h b/src/visualization_msgs/msg/detail/interactive_marker_feedback__struct.h deleted file mode 100755 index fea5c7b9c..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_feedback__struct.h +++ /dev/null @@ -1,120 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from visualization_msgs:msg/InteractiveMarkerFeedback.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_feedback.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_FEEDBACK__STRUCT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_FEEDBACK__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'KEEP_ALIVE'. -/** - * Type of the event - * KEEP_ALIVE: sent while dragging to keep up control of the marker - * MENU_SELECT: a menu entry has been selected - * BUTTON_CLICK: a button control has been clicked - * POSE_UPDATE: the pose has been changed using one of the controls - */ -enum -{ - visualization_msgs__msg__InteractiveMarkerFeedback__KEEP_ALIVE = 0 -}; - -/// Constant 'POSE_UPDATE'. -enum -{ - visualization_msgs__msg__InteractiveMarkerFeedback__POSE_UPDATE = 1 -}; - -/// Constant 'MENU_SELECT'. -enum -{ - visualization_msgs__msg__InteractiveMarkerFeedback__MENU_SELECT = 2 -}; - -/// Constant 'BUTTON_CLICK'. -enum -{ - visualization_msgs__msg__InteractiveMarkerFeedback__BUTTON_CLICK = 3 -}; - -/// Constant 'MOUSE_DOWN'. -enum -{ - visualization_msgs__msg__InteractiveMarkerFeedback__MOUSE_DOWN = 4 -}; - -/// Constant 'MOUSE_UP'. -enum -{ - visualization_msgs__msg__InteractiveMarkerFeedback__MOUSE_UP = 5 -}; - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'client_id' -// Member 'marker_name' -// Member 'control_name' -#include "rosidl_runtime_c/string.h" -// Member 'pose' -#include "geometry_msgs/msg/detail/pose__struct.h" -// Member 'mouse_point' -#include "geometry_msgs/msg/detail/point__struct.h" - -/// Struct defined in msg/InteractiveMarkerFeedback in the package visualization_msgs. -/** - * Time/frame info. - */ -typedef struct visualization_msgs__msg__InteractiveMarkerFeedback -{ - std_msgs__msg__Header header; - /// Identifying string. Must be unique in the topic namespace. - rosidl_runtime_c__String client_id; - /// Feedback message sent back from the GUI, e.g. - /// when the status of an interactive marker was modified by the user. - /// Specifies which interactive marker and control this message refers to - rosidl_runtime_c__String marker_name; - rosidl_runtime_c__String control_name; - uint8_t event_type; - /// Current pose of the marker - /// Note: Has to be valid for all feedback types. - geometry_msgs__msg__Pose pose; - /// Contains the ID of the selected menu entry - /// Only valid for MENU_SELECT events. - uint32_t menu_entry_id; - /// If event_type is BUTTON_CLICK, MOUSE_DOWN, or MOUSE_UP, mouse_point - /// may contain the 3 dimensional position of the event on the - /// control. If it does, mouse_point_valid will be true. mouse_point - /// will be relative to the frame listed in the header. - geometry_msgs__msg__Point mouse_point; - bool mouse_point_valid; -} visualization_msgs__msg__InteractiveMarkerFeedback; - -// Struct for a sequence of visualization_msgs__msg__InteractiveMarkerFeedback. -typedef struct visualization_msgs__msg__InteractiveMarkerFeedback__Sequence -{ - visualization_msgs__msg__InteractiveMarkerFeedback * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__msg__InteractiveMarkerFeedback__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_FEEDBACK__STRUCT_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_feedback__type_support.h b/src/visualization_msgs/msg/detail/interactive_marker_feedback__type_support.h deleted file mode 100755 index 00b2b44ba..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_feedback__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from visualization_msgs:msg/InteractiveMarkerFeedback.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_feedback.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_FEEDBACK__TYPE_SUPPORT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_FEEDBACK__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - msg, - InteractiveMarkerFeedback -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_FEEDBACK__TYPE_SUPPORT_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_init__functions.h b/src/visualization_msgs/msg/detail/interactive_marker_init__functions.h deleted file mode 100755 index 42ba62188..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_init__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from visualization_msgs:msg/InteractiveMarkerInit.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_init.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_INIT__FUNCTIONS_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_INIT__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "visualization_msgs/msg/detail/interactive_marker_init__struct.h" - -/// Initialize msg/InteractiveMarkerInit message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__msg__InteractiveMarkerInit - * )) before or use - * visualization_msgs__msg__InteractiveMarkerInit__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerInit__init(visualization_msgs__msg__InteractiveMarkerInit * msg); - -/// Finalize msg/InteractiveMarkerInit message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerInit__fini(visualization_msgs__msg__InteractiveMarkerInit * msg); - -/// Create msg/InteractiveMarkerInit message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__msg__InteractiveMarkerInit__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__InteractiveMarkerInit * -visualization_msgs__msg__InteractiveMarkerInit__create(void); - -/// Destroy msg/InteractiveMarkerInit message. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerInit__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerInit__destroy(visualization_msgs__msg__InteractiveMarkerInit * msg); - -/// Check for msg/InteractiveMarkerInit message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerInit__are_equal(const visualization_msgs__msg__InteractiveMarkerInit * lhs, const visualization_msgs__msg__InteractiveMarkerInit * rhs); - -/// Copy a msg/InteractiveMarkerInit message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerInit__copy( - const visualization_msgs__msg__InteractiveMarkerInit * input, - visualization_msgs__msg__InteractiveMarkerInit * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__msg__InteractiveMarkerInit__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__msg__InteractiveMarkerInit__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__msg__InteractiveMarkerInit__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__msg__InteractiveMarkerInit__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/InteractiveMarkerInit messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__msg__InteractiveMarkerInit__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerInit__Sequence__init(visualization_msgs__msg__InteractiveMarkerInit__Sequence * array, size_t size); - -/// Finalize array of msg/InteractiveMarkerInit messages. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerInit__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerInit__Sequence__fini(visualization_msgs__msg__InteractiveMarkerInit__Sequence * array); - -/// Create array of msg/InteractiveMarkerInit messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__msg__InteractiveMarkerInit__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__InteractiveMarkerInit__Sequence * -visualization_msgs__msg__InteractiveMarkerInit__Sequence__create(size_t size); - -/// Destroy array of msg/InteractiveMarkerInit messages. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerInit__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerInit__Sequence__destroy(visualization_msgs__msg__InteractiveMarkerInit__Sequence * array); - -/// Check for msg/InteractiveMarkerInit message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerInit__Sequence__are_equal(const visualization_msgs__msg__InteractiveMarkerInit__Sequence * lhs, const visualization_msgs__msg__InteractiveMarkerInit__Sequence * rhs); - -/// Copy an array of msg/InteractiveMarkerInit messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerInit__Sequence__copy( - const visualization_msgs__msg__InteractiveMarkerInit__Sequence * input, - visualization_msgs__msg__InteractiveMarkerInit__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_INIT__FUNCTIONS_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_init__rosidl_typesupport_introspection_c.h b/src/visualization_msgs/msg/detail/interactive_marker_init__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 60feea8b8..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_init__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from visualization_msgs:msg/InteractiveMarkerInit.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_INIT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_INIT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, msg, InteractiveMarkerInit)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_INIT__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_init__rosidl_typesupport_microxrcedds_c.h b/src/visualization_msgs/msg/detail/interactive_marker_init__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index aa4bc2e76..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_init__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from visualization_msgs:msg/InteractiveMarkerInit.idl -// generated code does not contain a copyright notice -#ifndef VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_INIT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_INIT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__msg__InteractiveMarkerInit( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__msg__InteractiveMarkerInit( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, msg, InteractiveMarkerInit)(); - -#ifdef __cplusplus -} -#endif - - -#endif // VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_INIT__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_init__struct.h b/src/visualization_msgs/msg/detail/interactive_marker_init__struct.h deleted file mode 100755 index e78f7379f..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_init__struct.h +++ /dev/null @@ -1,61 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from visualization_msgs:msg/InteractiveMarkerInit.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_init.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_INIT__STRUCT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_INIT__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'server_id' -#include "rosidl_runtime_c/string.h" -// Member 'markers' -#include "visualization_msgs/msg/detail/interactive_marker__struct.h" - -/// Struct defined in msg/InteractiveMarkerInit in the package visualization_msgs. -/** - * Identifying string. Must be unique in the topic namespace - * that this server works on. - */ -typedef struct visualization_msgs__msg__InteractiveMarkerInit -{ - rosidl_runtime_c__String server_id; - /// Sequence number. - /// The client will use this to detect if it has missed a subsequent - /// update. Every update message will have the same sequence number as - /// an init message. Clients will likely want to unsubscribe from the - /// init topic after a successful initialization to avoid receiving - /// duplicate data. - uint64_t seq_num; - /// All markers. - visualization_msgs__msg__InteractiveMarker__Sequence markers; -} visualization_msgs__msg__InteractiveMarkerInit; - -// Struct for a sequence of visualization_msgs__msg__InteractiveMarkerInit. -typedef struct visualization_msgs__msg__InteractiveMarkerInit__Sequence -{ - visualization_msgs__msg__InteractiveMarkerInit * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__msg__InteractiveMarkerInit__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_INIT__STRUCT_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_init__type_support.h b/src/visualization_msgs/msg/detail/interactive_marker_init__type_support.h deleted file mode 100755 index 43f67a9cb..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_init__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from visualization_msgs:msg/InteractiveMarkerInit.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_init.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_INIT__TYPE_SUPPORT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_INIT__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - msg, - InteractiveMarkerInit -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_INIT__TYPE_SUPPORT_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_pose__functions.h b/src/visualization_msgs/msg/detail/interactive_marker_pose__functions.h deleted file mode 100755 index d6af013e7..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_pose__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from visualization_msgs:msg/InteractiveMarkerPose.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_pose.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_POSE__FUNCTIONS_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_POSE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "visualization_msgs/msg/detail/interactive_marker_pose__struct.h" - -/// Initialize msg/InteractiveMarkerPose message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__msg__InteractiveMarkerPose - * )) before or use - * visualization_msgs__msg__InteractiveMarkerPose__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerPose__init(visualization_msgs__msg__InteractiveMarkerPose * msg); - -/// Finalize msg/InteractiveMarkerPose message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerPose__fini(visualization_msgs__msg__InteractiveMarkerPose * msg); - -/// Create msg/InteractiveMarkerPose message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__msg__InteractiveMarkerPose__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__InteractiveMarkerPose * -visualization_msgs__msg__InteractiveMarkerPose__create(void); - -/// Destroy msg/InteractiveMarkerPose message. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerPose__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerPose__destroy(visualization_msgs__msg__InteractiveMarkerPose * msg); - -/// Check for msg/InteractiveMarkerPose message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerPose__are_equal(const visualization_msgs__msg__InteractiveMarkerPose * lhs, const visualization_msgs__msg__InteractiveMarkerPose * rhs); - -/// Copy a msg/InteractiveMarkerPose message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerPose__copy( - const visualization_msgs__msg__InteractiveMarkerPose * input, - visualization_msgs__msg__InteractiveMarkerPose * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__msg__InteractiveMarkerPose__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__msg__InteractiveMarkerPose__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__msg__InteractiveMarkerPose__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__msg__InteractiveMarkerPose__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/InteractiveMarkerPose messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__msg__InteractiveMarkerPose__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerPose__Sequence__init(visualization_msgs__msg__InteractiveMarkerPose__Sequence * array, size_t size); - -/// Finalize array of msg/InteractiveMarkerPose messages. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerPose__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerPose__Sequence__fini(visualization_msgs__msg__InteractiveMarkerPose__Sequence * array); - -/// Create array of msg/InteractiveMarkerPose messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__msg__InteractiveMarkerPose__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__InteractiveMarkerPose__Sequence * -visualization_msgs__msg__InteractiveMarkerPose__Sequence__create(size_t size); - -/// Destroy array of msg/InteractiveMarkerPose messages. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerPose__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerPose__Sequence__destroy(visualization_msgs__msg__InteractiveMarkerPose__Sequence * array); - -/// Check for msg/InteractiveMarkerPose message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerPose__Sequence__are_equal(const visualization_msgs__msg__InteractiveMarkerPose__Sequence * lhs, const visualization_msgs__msg__InteractiveMarkerPose__Sequence * rhs); - -/// Copy an array of msg/InteractiveMarkerPose messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerPose__Sequence__copy( - const visualization_msgs__msg__InteractiveMarkerPose__Sequence * input, - visualization_msgs__msg__InteractiveMarkerPose__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_POSE__FUNCTIONS_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_pose__rosidl_typesupport_introspection_c.h b/src/visualization_msgs/msg/detail/interactive_marker_pose__rosidl_typesupport_introspection_c.h deleted file mode 100755 index bc2cbbb11..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_pose__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from visualization_msgs:msg/InteractiveMarkerPose.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_POSE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_POSE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, msg, InteractiveMarkerPose)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_POSE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_pose__rosidl_typesupport_microxrcedds_c.h b/src/visualization_msgs/msg/detail/interactive_marker_pose__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 1c01ba2a8..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_pose__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from visualization_msgs:msg/InteractiveMarkerPose.idl -// generated code does not contain a copyright notice -#ifndef VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_POSE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_POSE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__msg__InteractiveMarkerPose( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__msg__InteractiveMarkerPose( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, msg, InteractiveMarkerPose)(); - -#ifdef __cplusplus -} -#endif - - -#endif // VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_POSE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_pose__struct.h b/src/visualization_msgs/msg/detail/interactive_marker_pose__struct.h deleted file mode 100755 index 2eb77850e..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_pose__struct.h +++ /dev/null @@ -1,56 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from visualization_msgs:msg/InteractiveMarkerPose.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_pose.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_POSE__STRUCT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_POSE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'pose' -#include "geometry_msgs/msg/detail/pose__struct.h" -// Member 'name' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/InteractiveMarkerPose in the package visualization_msgs. -typedef struct visualization_msgs__msg__InteractiveMarkerPose -{ - /// Time/frame info. - std_msgs__msg__Header header; - /// Initial pose. Also, defines the pivot point for rotations. - geometry_msgs__msg__Pose pose; - /// Identifying string. Must be globally unique in - /// the topic that this message is sent through. - rosidl_runtime_c__String name; -} visualization_msgs__msg__InteractiveMarkerPose; - -// Struct for a sequence of visualization_msgs__msg__InteractiveMarkerPose. -typedef struct visualization_msgs__msg__InteractiveMarkerPose__Sequence -{ - visualization_msgs__msg__InteractiveMarkerPose * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__msg__InteractiveMarkerPose__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_POSE__STRUCT_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_pose__type_support.h b/src/visualization_msgs/msg/detail/interactive_marker_pose__type_support.h deleted file mode 100755 index d9d79ccff..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_pose__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from visualization_msgs:msg/InteractiveMarkerPose.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_pose.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_POSE__TYPE_SUPPORT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_POSE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - msg, - InteractiveMarkerPose -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_POSE__TYPE_SUPPORT_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_update__functions.h b/src/visualization_msgs/msg/detail/interactive_marker_update__functions.h deleted file mode 100755 index 43d63acb3..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_update__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from visualization_msgs:msg/InteractiveMarkerUpdate.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_update.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_UPDATE__FUNCTIONS_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_UPDATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "visualization_msgs/msg/detail/interactive_marker_update__struct.h" - -/// Initialize msg/InteractiveMarkerUpdate message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__msg__InteractiveMarkerUpdate - * )) before or use - * visualization_msgs__msg__InteractiveMarkerUpdate__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerUpdate__init(visualization_msgs__msg__InteractiveMarkerUpdate * msg); - -/// Finalize msg/InteractiveMarkerUpdate message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerUpdate__fini(visualization_msgs__msg__InteractiveMarkerUpdate * msg); - -/// Create msg/InteractiveMarkerUpdate message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__msg__InteractiveMarkerUpdate__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__InteractiveMarkerUpdate * -visualization_msgs__msg__InteractiveMarkerUpdate__create(void); - -/// Destroy msg/InteractiveMarkerUpdate message. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerUpdate__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerUpdate__destroy(visualization_msgs__msg__InteractiveMarkerUpdate * msg); - -/// Check for msg/InteractiveMarkerUpdate message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerUpdate__are_equal(const visualization_msgs__msg__InteractiveMarkerUpdate * lhs, const visualization_msgs__msg__InteractiveMarkerUpdate * rhs); - -/// Copy a msg/InteractiveMarkerUpdate message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerUpdate__copy( - const visualization_msgs__msg__InteractiveMarkerUpdate * input, - visualization_msgs__msg__InteractiveMarkerUpdate * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__msg__InteractiveMarkerUpdate__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__msg__InteractiveMarkerUpdate__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__msg__InteractiveMarkerUpdate__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__msg__InteractiveMarkerUpdate__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/InteractiveMarkerUpdate messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__msg__InteractiveMarkerUpdate__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerUpdate__Sequence__init(visualization_msgs__msg__InteractiveMarkerUpdate__Sequence * array, size_t size); - -/// Finalize array of msg/InteractiveMarkerUpdate messages. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerUpdate__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerUpdate__Sequence__fini(visualization_msgs__msg__InteractiveMarkerUpdate__Sequence * array); - -/// Create array of msg/InteractiveMarkerUpdate messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__msg__InteractiveMarkerUpdate__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__InteractiveMarkerUpdate__Sequence * -visualization_msgs__msg__InteractiveMarkerUpdate__Sequence__create(size_t size); - -/// Destroy array of msg/InteractiveMarkerUpdate messages. -/** - * It calls - * visualization_msgs__msg__InteractiveMarkerUpdate__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__InteractiveMarkerUpdate__Sequence__destroy(visualization_msgs__msg__InteractiveMarkerUpdate__Sequence * array); - -/// Check for msg/InteractiveMarkerUpdate message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerUpdate__Sequence__are_equal(const visualization_msgs__msg__InteractiveMarkerUpdate__Sequence * lhs, const visualization_msgs__msg__InteractiveMarkerUpdate__Sequence * rhs); - -/// Copy an array of msg/InteractiveMarkerUpdate messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__InteractiveMarkerUpdate__Sequence__copy( - const visualization_msgs__msg__InteractiveMarkerUpdate__Sequence * input, - visualization_msgs__msg__InteractiveMarkerUpdate__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_UPDATE__FUNCTIONS_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_update__rosidl_typesupport_introspection_c.h b/src/visualization_msgs/msg/detail/interactive_marker_update__rosidl_typesupport_introspection_c.h deleted file mode 100755 index be5b8b6e8..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_update__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from visualization_msgs:msg/InteractiveMarkerUpdate.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_UPDATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_UPDATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, msg, InteractiveMarkerUpdate)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_UPDATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_update__rosidl_typesupport_microxrcedds_c.h b/src/visualization_msgs/msg/detail/interactive_marker_update__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 5672d83a0..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_update__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from visualization_msgs:msg/InteractiveMarkerUpdate.idl -// generated code does not contain a copyright notice -#ifndef VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_UPDATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_UPDATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__msg__InteractiveMarkerUpdate( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__msg__InteractiveMarkerUpdate( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, msg, InteractiveMarkerUpdate)(); - -#ifdef __cplusplus -} -#endif - - -#endif // VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_UPDATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_update__struct.h b/src/visualization_msgs/msg/detail/interactive_marker_update__struct.h deleted file mode 100755 index 756cdd1d2..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_update__struct.h +++ /dev/null @@ -1,86 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from visualization_msgs:msg/InteractiveMarkerUpdate.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_update.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_UPDATE__STRUCT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_UPDATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'KEEP_ALIVE'. -/** - * Type holds the purpose of this message. It must be one of UPDATE or KEEP_ALIVE. - * UPDATE: Incremental update to previous state. - * The sequence number must be 1 higher than for - * the previous update. - * KEEP_ALIVE: Indicates the that the server is still living. - * The sequence number does not increase. - * No payload data should be filled out (markers, poses, or erases). - */ -enum -{ - visualization_msgs__msg__InteractiveMarkerUpdate__KEEP_ALIVE = 0 -}; - -/// Constant 'UPDATE'. -enum -{ - visualization_msgs__msg__InteractiveMarkerUpdate__UPDATE = 1 -}; - -// Include directives for member types -// Member 'server_id' -// Member 'erases' -#include "rosidl_runtime_c/string.h" -// Member 'markers' -#include "visualization_msgs/msg/detail/interactive_marker__struct.h" -// Member 'poses' -#include "visualization_msgs/msg/detail/interactive_marker_pose__struct.h" - -/// Struct defined in msg/InteractiveMarkerUpdate in the package visualization_msgs. -typedef struct visualization_msgs__msg__InteractiveMarkerUpdate -{ - /// Identifying string. Must be unique in the topic namespace - /// that this server works on. - rosidl_runtime_c__String server_id; - /// Sequence number. - /// The client will use this to detect if it has missed an update. - uint64_t seq_num; - uint8_t type; - /// Note: No guarantees on the order of processing. - /// Contents must be kept consistent by sender. - /// Markers to be added or updated - visualization_msgs__msg__InteractiveMarker__Sequence markers; - /// Poses of markers that should be moved - visualization_msgs__msg__InteractiveMarkerPose__Sequence poses; - /// Names of markers to be erased - rosidl_runtime_c__String__Sequence erases; -} visualization_msgs__msg__InteractiveMarkerUpdate; - -// Struct for a sequence of visualization_msgs__msg__InteractiveMarkerUpdate. -typedef struct visualization_msgs__msg__InteractiveMarkerUpdate__Sequence -{ - visualization_msgs__msg__InteractiveMarkerUpdate * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__msg__InteractiveMarkerUpdate__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_UPDATE__STRUCT_H_ diff --git a/src/visualization_msgs/msg/detail/interactive_marker_update__type_support.h b/src/visualization_msgs/msg/detail/interactive_marker_update__type_support.h deleted file mode 100755 index e8c91d9b5..000000000 --- a/src/visualization_msgs/msg/detail/interactive_marker_update__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from visualization_msgs:msg/InteractiveMarkerUpdate.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/interactive_marker_update.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_UPDATE__TYPE_SUPPORT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_UPDATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - msg, - InteractiveMarkerUpdate -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__INTERACTIVE_MARKER_UPDATE__TYPE_SUPPORT_H_ diff --git a/src/visualization_msgs/msg/detail/marker__functions.h b/src/visualization_msgs/msg/detail/marker__functions.h deleted file mode 100755 index e4ccc9545..000000000 --- a/src/visualization_msgs/msg/detail/marker__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from visualization_msgs:msg/Marker.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/marker.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MARKER__FUNCTIONS_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MARKER__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "visualization_msgs/msg/detail/marker__struct.h" - -/// Initialize msg/Marker message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__msg__Marker - * )) before or use - * visualization_msgs__msg__Marker__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__Marker__init(visualization_msgs__msg__Marker * msg); - -/// Finalize msg/Marker message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__Marker__fini(visualization_msgs__msg__Marker * msg); - -/// Create msg/Marker message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__msg__Marker__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__Marker * -visualization_msgs__msg__Marker__create(void); - -/// Destroy msg/Marker message. -/** - * It calls - * visualization_msgs__msg__Marker__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__Marker__destroy(visualization_msgs__msg__Marker * msg); - -/// Check for msg/Marker message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__Marker__are_equal(const visualization_msgs__msg__Marker * lhs, const visualization_msgs__msg__Marker * rhs); - -/// Copy a msg/Marker message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__Marker__copy( - const visualization_msgs__msg__Marker * input, - visualization_msgs__msg__Marker * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__msg__Marker__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__msg__Marker__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__msg__Marker__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__msg__Marker__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/Marker messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__msg__Marker__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__Marker__Sequence__init(visualization_msgs__msg__Marker__Sequence * array, size_t size); - -/// Finalize array of msg/Marker messages. -/** - * It calls - * visualization_msgs__msg__Marker__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__Marker__Sequence__fini(visualization_msgs__msg__Marker__Sequence * array); - -/// Create array of msg/Marker messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__msg__Marker__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__Marker__Sequence * -visualization_msgs__msg__Marker__Sequence__create(size_t size); - -/// Destroy array of msg/Marker messages. -/** - * It calls - * visualization_msgs__msg__Marker__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__Marker__Sequence__destroy(visualization_msgs__msg__Marker__Sequence * array); - -/// Check for msg/Marker message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__Marker__Sequence__are_equal(const visualization_msgs__msg__Marker__Sequence * lhs, const visualization_msgs__msg__Marker__Sequence * rhs); - -/// Copy an array of msg/Marker messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__Marker__Sequence__copy( - const visualization_msgs__msg__Marker__Sequence * input, - visualization_msgs__msg__Marker__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MARKER__FUNCTIONS_H_ diff --git a/src/visualization_msgs/msg/detail/marker__rosidl_typesupport_introspection_c.h b/src/visualization_msgs/msg/detail/marker__rosidl_typesupport_introspection_c.h deleted file mode 100755 index d73ed32db..000000000 --- a/src/visualization_msgs/msg/detail/marker__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from visualization_msgs:msg/Marker.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MARKER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MARKER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, msg, Marker)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MARKER__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/visualization_msgs/msg/detail/marker__rosidl_typesupport_microxrcedds_c.h b/src/visualization_msgs/msg/detail/marker__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index b37f335bb..000000000 --- a/src/visualization_msgs/msg/detail/marker__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from visualization_msgs:msg/Marker.idl -// generated code does not contain a copyright notice -#ifndef VISUALIZATION_MSGS__MSG__MARKER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define VISUALIZATION_MSGS__MSG__MARKER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__msg__Marker( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__msg__Marker( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, msg, Marker)(); - -#ifdef __cplusplus -} -#endif - - -#endif // VISUALIZATION_MSGS__MSG__MARKER__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/visualization_msgs/msg/detail/marker__struct.h b/src/visualization_msgs/msg/detail/marker__struct.h deleted file mode 100755 index e0b88921a..000000000 --- a/src/visualization_msgs/msg/detail/marker__struct.h +++ /dev/null @@ -1,228 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from visualization_msgs:msg/Marker.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/marker.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MARKER__STRUCT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MARKER__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'ARROW'. -enum -{ - visualization_msgs__msg__Marker__ARROW = 0l -}; - -/// Constant 'CUBE'. -enum -{ - visualization_msgs__msg__Marker__CUBE = 1l -}; - -/// Constant 'SPHERE'. -enum -{ - visualization_msgs__msg__Marker__SPHERE = 2l -}; - -/// Constant 'CYLINDER'. -enum -{ - visualization_msgs__msg__Marker__CYLINDER = 3l -}; - -/// Constant 'LINE_STRIP'. -enum -{ - visualization_msgs__msg__Marker__LINE_STRIP = 4l -}; - -/// Constant 'LINE_LIST'. -enum -{ - visualization_msgs__msg__Marker__LINE_LIST = 5l -}; - -/// Constant 'CUBE_LIST'. -enum -{ - visualization_msgs__msg__Marker__CUBE_LIST = 6l -}; - -/// Constant 'SPHERE_LIST'. -enum -{ - visualization_msgs__msg__Marker__SPHERE_LIST = 7l -}; - -/// Constant 'POINTS'. -enum -{ - visualization_msgs__msg__Marker__POINTS = 8l -}; - -/// Constant 'TEXT_VIEW_FACING'. -enum -{ - visualization_msgs__msg__Marker__TEXT_VIEW_FACING = 9l -}; - -/// Constant 'MESH_RESOURCE'. -enum -{ - visualization_msgs__msg__Marker__MESH_RESOURCE = 10l -}; - -/// Constant 'TRIANGLE_LIST'. -enum -{ - visualization_msgs__msg__Marker__TRIANGLE_LIST = 11l -}; - -/// Constant 'ARROW_STRIP'. -enum -{ - visualization_msgs__msg__Marker__ARROW_STRIP = 12l -}; - -/// Constant 'ADD'. -enum -{ - visualization_msgs__msg__Marker__ADD = 0l -}; - -/// Constant 'MODIFY'. -enum -{ - visualization_msgs__msg__Marker__MODIFY = 0l -}; - -/// Constant 'DELETE'. -enum -{ - visualization_msgs__msg__Marker__DELETE = 2l -}; - -/// Constant 'DELETEALL'. -enum -{ - visualization_msgs__msg__Marker__DELETEALL = 3l -}; - -// Include directives for member types -// Member 'header' -#include "std_msgs/msg/detail/header__struct.h" -// Member 'ns' -// Member 'texture_resource' -// Member 'text' -// Member 'mesh_resource' -#include "rosidl_runtime_c/string.h" -// Member 'pose' -#include "geometry_msgs/msg/detail/pose__struct.h" -// Member 'scale' -#include "geometry_msgs/msg/detail/vector3__struct.h" -// Member 'color' -// Member 'colors' -#include "std_msgs/msg/detail/color_rgba__struct.h" -// Member 'lifetime' -#include "builtin_interfaces/msg/detail/duration__struct.h" -// Member 'points' -#include "geometry_msgs/msg/detail/point__struct.h" -// Member 'texture' -#include "sensor_msgs/msg/detail/compressed_image__struct.h" -// Member 'uv_coordinates' -#include "visualization_msgs/msg/detail/uv_coordinate__struct.h" -// Member 'mesh_file' -#include "visualization_msgs/msg/detail/mesh_file__struct.h" - -/// Struct defined in msg/Marker in the package visualization_msgs. -/** - * See: - * - http://www.ros.org/wiki/rviz/DisplayTypes/Marker - * - http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes - * - * for more information on using this message with rviz. - */ -typedef struct visualization_msgs__msg__Marker -{ - /// Header for timestamp and frame id. - std_msgs__msg__Header header; - /// Namespace in which to place the object. - /// Used in conjunction with id to create a unique name for the object. - rosidl_runtime_c__String ns; - /// Object ID used in conjunction with the namespace for manipulating and deleting the object later. - int32_t id; - /// Type of object. - int32_t type; - /// Action to take; one of: - /// - 0 add/modify an object - /// - 1 (deprecated) - /// - 2 deletes an object (with the given ns and id) - /// - 3 deletes all objects (or those with the given ns if any) - int32_t action; - /// Pose of the object with respect the frame_id specified in the header. - geometry_msgs__msg__Pose pose; - /// Scale of the object; 1,1,1 means default (usually 1 meter square). - geometry_msgs__msg__Vector3 scale; - /// Color of the object; in the range: - std_msgs__msg__ColorRGBA color; - /// How long the object should last before being automatically deleted. - /// 0 indicates forever. - builtin_interfaces__msg__Duration lifetime; - /// If this marker should be frame-locked, i.e. retransformed into its frame every timestep. - bool frame_locked; - /// Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ARROW_STRIP, etc.) - geometry_msgs__msg__Point__Sequence points; - /// Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, etc.) - /// The number of colors provided must either be 0 or equal to the number of points provided. - /// NOTE: alpha is not yet used - std_msgs__msg__ColorRGBA__Sequence colors; - /// Texture resource is a special URI that can either reference a texture file in - /// a format acceptable to (resource retriever) - /// or an embedded texture via a string matching the format: - /// "embedded://texture_name" - rosidl_runtime_c__String texture_resource; - /// An image to be loaded into the rendering engine as the texture for this marker. - /// This will be used iff texture_resource is set to embedded. - sensor_msgs__msg__CompressedImage texture; - /// Location of each vertex within the texture; in the range: - visualization_msgs__msg__UVCoordinate__Sequence uv_coordinates; - /// Only used for text markers - rosidl_runtime_c__String text; - /// Only used for MESH_RESOURCE markers. - /// Similar to texture_resource, mesh_resource uses resource retriever to load a mesh. - /// Optionally, a mesh file can be sent in-message via the mesh_file field. If doing so, - /// use the following format for mesh_resource: - /// "embedded://mesh_name" - rosidl_runtime_c__String mesh_resource; - visualization_msgs__msg__MeshFile mesh_file; - bool mesh_use_embedded_materials; -} visualization_msgs__msg__Marker; - -// Struct for a sequence of visualization_msgs__msg__Marker. -typedef struct visualization_msgs__msg__Marker__Sequence -{ - visualization_msgs__msg__Marker * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__msg__Marker__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MARKER__STRUCT_H_ diff --git a/src/visualization_msgs/msg/detail/marker__type_support.h b/src/visualization_msgs/msg/detail/marker__type_support.h deleted file mode 100755 index 7e1c8257e..000000000 --- a/src/visualization_msgs/msg/detail/marker__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from visualization_msgs:msg/Marker.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/marker.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MARKER__TYPE_SUPPORT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MARKER__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - msg, - Marker -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MARKER__TYPE_SUPPORT_H_ diff --git a/src/visualization_msgs/msg/detail/marker_array__functions.h b/src/visualization_msgs/msg/detail/marker_array__functions.h deleted file mode 100755 index 9333537f5..000000000 --- a/src/visualization_msgs/msg/detail/marker_array__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from visualization_msgs:msg/MarkerArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/marker_array.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MARKER_ARRAY__FUNCTIONS_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MARKER_ARRAY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "visualization_msgs/msg/detail/marker_array__struct.h" - -/// Initialize msg/MarkerArray message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__msg__MarkerArray - * )) before or use - * visualization_msgs__msg__MarkerArray__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MarkerArray__init(visualization_msgs__msg__MarkerArray * msg); - -/// Finalize msg/MarkerArray message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__MarkerArray__fini(visualization_msgs__msg__MarkerArray * msg); - -/// Create msg/MarkerArray message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__msg__MarkerArray__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__MarkerArray * -visualization_msgs__msg__MarkerArray__create(void); - -/// Destroy msg/MarkerArray message. -/** - * It calls - * visualization_msgs__msg__MarkerArray__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__MarkerArray__destroy(visualization_msgs__msg__MarkerArray * msg); - -/// Check for msg/MarkerArray message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MarkerArray__are_equal(const visualization_msgs__msg__MarkerArray * lhs, const visualization_msgs__msg__MarkerArray * rhs); - -/// Copy a msg/MarkerArray message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MarkerArray__copy( - const visualization_msgs__msg__MarkerArray * input, - visualization_msgs__msg__MarkerArray * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__msg__MarkerArray__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__msg__MarkerArray__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__msg__MarkerArray__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__msg__MarkerArray__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MarkerArray messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__msg__MarkerArray__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MarkerArray__Sequence__init(visualization_msgs__msg__MarkerArray__Sequence * array, size_t size); - -/// Finalize array of msg/MarkerArray messages. -/** - * It calls - * visualization_msgs__msg__MarkerArray__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__MarkerArray__Sequence__fini(visualization_msgs__msg__MarkerArray__Sequence * array); - -/// Create array of msg/MarkerArray messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__msg__MarkerArray__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__MarkerArray__Sequence * -visualization_msgs__msg__MarkerArray__Sequence__create(size_t size); - -/// Destroy array of msg/MarkerArray messages. -/** - * It calls - * visualization_msgs__msg__MarkerArray__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__MarkerArray__Sequence__destroy(visualization_msgs__msg__MarkerArray__Sequence * array); - -/// Check for msg/MarkerArray message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MarkerArray__Sequence__are_equal(const visualization_msgs__msg__MarkerArray__Sequence * lhs, const visualization_msgs__msg__MarkerArray__Sequence * rhs); - -/// Copy an array of msg/MarkerArray messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MarkerArray__Sequence__copy( - const visualization_msgs__msg__MarkerArray__Sequence * input, - visualization_msgs__msg__MarkerArray__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MARKER_ARRAY__FUNCTIONS_H_ diff --git a/src/visualization_msgs/msg/detail/marker_array__rosidl_typesupport_introspection_c.h b/src/visualization_msgs/msg/detail/marker_array__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 66b074105..000000000 --- a/src/visualization_msgs/msg/detail/marker_array__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from visualization_msgs:msg/MarkerArray.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MARKER_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MARKER_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, msg, MarkerArray)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MARKER_ARRAY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/visualization_msgs/msg/detail/marker_array__rosidl_typesupport_microxrcedds_c.h b/src/visualization_msgs/msg/detail/marker_array__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index d9aeaeb7b..000000000 --- a/src/visualization_msgs/msg/detail/marker_array__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from visualization_msgs:msg/MarkerArray.idl -// generated code does not contain a copyright notice -#ifndef VISUALIZATION_MSGS__MSG__MARKER_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define VISUALIZATION_MSGS__MSG__MARKER_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__msg__MarkerArray( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__msg__MarkerArray( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, msg, MarkerArray)(); - -#ifdef __cplusplus -} -#endif - - -#endif // VISUALIZATION_MSGS__MSG__MARKER_ARRAY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/visualization_msgs/msg/detail/marker_array__struct.h b/src/visualization_msgs/msg/detail/marker_array__struct.h deleted file mode 100755 index c516c076e..000000000 --- a/src/visualization_msgs/msg/detail/marker_array__struct.h +++ /dev/null @@ -1,46 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from visualization_msgs:msg/MarkerArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/marker_array.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MARKER_ARRAY__STRUCT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MARKER_ARRAY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'markers' -#include "visualization_msgs/msg/detail/marker__struct.h" - -/// Struct defined in msg/MarkerArray in the package visualization_msgs. -typedef struct visualization_msgs__msg__MarkerArray -{ - visualization_msgs__msg__Marker__Sequence markers; -} visualization_msgs__msg__MarkerArray; - -// Struct for a sequence of visualization_msgs__msg__MarkerArray. -typedef struct visualization_msgs__msg__MarkerArray__Sequence -{ - visualization_msgs__msg__MarkerArray * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__msg__MarkerArray__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MARKER_ARRAY__STRUCT_H_ diff --git a/src/visualization_msgs/msg/detail/marker_array__type_support.h b/src/visualization_msgs/msg/detail/marker_array__type_support.h deleted file mode 100755 index a25c66574..000000000 --- a/src/visualization_msgs/msg/detail/marker_array__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from visualization_msgs:msg/MarkerArray.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/marker_array.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MARKER_ARRAY__TYPE_SUPPORT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MARKER_ARRAY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - msg, - MarkerArray -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MARKER_ARRAY__TYPE_SUPPORT_H_ diff --git a/src/visualization_msgs/msg/detail/menu_entry__functions.h b/src/visualization_msgs/msg/detail/menu_entry__functions.h deleted file mode 100755 index 9ba3760ee..000000000 --- a/src/visualization_msgs/msg/detail/menu_entry__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from visualization_msgs:msg/MenuEntry.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/menu_entry.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MENU_ENTRY__FUNCTIONS_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MENU_ENTRY__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "visualization_msgs/msg/detail/menu_entry__struct.h" - -/// Initialize msg/MenuEntry message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__msg__MenuEntry - * )) before or use - * visualization_msgs__msg__MenuEntry__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MenuEntry__init(visualization_msgs__msg__MenuEntry * msg); - -/// Finalize msg/MenuEntry message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__MenuEntry__fini(visualization_msgs__msg__MenuEntry * msg); - -/// Create msg/MenuEntry message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__msg__MenuEntry__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__MenuEntry * -visualization_msgs__msg__MenuEntry__create(void); - -/// Destroy msg/MenuEntry message. -/** - * It calls - * visualization_msgs__msg__MenuEntry__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__MenuEntry__destroy(visualization_msgs__msg__MenuEntry * msg); - -/// Check for msg/MenuEntry message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MenuEntry__are_equal(const visualization_msgs__msg__MenuEntry * lhs, const visualization_msgs__msg__MenuEntry * rhs); - -/// Copy a msg/MenuEntry message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MenuEntry__copy( - const visualization_msgs__msg__MenuEntry * input, - visualization_msgs__msg__MenuEntry * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__msg__MenuEntry__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__msg__MenuEntry__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__msg__MenuEntry__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__msg__MenuEntry__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MenuEntry messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__msg__MenuEntry__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MenuEntry__Sequence__init(visualization_msgs__msg__MenuEntry__Sequence * array, size_t size); - -/// Finalize array of msg/MenuEntry messages. -/** - * It calls - * visualization_msgs__msg__MenuEntry__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__MenuEntry__Sequence__fini(visualization_msgs__msg__MenuEntry__Sequence * array); - -/// Create array of msg/MenuEntry messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__msg__MenuEntry__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__MenuEntry__Sequence * -visualization_msgs__msg__MenuEntry__Sequence__create(size_t size); - -/// Destroy array of msg/MenuEntry messages. -/** - * It calls - * visualization_msgs__msg__MenuEntry__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__MenuEntry__Sequence__destroy(visualization_msgs__msg__MenuEntry__Sequence * array); - -/// Check for msg/MenuEntry message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MenuEntry__Sequence__are_equal(const visualization_msgs__msg__MenuEntry__Sequence * lhs, const visualization_msgs__msg__MenuEntry__Sequence * rhs); - -/// Copy an array of msg/MenuEntry messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MenuEntry__Sequence__copy( - const visualization_msgs__msg__MenuEntry__Sequence * input, - visualization_msgs__msg__MenuEntry__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MENU_ENTRY__FUNCTIONS_H_ diff --git a/src/visualization_msgs/msg/detail/menu_entry__rosidl_typesupport_introspection_c.h b/src/visualization_msgs/msg/detail/menu_entry__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 74f2dde2e..000000000 --- a/src/visualization_msgs/msg/detail/menu_entry__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from visualization_msgs:msg/MenuEntry.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MENU_ENTRY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MENU_ENTRY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, msg, MenuEntry)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MENU_ENTRY__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/visualization_msgs/msg/detail/menu_entry__rosidl_typesupport_microxrcedds_c.h b/src/visualization_msgs/msg/detail/menu_entry__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 26c1d3bd6..000000000 --- a/src/visualization_msgs/msg/detail/menu_entry__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from visualization_msgs:msg/MenuEntry.idl -// generated code does not contain a copyright notice -#ifndef VISUALIZATION_MSGS__MSG__MENU_ENTRY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define VISUALIZATION_MSGS__MSG__MENU_ENTRY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__msg__MenuEntry( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__msg__MenuEntry( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, msg, MenuEntry)(); - -#ifdef __cplusplus -} -#endif - - -#endif // VISUALIZATION_MSGS__MSG__MENU_ENTRY__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/visualization_msgs/msg/detail/menu_entry__struct.h b/src/visualization_msgs/msg/detail/menu_entry__struct.h deleted file mode 100755 index 0880707d9..000000000 --- a/src/visualization_msgs/msg/detail/menu_entry__struct.h +++ /dev/null @@ -1,114 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from visualization_msgs:msg/MenuEntry.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/menu_entry.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MENU_ENTRY__STRUCT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MENU_ENTRY__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Constant 'FEEDBACK'. -/** - * Command_type stores the type of response desired when this menu - * entry is clicked. - * FEEDBACK: send an InteractiveMarkerFeedback message with menu_entry_id set to this entry's id. - * ROSRUN: execute "rosrun" with arguments given in the command field (above). - * ROSLAUNCH: execute "roslaunch" with arguments given in the command field (above). - */ -enum -{ - visualization_msgs__msg__MenuEntry__FEEDBACK = 0 -}; - -/// Constant 'ROSRUN'. -enum -{ - visualization_msgs__msg__MenuEntry__ROSRUN = 1 -}; - -/// Constant 'ROSLAUNCH'. -enum -{ - visualization_msgs__msg__MenuEntry__ROSLAUNCH = 2 -}; - -// Include directives for member types -// Member 'title' -// Member 'command' -#include "rosidl_runtime_c/string.h" - -/// Struct defined in msg/MenuEntry in the package visualization_msgs. -/** - * MenuEntry message. - * - * Each InteractiveMarker message has an array of MenuEntry messages. - * A collection of MenuEntries together describe a - * menu/submenu/subsubmenu/etc tree, though they are stored in a flat - * array. The tree structure is represented by giving each menu entry - * an ID number and a "parent_id" field. Top-level entries are the - * ones with parent_id = 0. Menu entries are ordered within their - * level the same way they are ordered in the containing array. Parent - * entries must appear before their children. - * - * Example: - * - id = 3 - * parent_id = 0 - * title = "fun" - * - id = 2 - * parent_id = 0 - * title = "robot" - * - id = 4 - * parent_id = 2 - * title = "pr2" - * - id = 5 - * parent_id = 2 - * title = "turtle" - * - * Gives a menu tree like this: - * - fun - * - robot - * - pr2 - * - turtle - */ -typedef struct visualization_msgs__msg__MenuEntry -{ - /// ID is a number for each menu entry. Must be unique within the - /// control, and should never be 0. - uint32_t id; - /// ID of the parent of this menu entry, if it is a submenu. If this - /// menu entry is a top-level entry, set parent_id to 0. - uint32_t parent_id; - /// menu / entry title - rosidl_runtime_c__String title; - /// Arguments to command indicated by command_type (below) - rosidl_runtime_c__String command; - uint8_t command_type; -} visualization_msgs__msg__MenuEntry; - -// Struct for a sequence of visualization_msgs__msg__MenuEntry. -typedef struct visualization_msgs__msg__MenuEntry__Sequence -{ - visualization_msgs__msg__MenuEntry * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__msg__MenuEntry__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MENU_ENTRY__STRUCT_H_ diff --git a/src/visualization_msgs/msg/detail/menu_entry__type_support.h b/src/visualization_msgs/msg/detail/menu_entry__type_support.h deleted file mode 100755 index 87bd0de9e..000000000 --- a/src/visualization_msgs/msg/detail/menu_entry__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from visualization_msgs:msg/MenuEntry.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/menu_entry.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MENU_ENTRY__TYPE_SUPPORT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MENU_ENTRY__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - msg, - MenuEntry -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MENU_ENTRY__TYPE_SUPPORT_H_ diff --git a/src/visualization_msgs/msg/detail/mesh_file__functions.h b/src/visualization_msgs/msg/detail/mesh_file__functions.h deleted file mode 100755 index 616b9bb27..000000000 --- a/src/visualization_msgs/msg/detail/mesh_file__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from visualization_msgs:msg/MeshFile.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/mesh_file.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MESH_FILE__FUNCTIONS_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MESH_FILE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "visualization_msgs/msg/detail/mesh_file__struct.h" - -/// Initialize msg/MeshFile message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__msg__MeshFile - * )) before or use - * visualization_msgs__msg__MeshFile__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MeshFile__init(visualization_msgs__msg__MeshFile * msg); - -/// Finalize msg/MeshFile message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__MeshFile__fini(visualization_msgs__msg__MeshFile * msg); - -/// Create msg/MeshFile message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__msg__MeshFile__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__MeshFile * -visualization_msgs__msg__MeshFile__create(void); - -/// Destroy msg/MeshFile message. -/** - * It calls - * visualization_msgs__msg__MeshFile__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__MeshFile__destroy(visualization_msgs__msg__MeshFile * msg); - -/// Check for msg/MeshFile message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MeshFile__are_equal(const visualization_msgs__msg__MeshFile * lhs, const visualization_msgs__msg__MeshFile * rhs); - -/// Copy a msg/MeshFile message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MeshFile__copy( - const visualization_msgs__msg__MeshFile * input, - visualization_msgs__msg__MeshFile * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__msg__MeshFile__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__msg__MeshFile__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__msg__MeshFile__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__msg__MeshFile__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/MeshFile messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__msg__MeshFile__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MeshFile__Sequence__init(visualization_msgs__msg__MeshFile__Sequence * array, size_t size); - -/// Finalize array of msg/MeshFile messages. -/** - * It calls - * visualization_msgs__msg__MeshFile__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__MeshFile__Sequence__fini(visualization_msgs__msg__MeshFile__Sequence * array); - -/// Create array of msg/MeshFile messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__msg__MeshFile__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__MeshFile__Sequence * -visualization_msgs__msg__MeshFile__Sequence__create(size_t size); - -/// Destroy array of msg/MeshFile messages. -/** - * It calls - * visualization_msgs__msg__MeshFile__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__MeshFile__Sequence__destroy(visualization_msgs__msg__MeshFile__Sequence * array); - -/// Check for msg/MeshFile message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MeshFile__Sequence__are_equal(const visualization_msgs__msg__MeshFile__Sequence * lhs, const visualization_msgs__msg__MeshFile__Sequence * rhs); - -/// Copy an array of msg/MeshFile messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__MeshFile__Sequence__copy( - const visualization_msgs__msg__MeshFile__Sequence * input, - visualization_msgs__msg__MeshFile__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MESH_FILE__FUNCTIONS_H_ diff --git a/src/visualization_msgs/msg/detail/mesh_file__rosidl_typesupport_introspection_c.h b/src/visualization_msgs/msg/detail/mesh_file__rosidl_typesupport_introspection_c.h deleted file mode 100755 index ce5a1f4c0..000000000 --- a/src/visualization_msgs/msg/detail/mesh_file__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from visualization_msgs:msg/MeshFile.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MESH_FILE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MESH_FILE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, msg, MeshFile)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MESH_FILE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/visualization_msgs/msg/detail/mesh_file__rosidl_typesupport_microxrcedds_c.h b/src/visualization_msgs/msg/detail/mesh_file__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index 83aec39bb..000000000 --- a/src/visualization_msgs/msg/detail/mesh_file__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from visualization_msgs:msg/MeshFile.idl -// generated code does not contain a copyright notice -#ifndef VISUALIZATION_MSGS__MSG__MESH_FILE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define VISUALIZATION_MSGS__MSG__MESH_FILE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__msg__MeshFile( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__msg__MeshFile( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, msg, MeshFile)(); - -#ifdef __cplusplus -} -#endif - - -#endif // VISUALIZATION_MSGS__MSG__MESH_FILE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/visualization_msgs/msg/detail/mesh_file__struct.h b/src/visualization_msgs/msg/detail/mesh_file__struct.h deleted file mode 100755 index 133f9cfef..000000000 --- a/src/visualization_msgs/msg/detail/mesh_file__struct.h +++ /dev/null @@ -1,55 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from visualization_msgs:msg/MeshFile.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/mesh_file.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MESH_FILE__STRUCT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MESH_FILE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -// Include directives for member types -// Member 'filename' -#include "rosidl_runtime_c/string.h" -// Member 'data' -#include "rosidl_runtime_c/primitives_sequence.h" - -/// Struct defined in msg/MeshFile in the package visualization_msgs. -/** - * Used to send raw mesh files. - */ -typedef struct visualization_msgs__msg__MeshFile -{ - /// The filename is used for both debug purposes and to provide a file extension - /// for whatever parser is used. - rosidl_runtime_c__String filename; - /// This stores the raw text of the mesh file. - rosidl_runtime_c__uint8__Sequence data; -} visualization_msgs__msg__MeshFile; - -// Struct for a sequence of visualization_msgs__msg__MeshFile. -typedef struct visualization_msgs__msg__MeshFile__Sequence -{ - visualization_msgs__msg__MeshFile * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__msg__MeshFile__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MESH_FILE__STRUCT_H_ diff --git a/src/visualization_msgs/msg/detail/mesh_file__type_support.h b/src/visualization_msgs/msg/detail/mesh_file__type_support.h deleted file mode 100755 index 3fc4866a8..000000000 --- a/src/visualization_msgs/msg/detail/mesh_file__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from visualization_msgs:msg/MeshFile.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/mesh_file.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__MESH_FILE__TYPE_SUPPORT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__MESH_FILE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - msg, - MeshFile -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__MESH_FILE__TYPE_SUPPORT_H_ diff --git a/src/visualization_msgs/msg/detail/uv_coordinate__functions.h b/src/visualization_msgs/msg/detail/uv_coordinate__functions.h deleted file mode 100755 index 084040ac7..000000000 --- a/src/visualization_msgs/msg/detail/uv_coordinate__functions.h +++ /dev/null @@ -1,210 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from visualization_msgs:msg/UVCoordinate.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/uv_coordinate.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__UV_COORDINATE__FUNCTIONS_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__UV_COORDINATE__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "visualization_msgs/msg/detail/uv_coordinate__struct.h" - -/// Initialize msg/UVCoordinate message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__msg__UVCoordinate - * )) before or use - * visualization_msgs__msg__UVCoordinate__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__UVCoordinate__init(visualization_msgs__msg__UVCoordinate * msg); - -/// Finalize msg/UVCoordinate message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__UVCoordinate__fini(visualization_msgs__msg__UVCoordinate * msg); - -/// Create msg/UVCoordinate message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__msg__UVCoordinate__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__UVCoordinate * -visualization_msgs__msg__UVCoordinate__create(void); - -/// Destroy msg/UVCoordinate message. -/** - * It calls - * visualization_msgs__msg__UVCoordinate__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__UVCoordinate__destroy(visualization_msgs__msg__UVCoordinate * msg); - -/// Check for msg/UVCoordinate message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__UVCoordinate__are_equal(const visualization_msgs__msg__UVCoordinate * lhs, const visualization_msgs__msg__UVCoordinate * rhs); - -/// Copy a msg/UVCoordinate message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__UVCoordinate__copy( - const visualization_msgs__msg__UVCoordinate * input, - visualization_msgs__msg__UVCoordinate * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__msg__UVCoordinate__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__msg__UVCoordinate__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__msg__UVCoordinate__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__msg__UVCoordinate__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of msg/UVCoordinate messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__msg__UVCoordinate__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__UVCoordinate__Sequence__init(visualization_msgs__msg__UVCoordinate__Sequence * array, size_t size); - -/// Finalize array of msg/UVCoordinate messages. -/** - * It calls - * visualization_msgs__msg__UVCoordinate__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__UVCoordinate__Sequence__fini(visualization_msgs__msg__UVCoordinate__Sequence * array); - -/// Create array of msg/UVCoordinate messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__msg__UVCoordinate__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__msg__UVCoordinate__Sequence * -visualization_msgs__msg__UVCoordinate__Sequence__create(size_t size); - -/// Destroy array of msg/UVCoordinate messages. -/** - * It calls - * visualization_msgs__msg__UVCoordinate__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__msg__UVCoordinate__Sequence__destroy(visualization_msgs__msg__UVCoordinate__Sequence * array); - -/// Check for msg/UVCoordinate message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__UVCoordinate__Sequence__are_equal(const visualization_msgs__msg__UVCoordinate__Sequence * lhs, const visualization_msgs__msg__UVCoordinate__Sequence * rhs); - -/// Copy an array of msg/UVCoordinate messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__msg__UVCoordinate__Sequence__copy( - const visualization_msgs__msg__UVCoordinate__Sequence * input, - visualization_msgs__msg__UVCoordinate__Sequence * output); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__UV_COORDINATE__FUNCTIONS_H_ diff --git a/src/visualization_msgs/msg/detail/uv_coordinate__rosidl_typesupport_introspection_c.h b/src/visualization_msgs/msg/detail/uv_coordinate__rosidl_typesupport_introspection_c.h deleted file mode 100755 index bd752a865..000000000 --- a/src/visualization_msgs/msg/detail/uv_coordinate__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,26 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from visualization_msgs:msg/UVCoordinate.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__UV_COORDINATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__UV_COORDINATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, msg, UVCoordinate)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__UV_COORDINATE__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/visualization_msgs/msg/detail/uv_coordinate__rosidl_typesupport_microxrcedds_c.h b/src/visualization_msgs/msg/detail/uv_coordinate__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index ee398d55a..000000000 --- a/src/visualization_msgs/msg/detail/uv_coordinate__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,39 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from visualization_msgs:msg/UVCoordinate.idl -// generated code does not contain a copyright notice -#ifndef VISUALIZATION_MSGS__MSG__UV_COORDINATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define VISUALIZATION_MSGS__MSG__UV_COORDINATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__msg__UVCoordinate( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__msg__UVCoordinate( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, msg, UVCoordinate)(); - -#ifdef __cplusplus -} -#endif - - -#endif // VISUALIZATION_MSGS__MSG__UV_COORDINATE__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/visualization_msgs/msg/detail/uv_coordinate__struct.h b/src/visualization_msgs/msg/detail/uv_coordinate__struct.h deleted file mode 100755 index 2489c78dc..000000000 --- a/src/visualization_msgs/msg/detail/uv_coordinate__struct.h +++ /dev/null @@ -1,47 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from visualization_msgs:msg/UVCoordinate.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/uv_coordinate.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__UV_COORDINATE__STRUCT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__UV_COORDINATE__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - -// Constants defined in the message - -/// Struct defined in msg/UVCoordinate in the package visualization_msgs. -/** - * Location of the pixel as a ratio of the width of a 2D texture. - * Values should be in range:. - */ -typedef struct visualization_msgs__msg__UVCoordinate -{ - float u; - float v; -} visualization_msgs__msg__UVCoordinate; - -// Struct for a sequence of visualization_msgs__msg__UVCoordinate. -typedef struct visualization_msgs__msg__UVCoordinate__Sequence -{ - visualization_msgs__msg__UVCoordinate * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__msg__UVCoordinate__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__UV_COORDINATE__STRUCT_H_ diff --git a/src/visualization_msgs/msg/detail/uv_coordinate__type_support.h b/src/visualization_msgs/msg/detail/uv_coordinate__type_support.h deleted file mode 100755 index 60aca1ca8..000000000 --- a/src/visualization_msgs/msg/detail/uv_coordinate__type_support.h +++ /dev/null @@ -1,36 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from visualization_msgs:msg/UVCoordinate.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/msg/uv_coordinate.h" - - -#ifndef VISUALIZATION_MSGS__MSG__DETAIL__UV_COORDINATE__TYPE_SUPPORT_H_ -#define VISUALIZATION_MSGS__MSG__DETAIL__UV_COORDINATE__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - msg, - UVCoordinate -)(void); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__DETAIL__UV_COORDINATE__TYPE_SUPPORT_H_ diff --git a/src/visualization_msgs/msg/image_marker.h b/src/visualization_msgs/msg/image_marker.h deleted file mode 100755 index b80bb45c9..000000000 --- a/src/visualization_msgs/msg/image_marker.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from visualization_msgs:msg/ImageMarker.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__IMAGE_MARKER_H_ -#define VISUALIZATION_MSGS__MSG__IMAGE_MARKER_H_ - -#include "visualization_msgs/msg/detail/image_marker__struct.h" -#include "visualization_msgs/msg/detail/image_marker__functions.h" -#include "visualization_msgs/msg/detail/image_marker__type_support.h" - -#endif // VISUALIZATION_MSGS__MSG__IMAGE_MARKER_H_ diff --git a/src/visualization_msgs/msg/interactive_marker.h b/src/visualization_msgs/msg/interactive_marker.h deleted file mode 100755 index f5571cdb5..000000000 --- a/src/visualization_msgs/msg/interactive_marker.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from visualization_msgs:msg/InteractiveMarker.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_H_ -#define VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_H_ - -#include "visualization_msgs/msg/detail/interactive_marker__struct.h" -#include "visualization_msgs/msg/detail/interactive_marker__functions.h" -#include "visualization_msgs/msg/detail/interactive_marker__type_support.h" - -#endif // VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_H_ diff --git a/src/visualization_msgs/msg/interactive_marker_control.h b/src/visualization_msgs/msg/interactive_marker_control.h deleted file mode 100755 index c2b00b718..000000000 --- a/src/visualization_msgs/msg/interactive_marker_control.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from visualization_msgs:msg/InteractiveMarkerControl.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_CONTROL_H_ -#define VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_CONTROL_H_ - -#include "visualization_msgs/msg/detail/interactive_marker_control__struct.h" -#include "visualization_msgs/msg/detail/interactive_marker_control__functions.h" -#include "visualization_msgs/msg/detail/interactive_marker_control__type_support.h" - -#endif // VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_CONTROL_H_ diff --git a/src/visualization_msgs/msg/interactive_marker_feedback.h b/src/visualization_msgs/msg/interactive_marker_feedback.h deleted file mode 100755 index 88ea9dbce..000000000 --- a/src/visualization_msgs/msg/interactive_marker_feedback.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from visualization_msgs:msg/InteractiveMarkerFeedback.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_FEEDBACK_H_ -#define VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_FEEDBACK_H_ - -#include "visualization_msgs/msg/detail/interactive_marker_feedback__struct.h" -#include "visualization_msgs/msg/detail/interactive_marker_feedback__functions.h" -#include "visualization_msgs/msg/detail/interactive_marker_feedback__type_support.h" - -#endif // VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_FEEDBACK_H_ diff --git a/src/visualization_msgs/msg/interactive_marker_init.h b/src/visualization_msgs/msg/interactive_marker_init.h deleted file mode 100755 index 9fab2049e..000000000 --- a/src/visualization_msgs/msg/interactive_marker_init.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from visualization_msgs:msg/InteractiveMarkerInit.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_INIT_H_ -#define VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_INIT_H_ - -#include "visualization_msgs/msg/detail/interactive_marker_init__struct.h" -#include "visualization_msgs/msg/detail/interactive_marker_init__functions.h" -#include "visualization_msgs/msg/detail/interactive_marker_init__type_support.h" - -#endif // VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_INIT_H_ diff --git a/src/visualization_msgs/msg/interactive_marker_pose.h b/src/visualization_msgs/msg/interactive_marker_pose.h deleted file mode 100755 index bfc5f6c17..000000000 --- a/src/visualization_msgs/msg/interactive_marker_pose.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from visualization_msgs:msg/InteractiveMarkerPose.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_POSE_H_ -#define VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_POSE_H_ - -#include "visualization_msgs/msg/detail/interactive_marker_pose__struct.h" -#include "visualization_msgs/msg/detail/interactive_marker_pose__functions.h" -#include "visualization_msgs/msg/detail/interactive_marker_pose__type_support.h" - -#endif // VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_POSE_H_ diff --git a/src/visualization_msgs/msg/interactive_marker_update.h b/src/visualization_msgs/msg/interactive_marker_update.h deleted file mode 100755 index cf5259269..000000000 --- a/src/visualization_msgs/msg/interactive_marker_update.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from visualization_msgs:msg/InteractiveMarkerUpdate.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_UPDATE_H_ -#define VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_UPDATE_H_ - -#include "visualization_msgs/msg/detail/interactive_marker_update__struct.h" -#include "visualization_msgs/msg/detail/interactive_marker_update__functions.h" -#include "visualization_msgs/msg/detail/interactive_marker_update__type_support.h" - -#endif // VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_UPDATE_H_ diff --git a/src/visualization_msgs/msg/marker.h b/src/visualization_msgs/msg/marker.h deleted file mode 100755 index d3922cd41..000000000 --- a/src/visualization_msgs/msg/marker.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from visualization_msgs:msg/Marker.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__MARKER_H_ -#define VISUALIZATION_MSGS__MSG__MARKER_H_ - -#include "visualization_msgs/msg/detail/marker__struct.h" -#include "visualization_msgs/msg/detail/marker__functions.h" -#include "visualization_msgs/msg/detail/marker__type_support.h" - -#endif // VISUALIZATION_MSGS__MSG__MARKER_H_ diff --git a/src/visualization_msgs/msg/marker_array.h b/src/visualization_msgs/msg/marker_array.h deleted file mode 100755 index ae9175a6c..000000000 --- a/src/visualization_msgs/msg/marker_array.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from visualization_msgs:msg/MarkerArray.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__MARKER_ARRAY_H_ -#define VISUALIZATION_MSGS__MSG__MARKER_ARRAY_H_ - -#include "visualization_msgs/msg/detail/marker_array__struct.h" -#include "visualization_msgs/msg/detail/marker_array__functions.h" -#include "visualization_msgs/msg/detail/marker_array__type_support.h" - -#endif // VISUALIZATION_MSGS__MSG__MARKER_ARRAY_H_ diff --git a/src/visualization_msgs/msg/menu_entry.h b/src/visualization_msgs/msg/menu_entry.h deleted file mode 100755 index e0feb833e..000000000 --- a/src/visualization_msgs/msg/menu_entry.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from visualization_msgs:msg/MenuEntry.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__MENU_ENTRY_H_ -#define VISUALIZATION_MSGS__MSG__MENU_ENTRY_H_ - -#include "visualization_msgs/msg/detail/menu_entry__struct.h" -#include "visualization_msgs/msg/detail/menu_entry__functions.h" -#include "visualization_msgs/msg/detail/menu_entry__type_support.h" - -#endif // VISUALIZATION_MSGS__MSG__MENU_ENTRY_H_ diff --git a/src/visualization_msgs/msg/mesh_file.h b/src/visualization_msgs/msg/mesh_file.h deleted file mode 100755 index bd50218ba..000000000 --- a/src/visualization_msgs/msg/mesh_file.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from visualization_msgs:msg/MeshFile.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__MESH_FILE_H_ -#define VISUALIZATION_MSGS__MSG__MESH_FILE_H_ - -#include "visualization_msgs/msg/detail/mesh_file__struct.h" -#include "visualization_msgs/msg/detail/mesh_file__functions.h" -#include "visualization_msgs/msg/detail/mesh_file__type_support.h" - -#endif // VISUALIZATION_MSGS__MSG__MESH_FILE_H_ diff --git a/src/visualization_msgs/msg/rosidl_generator_c__visibility_control.h b/src/visualization_msgs/msg/rosidl_generator_c__visibility_control.h deleted file mode 100755 index 80d7db0f3..000000000 --- a/src/visualization_msgs/msg/rosidl_generator_c__visibility_control.h +++ /dev/null @@ -1,42 +0,0 @@ -// generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ -#define VISUALIZATION_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_GENERATOR_C_EXPORT_visualization_msgs __attribute__ ((dllexport)) - #define ROSIDL_GENERATOR_C_IMPORT_visualization_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_GENERATOR_C_EXPORT_visualization_msgs __declspec(dllexport) - #define ROSIDL_GENERATOR_C_IMPORT_visualization_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_GENERATOR_C_BUILDING_DLL_visualization_msgs - #define ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs ROSIDL_GENERATOR_C_EXPORT_visualization_msgs - #else - #define ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs ROSIDL_GENERATOR_C_IMPORT_visualization_msgs - #endif -#else - #define ROSIDL_GENERATOR_C_EXPORT_visualization_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_GENERATOR_C_IMPORT_visualization_msgs - #if __GNUC__ >= 4 - #define ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ diff --git a/src/visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h b/src/visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h deleted file mode 100755 index 6211fd454..000000000 --- a/src/visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_introspection_c/resource/rosidl_typesupport_introspection_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ -#define VISUALIZATION_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_visualization_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_visualization_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_visualization_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_visualization_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_INTROSPECTION_C_BUILDING_DLL_visualization_msgs - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_visualization_msgs - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_visualization_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_EXPORT_visualization_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_IMPORT_visualization_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__ROSIDL_TYPESUPPORT_INTROSPECTION_C__VISIBILITY_CONTROL_H_ diff --git a/src/visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h b/src/visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h deleted file mode 100755 index 66000aa3b..000000000 --- a/src/visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h +++ /dev/null @@ -1,43 +0,0 @@ -// generated from -// rosidl_typesupport_microxrcedds_c/resource/rosidl_typesupport_microxrcedds_c__visibility_control.h.in -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ -#define VISUALIZATION_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -// This logic was borrowed (then namespaced) from the examples on the gcc wiki: -// https://gcc.gnu.org/wiki/Visibility - -#if defined _WIN32 || defined __CYGWIN__ - #ifdef __GNUC__ - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_visualization_msgs __attribute__ ((dllexport)) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_visualization_msgs __attribute__ ((dllimport)) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_visualization_msgs __declspec(dllexport) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_visualization_msgs __declspec(dllimport) - #endif - #ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_BUILDING_DLL_visualization_msgs - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_visualization_msgs - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_visualization_msgs - #endif -#else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_EXPORT_visualization_msgs __attribute__ ((visibility("default"))) - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_IMPORT_visualization_msgs - #if __GNUC__ >= 4 - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs __attribute__ ((visibility("default"))) - #else - #define ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs - #endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__MSG__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__VISIBILITY_CONTROL_H_ diff --git a/src/visualization_msgs/msg/uv_coordinate.h b/src/visualization_msgs/msg/uv_coordinate.h deleted file mode 100755 index a828673df..000000000 --- a/src/visualization_msgs/msg/uv_coordinate.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from visualization_msgs:msg/UVCoordinate.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__MSG__UV_COORDINATE_H_ -#define VISUALIZATION_MSGS__MSG__UV_COORDINATE_H_ - -#include "visualization_msgs/msg/detail/uv_coordinate__struct.h" -#include "visualization_msgs/msg/detail/uv_coordinate__functions.h" -#include "visualization_msgs/msg/detail/uv_coordinate__type_support.h" - -#endif // VISUALIZATION_MSGS__MSG__UV_COORDINATE_H_ diff --git a/src/visualization_msgs/srv/detail/get_interactive_markers__functions.h b/src/visualization_msgs/srv/detail/get_interactive_markers__functions.h deleted file mode 100755 index d38045283..000000000 --- a/src/visualization_msgs/srv/detail/get_interactive_markers__functions.h +++ /dev/null @@ -1,585 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__functions.h.em -// with input from visualization_msgs:srv/GetInteractiveMarkers.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/srv/get_interactive_markers.h" - - -#ifndef VISUALIZATION_MSGS__SRV__DETAIL__GET_INTERACTIVE_MARKERS__FUNCTIONS_H_ -#define VISUALIZATION_MSGS__SRV__DETAIL__GET_INTERACTIVE_MARKERS__FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include - -#include "rosidl_runtime_c/action_type_support_struct.h" -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_runtime_c/service_type_support_struct.h" -#include "rosidl_runtime_c/type_description/type_description__struct.h" -#include "rosidl_runtime_c/type_description/type_source__struct.h" -#include "rosidl_runtime_c/type_hash.h" -#include "rosidl_runtime_c/visibility_control.h" -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#include "visualization_msgs/srv/detail/get_interactive_markers__struct.h" - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__srv__GetInteractiveMarkers__get_type_hash( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__srv__GetInteractiveMarkers__get_type_description( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__srv__GetInteractiveMarkers__get_individual_type_description_source( - const rosidl_service_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__srv__GetInteractiveMarkers__get_type_description_sources( - const rosidl_service_type_support_t * type_support); - -/// Initialize srv/GetInteractiveMarkers message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__srv__GetInteractiveMarkers_Request - * )) before or use - * visualization_msgs__srv__GetInteractiveMarkers_Request__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Request__init(visualization_msgs__srv__GetInteractiveMarkers_Request * msg); - -/// Finalize srv/GetInteractiveMarkers message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__srv__GetInteractiveMarkers_Request__fini(visualization_msgs__srv__GetInteractiveMarkers_Request * msg); - -/// Create srv/GetInteractiveMarkers message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__srv__GetInteractiveMarkers_Request__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__srv__GetInteractiveMarkers_Request * -visualization_msgs__srv__GetInteractiveMarkers_Request__create(void); - -/// Destroy srv/GetInteractiveMarkers message. -/** - * It calls - * visualization_msgs__srv__GetInteractiveMarkers_Request__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__srv__GetInteractiveMarkers_Request__destroy(visualization_msgs__srv__GetInteractiveMarkers_Request * msg); - -/// Check for srv/GetInteractiveMarkers message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Request__are_equal(const visualization_msgs__srv__GetInteractiveMarkers_Request * lhs, const visualization_msgs__srv__GetInteractiveMarkers_Request * rhs); - -/// Copy a srv/GetInteractiveMarkers message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Request__copy( - const visualization_msgs__srv__GetInteractiveMarkers_Request * input, - visualization_msgs__srv__GetInteractiveMarkers_Request * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__srv__GetInteractiveMarkers_Request__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__srv__GetInteractiveMarkers_Request__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__srv__GetInteractiveMarkers_Request__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__srv__GetInteractiveMarkers_Request__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetInteractiveMarkers messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__srv__GetInteractiveMarkers_Request__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence__init(visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence * array, size_t size); - -/// Finalize array of srv/GetInteractiveMarkers messages. -/** - * It calls - * visualization_msgs__srv__GetInteractiveMarkers_Request__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence__fini(visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence * array); - -/// Create array of srv/GetInteractiveMarkers messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence * -visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence__create(size_t size); - -/// Destroy array of srv/GetInteractiveMarkers messages. -/** - * It calls - * visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence__destroy(visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence * array); - -/// Check for srv/GetInteractiveMarkers message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence__are_equal(const visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence * lhs, const visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence * rhs); - -/// Copy an array of srv/GetInteractiveMarkers messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence__copy( - const visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence * input, - visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence * output); - -/// Initialize srv/GetInteractiveMarkers message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__srv__GetInteractiveMarkers_Response - * )) before or use - * visualization_msgs__srv__GetInteractiveMarkers_Response__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Response__init(visualization_msgs__srv__GetInteractiveMarkers_Response * msg); - -/// Finalize srv/GetInteractiveMarkers message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__srv__GetInteractiveMarkers_Response__fini(visualization_msgs__srv__GetInteractiveMarkers_Response * msg); - -/// Create srv/GetInteractiveMarkers message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__srv__GetInteractiveMarkers_Response__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__srv__GetInteractiveMarkers_Response * -visualization_msgs__srv__GetInteractiveMarkers_Response__create(void); - -/// Destroy srv/GetInteractiveMarkers message. -/** - * It calls - * visualization_msgs__srv__GetInteractiveMarkers_Response__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__srv__GetInteractiveMarkers_Response__destroy(visualization_msgs__srv__GetInteractiveMarkers_Response * msg); - -/// Check for srv/GetInteractiveMarkers message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Response__are_equal(const visualization_msgs__srv__GetInteractiveMarkers_Response * lhs, const visualization_msgs__srv__GetInteractiveMarkers_Response * rhs); - -/// Copy a srv/GetInteractiveMarkers message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Response__copy( - const visualization_msgs__srv__GetInteractiveMarkers_Response * input, - visualization_msgs__srv__GetInteractiveMarkers_Response * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__srv__GetInteractiveMarkers_Response__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__srv__GetInteractiveMarkers_Response__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__srv__GetInteractiveMarkers_Response__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__srv__GetInteractiveMarkers_Response__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetInteractiveMarkers messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__srv__GetInteractiveMarkers_Response__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence__init(visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence * array, size_t size); - -/// Finalize array of srv/GetInteractiveMarkers messages. -/** - * It calls - * visualization_msgs__srv__GetInteractiveMarkers_Response__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence__fini(visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence * array); - -/// Create array of srv/GetInteractiveMarkers messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence * -visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence__create(size_t size); - -/// Destroy array of srv/GetInteractiveMarkers messages. -/** - * It calls - * visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence__destroy(visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence * array); - -/// Check for srv/GetInteractiveMarkers message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence__are_equal(const visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence * lhs, const visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence * rhs); - -/// Copy an array of srv/GetInteractiveMarkers messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence__copy( - const visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence * input, - visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence * output); - -/// Initialize srv/GetInteractiveMarkers message. -/** - * If the init function is called twice for the same message without - * calling fini inbetween previously allocated memory will be leaked. - * \param[in,out] msg The previously allocated message pointer. - * Fields without a default value will not be initialized by this function. - * You might want to call memset(msg, 0, sizeof( - * visualization_msgs__srv__GetInteractiveMarkers_Event - * )) before or use - * visualization_msgs__srv__GetInteractiveMarkers_Event__create() - * to allocate and initialize the message. - * \return true if initialization was successful, otherwise false - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Event__init(visualization_msgs__srv__GetInteractiveMarkers_Event * msg); - -/// Finalize srv/GetInteractiveMarkers message. -/** - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__srv__GetInteractiveMarkers_Event__fini(visualization_msgs__srv__GetInteractiveMarkers_Event * msg); - -/// Create srv/GetInteractiveMarkers message. -/** - * It allocates the memory for the message, sets the memory to zero, and - * calls - * visualization_msgs__srv__GetInteractiveMarkers_Event__init(). - * \return The pointer to the initialized message if successful, - * otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__srv__GetInteractiveMarkers_Event * -visualization_msgs__srv__GetInteractiveMarkers_Event__create(void); - -/// Destroy srv/GetInteractiveMarkers message. -/** - * It calls - * visualization_msgs__srv__GetInteractiveMarkers_Event__fini() - * and frees the memory of the message. - * \param[in,out] msg The allocated message pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__srv__GetInteractiveMarkers_Event__destroy(visualization_msgs__srv__GetInteractiveMarkers_Event * msg); - -/// Check for srv/GetInteractiveMarkers message equality. -/** - * \param[in] lhs The message on the left hand size of the equality operator. - * \param[in] rhs The message on the right hand size of the equality operator. - * \return true if messages are equal, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Event__are_equal(const visualization_msgs__srv__GetInteractiveMarkers_Event * lhs, const visualization_msgs__srv__GetInteractiveMarkers_Event * rhs); - -/// Copy a srv/GetInteractiveMarkers message. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source message pointer. - * \param[out] output The target message pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer is null - * or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Event__copy( - const visualization_msgs__srv__GetInteractiveMarkers_Event * input, - visualization_msgs__srv__GetInteractiveMarkers_Event * output); - -/// Retrieve pointer to the hash of the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_type_hash_t * -visualization_msgs__srv__GetInteractiveMarkers_Event__get_type_hash( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeDescription * -visualization_msgs__srv__GetInteractiveMarkers_Event__get_type_description( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the single raw source text that defined this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource * -visualization_msgs__srv__GetInteractiveMarkers_Event__get_individual_type_description_source( - const rosidl_message_type_support_t * type_support); - -/// Retrieve pointer to the recursive raw sources that defined the description of this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_runtime_c__type_description__TypeSource__Sequence * -visualization_msgs__srv__GetInteractiveMarkers_Event__get_type_description_sources( - const rosidl_message_type_support_t * type_support); - -/// Initialize array of srv/GetInteractiveMarkers messages. -/** - * It allocates the memory for the number of elements and calls - * visualization_msgs__srv__GetInteractiveMarkers_Event__init() - * for each element of the array. - * \param[in,out] array The allocated array pointer. - * \param[in] size The size / capacity of the array. - * \return true if initialization was successful, otherwise false - * If the array pointer is valid and the size is zero it is guaranteed - # to return true. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence__init(visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence * array, size_t size); - -/// Finalize array of srv/GetInteractiveMarkers messages. -/** - * It calls - * visualization_msgs__srv__GetInteractiveMarkers_Event__fini() - * for each element of the array and frees the memory for the number of - * elements. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence__fini(visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence * array); - -/// Create array of srv/GetInteractiveMarkers messages. -/** - * It allocates the memory for the array and calls - * visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence__init(). - * \param[in] size The size / capacity of the array. - * \return The pointer to the initialized array if successful, otherwise NULL - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence * -visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence__create(size_t size); - -/// Destroy array of srv/GetInteractiveMarkers messages. -/** - * It calls - * visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence__fini() - * on the array, - * and frees the memory of the array. - * \param[in,out] array The initialized array pointer. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void -visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence__destroy(visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence * array); - -/// Check for srv/GetInteractiveMarkers message array equality. -/** - * \param[in] lhs The message array on the left hand size of the equality operator. - * \param[in] rhs The message array on the right hand size of the equality operator. - * \return true if message arrays are equal in size and content, otherwise false. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence__are_equal(const visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence * lhs, const visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence * rhs); - -/// Copy an array of srv/GetInteractiveMarkers messages. -/** - * This functions performs a deep copy, as opposed to the shallow copy that - * plain assignment yields. - * - * \param[in] input The source array pointer. - * \param[out] output The target array pointer, which must - * have been initialized before calling this function. - * \return true if successful, or false if either pointer - * is null or memory allocation fails. - */ -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence__copy( - const visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence * input, - visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence * output); -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__SRV__DETAIL__GET_INTERACTIVE_MARKERS__FUNCTIONS_H_ diff --git a/src/visualization_msgs/srv/detail/get_interactive_markers__rosidl_typesupport_introspection_c.h b/src/visualization_msgs/srv/detail/get_interactive_markers__rosidl_typesupport_introspection_c.h deleted file mode 100755 index 703f2343d..000000000 --- a/src/visualization_msgs/srv/detail/get_interactive_markers__rosidl_typesupport_introspection_c.h +++ /dev/null @@ -1,58 +0,0 @@ -// generated from rosidl_typesupport_introspection_c/resource/idl__rosidl_typesupport_introspection_c.h.em -// with input from visualization_msgs:srv/GetInteractiveMarkers.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__SRV__DETAIL__GET_INTERACTIVE_MARKERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ -#define VISUALIZATION_MSGS__SRV__DETAIL__GET_INTERACTIVE_MARKERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - - -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, srv, GetInteractiveMarkers_Request)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, srv, GetInteractiveMarkers_Response)(); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, srv, GetInteractiveMarkers_Event)(); - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "visualization_msgs/msg/rosidl_typesupport_introspection_c__visibility_control.h" - -ROSIDL_TYPESUPPORT_INTROSPECTION_C_PUBLIC_visualization_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_introspection_c, visualization_msgs, srv, GetInteractiveMarkers)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__SRV__DETAIL__GET_INTERACTIVE_MARKERS__ROSIDL_TYPESUPPORT_INTROSPECTION_C_H_ diff --git a/src/visualization_msgs/srv/detail/get_interactive_markers__rosidl_typesupport_microxrcedds_c.h b/src/visualization_msgs/srv/detail/get_interactive_markers__rosidl_typesupport_microxrcedds_c.h deleted file mode 100755 index b0df936c3..000000000 --- a/src/visualization_msgs/srv/detail/get_interactive_markers__rosidl_typesupport_microxrcedds_c.h +++ /dev/null @@ -1,132 +0,0 @@ -// generated from rosidl_typesupport_microxrcedds_c/resource/idl__rosidl_typesupport_c.h.em -// with input from visualization_msgs:srv/GetInteractiveMarkers.idl -// generated code does not contain a copyright notice -#ifndef VISUALIZATION_MSGS__SRV__GET_INTERACTIVE_MARKERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ -#define VISUALIZATION_MSGS__SRV__GET_INTERACTIVE_MARKERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ - - -#include -#include -#include -#include "rosidl_runtime_c/message_type_support_struct.h" -#include "rosidl_typesupport_interface/macros.h" -#include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__srv__GetInteractiveMarkers_Request( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__srv__GetInteractiveMarkers_Request( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, srv, GetInteractiveMarkers_Request)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__srv__GetInteractiveMarkers_Response( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__srv__GetInteractiveMarkers_Response( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, srv, GetInteractiveMarkers_Response)(); - -#ifdef __cplusplus -} -#endif - - -// already included above -// #include -// already included above -// #include -// already included above -// #include -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t get_serialized_size_visualization_msgs__srv__GetInteractiveMarkers_Event( - const void * untyped_ros_message, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -size_t max_serialized_size_visualization_msgs__srv__GetInteractiveMarkers_Event( - bool * full_bounded, - size_t current_alignment); - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, srv, GetInteractiveMarkers_Event)(); - -#ifdef __cplusplus -} -#endif - - -#include "rosidl_runtime_c/service_type_support_struct.h" -// already included above -// #include "rosidl_typesupport_interface/macros.h" -// already included above -// #include "visualization_msgs/msg/rosidl_typesupport_microxrcedds_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_PUBLIC_visualization_msgs -const rosidl_service_type_support_t * - ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME(rosidl_typesupport_microxrcedds_c, visualization_msgs, srv, GetInteractiveMarkers)(); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__SRV__GET_INTERACTIVE_MARKERS__ROSIDL_TYPESUPPORT_MICROXRCEDDS_C_H_ diff --git a/src/visualization_msgs/srv/detail/get_interactive_markers__struct.h b/src/visualization_msgs/srv/detail/get_interactive_markers__struct.h deleted file mode 100755 index 032d44993..000000000 --- a/src/visualization_msgs/srv/detail/get_interactive_markers__struct.h +++ /dev/null @@ -1,103 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__struct.h.em -// with input from visualization_msgs:srv/GetInteractiveMarkers.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/srv/get_interactive_markers.h" - - -#ifndef VISUALIZATION_MSGS__SRV__DETAIL__GET_INTERACTIVE_MARKERS__STRUCT_H_ -#define VISUALIZATION_MSGS__SRV__DETAIL__GET_INTERACTIVE_MARKERS__STRUCT_H_ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include -#include -#include - - -// Constants defined in the message - -/// Struct defined in srv/GetInteractiveMarkers in the package visualization_msgs. -typedef struct visualization_msgs__srv__GetInteractiveMarkers_Request -{ - uint8_t structure_needs_at_least_one_member; -} visualization_msgs__srv__GetInteractiveMarkers_Request; - -// Struct for a sequence of visualization_msgs__srv__GetInteractiveMarkers_Request. -typedef struct visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence -{ - visualization_msgs__srv__GetInteractiveMarkers_Request * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'markers' -#include "visualization_msgs/msg/detail/interactive_marker__struct.h" - -/// Struct defined in srv/GetInteractiveMarkers in the package visualization_msgs. -typedef struct visualization_msgs__srv__GetInteractiveMarkers_Response -{ - uint64_t sequence_number; - /// All interactive markers provided by the server. - visualization_msgs__msg__InteractiveMarker__Sequence markers; -} visualization_msgs__srv__GetInteractiveMarkers_Response; - -// Struct for a sequence of visualization_msgs__srv__GetInteractiveMarkers_Response. -typedef struct visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence -{ - visualization_msgs__srv__GetInteractiveMarkers_Response * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence; - -// Constants defined in the message - -// Include directives for member types -// Member 'info' -#include "service_msgs/msg/detail/service_event_info__struct.h" - -// constants for array fields with an upper bound -// request -enum -{ - visualization_msgs__srv__GetInteractiveMarkers_Event__request__MAX_SIZE = 1 -}; -// response -enum -{ - visualization_msgs__srv__GetInteractiveMarkers_Event__response__MAX_SIZE = 1 -}; - -/// Struct defined in srv/GetInteractiveMarkers in the package visualization_msgs. -typedef struct visualization_msgs__srv__GetInteractiveMarkers_Event -{ - service_msgs__msg__ServiceEventInfo info; - visualization_msgs__srv__GetInteractiveMarkers_Request__Sequence request; - visualization_msgs__srv__GetInteractiveMarkers_Response__Sequence response; -} visualization_msgs__srv__GetInteractiveMarkers_Event; - -// Struct for a sequence of visualization_msgs__srv__GetInteractiveMarkers_Event. -typedef struct visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence -{ - visualization_msgs__srv__GetInteractiveMarkers_Event * data; - /// The number of valid items in data - size_t size; - /// The number of allocated items in data - size_t capacity; -} visualization_msgs__srv__GetInteractiveMarkers_Event__Sequence; - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__SRV__DETAIL__GET_INTERACTIVE_MARKERS__STRUCT_H_ diff --git a/src/visualization_msgs/srv/detail/get_interactive_markers__type_support.h b/src/visualization_msgs/srv/detail/get_interactive_markers__type_support.h deleted file mode 100755 index 19ae79c02..000000000 --- a/src/visualization_msgs/srv/detail/get_interactive_markers__type_support.h +++ /dev/null @@ -1,100 +0,0 @@ -// generated from rosidl_generator_c/resource/idl__type_support.h.em -// with input from visualization_msgs:srv/GetInteractiveMarkers.idl -// generated code does not contain a copyright notice - -// IWYU pragma: private, include "visualization_msgs/srv/get_interactive_markers.h" - - -#ifndef VISUALIZATION_MSGS__SRV__DETAIL__GET_INTERACTIVE_MARKERS__TYPE_SUPPORT_H_ -#define VISUALIZATION_MSGS__SRV__DETAIL__GET_INTERACTIVE_MARKERS__TYPE_SUPPORT_H_ - -#include "rosidl_typesupport_interface/macros.h" - -#include "visualization_msgs/msg/rosidl_generator_c__visibility_control.h" - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - srv, - GetInteractiveMarkers_Request -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - srv, - GetInteractiveMarkers_Response -)(void); - -// already included above -// #include "rosidl_runtime_c/message_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_message_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - srv, - GetInteractiveMarkers_Event -)(void); - -#include "rosidl_runtime_c/service_type_support_struct.h" - -// Forward declare the get type support functions for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -const rosidl_service_type_support_t * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - srv, - GetInteractiveMarkers -)(void); - -// Forward declare the function to create a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -void * -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_CREATE_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - srv, - GetInteractiveMarkers -)( - const rosidl_service_introspection_info_t * info, - rcutils_allocator_t * allocator, - const void * request_message, - const void * response_message); - -// Forward declare the function to destroy a service event message for this type. -ROSIDL_GENERATOR_C_PUBLIC_visualization_msgs -bool -ROSIDL_TYPESUPPORT_INTERFACE__SERVICE_DESTROY_EVENT_MESSAGE_SYMBOL_NAME( - rosidl_typesupport_c, - visualization_msgs, - srv, - GetInteractiveMarkers -)( - void * event_msg, - rcutils_allocator_t * allocator); - -#ifdef __cplusplus -} -#endif - -#endif // VISUALIZATION_MSGS__SRV__DETAIL__GET_INTERACTIVE_MARKERS__TYPE_SUPPORT_H_ diff --git a/src/visualization_msgs/srv/get_interactive_markers.h b/src/visualization_msgs/srv/get_interactive_markers.h deleted file mode 100755 index 6862b1d59..000000000 --- a/src/visualization_msgs/srv/get_interactive_markers.h +++ /dev/null @@ -1,12 +0,0 @@ -// generated from rosidl_generator_c/resource/idl.h.em -// with input from visualization_msgs:srv/GetInteractiveMarkers.idl -// generated code does not contain a copyright notice - -#ifndef VISUALIZATION_MSGS__SRV__GET_INTERACTIVE_MARKERS_H_ -#define VISUALIZATION_MSGS__SRV__GET_INTERACTIVE_MARKERS_H_ - -#include "visualization_msgs/srv/detail/get_interactive_markers__struct.h" -#include "visualization_msgs/srv/detail/get_interactive_markers__functions.h" -#include "visualization_msgs/srv/detail/get_interactive_markers__type_support.h" - -#endif // VISUALIZATION_MSGS__SRV__GET_INTERACTIVE_MARKERS_H_