|
MFCPP
1.0
|
Corentin Chauvin-Hameau – 2019-2020
|
|
Coverage Path Planning for an underwater robot surveying a marine farm
|
|
Class to publish on the /clock topic. More...
#include <clock_publisher.hpp>
Public Member Functions | |
| ClockPublisherNode () | |
| ~ClockPublisherNode () | |
| void | run_node () |
| Runs the node. More... | |
Private Member Functions | |
| void | init_node () |
| Initialises the node and its parameters. More... | |
Private Attributes | |
| ros::NodeHandle | nh_ |
| Node handler. More... | |
| ros::Publisher | clock_pub_ |
| Clock publisher. More... | |
ROS parameters | |
| bool | use_sim_time_ |
| Whether to publish something in the /clock topic. More... | |
| float | publish_rate_ |
| Frequency (Hz) of publish on the /clock topic (ROS frequency) More... | |
| float | time_factor_ |
Class to publish on the /clock topic.
Publishes simulation time at some user specified rate. Won't publish if /use_sim_time ROS parameter is not set to true.
Definition at line 24 of file clock_publisher.hpp.
| mfcpp::ClockPublisherNode::ClockPublisherNode | ( | ) |
Definition at line 25 of file clock_publisher.cpp.
| mfcpp::ClockPublisherNode::~ClockPublisherNode | ( | ) |
Definition at line 32 of file clock_publisher.cpp.
|
private |
Initialises the node and its parameters.
Definition at line 38 of file clock_publisher.cpp.
| void mfcpp::ClockPublisherNode::run_node | ( | ) |
Runs the node.
Definition at line 53 of file clock_publisher.cpp.
|
private |
Clock publisher.
Definition at line 37 of file clock_publisher.hpp.
|
private |
Node handler.
Definition at line 36 of file clock_publisher.hpp.
|
private |
Frequency (Hz) of publish on the /clock topic (ROS frequency)
Definition at line 42 of file clock_publisher.hpp.
|
private |
Time factor of the simulation (1.0 for same as wall time)
Definition at line 43 of file clock_publisher.hpp.
|
private |
Whether to publish something in the /clock topic.
Definition at line 41 of file clock_publisher.hpp.
1.8.11