#include <pose_tool.h>
Public Member Functions | |
virtual void | activate () |
virtual void | deactivate () |
virtual void | onInitialize () |
PoseTool () | |
virtual int | processMouseEvent (ViewportMouseEvent &event) |
virtual | ~PoseTool () |
Public Member Functions inherited from rviz::Tool | |
bool | accessAllKeys () |
virtual QString | getClassId () const |
Return the class identifier which was used to create this instance. This version just returns whatever was set with setClassId(). More... | |
const QCursor & | getCursor () |
Get current cursor of this tool. More... | |
QString | getDescription () const |
Set the description of the tool. This is called by ToolManager during tool initialization. More... | |
const QIcon & | getIcon () |
Get the icon of this tool. More... | |
QString | getName () const |
virtual Property * | getPropertyContainer () const |
Return the container for properties of this Tool. More... | |
char | getShortcutKey () |
void | initialize (DisplayContext *context) |
virtual void | load (const Config &config) |
Load properties from the given Config. More... | |
virtual int | processKeyEvent (QKeyEvent *event, RenderPanel *panel) |
virtual void | save (Config config) const |
Save this entire tool into the given Config node. More... | |
virtual void | setClassId (const QString &class_id) |
Set the class identifier used to create this instance. Typically this will be set by the factory object which created it. More... | |
void | setCursor (const QCursor &cursor) |
Set the cursor for this tool. More... | |
void | setDescription (const QString &description) |
void | setIcon (const QIcon &icon) |
Set the toolbar icon for this tool (will also set its cursor). More... | |
void | setName (const QString &name) |
Set the name of the tool. More... | |
void | setStatus (const QString &message) |
Tool () | |
virtual void | update (float wall_dt, float ros_dt) |
virtual | ~Tool () |
Protected Types | |
enum | State { Position, Orientation } |
Protected Member Functions | |
virtual void | onPoseSet (double x, double y, double theta)=0 |
Protected Attributes | |
Arrow * | arrow_ |
Ogre::Vector3 | pos_ |
State | state_ |
Protected Attributes inherited from rviz::Tool | |
bool | access_all_keys_ |
DisplayContext * | context_ |
QCursor | cursor_ |
QIcon | icon_ |
Ogre::SceneManager * | scene_manager_ |
char | shortcut_key_ |
Additional Inherited Members | |
Public Types inherited from rviz::Tool | |
enum | { Render = 1, Finished = 2 } |
Signals inherited from rviz::Tool | |
void | close () |
Definition at line 46 of file pose_tool.h.
|
protected |
Enumerator | |
---|---|
Position | |
Orientation |
Definition at line 64 of file pose_tool.h.
rviz::PoseTool::PoseTool | ( | ) |
Definition at line 46 of file pose_tool.cpp.
|
virtual |
Definition at line 52 of file pose_tool.cpp.
|
virtual |
Implements rviz::Tool.
Definition at line 64 of file pose_tool.cpp.
|
virtual |
Implements rviz::Tool.
Definition at line 70 of file pose_tool.cpp.
|
virtual |
Override onInitialize to do any setup needed after the DisplayContext has been set. This is called by Tool::initialize(). The base implementation here does nothing.
Reimplemented from rviz::Tool.
Reimplemented in rviz::GoalTool, and rviz::InitialPoseTool.
Definition at line 57 of file pose_tool.cpp.
|
protectedpure virtual |
Implemented in rviz::GoalTool, and rviz::InitialPoseTool.
|
virtual |
Process a mouse event. This is the central function of all the tools, as it defines how the mouse is used.
Reimplemented from rviz::Tool.
Definition at line 75 of file pose_tool.cpp.
|
protected |
Definition at line 62 of file pose_tool.h.
|
protected |
Definition at line 71 of file pose_tool.h.
|
protected |
Definition at line 69 of file pose_tool.h.