rcl_action  master
C API providing common functionality for ROS actions.
graph.h
Go to the documentation of this file.
1 // Copyright 2019 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__GRAPH_H_
16 #define RCL_ACTION__GRAPH_H_
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 #include "rcl/graph.h"
24 #include "rcl/node.h"
25 
27 
29 
65  const rcl_node_t * node,
66  rcl_allocator_t * allocator,
67  const char * node_name,
68  const char * node_namespace,
69  rcl_names_and_types_t * action_names_and_types);
70 
72 
109 rcl_ret_t
111  const rcl_node_t * node,
112  rcl_allocator_t * allocator,
113  const char * node_name,
114  const char * node_namespace,
115  rcl_names_and_types_t * action_names_and_types);
116 
118 
152 rcl_ret_t
154  const rcl_node_t * node,
155  rcl_allocator_t * allocator,
156  rcl_names_and_types_t * action_names_and_types);
157 
158 #ifdef __cplusplus
159 }
160 #endif
161 
162 #endif // RCL_ACTION__GRAPH_H_
RCL_ACTION_PUBLIC 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)
Get a list of action names and types for action servers associated with a node.
#define RCL_ACTION_PUBLIC
Definition: visibility_control.h:50
rmw_ret_t rcl_ret_t
#define RCL_WARN_UNUSED
RCL_ACTION_PUBLIC 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)
Return a list of action names and their types.
RCL_ACTION_PUBLIC 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 clients associated with a node.