Class for visualizing waypoints as interactive markers in RViz and handling their interaction.
More...
#include <WaypointFollowingVisualization.h>
Class for visualizing waypoints as interactive markers in RViz and handling their interaction.
Definition at line 19 of file WaypointFollowingVisualization.h.
rsm::WaypointFollowingVisualization::WaypointFollowingVisualization |
( |
| ) |
|
rsm::WaypointFollowingVisualization::~WaypointFollowingVisualization |
( |
| ) |
|
void rsm::WaypointFollowingVisualization::addWaypointMarkerToServer |
( |
int |
waypoint_pos | ) |
|
|
private |
Draws the interactive marker for the waypoints with position waypoint_pos in the waypoint array
- Parameters
-
waypoint_pos | Position in the waypoint array of the waypoint to visualize |
Definition at line 85 of file WaypointFollowingVisualization.cpp.
void rsm::WaypointFollowingVisualization::periodicalRefreshTimerCallback |
( |
const ros::TimerEvent & |
event | ) |
|
|
private |
void rsm::WaypointFollowingVisualization::processFeedback |
( |
const visualization_msgs::InteractiveMarkerFeedbackConstPtr & |
feedback | ) |
|
|
private |
Method being called when moving the marker and changing it's position in the array calling ServiceProvider's service
- Parameters
-
Definition at line 34 of file WaypointFollowingVisualization.cpp.
void rsm::WaypointFollowingVisualization::removeWaypoint |
( |
const visualization_msgs::InteractiveMarkerFeedbackConstPtr & |
feedback | ) |
|
|
private |
Method being called when selecting delete from the marker's menu, deletes the waypoint from the array calling ServiceProvider's service
- Parameters
-
feedback | Feedback object generated from click |
Definition at line 46 of file WaypointFollowingVisualization.cpp.
void rsm::WaypointFollowingVisualization::setWaypointRoutine |
( |
const visualization_msgs::InteractiveMarkerFeedbackConstPtr & |
feedback | ) |
|
|
private |
Method being called when selecting a routine from the marker's menu, changes the routine for the respective waypoint from the array calling ServiceProvider's service
- Parameters
-
feedback | Feedback object generated from click |
Definition at line 57 of file WaypointFollowingVisualization.cpp.
void rsm::WaypointFollowingVisualization::timerCallback |
( |
const ros::TimerEvent & |
event | ) |
|
|
private |
Timer callback for one-shot timer to initialize the menu handler with a delay, so the ServiceProvider's services will be available
- Parameters
-
Definition at line 158 of file WaypointFollowingVisualization.cpp.
bool rsm::WaypointFollowingVisualization::waypointArrayChanged |
( |
const rsm_msgs::WaypointArray::ConstPtr & |
waypoint_array | ) |
|
|
private |
Compare if waypoints send from the ServiceProvider match the ones here regarding array length, routine, visited- and unreachable-status.
- Parameters
-
waypoint_array | received from ServiceProvider |
- Returns
- True if the waypoint array has changed, false otherwise
Definition at line 179 of file WaypointFollowingVisualization.cpp.
void rsm::WaypointFollowingVisualization::waypointCallback |
( |
const rsm_msgs::WaypointArray::ConstPtr & |
waypoint_array | ) |
|
|
private |
ros::Timer rsm::WaypointFollowingVisualization::_periodical_refresh_timer |
|
private |
Timer to periodically refresh the drawn markers to synchronize with the waypoint array in case of high system load
Definition at line 114 of file WaypointFollowingVisualization.h.
bool rsm::WaypointFollowingVisualization::_refresh_waypoint_markers |
|
private |
ros::Timer rsm::WaypointFollowingVisualization::_service_call_delay_timer |
|
private |
std::vector<std::string> rsm::WaypointFollowingVisualization::_waypoint_routines |
|
private |
rsm_msgs::WaypointArray rsm::WaypointFollowingVisualization::_waypoints |
|
private |
The documentation for this class was generated from the following files: