|
MFCPP
1.0
|
Corentin Chauvin-Hameau – 2019-2020
|
|
Coverage Path Planning for an underwater robot surveying a marine farm
|
|
Class to publish hard-coded trajectories. More...
#include <traj_publisher.hpp>
Public Member Functions | |
| TrajPublisherNode () | |
| ~TrajPublisherNode () | |
| void | run_node () |
| Runs the node. More... | |
Private Member Functions | |
| void | init_node () |
| Initialises the node and its parameters. More... | |
| void | load_path (std::string file_name, float resolution, nav_msgs::Path &path) |
| Loads a path from a text file. More... | |
Private Attributes | |
| ros::NodeHandle | nh_ |
| Node handler. More... | |
| ros::Publisher | path_pub_ |
| Publisher for a path. More... | |
| nav_msgs::Path | path_ |
| Path to publish. More... | |
| bool | path_loaded_ |
| Whether the path was loaded with success. More... | |
ROS parameters | |
| float | path_freq_ |
Class to publish hard-coded trajectories.
Definition at line 25 of file traj_publisher.hpp.
| mfcpp::TrajPublisherNode::TrajPublisherNode | ( | ) |
Definition at line 33 of file traj_publisher.cpp.
| mfcpp::TrajPublisherNode::~TrajPublisherNode | ( | ) |
Definition at line 40 of file traj_publisher.cpp.
|
private |
Initialises the node and its parameters.
Definition at line 46 of file traj_publisher.cpp.
|
private |
Loads a path from a text file.
The text file contains waypoints that are then interpolated by a spline.
| [in] | file_name | Relative path of the file containing the waypoints |
| [in] | resolution | Spatial resolution of the path |
| [out] | path | Loaded path |
Definition at line 86 of file traj_publisher.cpp.
| void mfcpp::TrajPublisherNode::run_node | ( | ) |
Runs the node.
Definition at line 69 of file traj_publisher.cpp.
|
private |
Node handler.
Definition at line 37 of file traj_publisher.hpp.
|
private |
Path to publish.
Definition at line 39 of file traj_publisher.hpp.
|
private |
Publishing frequency of the path
Definition at line 44 of file traj_publisher.hpp.
|
private |
Whether the path was loaded with success.
Definition at line 40 of file traj_publisher.hpp.
|
private |
Publisher for a path.
Definition at line 38 of file traj_publisher.hpp.
1.8.11