ROS 2 rclcpp + rcl - jazzy  jazzy
ROS 2 C++ Client Library with ROS Client Library
type_description_conversions.h
1 // Copyright 2023 Open Source Robotics Foundation, Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef RCL__TYPE_DESCRIPTION_CONVERSIONS_H_
16 #define RCL__TYPE_DESCRIPTION_CONVERSIONS_H_
17 
18 #include "rcl/macros.h"
19 #include "rcl/visibility_control.h"
20 #include "rosidl_runtime_c/type_description/type_description__struct.h"
21 #include "rosidl_runtime_c/type_description/type_source__struct.h"
22 #include "type_description_interfaces/msg/type_description.h"
23 #include "type_description_interfaces/msg/type_source.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
30 
48 RCL_PUBLIC
49 RCL_WARN_UNUSED
50 type_description_interfaces__msg__TypeDescription *
51 rcl_convert_type_description_runtime_to_msg(
52  const rosidl_runtime_c__type_description__TypeDescription * runtime_description);
53 
55 
73 RCL_PUBLIC
74 RCL_WARN_UNUSED
75 rosidl_runtime_c__type_description__TypeDescription *
76 rcl_convert_type_description_msg_to_runtime(
77  const type_description_interfaces__msg__TypeDescription * description_msg);
78 
80 
98 RCL_PUBLIC
99 RCL_WARN_UNUSED
100 type_description_interfaces__msg__TypeSource__Sequence *
101 rcl_convert_type_source_sequence_runtime_to_msg(
102  const rosidl_runtime_c__type_description__TypeSource__Sequence * runtime_type_sources);
103 
105 
123 RCL_PUBLIC
124 RCL_WARN_UNUSED
125 rosidl_runtime_c__type_description__TypeSource__Sequence *
126 rcl_convert_type_source_sequence_msg_to_runtime(
127  const type_description_interfaces__msg__TypeSource__Sequence * type_sources_msg);
128 
129 #ifdef __cplusplus
130 }
131 #endif
132 
133 #endif // RCL__TYPE_DESCRIPTION_CONVERSIONS_H_