15 #ifndef RCLCPP__TIME_SOURCE_HPP_
16 #define RCLCPP__TIME_SOURCE_HPP_
23 #include "builtin_interfaces/msg/time.hpp"
24 #include "rosgraph_msgs/msg/clock.hpp"
25 #include "rcl_interfaces/msg/parameter_event.hpp"
27 #include "rclcpp/node.hpp"
28 #include "rclcpp/executors.hpp"
29 #include "rclcpp/node_interfaces/node_parameters_interface.hpp"
63 rclcpp::Node::SharedPtr node,
65 bool use_clock_thread =
true);
77 bool use_clock_thread =
true);
109 rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_base_interface,
110 rclcpp::node_interfaces::NodeTopicsInterface::SharedPtr node_topics_interface,
111 rclcpp::node_interfaces::NodeGraphInterface::SharedPtr node_graph_interface,
112 rclcpp::node_interfaces::NodeServicesInterface::SharedPtr node_services_interface,
113 rclcpp::node_interfaces::NodeLoggingInterface::SharedPtr node_logging_interface,
114 rclcpp::node_interfaces::NodeClockInterface::SharedPtr node_clock_interface,
115 rclcpp::node_interfaces::NodeParametersInterface::SharedPtr node_parameters_interface);
151 std::shared_ptr<NodeState> node_state_;
154 bool constructed_use_clock_thread_;
Encapsulation of Quality of Service settings.
RCLCPP_PUBLIC bool get_use_clock_thread()
Get whether a separate clock thread is used or not.
RCLCPP_PUBLIC void attachClock(rclcpp::Clock::SharedPtr clock)
Attach a clock to the time source to be updated.
RCLCPP_PUBLIC void detachClock(rclcpp::Clock::SharedPtr clock)
Detach a clock from the time source.
RCLCPP_PUBLIC void set_use_clock_thread(bool use_clock_thread)
Set whether to use a separate clock thread or not.
RCLCPP_PUBLIC TimeSource(rclcpp::Node::SharedPtr node, const rclcpp::QoS &qos=rclcpp::ClockQoS(), bool use_clock_thread=true)
Constructor.
RCLCPP_PUBLIC bool clock_thread_is_joinable()
Check if the clock thread is joinable.
RCLCPP_PUBLIC ~TimeSource()
TimeSource Destructor.
RCLCPP_PUBLIC void detachNode()
Detach the node from the time source.
RCLCPP_PUBLIC void attachNode(rclcpp::Node::SharedPtr node)
Attach node to the time source.
Versions of rosidl_typesupport_cpp::get_message_type_support_handle that handle adapted types.