Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots | List of all members
rviz_map_plugin::MeshGoalTool Class Reference

Tool for publishing a goal within a mesh. More...

#include <MeshGoalTool.hpp>

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

Public Member Functions

 MeshGoalTool ()
 Constructor. More...
 
virtual void onInitialize ()
 Callback that is executed when tool is initialized. More...
 
- Public Member Functions inherited from rviz_map_plugin::MeshPoseTool
virtual void activate ()
 
virtual void deactivate ()
 
 MeshPoseTool ()
 
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 Member Functions

virtual void onPoseSet (const Ogre::Vector3 &position, const Ogre::Quaternion &orientation)
 When goal is set, publish result. More...
 
- Protected Member Functions inherited from rviz_map_plugin::MeshPoseTool
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)
 
bool selectTriangle (rviz::ViewportMouseEvent &event, Ogre::Vector3 &position, Ogre::Vector3 &orientation)
 

Protected Attributes

ros::NodeHandle nh_
 Node handle. More...
 
ros::Publisher pose_pub_
 Publisher. More...
 
rviz::BoolPropertyswitch_bottom_top_
 Switch bottom / top for selection. More...
 
rviz::StringPropertytopic_property_
 Property for the topic. More...
 
- Protected Attributes inherited from rviz_map_plugin::MeshPoseTool
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_
 

Private Slots

void updateTopic ()
 Updates the topic on which the goal will be published. More...
 

Additional Inherited Members

- Signals inherited from rviz::Tool
void close ()
 
void nameChanged (const QString &name)
 
- Public Attributes inherited from rviz::Tool
 Finished
 
 Render
 
- Protected Types inherited from rviz_map_plugin::MeshPoseTool
enum  State { Position, Orientation }
 

Detailed Description

Tool for publishing a goal within a mesh.

Definition at line 64 of file MeshGoalTool.hpp.

Constructor & Destructor Documentation

◆ MeshGoalTool()

rviz_map_plugin::MeshGoalTool::MeshGoalTool ( )

Constructor.

Definition at line 52 of file MeshGoalTool.cpp.

Member Function Documentation

◆ onInitialize()

void rviz_map_plugin::MeshGoalTool::onInitialize ( )
virtual

Callback that is executed when tool is initialized.

Reimplemented from rviz_map_plugin::MeshPoseTool.

Definition at line 65 of file MeshGoalTool.cpp.

◆ onPoseSet()

void rviz_map_plugin::MeshGoalTool::onPoseSet ( const Ogre::Vector3 position,
const Ogre::Quaternion &  orientation 
)
protectedvirtual

When goal is set, publish result.

Parameters
positionPosition
orientationOrientation

Implements rviz_map_plugin::MeshPoseTool.

Definition at line 77 of file MeshGoalTool.cpp.

◆ updateTopic

void rviz_map_plugin::MeshGoalTool::updateTopic ( )
privateslot

Updates the topic on which the goal will be published.

Definition at line 72 of file MeshGoalTool.cpp.

Member Data Documentation

◆ nh_

ros::NodeHandle rviz_map_plugin::MeshGoalTool::nh_
protected

Node handle.

Definition at line 100 of file MeshGoalTool.hpp.

◆ pose_pub_

ros::Publisher rviz_map_plugin::MeshGoalTool::pose_pub_
protected

Publisher.

Definition at line 98 of file MeshGoalTool.hpp.

◆ switch_bottom_top_

rviz::BoolProperty* rviz_map_plugin::MeshGoalTool::switch_bottom_top_
protected

Switch bottom / top for selection.

Definition at line 96 of file MeshGoalTool.hpp.

◆ topic_property_

rviz::StringProperty* rviz_map_plugin::MeshGoalTool::topic_property_
protected

Property for the topic.

Definition at line 94 of file MeshGoalTool.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