Go to the documentation of this file.00001
00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPHANDPOSTUREEXECUTIONGOAL_H
00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPHANDPOSTUREEXECUTIONGOAL_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "manipulation_msgs/Grasp.h"
00018
00019 namespace object_manipulation_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct GraspHandPostureExecutionGoal_ {
00023 typedef GraspHandPostureExecutionGoal_<ContainerAllocator> Type;
00024
00025 GraspHandPostureExecutionGoal_()
00026 : grasp()
00027 , goal(0)
00028 , max_contact_force(0.0)
00029 {
00030 }
00031
00032 GraspHandPostureExecutionGoal_(const ContainerAllocator& _alloc)
00033 : grasp(_alloc)
00034 , goal(0)
00035 , max_contact_force(0.0)
00036 {
00037 }
00038
00039 typedef ::manipulation_msgs::Grasp_<ContainerAllocator> _grasp_type;
00040 ::manipulation_msgs::Grasp_<ContainerAllocator> grasp;
00041
00042 typedef int32_t _goal_type;
00043 int32_t goal;
00044
00045 typedef float _max_contact_force_type;
00046 float max_contact_force;
00047
00048 enum { PRE_GRASP = 1 };
00049 enum { GRASP = 2 };
00050 enum { RELEASE = 3 };
00051
00052 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> > Ptr;
00053 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> const> ConstPtr;
00054 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00055 };
00056 typedef ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<std::allocator<void> > GraspHandPostureExecutionGoal;
00057
00058 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionGoal> GraspHandPostureExecutionGoalPtr;
00059 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionGoal const> GraspHandPostureExecutionGoalConstPtr;
00060
00061
00062 template<typename ContainerAllocator>
00063 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> & v)
00064 {
00065 ros::message_operations::Printer< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> >::stream(s, "", v);
00066 return s;}
00067
00068 }
00069
00070 namespace ros
00071 {
00072 namespace message_traits
00073 {
00074 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> > : public TrueType {};
00075 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> const> : public TrueType {};
00076 template<class ContainerAllocator>
00077 struct MD5Sum< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> > {
00078 static const char* value()
00079 {
00080 return "d84b52613849c9277c855c36241b2a5d";
00081 }
00082
00083 static const char* value(const ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> &) { return value(); }
00084 static const uint64_t static_value1 = 0xd84b52613849c927ULL;
00085 static const uint64_t static_value2 = 0x7c855c36241b2a5dULL;
00086 };
00087
00088 template<class ContainerAllocator>
00089 struct DataType< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> > {
00090 static const char* value()
00091 {
00092 return "object_manipulation_msgs/GraspHandPostureExecutionGoal";
00093 }
00094
00095 static const char* value(const ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> &) { return value(); }
00096 };
00097
00098 template<class ContainerAllocator>
00099 struct Definition< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> > {
00100 static const char* value()
00101 {
00102 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00103 # an action for requesting the finger posture part of grasp be physically carried out by a hand\n\
00104 # the name of the arm being used is not in here, as this will be sent to a specific action server\n\
00105 # for each arm\n\
00106 \n\
00107 # the grasp to be executed\n\
00108 manipulation_msgs/Grasp grasp\n\
00109 \n\
00110 # the goal of this action\n\
00111 # requests that the hand be set in the pre-grasp posture\n\
00112 int32 PRE_GRASP=1\n\
00113 # requests that the hand execute the actual grasp\n\
00114 int32 GRASP=2\n\
00115 # requests that the hand open to release the object\n\
00116 int32 RELEASE=3\n\
00117 int32 goal\n\
00118 \n\
00119 # the max contact force to use (<=0 if no desired max)\n\
00120 float32 max_contact_force\n\
00121 \n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: manipulation_msgs/Grasp\n\
00125 # A name for this grasp\n\
00126 string id\n\
00127 \n\
00128 # The internal posture of the hand for the pre-grasp\n\
00129 # only positions are used\n\
00130 sensor_msgs/JointState pre_grasp_posture\n\
00131 \n\
00132 # The internal posture of the hand for the grasp\n\
00133 # positions and efforts are used\n\
00134 sensor_msgs/JointState grasp_posture\n\
00135 \n\
00136 # The position of the end-effector for the grasp relative to a reference frame \n\
00137 # (that is always specified elsewhere, not in this message)\n\
00138 geometry_msgs/PoseStamped grasp_pose\n\
00139 \n\
00140 # The estimated probability of success for this grasp, or some other\n\
00141 # measure of how \"good\" it is.\n\
00142 float64 grasp_quality\n\
00143 \n\
00144 # The approach motion\n\
00145 GripperTranslation approach\n\
00146 \n\
00147 # The retreat motion\n\
00148 GripperTranslation retreat\n\
00149 \n\
00150 # the maximum contact force to use while grasping (<=0 to disable)\n\
00151 float32 max_contact_force\n\
00152 \n\
00153 # an optional list of obstacles that we have semantic information about\n\
00154 # and that can be touched/pushed/moved in the course of grasping\n\
00155 string[] allowed_touch_objects\n\
00156 \n\
00157 ================================================================================\n\
00158 MSG: sensor_msgs/JointState\n\
00159 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\
00160 #\n\
00161 # The state of each joint (revolute or prismatic) is defined by:\n\
00162 # * the position of the joint (rad or m),\n\
00163 # * the velocity of the joint (rad/s or m/s) and \n\
00164 # * the effort that is applied in the joint (Nm or N).\n\
00165 #\n\
00166 # Each joint is uniquely identified by its name\n\
00167 # The header specifies the time at which the joint states were recorded. All the joint states\n\
00168 # in one message have to be recorded at the same time.\n\
00169 #\n\
00170 # This message consists of a multiple arrays, one for each part of the joint state. \n\
00171 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
00172 # effort associated with them, you can leave the effort array empty. \n\
00173 #\n\
00174 # All arrays in this message should have the same size, or be empty.\n\
00175 # This is the only way to uniquely associate the joint name with the correct\n\
00176 # states.\n\
00177 \n\
00178 \n\
00179 Header header\n\
00180 \n\
00181 string[] name\n\
00182 float64[] position\n\
00183 float64[] velocity\n\
00184 float64[] effort\n\
00185 \n\
00186 ================================================================================\n\
00187 MSG: std_msgs/Header\n\
00188 # Standard metadata for higher-level stamped data types.\n\
00189 # This is generally used to communicate timestamped data \n\
00190 # in a particular coordinate frame.\n\
00191 # \n\
00192 # sequence ID: consecutively increasing ID \n\
00193 uint32 seq\n\
00194 #Two-integer timestamp that is expressed as:\n\
00195 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00196 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00197 # time-handling sugar is provided by the client library\n\
00198 time stamp\n\
00199 #Frame this data is associated with\n\
00200 # 0: no frame\n\
00201 # 1: global frame\n\
00202 string frame_id\n\
00203 \n\
00204 ================================================================================\n\
00205 MSG: geometry_msgs/PoseStamped\n\
00206 # A Pose with reference coordinate frame and timestamp\n\
00207 Header header\n\
00208 Pose pose\n\
00209 \n\
00210 ================================================================================\n\
00211 MSG: geometry_msgs/Pose\n\
00212 # A representation of pose in free space, composed of postion and orientation. \n\
00213 Point position\n\
00214 Quaternion orientation\n\
00215 \n\
00216 ================================================================================\n\
00217 MSG: geometry_msgs/Point\n\
00218 # This contains the position of a point in free space\n\
00219 float64 x\n\
00220 float64 y\n\
00221 float64 z\n\
00222 \n\
00223 ================================================================================\n\
00224 MSG: geometry_msgs/Quaternion\n\
00225 # This represents an orientation in free space in quaternion form.\n\
00226 \n\
00227 float64 x\n\
00228 float64 y\n\
00229 float64 z\n\
00230 float64 w\n\
00231 \n\
00232 ================================================================================\n\
00233 MSG: manipulation_msgs/GripperTranslation\n\
00234 # defines a translation for the gripper, used in pickup or place tasks\n\
00235 # for example for lifting an object off a table or approaching the table for placing\n\
00236 \n\
00237 # the direction of the translation\n\
00238 geometry_msgs/Vector3Stamped direction\n\
00239 \n\
00240 # the desired translation distance\n\
00241 float32 desired_distance\n\
00242 \n\
00243 # the min distance that must be considered feasible before the\n\
00244 # grasp is even attempted\n\
00245 float32 min_distance\n\
00246 \n\
00247 ================================================================================\n\
00248 MSG: geometry_msgs/Vector3Stamped\n\
00249 # This represents a Vector3 with reference coordinate frame and timestamp\n\
00250 Header header\n\
00251 Vector3 vector\n\
00252 \n\
00253 ================================================================================\n\
00254 MSG: geometry_msgs/Vector3\n\
00255 # This represents a vector in free space. \n\
00256 \n\
00257 float64 x\n\
00258 float64 y\n\
00259 float64 z\n\
00260 ";
00261 }
00262
00263 static const char* value(const ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> &) { return value(); }
00264 };
00265
00266 }
00267 }
00268
00269 namespace ros
00270 {
00271 namespace serialization
00272 {
00273
00274 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> >
00275 {
00276 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00277 {
00278 stream.next(m.grasp);
00279 stream.next(m.goal);
00280 stream.next(m.max_contact_force);
00281 }
00282
00283 ROS_DECLARE_ALLINONE_SERIALIZER;
00284 };
00285 }
00286 }
00287
00288 namespace ros
00289 {
00290 namespace message_operations
00291 {
00292
00293 template<class ContainerAllocator>
00294 struct Printer< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> >
00295 {
00296 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> & v)
00297 {
00298 s << indent << "grasp: ";
00299 s << std::endl;
00300 Printer< ::manipulation_msgs::Grasp_<ContainerAllocator> >::stream(s, indent + " ", v.grasp);
00301 s << indent << "goal: ";
00302 Printer<int32_t>::stream(s, indent + " ", v.goal);
00303 s << indent << "max_contact_force: ";
00304 Printer<float>::stream(s, indent + " ", v.max_contact_force);
00305 }
00306 };
00307
00308
00309 }
00310 }
00311
00312 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPHANDPOSTUREEXECUTIONGOAL_H
00313