rviz::InteractiveMarker Class Reference

#include <interactive_marker.h>

List of all members.


struct  MenuNode

Public Member Functions

const std::string & getName ()
const Ogre::Quaternion & getOrientation ()
const Ogre::Vector3 & getPosition ()
const std::string & getReferenceFrame ()
float getSize ()
bool handleMouseEvent (ViewportMouseEvent &event, const std::string &control_name)
 InteractiveMarker (InteractiveMarkerDisplay *owner, DisplayContext *context, std::string topic_ns, std::string client_id)
void processMessage (visualization_msgs::InteractiveMarkerPoseConstPtr message)
bool processMessage (visualization_msgs::InteractiveMarkerConstPtr message)
void publishFeedback (visualization_msgs::InteractiveMarkerFeedback &feedback, bool mouse_point_valid=false, const Ogre::Vector3 &mouse_point_rel_world=Ogre::Vector3(0, 0, 0))
void requestPoseUpdate (Ogre::Vector3 position, Ogre::Quaternion orientation)
void rotate (Ogre::Quaternion delta_orientation, const std::string &control_name)
void setPose (Ogre::Vector3 position, Ogre::Quaternion orientation, const std::string &control_name)
void setReferencePose (Ogre::Vector3 position, Ogre::Quaternion orientation)
void setShowAxes (bool show)
void setShowDescription (bool show)
void startDragging ()
void stopDragging ()
void translate (Ogre::Vector3 delta_position, const std::string &control_name)
void update (float wall_dt)
virtual ~InteractiveMarker ()

Protected Types

typedef boost::shared_ptr
< InteractiveMarkerControl
typedef std::map< std::string,

Protected Slots

void handleMenuSelect (int menu_item_id)

Protected Member Functions

QString makeMenuString (const std::string &entry)
void populateMenu (QMenu *menu, std::vector< uint32_t > &ids)
void publishPose ()
void reset ()
void updateReferencePose ()

Protected Attributes

Ogre::SceneNode * axes_node_
std::string client_id_
M_ControlPtr controls_
std::string description_
InteractiveMarkerControlPtr description_control_
bool dragging_
ros::Publisher feedback_pub_
bool frame_locked_
bool got_3d_point_for_menu_
double heart_beat_t_
std::string last_control_name_
boost::shared_ptr< QMenu > menu_
std::map< uint32_t, MenuNodemenu_entries_
boost::recursive_mutex mutex_
std::string name_
std::string old_target_frame_
Ogre::Quaternion orientation_
bool pose_changed_
bool pose_update_requested_
Ogre::Vector3 position_
std::string reference_frame_
Ogre::SceneNode * reference_node_
ros::Time reference_time_
Ogre::Quaternion requested_orientation_
Ogre::Vector3 requested_position_
float scale_
boost::shared_ptr< boost::thread > sys_thread_
Ogre::Vector3 three_d_point_for_menu_
double time_since_last_feedback_
std::vector< uint32_t > top_level_menu_ids_
std::string topic_ns_

Detailed Description

Definition at line 63 of file interactive_marker.h.

Member Typedef Documentation

Definition at line 155 of file interactive_marker.h.

typedef std::map<std::string, InteractiveMarkerControlPtr> rviz::InteractiveMarker::M_ControlPtr [protected]

Definition at line 156 of file interactive_marker.h.

Constructor & Destructor Documentation

