#include <frame_marker.h>
Public Member Functions | |
void | connect (const QObject *receiver, const char *method) |
FrameMarker (const FrameMarker &frame_marker) | |
FrameMarker (Ogre::SceneNode *parent_node, rviz::DisplayContext *context, const std::string &name, const std::string &frame_id, const geometry_msgs::Pose &pose, double scale, const std_msgs::ColorRGBA &color, bool is_selected=false, bool visible_x=true, bool visible_y=true, bool visible_z=true) | |
FrameMarker (Ogre::SceneNode *parent_node, rviz::DisplayContext *context, const std::string &name, const std::string &frame_id, const geometry_msgs::Pose &pose, double scale, const float color[4], bool is_selected=false, bool visible_x=true, bool visible_y=true, bool visible_z=true) | |
const std::string & | getName () |
virtual void | getOrientation (geometry_msgs::Quaternion &orientation) |
virtual void | getPose (Eigen::Affine3d &pose) |
virtual void | getPosition (geometry_msgs::Point &position) |
virtual void | hide (void) |
virtual void | hideDescription () |
bool | isSelected (void) |
bool | isVisible () |
virtual void | select (void) |
virtual void | setAxisVisibility (bool x, bool y, bool z) |
virtual void | setColor (float r, float g, float b, float a) |
virtual void | setMenu (std::vector< visualization_msgs::MenuEntry > entries) |
void | setName (const std::string &name) |
virtual void | setPose (Eigen::Affine3d &pose) |
virtual void | show (Ogre::SceneNode *scene_node, rviz::DisplayContext *context) |
virtual void | showDescription (const std::string &description) |
virtual void | unselect (void) |
virtual void | updateMarker (void) |
virtual | ~FrameMarker () |
Public Attributes | |
boost::shared_ptr < rviz::InteractiveMarker > | imarker |
visualization_msgs::InteractiveMarker | imarker_msg |
Protected Member Functions | |
virtual void | buildFrom (const std::string &name, const std::string &frame_id, const geometry_msgs::Pose &pose, double scale, const std_msgs::ColorRGBA &color) |
virtual void | rebuild () |
Protected Attributes | |
std_msgs::ColorRGBA | color_ |
rviz::DisplayContext * | context_ |
std::vector < visualization_msgs::MenuEntry > | menu_entries_ |
Ogre::Quaternion | orientation_ |
Ogre::SceneNode * | parent_node_ |
Ogre::Vector3 | position_ |
const QObject * | receiver_ |
const char * | receiver_method_ |
bool | selected_ |
bool | visible_x_ |
bool | visible_y_ |
bool | visible_z_ |
Base class for interactive markers displaying a coordinate system A basic coordinate system is composed its three axis and a small sphere at the origin The frame can be selected/unselected. When selected, controls for positioning are displayed
Definition at line 62 of file frame_marker.h.
benchmark_tool::FrameMarker::FrameMarker | ( | const FrameMarker & | frame_marker | ) | [inline] |
Copy constructor
Definition at line 69 of file frame_marker.h.
benchmark_tool::FrameMarker::FrameMarker | ( | Ogre::SceneNode * | parent_node, |
rviz::DisplayContext * | context, | ||
const std::string & | name, | ||
const std::string & | frame_id, | ||
const geometry_msgs::Pose & | pose, | ||
double | scale, | ||
const std_msgs::ColorRGBA & | color, | ||
bool | is_selected = false , |
||
bool | visible_x = true , |
||
bool | visible_y = true , |
||
bool | visible_z = true |
||
) |
Constructor
parent_node | the Ogre node that will hold this interactive marker |
context | the display context |
name | the name for the interactive marker |
frame_id | the frame_id the interactive marker is given relative to |
pose | the desired pose of the coordinate system |
scale | the scale of the coordinate system |
color | the color of the sphere drawn at the origin of the frame |
is_selected | whether this frame marker is selected or not by default. When selected, controls are displayed |
visible_x,visible_y,visible_z | define the visibility of each axis |
Definition at line 54 of file frame_marker.cpp.
benchmark_tool::FrameMarker::FrameMarker | ( | Ogre::SceneNode * | parent_node, |
rviz::DisplayContext * | context, | ||
const std::string & | name, | ||
const std::string & | frame_id, | ||
const geometry_msgs::Pose & | pose, | ||
double | scale, | ||
const float | color[4], | ||
bool | is_selected = false , |
||
bool | visible_x = true , |
||
bool | visible_y = true , |
||
bool | visible_z = true |
||
) |
Definition at line 71 of file frame_marker.cpp.
virtual benchmark_tool::FrameMarker::~FrameMarker | ( | ) | [inline, virtual] |
Definition at line 172 of file frame_marker.h.
void benchmark_tool::FrameMarker::buildFrom | ( | const std::string & | name, |
const std::string & | frame_id, | ||
const geometry_msgs::Pose & | pose, | ||
double | scale, | ||
const std_msgs::ColorRGBA & | color | ||
) | [protected, virtual] |
Reimplemented in benchmark_tool::GripperMarker.
Definition at line 227 of file frame_marker.cpp.
void benchmark_tool::FrameMarker::connect | ( | const QObject * | receiver, |
const char * | method | ||
) | [inline] |
Definition at line 164 of file frame_marker.h.
const std::string& benchmark_tool::FrameMarker::getName | ( | void | ) | [inline] |
Definition at line 144 of file frame_marker.h.
void benchmark_tool::FrameMarker::getOrientation | ( | geometry_msgs::Quaternion & | orientation | ) | [virtual] |
Definition at line 143 of file frame_marker.cpp.
void benchmark_tool::FrameMarker::getPose | ( | Eigen::Affine3d & | pose | ) | [virtual] |
Definition at line 161 of file frame_marker.cpp.
void benchmark_tool::FrameMarker::getPosition | ( | geometry_msgs::Point & | position | ) | [virtual] |
Definition at line 127 of file frame_marker.cpp.
void benchmark_tool::FrameMarker::hide | ( | void | ) | [virtual] |
Definition at line 90 of file frame_marker.cpp.
void benchmark_tool::FrameMarker::hideDescription | ( | ) | [virtual] |
Definition at line 122 of file frame_marker.cpp.
bool benchmark_tool::FrameMarker::isSelected | ( | void | ) | [inline] |
Definition at line 154 of file frame_marker.h.
bool benchmark_tool::FrameMarker::isVisible | ( | ) | [inline] |
Definition at line 159 of file frame_marker.h.
void benchmark_tool::FrameMarker::rebuild | ( | ) | [protected, virtual] |
Definition at line 219 of file frame_marker.cpp.
void benchmark_tool::FrameMarker::select | ( | void | ) | [virtual] |
Definition at line 207 of file frame_marker.cpp.
virtual void benchmark_tool::FrameMarker::setAxisVisibility | ( | bool | x, |
bool | y, | ||
bool | z | ||
) | [inline, virtual] |
Definition at line 120 of file frame_marker.h.
void benchmark_tool::FrameMarker::setColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) | [virtual] |
Definition at line 175 of file frame_marker.cpp.
virtual void benchmark_tool::FrameMarker::setMenu | ( | std::vector< visualization_msgs::MenuEntry > | entries | ) | [inline, virtual] |
Definition at line 138 of file frame_marker.h.
void benchmark_tool::FrameMarker::setName | ( | const std::string & | name | ) | [inline] |
Definition at line 149 of file frame_marker.h.
void benchmark_tool::FrameMarker::setPose | ( | Eigen::Affine3d & | pose | ) | [virtual] |
Definition at line 168 of file frame_marker.cpp.
void benchmark_tool::FrameMarker::show | ( | Ogre::SceneNode * | scene_node, |
rviz::DisplayContext * | context | ||
) | [virtual] |
Definition at line 100 of file frame_marker.cpp.
void benchmark_tool::FrameMarker::showDescription | ( | const std::string & | description | ) | [virtual] |
Definition at line 108 of file frame_marker.cpp.
void benchmark_tool::FrameMarker::unselect | ( | void | ) | [virtual] |
Definition at line 213 of file frame_marker.cpp.
virtual void benchmark_tool::FrameMarker::updateMarker | ( | void | ) | [inline, virtual] |
Definition at line 109 of file frame_marker.h.
std_msgs::ColorRGBA benchmark_tool::FrameMarker::color_ [protected] |
Definition at line 188 of file frame_marker.h.
Definition at line 184 of file frame_marker.h.
boost::shared_ptr<rviz::InteractiveMarker> benchmark_tool::FrameMarker::imarker |
Definition at line 66 of file frame_marker.h.
visualization_msgs::InteractiveMarker benchmark_tool::FrameMarker::imarker_msg |
Definition at line 65 of file frame_marker.h.
std::vector<visualization_msgs::MenuEntry> benchmark_tool::FrameMarker::menu_entries_ [protected] |
Definition at line 181 of file frame_marker.h.
Ogre::Quaternion benchmark_tool::FrameMarker::orientation_ [protected] |
Definition at line 191 of file frame_marker.h.
Ogre::SceneNode* benchmark_tool::FrameMarker::parent_node_ [protected] |
Definition at line 183 of file frame_marker.h.
Ogre::Vector3 benchmark_tool::FrameMarker::position_ [protected] |
Definition at line 190 of file frame_marker.h.
const QObject* benchmark_tool::FrameMarker::receiver_ [protected] |
Definition at line 193 of file frame_marker.h.
const char* benchmark_tool::FrameMarker::receiver_method_ [protected] |
Definition at line 194 of file frame_marker.h.
bool benchmark_tool::FrameMarker::selected_ [protected] |
Definition at line 186 of file frame_marker.h.
bool benchmark_tool::FrameMarker::visible_x_ [protected] |
Definition at line 187 of file frame_marker.h.
bool benchmark_tool::FrameMarker::visible_y_ [protected] |
Definition at line 187 of file frame_marker.h.
bool benchmark_tool::FrameMarker::visible_z_ [protected] |
Definition at line 187 of file frame_marker.h.