Classes | Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes
rviz::InteractiveMarker Class Reference

#include <interactive_marker.h>

List of all members.

Classes

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)
void hideVisible ()
 InteractiveMarker (InteractiveMarkerDisplay *owner, VisualizationManager *vis_manager, std::string topic_ns, std::string client_id)
bool processMessage (visualization_msgs::InteractiveMarkerConstPtr message)
void processMessage (visualization_msgs::InteractiveMarkerPoseConstPtr 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 restoreVisible ()
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
InteractiveMarkerControlPtr
typedef std::map< std::string,
InteractiveMarkerControlPtr
M_ControlPtr

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

Axesaxes_
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_
InteractiveMarkerDisplayowner_
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_
VisualizationManagervis_manager_

Detailed Description

Definition at line 63 of file interactive_marker.h.


Member Typedef Documentation

Definition at line 159 of file interactive_marker.h.

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

Definition at line 160 of file interactive_marker.h.


Constructor & Destructor Documentation

rviz::InteractiveMarker::InteractiveMarker ( InteractiveMarkerDisplay owner,
VisualizationManager vis_manager,
std::string  topic_ns,
std::string  client_id 
)

Definition at line 57 of file interactive_marker.cpp.

Definition at line 78 of file interactive_marker.cpp.


Member Function Documentation

const std::string& rviz::InteractiveMarker::getName ( void  ) [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.

Definition at line 100 of file interactive_marker.h.

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

Definition at line 546 of file interactive_marker.cpp.

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

Definition at line 500 of file interactive_marker.cpp.

Definition at line 85 of file interactive_marker.cpp.

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

Definition at line 299 of file interactive_marker.cpp.

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

Definition at line 273 of file interactive_marker.cpp.

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

Definition at line 123 of file interactive_marker.cpp.

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

Definition at line 103 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 585 of file interactive_marker.cpp.

Definition at line 402 of file interactive_marker.cpp.

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

Definition at line 412 of file interactive_marker.cpp.

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

Definition at line 94 of file interactive_marker.cpp.

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

Definition at line 471 of file interactive_marker.cpp.

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

Definition at line 428 of file interactive_marker.cpp.

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

Definition at line 459 of file interactive_marker.cpp.

Definition at line 450 of file interactive_marker.cpp.

Definition at line 477 of file interactive_marker.cpp.

Definition at line 484 of file interactive_marker.cpp.

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

Definition at line 465 of file interactive_marker.cpp.

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

Definition at line 367 of file interactive_marker.cpp.

Definition at line 317 of file interactive_marker.cpp.


Member Data Documentation

Definition at line 198 of file interactive_marker.h.

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

Definition at line 199 of file interactive_marker.h.

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

Definition at line 205 of file interactive_marker.h.

Definition at line 161 of file interactive_marker.h.

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

Definition at line 164 of file interactive_marker.h.

Definition at line 201 of file interactive_marker.h.

Definition at line 166 of file interactive_marker.h.

Definition at line 203 of file interactive_marker.h.

Definition at line 146 of file interactive_marker.h.

Definition at line 211 of file interactive_marker.h.

Definition at line 194 of file interactive_marker.h.

Definition at line 192 of file interactive_marker.h.

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

Definition at line 176 of file interactive_marker.h.

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

Definition at line 186 of file interactive_marker.h.

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

Definition at line 207 of file interactive_marker.h.

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

Definition at line 163 of file interactive_marker.h.

Definition at line 167 of file interactive_marker.h.

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

Definition at line 153 of file interactive_marker.h.

Definition at line 140 of file interactive_marker.h.

Definition at line 156 of file interactive_marker.h.

Definition at line 170 of file interactive_marker.h.

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

Definition at line 152 of file interactive_marker.h.

Definition at line 144 of file interactive_marker.h.

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

Definition at line 149 of file interactive_marker.h.

Definition at line 145 of file interactive_marker.h.

Definition at line 172 of file interactive_marker.h.

Definition at line 171 of file interactive_marker.h.

Definition at line 174 of file interactive_marker.h.

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

Definition at line 209 of file interactive_marker.h.

Definition at line 212 of file interactive_marker.h.

Definition at line 157 of file interactive_marker.h.

Definition at line 189 of file interactive_marker.h.

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

Definition at line 204 of file interactive_marker.h.

Definition at line 141 of file interactive_marker.h.


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


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Mon Jan 6 2014 11:54:33