#include <frame_marker.h>
Public Types | |
enum | GripperMarkerState { NOT_TESTED, PROCESSING, REACHABLE, NOT_REACHABLE, IN_COLLISION } |
Public Member Functions | |
const robot_interaction::RobotInteraction::EndEffector | getEndEffector () |
const robot_state::RobotState * | getRobotState () |
const GripperMarkerState & | getState () |
GripperMarker (const GripperMarker &gripper_marker) | |
GripperMarker (const robot_state::RobotState &robot_state, Ogre::SceneNode *parent_node, rviz::DisplayContext *context, const std::string &name, const std::string &frame_id, const robot_interaction::RobotInteraction::EndEffector &eef, const geometry_msgs::Pose &pose, double scale, const GripperMarkerState &state, bool is_selected=false, bool visible_x=true, bool visible_y=true, bool visible_z=true) | |
virtual void | select (bool display_gripper_mesh=true) |
void | setEndEffector (const robot_interaction::RobotInteraction::EndEffector &eef) |
void | setRobotState (const robot_state::RobotState &robot_state) |
virtual void | setState (const GripperMarkerState &state) |
virtual void | unselect (bool display_gripper_mesh=false) |
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) |
const float * | stateToColor (const GripperMarkerState &state) |
Protected Attributes | |
bool | display_gripper_mesh_ |
robot_interaction::RobotInteraction::EndEffector | eef_ |
const robot_state::RobotState * | robot_state_ |
GripperMarkerState | state_ |
Static Protected Attributes | |
static const float | GOAL_COLLISION_COLOR [4] = { 1.0, 1.0, 0.0, 1.0} |
static const float | GOAL_NOT_REACHABLE_COLOR [4] = { 1.0, 0.0, 0.0, 1.0} |
static const float | GOAL_NOT_TESTED_COLOR [4] = { 0.75, 0.75, 0.75, 1.0} |
static const float | GOAL_PROCESSING_COLOR [4] = { 0.9, 0.9, 0.9, 1.0} |
static const float | GOAL_REACHABLE_COLOR [4] = { 0.0, 1.0, 0.0, 1.0} |
A special FrameMarker that displays the robot end-effector mesh when selected. It also allows defining different states (rechable, not-reachable, in-collision, not-tested and processing) and will switch the mesh color according to these.
Definition at line 196 of file frame_marker.h.
Definition at line 199 of file frame_marker.h.
benchmark_tool::GripperMarker::GripperMarker | ( | const GripperMarker & | gripper_marker | ) | [inline] |
Copy constructor
Definition at line 205 of file frame_marker.h.
benchmark_tool::GripperMarker::GripperMarker | ( | const robot_state::RobotState & | robot_state, |
Ogre::SceneNode * | parent_node, | ||
rviz::DisplayContext * | context, | ||
const std::string & | name, | ||
const std::string & | frame_id, | ||
const robot_interaction::RobotInteraction::EndEffector & | eef, | ||
const geometry_msgs::Pose & | pose, | ||
double | scale, | ||
const GripperMarkerState & | state, | ||
bool | is_selected = false , |
||
bool | visible_x = true , |
||
bool | visible_y = true , |
||
bool | visible_z = true |
||
) |
Constructor
robot_state | the kinematic state of the robot |
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 |
eef | the robot_interaction end effector description |
pose | the desired pose of the coordinate system |
scale | the scale of the coordinate system |
state | the default state of the GripperMarker |
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 327 of file frame_marker.cpp.
void benchmark_tool::GripperMarker::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 from benchmark_tool::FrameMarker.
Definition at line 350 of file frame_marker.cpp.
const robot_interaction::RobotInteraction::EndEffector benchmark_tool::GripperMarker::getEndEffector | ( | ) | [inline] |
Definition at line 265 of file frame_marker.h.
const robot_state::RobotState* benchmark_tool::GripperMarker::getRobotState | ( | ) | [inline] |
Definition at line 255 of file frame_marker.h.
const GripperMarkerState& benchmark_tool::GripperMarker::getState | ( | ) | [inline] |
Definition at line 245 of file frame_marker.h.
void benchmark_tool::GripperMarker::select | ( | bool | display_gripper_mesh = true | ) | [virtual] |
Definition at line 338 of file frame_marker.cpp.
void benchmark_tool::GripperMarker::setEndEffector | ( | const robot_interaction::RobotInteraction::EndEffector & | eef | ) | [inline] |
Definition at line 260 of file frame_marker.h.
void benchmark_tool::GripperMarker::setRobotState | ( | const robot_state::RobotState & | robot_state | ) | [inline] |
Definition at line 250 of file frame_marker.h.
virtual void benchmark_tool::GripperMarker::setState | ( | const GripperMarkerState & | state | ) | [inline, virtual] |
Definition at line 235 of file frame_marker.h.
const float * benchmark_tool::GripperMarker::stateToColor | ( | const GripperMarkerState & | state | ) | [protected] |
Definition at line 472 of file frame_marker.cpp.
void benchmark_tool::GripperMarker::unselect | ( | bool | display_gripper_mesh = false | ) | [virtual] |
Definition at line 344 of file frame_marker.cpp.
bool benchmark_tool::GripperMarker::display_gripper_mesh_ [protected] |
Definition at line 284 of file frame_marker.h.
Definition at line 282 of file frame_marker.h.
const float benchmark_tool::GripperMarker::GOAL_COLLISION_COLOR = { 1.0, 1.0, 0.0, 1.0} [static, protected] |
Definition at line 275 of file frame_marker.h.
const float benchmark_tool::GripperMarker::GOAL_NOT_REACHABLE_COLOR = { 1.0, 0.0, 0.0, 1.0} [static, protected] |
Definition at line 273 of file frame_marker.h.
const float benchmark_tool::GripperMarker::GOAL_NOT_TESTED_COLOR = { 0.75, 0.75, 0.75, 1.0} [static, protected] |
Definition at line 271 of file frame_marker.h.
const float benchmark_tool::GripperMarker::GOAL_PROCESSING_COLOR = { 0.9, 0.9, 0.9, 1.0} [static, protected] |
Definition at line 272 of file frame_marker.h.
const float benchmark_tool::GripperMarker::GOAL_REACHABLE_COLOR = { 0.0, 1.0, 0.0, 1.0} [static, protected] |
Definition at line 274 of file frame_marker.h.
const robot_state::RobotState* benchmark_tool::GripperMarker::robot_state_ [protected] |
Definition at line 281 of file frame_marker.h.
Definition at line 285 of file frame_marker.h.