rcl_action  master
C API providing common functionality for ROS actions.
names.h
Go to the documentation of this file.
1 // Copyright 2018 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_ACTION__NAMES_H_
16 #define RCL_ACTION__NAMES_H_
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
24 #include "rcl_action/types.h"
25 
26 #include "rcl/allocator.h"
27 #include "rcl/macros.h"
28 #include "rcl/types.h"
29 
30 
32 
64  const char * action_name,
65  rcl_allocator_t allocator,
66  char ** goal_service_name);
67 
69 
101  const char * action_name,
102  rcl_allocator_t allocator,
103  char ** cancel_service_name);
104 
106 
136 rcl_ret_t
138  const char * action_name,
139  rcl_allocator_t allocator,
140  char ** result_service_name);
141 
143 
173 rcl_ret_t
175  const char * action_name,
176  rcl_allocator_t allocator,
177  char ** feedback_topic_name);
178 
180 
210 rcl_ret_t
212  const char * action_name,
213  rcl_allocator_t allocator,
214  char ** status_topic_name);
215 
216 #ifdef __cplusplus
217 }
218 #endif
219 
220 #endif // RCL_ACTION__NAMES_H_
RCL_ACTION_PUBLIC rcl_ret_t rcl_action_get_status_topic_name(const char *action_name, rcl_allocator_t allocator, char **status_topic_name)
Get the status topic name of an action.
RCL_ACTION_PUBLIC rcl_ret_t rcl_action_get_goal_service_name(const char *action_name, rcl_allocator_t allocator, char **goal_service_name)
Get the goal service name of an action.
#define RCL_ACTION_PUBLIC
Definition: visibility_control.h:50
rmw_ret_t rcl_ret_t
RCL_ACTION_PUBLIC rcl_ret_t rcl_action_get_cancel_service_name(const char *action_name, rcl_allocator_t allocator, char **cancel_service_name)
Get the cancel service name of an action.
RCL_ACTION_PUBLIC rcl_ret_t rcl_action_get_feedback_topic_name(const char *action_name, rcl_allocator_t allocator, char **feedback_topic_name)
Get the feedback topic name of an action.
#define RCL_WARN_UNUSED
RCL_ACTION_PUBLIC rcl_ret_t rcl_action_get_result_service_name(const char *action_name, rcl_allocator_t allocator, char **result_service_name)
Get the result service name of an action.