Corentin Chauvin-Hameau – 2019-2020
Coverage Path Planning for an underwater robot surveying a marine farm
Public Member Functions | Private Member Functions | Private Attributes | List of all members
mfcpp::ClockPublisherNode Class Reference

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_
 

Detailed Description

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.

Constructor & Destructor Documentation

mfcpp::ClockPublisherNode::ClockPublisherNode ( )

Definition at line 25 of file clock_publisher.cpp.

mfcpp::ClockPublisherNode::~ClockPublisherNode ( )

Definition at line 32 of file clock_publisher.cpp.

Member Function Documentation

void mfcpp::ClockPublisherNode::init_node ( )
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.

Member Data Documentation

ros::Publisher mfcpp::ClockPublisherNode::clock_pub_
private

Clock publisher.

Definition at line 37 of file clock_publisher.hpp.

ros::NodeHandle mfcpp::ClockPublisherNode::nh_
private

Node handler.

Definition at line 36 of file clock_publisher.hpp.

float mfcpp::ClockPublisherNode::publish_rate_
private

Frequency (Hz) of publish on the /clock topic (ROS frequency)

Definition at line 42 of file clock_publisher.hpp.

float mfcpp::ClockPublisherNode::time_factor_
private

Time factor of the simulation (1.0 for same as wall time)

Definition at line 43 of file clock_publisher.hpp.

bool mfcpp::ClockPublisherNode::use_sim_time_
private

Whether to publish something in the /clock topic.

Definition at line 41 of file clock_publisher.hpp.


The documentation for this class was generated from the following files: