28 #include "rosidl_generator_c/service_type_support_struct.h" 37 #define rcl_get_zero_initialized_names_and_types rmw_get_zero_initialized_names_and_types 90 const char * node_name,
91 const char * node_namespace,
92 rcl_names_and_types_t * topic_names_and_types);
140 const char * node_name,
141 const char * node_namespace,
142 rcl_names_and_types_t * topic_names_and_types);
188 const char * node_name,
189 const char * node_namespace,
190 rcl_names_and_types_t * service_names_and_types);
236 const char * node_name,
237 const char * node_namespace,
238 rcl_names_and_types_t * service_names_and_types);
283 rcl_names_and_types_t * topic_names_and_types);
322 rcl_names_and_types_t * service_names_and_types);
351 rcl_names_and_types_t * names_and_types,
479 const char * topic_name,
524 const char * topic_name,
568 bool * is_available);
574 #endif // RCL__GRAPH_H_
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 names and types associated with a node.
rmw_ret_t rcl_ret_t
Definition: types.h:20
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 publishers associated with a node.
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 available nodes in the ROS graph.
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 service client names and types associated with a node.
rmw_names_and_types_t rcl_names_and_types_t
Definition: graph.h:35
Structure which encapsulates a ROS Client.
Definition: client.h:33
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 topic names and types for subscriptions associated with a node.
#define RCL_WARN_UNUSED
Ignored return values of functions with this macro will emit a warning.
Definition: macros.h:25
rcl_ret_t rcl_count_publishers(const rcl_node_t *node, const char *topic_name, size_t *count)
Return the number of publishers on a given topic.
#define RCL_PUBLIC
Definition: visibility_control.h:48
rcl_ret_t rcl_names_and_types_init(rcl_names_and_types_t *names_and_types, size_t size, rcl_allocator_t *allocator)
Initialize a rcl_names_and_types_t object.
rcl_ret_t rcl_service_server_is_available(const rcl_node_t *node, const rcl_client_t *client, bool *is_available)
Check if a service server is available for the given service client.
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 topic names and their types.
rcl_ret_t rcl_count_subscribers(const rcl_node_t *node, const char *topic_name, size_t *count)
Return the number of subscriptions on a given topic.
rcl_ret_t rcl_names_and_types_fini(rcl_names_and_types_t *names_and_types)
Finalize a rcl_names_and_types_t object.
Structure which encapsulates a ROS Node.
Definition: node.h:37
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)
Return a list of service names and their types.