rclcpp:rclcpp::Node class has a method called create_wall_timer, which can be used to create period signal. The following two c++ functions are usually used with the create_wall_timer method.
rclcpp:rclcpp::Node
create_wall_timer
std::bindarrow-up-right
std::placeholders::_1arrow-up-right
If we are inside a node, we can use the following code to get the current time.
this->get_clock()->now()
Last updated 2 years ago