Serves as a Tool plugin for RViz which enables planting waypoints on a desired location with an adjustable orientation. More...
#include <PlantWaypointTool.h>

Public Member Functions | |
| void | activate () |
| void | deactivate () |
| void | load (const rviz::Config &config) |
| void | onInitialize () |
| PlantWaypointTool () | |
| int | processMouseEvent (rviz::ViewportMouseEvent &event) |
| void | save (rviz::Config config) const |
| ~PlantWaypointTool () | |
Public Member Functions inherited from rviz::Tool | |
| bool | accessAllKeys () |
| virtual QString | getClassId () const |
| const QCursor & | getCursor () |
| QString | getDescription () const |
| const QIcon & | getIcon () |
| QString | getName () const |
| virtual Property * | getPropertyContainer () const |
| char | getShortcutKey () |
| void | initialize (DisplayContext *context) |
| virtual int | processKeyEvent (QKeyEvent *event, RenderPanel *panel) |
| virtual void | setClassId (const QString &class_id) |
| void | setCursor (const QCursor &cursor) |
| void | setDescription (const QString &description) |
| void | setIcon (const QIcon &icon) |
| void | setName (const QString &name) |
| void | setStatus (const QString &message) |
| Tool () | |
| virtual void | update (float wall_dt, float ros_dt) |
| virtual | ~Tool () |
Private Types | |
| enum | State { Moving, Position, Orientation } |
Private Member Functions | |
| void | makeFlag (const Ogre::Vector3 &position, double angle) |
Private Attributes | |
| ros::ServiceClient | _add_waypoint_client |
| rviz::VectorProperty * | current_flag_property_ |
| std::vector< Ogre::SceneNode * > | flag_nodes_ |
| std::string | flag_resource_ |
| Ogre::SceneNode * | moving_flag_node_ |
| Ogre::Vector3 | pos_ |
| State | state_ |
Additional Inherited Members | |
Signals inherited from rviz::Tool | |
| void | close () |
Public Attributes inherited from rviz::Tool | |
| Finished | |
| Render | |
Protected Attributes inherited from rviz::Tool | |
| bool | access_all_keys_ |
| DisplayContext * | context_ |
| QCursor | cursor_ |
| QIcon | icon_ |
| Ogre::SceneManager * | scene_manager_ |
| char | shortcut_key_ |
Serves as a Tool plugin for RViz which enables planting waypoints on a desired location with an adjustable orientation.
Definition at line 42 of file PlantWaypointTool.h.
|
private |
| Enumerator | |
|---|---|
| Moving | |
| Position | |
| Orientation | |
Definition at line 99 of file PlantWaypointTool.h.
| rsm::PlantWaypointTool::PlantWaypointTool | ( | ) |
Constructor
Definition at line 5 of file PlantWaypointTool.cpp.
| rsm::PlantWaypointTool::~PlantWaypointTool | ( | ) |
Destructor
Definition at line 13 of file PlantWaypointTool.cpp.
|
virtual |
Called when tool is activated
Implements rviz::Tool.
Definition at line 35 of file PlantWaypointTool.cpp.
|
virtual |
Called when tool is deactivated
Implements rviz::Tool.
Definition at line 48 of file PlantWaypointTool.cpp.
|
virtual |
Load config (not used)
| config |
Reimplemented from rviz::Tool.
Definition at line 118 of file PlantWaypointTool.cpp.
|
private |
Calls AddWaypoint service with the desired position and orientation for the new waypoint
| position | Position of the new waypoint |
| angle | Yaw angle of the new waypoint |
Definition at line 100 of file PlantWaypointTool.cpp.
|
virtual |
Initializes plugin
Reimplemented from rviz::Tool.
Definition at line 19 of file PlantWaypointTool.cpp.
|
virtual |
Processing mouse events in RViz while tool is active
| event | Mouse event in RViz |
Reimplemented from rviz::Tool.
Definition at line 56 of file PlantWaypointTool.cpp.
|
virtual |
Save config (not used)
| config |
Reimplemented from rviz::Tool.
Definition at line 115 of file PlantWaypointTool.cpp.
|
private |
Definition at line 97 of file PlantWaypointTool.h.
|
private |
Definition at line 95 of file PlantWaypointTool.h.
|
private |
Definition at line 92 of file PlantWaypointTool.h.
|
private |
Definition at line 94 of file PlantWaypointTool.h.
|
private |
Definition at line 93 of file PlantWaypointTool.h.
|
private |
Definition at line 103 of file PlantWaypointTool.h.
|
private |
Definition at line 102 of file PlantWaypointTool.h.