15 #ifndef RCLCPP__NODE_INTERFACES__NODE_GRAPH_INTERFACE_HPP_ 16 #define RCLCPP__NODE_INTERFACES__NODE_GRAPH_INTERFACE_HPP_ 31 namespace node_interfaces
49 std::map<std::string, std::vector<std::string>>
60 std::map<std::string, std::vector<std::string>>
66 std::vector<std::string>
116 rclcpp::event::Event::SharedPtr
131 rclcpp::event::Event::SharedPtr event,
132 std::chrono::nanoseconds timeout) = 0;
147 #endif // RCLCPP__NODE_INTERFACES__NODE_GRAPH_INTERFACE_HPP_ virtual void notify_graph_change()=0
Notify threads waiting on graph changes.
virtual rclcpp::event::Event::SharedPtr get_graph_event()=0
Return a graph event, which will be set anytime a graph change occurs.
virtual const rcl_guard_condition_t * get_graph_guard_condition() const =0
Return the rcl guard condition which is triggered when the ROS graph changes.
virtual void notify_shutdown()=0
Notify any and all blocking node actions that shutdown has occurred.
#define RCLCPP_SMART_PTR_ALIASES_ONLY(...)
Definition: macros.hpp:66
virtual size_t count_publishers(const std::string &topic_name) const =0
Return the number of publishers that are advertised on a given topic.
virtual size_t count_graph_users()=0
Return the number of on loan graph events, see get_graph_event().
Definition: allocator_common.hpp:24
virtual size_t count_subscribers(const std::string &topic_name) const =0
Return the number of subscribers who have created a subscription for a given topic.
virtual std::map< std::string, std::vector< std::string > > get_topic_names_and_types(bool no_demangle=false) const =0
Return a map of existing topic names to list of topic types.
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
Pure virtual interface class for the NodeGraph part of the Node API.
Definition: node_graph_interface.hpp:35
virtual std::vector< std::string > get_node_names() const =0
Return a vector of existing node names (string).
virtual std::map< std::string, std::vector< std::string > > get_service_names_and_types() const =0
Return a map of existing service names to list of service types.
virtual void wait_for_graph_change(rclcpp::event::Event::SharedPtr event, std::chrono::nanoseconds timeout)=0
Wait for a graph event to occur by waiting on an Event to become set.