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 <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "object_manipulation_msgs/Grasp.h"
00014
00015 namespace object_manipulation_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct GraspHandPostureExecutionGoal_ : public ros::Message
00019 {
00020 typedef GraspHandPostureExecutionGoal_<ContainerAllocator> Type;
00021
00022 GraspHandPostureExecutionGoal_()
00023 : grasp()
00024 , goal(0)
00025 {
00026 }
00027
00028 GraspHandPostureExecutionGoal_(const ContainerAllocator& _alloc)
00029 : grasp(_alloc)
00030 , goal(0)
00031 {
00032 }
00033
00034 typedef ::object_manipulation_msgs::Grasp_<ContainerAllocator> _grasp_type;
00035 ::object_manipulation_msgs::Grasp_<ContainerAllocator> grasp;
00036
00037 typedef int32_t _goal_type;
00038 int32_t goal;
00039
00040 enum { PRE_GRASP = 1 };
00041 enum { GRASP = 2 };
00042 enum { RELEASE = 3 };
00043
00044 private:
00045 static const char* __s_getDataType_() { return "object_manipulation_msgs/GraspHandPostureExecutionGoal"; }
00046 public:
00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00048
00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00050
00051 private:
00052 static const char* __s_getMD5Sum_() { return "f3fac748dba3210f45147d583f26a85c"; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00055
00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00057
00058 private:
00059 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00060 # an action for requesting the finger posture part of grasp be physically carried out by a hand\n\
00061 # the name of the arm being used is not in here, as this will be sent to a specific action server\n\
00062 # for each arm\n\
00063 \n\
00064 # the grasp to be executed\n\
00065 Grasp grasp\n\
00066 \n\
00067 # the goal of this action\n\
00068 # requests that the hand be set in the pre-grasp posture\n\
00069 int32 PRE_GRASP=1\n\
00070 # requests that the hand execute the actual grasp\n\
00071 int32 GRASP=2\n\
00072 # requests that the hand open to release the object\n\
00073 int32 RELEASE=3\n\
00074 int32 goal\n\
00075 \n\
00076 \n\
00077 ================================================================================\n\
00078 MSG: object_manipulation_msgs/Grasp\n\
00079 \n\
00080 # The internal posture of the hand for the pre-grasp\n\
00081 # only positions are used\n\
00082 sensor_msgs/JointState pre_grasp_posture\n\
00083 \n\
00084 # The internal posture of the hand for the grasp\n\
00085 # positions and efforts are used\n\
00086 sensor_msgs/JointState grasp_posture\n\
00087 \n\
00088 # The position of the end-effector for the grasp relative to the object\n\
00089 geometry_msgs/Pose grasp_pose\n\
00090 \n\
00091 # The estimated probability of success for this grasp\n\
00092 float64 success_probability\n\
00093 \n\
00094 # Debug flag to indicate that this grasp would be the best in its cluster\n\
00095 bool cluster_rep\n\
00096 ================================================================================\n\
00097 MSG: sensor_msgs/JointState\n\
00098 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\
00099 #\n\
00100 # The state of each joint (revolute or prismatic) is defined by:\n\
00101 # * the position of the joint (rad or m),\n\
00102 # * the velocity of the joint (rad/s or m/s) and \n\
00103 # * the effort that is applied in the joint (Nm or N).\n\
00104 #\n\
00105 # Each joint is uniquely identified by its name\n\
00106 # The header specifies the time at which the joint states were recorded. All the joint states\n\
00107 # in one message have to be recorded at the same time.\n\
00108 #\n\
00109 # This message consists of a multiple arrays, one for each part of the joint state. \n\
00110 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
00111 # effort associated with them, you can leave the effort array empty. \n\
00112 #\n\
00113 # All arrays in this message should have the same size, or be empty.\n\
00114 # This is the only way to uniquely associate the joint name with the correct\n\
00115 # states.\n\
00116 \n\
00117 \n\
00118 Header header\n\
00119 \n\
00120 string[] name\n\
00121 float64[] position\n\
00122 float64[] velocity\n\
00123 float64[] effort\n\
00124 \n\
00125 ================================================================================\n\
00126 MSG: std_msgs/Header\n\
00127 # Standard metadata for higher-level stamped data types.\n\
00128 # This is generally used to communicate timestamped data \n\
00129 # in a particular coordinate frame.\n\
00130 # \n\
00131 # sequence ID: consecutively increasing ID \n\
00132 uint32 seq\n\
00133 #Two-integer timestamp that is expressed as:\n\
00134 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00135 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00136 # time-handling sugar is provided by the client library\n\
00137 time stamp\n\
00138 #Frame this data is associated with\n\
00139 # 0: no frame\n\
00140 # 1: global frame\n\
00141 string frame_id\n\
00142 \n\
00143 ================================================================================\n\
00144 MSG: geometry_msgs/Pose\n\
00145 # A representation of pose in free space, composed of postion and orientation. \n\
00146 Point position\n\
00147 Quaternion orientation\n\
00148 \n\
00149 ================================================================================\n\
00150 MSG: geometry_msgs/Point\n\
00151 # This contains the position of a point in free space\n\
00152 float64 x\n\
00153 float64 y\n\
00154 float64 z\n\
00155 \n\
00156 ================================================================================\n\
00157 MSG: geometry_msgs/Quaternion\n\
00158 # This represents an orientation in free space in quaternion form.\n\
00159 \n\
00160 float64 x\n\
00161 float64 y\n\
00162 float64 z\n\
00163 float64 w\n\
00164 \n\
00165 "; }
00166 public:
00167 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00168
00169 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00170
00171 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00172 {
00173 ros::serialization::OStream stream(write_ptr, 1000000000);
00174 ros::serialization::serialize(stream, grasp);
00175 ros::serialization::serialize(stream, goal);
00176 return stream.getData();
00177 }
00178
00179 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00180 {
00181 ros::serialization::IStream stream(read_ptr, 1000000000);
00182 ros::serialization::deserialize(stream, grasp);
00183 ros::serialization::deserialize(stream, goal);
00184 return stream.getData();
00185 }
00186
00187 ROS_DEPRECATED virtual uint32_t serializationLength() const
00188 {
00189 uint32_t size = 0;
00190 size += ros::serialization::serializationLength(grasp);
00191 size += ros::serialization::serializationLength(goal);
00192 return size;
00193 }
00194
00195 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> > Ptr;
00196 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> const> ConstPtr;
00197 };
00198 typedef ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<std::allocator<void> > GraspHandPostureExecutionGoal;
00199
00200 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionGoal> GraspHandPostureExecutionGoalPtr;
00201 typedef boost::shared_ptr< ::object_manipulation_msgs::GraspHandPostureExecutionGoal const> GraspHandPostureExecutionGoalConstPtr;
00202
00203
00204 template<typename ContainerAllocator>
00205 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> & v)
00206 {
00207 ros::message_operations::Printer< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> >::stream(s, "", v);
00208 return s;}
00209
00210 }
00211
00212 namespace ros
00213 {
00214 namespace message_traits
00215 {
00216 template<class ContainerAllocator>
00217 struct MD5Sum< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> > {
00218 static const char* value()
00219 {
00220 return "f3fac748dba3210f45147d583f26a85c";
00221 }
00222
00223 static const char* value(const ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> &) { return value(); }
00224 static const uint64_t static_value1 = 0xf3fac748dba3210fULL;
00225 static const uint64_t static_value2 = 0x45147d583f26a85cULL;
00226 };
00227
00228 template<class ContainerAllocator>
00229 struct DataType< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> > {
00230 static const char* value()
00231 {
00232 return "object_manipulation_msgs/GraspHandPostureExecutionGoal";
00233 }
00234
00235 static const char* value(const ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> &) { return value(); }
00236 };
00237
00238 template<class ContainerAllocator>
00239 struct Definition< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> > {
00240 static const char* value()
00241 {
00242 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00243 # an action for requesting the finger posture part of grasp be physically carried out by a hand\n\
00244 # the name of the arm being used is not in here, as this will be sent to a specific action server\n\
00245 # for each arm\n\
00246 \n\
00247 # the grasp to be executed\n\
00248 Grasp grasp\n\
00249 \n\
00250 # the goal of this action\n\
00251 # requests that the hand be set in the pre-grasp posture\n\
00252 int32 PRE_GRASP=1\n\
00253 # requests that the hand execute the actual grasp\n\
00254 int32 GRASP=2\n\
00255 # requests that the hand open to release the object\n\
00256 int32 RELEASE=3\n\
00257 int32 goal\n\
00258 \n\
00259 \n\
00260 ================================================================================\n\
00261 MSG: object_manipulation_msgs/Grasp\n\
00262 \n\
00263 # The internal posture of the hand for the pre-grasp\n\
00264 # only positions are used\n\
00265 sensor_msgs/JointState pre_grasp_posture\n\
00266 \n\
00267 # The internal posture of the hand for the grasp\n\
00268 # positions and efforts are used\n\
00269 sensor_msgs/JointState grasp_posture\n\
00270 \n\
00271 # The position of the end-effector for the grasp relative to the object\n\
00272 geometry_msgs/Pose grasp_pose\n\
00273 \n\
00274 # The estimated probability of success for this grasp\n\
00275 float64 success_probability\n\
00276 \n\
00277 # Debug flag to indicate that this grasp would be the best in its cluster\n\
00278 bool cluster_rep\n\
00279 ================================================================================\n\
00280 MSG: sensor_msgs/JointState\n\
00281 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\
00282 #\n\
00283 # The state of each joint (revolute or prismatic) is defined by:\n\
00284 # * the position of the joint (rad or m),\n\
00285 # * the velocity of the joint (rad/s or m/s) and \n\
00286 # * the effort that is applied in the joint (Nm or N).\n\
00287 #\n\
00288 # Each joint is uniquely identified by its name\n\
00289 # The header specifies the time at which the joint states were recorded. All the joint states\n\
00290 # in one message have to be recorded at the same time.\n\
00291 #\n\
00292 # This message consists of a multiple arrays, one for each part of the joint state. \n\
00293 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
00294 # effort associated with them, you can leave the effort array empty. \n\
00295 #\n\
00296 # All arrays in this message should have the same size, or be empty.\n\
00297 # This is the only way to uniquely associate the joint name with the correct\n\
00298 # states.\n\
00299 \n\
00300 \n\
00301 Header header\n\
00302 \n\
00303 string[] name\n\
00304 float64[] position\n\
00305 float64[] velocity\n\
00306 float64[] effort\n\
00307 \n\
00308 ================================================================================\n\
00309 MSG: std_msgs/Header\n\
00310 # Standard metadata for higher-level stamped data types.\n\
00311 # This is generally used to communicate timestamped data \n\
00312 # in a particular coordinate frame.\n\
00313 # \n\
00314 # sequence ID: consecutively increasing ID \n\
00315 uint32 seq\n\
00316 #Two-integer timestamp that is expressed as:\n\
00317 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00318 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00319 # time-handling sugar is provided by the client library\n\
00320 time stamp\n\
00321 #Frame this data is associated with\n\
00322 # 0: no frame\n\
00323 # 1: global frame\n\
00324 string frame_id\n\
00325 \n\
00326 ================================================================================\n\
00327 MSG: geometry_msgs/Pose\n\
00328 # A representation of pose in free space, composed of postion and orientation. \n\
00329 Point position\n\
00330 Quaternion orientation\n\
00331 \n\
00332 ================================================================================\n\
00333 MSG: geometry_msgs/Point\n\
00334 # This contains the position of a point in free space\n\
00335 float64 x\n\
00336 float64 y\n\
00337 float64 z\n\
00338 \n\
00339 ================================================================================\n\
00340 MSG: geometry_msgs/Quaternion\n\
00341 # This represents an orientation in free space in quaternion form.\n\
00342 \n\
00343 float64 x\n\
00344 float64 y\n\
00345 float64 z\n\
00346 float64 w\n\
00347 \n\
00348 ";
00349 }
00350
00351 static const char* value(const ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> &) { return value(); }
00352 };
00353
00354 }
00355 }
00356
00357 namespace ros
00358 {
00359 namespace serialization
00360 {
00361
00362 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> >
00363 {
00364 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00365 {
00366 stream.next(m.grasp);
00367 stream.next(m.goal);
00368 }
00369
00370 ROS_DECLARE_ALLINONE_SERIALIZER;
00371 };
00372 }
00373 }
00374
00375 namespace ros
00376 {
00377 namespace message_operations
00378 {
00379
00380 template<class ContainerAllocator>
00381 struct Printer< ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> >
00382 {
00383 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::GraspHandPostureExecutionGoal_<ContainerAllocator> & v)
00384 {
00385 s << indent << "grasp: ";
00386 s << std::endl;
00387 Printer< ::object_manipulation_msgs::Grasp_<ContainerAllocator> >::stream(s, indent + " ", v.grasp);
00388 s << indent << "goal: ";
00389 Printer<int32_t>::stream(s, indent + " ", v.goal);
00390 }
00391 };
00392
00393
00394 }
00395 }
00396
00397 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_GRASPHANDPOSTUREEXECUTIONGOAL_H
00398