Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
rviz_map_plugin::MeshPoseTool Class Referenceabstract

#include <MeshPoseTool.hpp>

Inheritance diagram for rviz_map_plugin::MeshPoseTool:
Inheritance graph
[legend]

Public Member Functions

virtual void activate ()
 
virtual void deactivate ()
 
 MeshPoseTool ()
 
virtual void onInitialize ()
 
virtual int processMouseEvent (rviz::ViewportMouseEvent &event)
 
virtual ~MeshPoseTool ()
 
- 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 PropertygetPropertyContainer () const
 
char getShortcutKey ()
 
void initialize (DisplayContext *context)
 
virtual void load (const Config &config)
 
virtual int processKeyEvent (QKeyEvent *event, RenderPanel *panel)
 
virtual void save (Config config) const
 
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)
 
 ~Tool () override
 

Protected Types

enum  State { Position, Orientation }
 

Protected Member Functions

bool getPositionAndOrientation (const Ogre::ManualObject *mesh, const Ogre::Ray &ray, Ogre::Vector3 &position, Ogre::Vector3 &orientation)
 
void getRawManualObjectData (const Ogre::ManualObject *mesh, const size_t sectionNumber, size_t &vertexCount, Ogre::Vector3 *&vertices, size_t &indexCount, unsigned long *&indices)
 
virtual void onPoseSet (const Ogre::Vector3 &position, const Ogre::Quaternion &orientation)=0
 
bool selectTriangle (rviz::ViewportMouseEvent &event, Ogre::Vector3 &position, Ogre::Vector3 &orientation)
 

Protected Attributes

rviz::Arrowarrow_
 
Ogre::Vector3 ori_
 
Ogre::Vector3 pos_
 
State state_
 
- Protected Attributes inherited from rviz::Tool
bool access_all_keys_
 
DisplayContextcontext_
 
QCursor cursor_
 
QIcon icon_
 
Ogre::SceneManager * scene_manager_
 
char shortcut_key_
 

Additional Inherited Members

- Signals inherited from rviz::Tool
void close ()
 
void nameChanged (const QString &name)
 
- Public Attributes inherited from rviz::Tool
 Finished
 
 Render
 

Detailed Description

Definition at line 60 of file MeshPoseTool.hpp.

Member Enumeration Documentation

◆ State

Enumerator
Position 
Orientation 

Definition at line 85 of file MeshPoseTool.hpp.

Constructor & Destructor Documentation

◆ MeshPoseTool()

rviz_map_plugin::MeshPoseTool::MeshPoseTool ( )

Definition at line 62 of file MeshPoseTool.cpp.

◆ ~MeshPoseTool()

rviz_map_plugin::MeshPoseTool::~MeshPoseTool ( )
virtual

Definition at line 66 of file MeshPoseTool.cpp.

Member Function Documentation

◆ activate()

void rviz_map_plugin::MeshPoseTool::activate ( )
virtual

Implements rviz::Tool.

Definition at line 78 of file MeshPoseTool.cpp.

◆ deactivate()

void rviz_map_plugin::MeshPoseTool::deactivate ( )
virtual

Implements rviz::Tool.

Definition at line 84 of file MeshPoseTool.cpp.

◆ getPositionAndOrientation()

bool rviz_map_plugin::MeshPoseTool::getPositionAndOrientation ( const Ogre::ManualObject *  mesh,
const Ogre::Ray &  ray,
Ogre::Vector3 position,
Ogre::Vector3 orientation 
)
protected

Definition at line 189 of file MeshPoseTool.cpp.

◆ getRawManualObjectData()

void rviz_map_plugin::MeshPoseTool::getRawManualObjectData ( const Ogre::ManualObject *  mesh,
const size_t  sectionNumber,
size_t &  vertexCount,
Ogre::Vector3 *&  vertices,
size_t &  indexCount,
unsigned long *&  indices 
)
protected

Definition at line 241 of file MeshPoseTool.cpp.

◆ onInitialize()

void rviz_map_plugin::MeshPoseTool::onInitialize ( )
virtual

Reimplemented from rviz::Tool.

Reimplemented in rviz_map_plugin::MeshGoalTool.

Definition at line 71 of file MeshPoseTool.cpp.

◆ onPoseSet()

virtual void rviz_map_plugin::MeshPoseTool::onPoseSet ( const Ogre::Vector3 position,
const Ogre::Quaternion &  orientation 
)
protectedpure virtual

◆ processMouseEvent()

int rviz_map_plugin::MeshPoseTool::processMouseEvent ( rviz::ViewportMouseEvent event)
virtual

Reimplemented from rviz::Tool.

Definition at line 89 of file MeshPoseTool.cpp.

◆ selectTriangle()

bool rviz_map_plugin::MeshPoseTool::selectTriangle ( rviz::ViewportMouseEvent event,
Ogre::Vector3 position,
Ogre::Vector3 orientation 
)
protected

Definition at line 160 of file MeshPoseTool.cpp.

Member Data Documentation

◆ arrow_

rviz::Arrow* rviz_map_plugin::MeshPoseTool::arrow_
protected

Definition at line 84 of file MeshPoseTool.hpp.

◆ ori_

Ogre::Vector3 rviz_map_plugin::MeshPoseTool::ori_
protected

Definition at line 92 of file MeshPoseTool.hpp.

◆ pos_

Ogre::Vector3 rviz_map_plugin::MeshPoseTool::pos_
protected

Definition at line 91 of file MeshPoseTool.hpp.

◆ state_

State rviz_map_plugin::MeshPoseTool::state_
protected

Definition at line 90 of file MeshPoseTool.hpp.


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


rviz_map_plugin
Author(s): Sebastian Pütz , Kristin Schmidt , Jan Philipp Vogtherr , Malte kleine Piening
autogenerated on Sun Jan 21 2024 04:06:25