rviz::InteractiveMarker::InteractiveMarker ( InteractiveMarkerDisplay owner,
DisplayContext context,
std::string  topic_ns,
std::string  client_id 

Definition at line 45 of file interactive_marker.cpp.

rviz::InteractiveMarker::~InteractiveMarker (  )  [virtual]

Definition at line 66 of file interactive_marker.cpp.

Member Function Documentation

const std::string& rviz::InteractiveMarker::getName (  )  [inline]

Definition at line 102 of file interactive_marker.h.

const Ogre::Quaternion& rviz::InteractiveMarker::getOrientation (  )  [inline]

Definition at line 98 of file interactive_marker.h.

const Ogre::Vector3& rviz::InteractiveMarker::getPosition (  )  [inline]

Definition at line 97 of file interactive_marker.h.

const std::string& rviz::InteractiveMarker::getReferenceFrame (  )  [inline]

Definition at line 101 of file interactive_marker.h.

float rviz::InteractiveMarker::getSize (  )  [inline]

Definition at line 100 of file interactive_marker.h.

void rviz::InteractiveMarker::handleMenuSelect ( int  menu_item_id  )  [protected, slot]

Definition at line 516 of file interactive_marker.cpp.

bool rviz::InteractiveMarker::handleMouseEvent ( ViewportMouseEvent event,
const std::string &  control_name 

Definition at line 470 of file interactive_marker.cpp.

QString rviz::InteractiveMarker::makeMenuString ( const std::string &  entry  )  [protected]

Definition at line 269 of file interactive_marker.cpp.

void rviz::InteractiveMarker::populateMenu ( QMenu *  menu,
std::vector< uint32_t > &  ids 
) [protected]

Definition at line 243 of file interactive_marker.cpp.

void rviz::InteractiveMarker::processMessage ( visualization_msgs::InteractiveMarkerPoseConstPtr  message  ) 

Definition at line 73 of file interactive_marker.cpp.

bool rviz::InteractiveMarker::processMessage ( visualization_msgs::InteractiveMarkerConstPtr  message  ) 

Definition at line 93 of file interactive_marker.cpp.

void rviz::InteractiveMarker::publishFeedback ( visualization_msgs::InteractiveMarkerFeedback &  feedback,
bool  mouse_point_valid = false,
const Ogre::Vector3 &  mouse_point_rel_world = Ogre::Vector3(0,0,0) 

Definition at line 555 of file interactive_marker.cpp.

void rviz::InteractiveMarker::publishPose (  )  [protected]

Definition at line 372 of file interactive_marker.cpp.

void rviz::InteractiveMarker::requestPoseUpdate ( Ogre::Vector3  position,
Ogre::Quaternion  orientation 

Definition at line 382 of file interactive_marker.cpp.

void rviz::InteractiveMarker::reset (  )  [protected]
void rviz::InteractiveMarker::rotate ( Ogre::Quaternion  delta_orientation,
const std::string &  control_name 

Definition at line 441 of file interactive_marker.cpp.

void rviz::InteractiveMarker::setPose ( Ogre::Vector3  position,
Ogre::Quaternion  orientation,
const std::string &  control_name 

Definition at line 398 of file interactive_marker.cpp.

void rviz::InteractiveMarker::setReferencePose ( Ogre::Vector3  position,
Ogre::Quaternion  orientation 
void rviz::InteractiveMarker::setShowAxes ( bool  show  ) 

Definition at line 429 of file interactive_marker.cpp.

void rviz::InteractiveMarker::setShowDescription ( bool  show  ) 

Definition at line 420 of file interactive_marker.cpp.

void rviz::InteractiveMarker::startDragging (  ) 

Definition at line 447 of file interactive_marker.cpp.

void rviz::InteractiveMarker::stopDragging (  ) 

Definition at line 454 of file interactive_marker.cpp.

void rviz::InteractiveMarker::translate ( Ogre::Vector3  delta_position,
const std::string &  control_name 

Definition at line 435 of file interactive_marker.cpp.

void rviz::InteractiveMarker::update ( float  wall_dt  ) 

Definition at line 337 of file interactive_marker.cpp.

void rviz::InteractiveMarker::updateReferencePose (  )  [protected]

Definition at line 287 of file interactive_marker.cpp.

Member Data Documentation

Definition at line 194 of file interactive_marker.h.

Ogre::SceneNode* rviz::InteractiveMarker::axes_node_ [protected]

Definition at line 195 of file interactive_marker.h.

std::string rviz::InteractiveMarker::client_id_ [protected]

Definition at line 201 of file interactive_marker.h.

Definition at line 137 of file interactive_marker.h.

Definition at line 157 of file interactive_marker.h.

std::string rviz::InteractiveMarker::description_ [protected]

Definition at line 160 of file interactive_marker.h.

Definition at line 197 of file interactive_marker.h.

Definition at line 162 of file interactive_marker.h.

ros::Publisher rviz::InteractiveMarker::feedback_pub_ [protected]

Definition at line 199 of file interactive_marker.h.

Definition at line 142 of file interactive_marker.h.

Definition at line 207 of file interactive_marker.h.

Definition at line 190 of file interactive_marker.h.

Definition at line 188 of file interactive_marker.h.

boost::shared_ptr<QMenu> rviz::InteractiveMarker::menu_ [protected]

Definition at line 172 of file interactive_marker.h.

std::map< uint32_t, MenuNode > rviz::InteractiveMarker::menu_entries_ [protected]

Definition at line 182 of file interactive_marker.h.

boost::recursive_mutex rviz::InteractiveMarker::mutex_ [protected]

Definition at line 203 of file interactive_marker.h.

std::string rviz::InteractiveMarker::name_ [protected]

Definition at line 159 of file interactive_marker.h.

Definition at line 163 of file interactive_marker.h.

Ogre::Quaternion rviz::InteractiveMarker::orientation_ [protected]

Definition at line 149 of file interactive_marker.h.

Definition at line 136 of file interactive_marker.h.

Definition at line 152 of file interactive_marker.h.

Definition at line 166 of file interactive_marker.h.

Ogre::Vector3 rviz::InteractiveMarker::position_ [protected]

Definition at line 148 of file interactive_marker.h.

Definition at line 140 of file interactive_marker.h.

Ogre::SceneNode* rviz::InteractiveMarker::reference_node_ [protected]

Definition at line 145 of file interactive_marker.h.

Definition at line 141 of file interactive_marker.h.

Definition at line 168 of file interactive_marker.h.

Definition at line 167 of file interactive_marker.h.

Definition at line 170 of file interactive_marker.h.

boost::shared_ptr< boost::thread > rviz::InteractiveMarker::sys_thread_ [protected]

Definition at line 205 of file interactive_marker.h.

Definition at line 208 of file interactive_marker.h.

Definition at line 153 of file interactive_marker.h.

std::vector<uint32_t> rviz::InteractiveMarker::top_level_menu_ids_ [protected]

Definition at line 185 of file interactive_marker.h.

std::string rviz::InteractiveMarker::topic_ns_ [protected]

Definition at line 200 of file interactive_marker.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Author(s): Dave Hershberger, Josh Faust
autogenerated on Wed Jun 6 11:25:47 2012