rapid
A ROS robotics library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
pr2_gripper.h
Go to the documentation of this file.
1 #ifndef _RAPID_VIZ_PR2_GRIPPER_H_
2 #define _RAPID_VIZ_PR2_GRIPPER_H_
3 
4 #include <math.h>
5 #include <string>
6 
7 #include "geometry_msgs/PoseStamped.h"
8 #include "interactive_markers/interactive_marker_server.h"
9 #include "std_msgs/ColorRGBA.h"
10 #include "visualization_msgs/InteractiveMarker.h"
11 
12 namespace rapid {
13 namespace viz {
14 static const char* PR2_GRIPPER_PALM_URI =
15  "package://pr2_description/meshes/gripper_v0/gripper_palm.dae";
16 static const char* PR2_GRIPPER_FINGER_URI =
17  "package://pr2_description/meshes/gripper_v0/l_finger.dae";
18 static const char* PR2_GRIPPER_FINGERTIP_URI =
19  "package://pr2_description/meshes/gripper_v0/l_finger_tip.dae";
20 static const double PR2_GRIPPER_MAX_RADIANS = 28.0 * M_PI / 180.0;
21 
22 // Create an interactive marker representing a PR2 gripper.
23 // openness is between 0 and 1, with 1 being as open as possible.
24 // Leave color as all zeros to use the PR2 mesh color, otherwise it will be
25 // colored as given.
26 visualization_msgs::InteractiveMarker Pr2GripperMarker(
27  const std::string& name, const geometry_msgs::PoseStamped& ps,
28  double openness);
29 visualization_msgs::InteractiveMarker Pr2GripperMarker(
30  const std::string& name, const geometry_msgs::PoseStamped& ps,
31  double openness, std_msgs::ColorRGBA& color);
32 } // namespace viz
33 } // namespace rapid
34 
35 #endif // _RAPID_VIZ_PR2_GRIPPER_H_
static const char * PR2_GRIPPER_FINGERTIP_URI
Definition: pr2_gripper.h:18
static const char * PR2_GRIPPER_FINGER_URI
Definition: pr2_gripper.h:16
static const char * PR2_GRIPPER_PALM_URI
Definition: pr2_gripper.h:14
visualization_msgs::InteractiveMarker Pr2GripperMarker(const std::string &name, const geometry_msgs::PoseStamped &ps, double openness)
static const double PR2_GRIPPER_MAX_RADIANS
Definition: pr2_gripper.h:20