00001
00002 #ifndef COGMAN_MSGS_MESSAGE_ARMHANDACTIONGOAL_H
00003 #define COGMAN_MSGS_MESSAGE_ARMHANDACTIONGOAL_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 "std_msgs/Header.h"
00014 #include "actionlib_msgs/GoalID.h"
00015 #include "cogman_msgs/ArmHandGoal.h"
00016
00017 namespace cogman_msgs
00018 {
00019 template <class ContainerAllocator>
00020 struct ArmHandActionGoal_ : public ros::Message
00021 {
00022 typedef ArmHandActionGoal_<ContainerAllocator> Type;
00023
00024 ArmHandActionGoal_()
00025 : header()
00026 , goal_id()
00027 , goal()
00028 {
00029 }
00030
00031 ArmHandActionGoal_(const ContainerAllocator& _alloc)
00032 : header(_alloc)
00033 , goal_id(_alloc)
00034 , goal(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef ::actionlib_msgs::GoalID_<ContainerAllocator> _goal_id_type;
00042 ::actionlib_msgs::GoalID_<ContainerAllocator> goal_id;
00043
00044 typedef ::cogman_msgs::ArmHandGoal_<ContainerAllocator> _goal_type;
00045 ::cogman_msgs::ArmHandGoal_<ContainerAllocator> goal;
00046
00047
00048 private:
00049 static const char* __s_getDataType_() { return "cogman_msgs/ArmHandActionGoal"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00052
00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00054
00055 private:
00056 static const char* __s_getMD5Sum_() { return "67892e60a5b18d39d45d5d9aff6688ae"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00059
00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00061
00062 private:
00063 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00064 \n\
00065 Header header\n\
00066 actionlib_msgs/GoalID goal_id\n\
00067 ArmHandGoal goal\n\
00068 \n\
00069 ================================================================================\n\
00070 MSG: std_msgs/Header\n\
00071 # Standard metadata for higher-level stamped data types.\n\
00072 # This is generally used to communicate timestamped data \n\
00073 # in a particular coordinate frame.\n\
00074 # \n\
00075 # sequence ID: consecutively increasing ID \n\
00076 uint32 seq\n\
00077 #Two-integer timestamp that is expressed as:\n\
00078 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00079 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00080 # time-handling sugar is provided by the client library\n\
00081 time stamp\n\
00082 #Frame this data is associated with\n\
00083 # 0: no frame\n\
00084 # 1: global frame\n\
00085 string frame_id\n\
00086 \n\
00087 ================================================================================\n\
00088 MSG: actionlib_msgs/GoalID\n\
00089 # The stamp should store the time at which this goal was requested.\n\
00090 # It is used by an action server when it tries to preempt all\n\
00091 # goals that were requested before a certain time\n\
00092 time stamp\n\
00093 \n\
00094 # The id provides a way to associate feedback and\n\
00095 # result message with specific goal requests. The id\n\
00096 # specified must be unique.\n\
00097 string id\n\
00098 \n\
00099 \n\
00100 ================================================================================\n\
00101 MSG: cogman_msgs/ArmHandGoal\n\
00102 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00103 string command # 'arm_cart_loid', 'arm_cart_pose', 'arm_cart_name', 'arm_joints', 'arm_joint_name', 'reach_primitive', 'hand_primitive', 'lift', 'put_down'\n\
00104 string pose_name # When moving to pre-defined poses, cointains the name\n\
00105 float32[] joint_angles # If command is 'arm_joints', the joint angles\n\
00106 geometry_msgs/Pose end_effector_pose # command=arm_cart_pose: where the arm should go\n\
00107 uint64 end_effector_loid # one lo_id where the arm should go\n\
00108 string hand_primitive # Allowed strings: open open_thumb90 3pinch 2pinch cup_top peace handshake noop. Used when command is 'finger_primitive'\n\
00109 string object_type # If command is 'reach_primitive', it will define how to grasp (orientation ...)\n\
00110 uint64[] obstacle_ids # List of lo_id's corresponding to obstacles\n\
00111 float32 distance # For reach_primitive: distance from grasp point to approach point (m). For 'lift', distance to lift up (m)\n\
00112 float32 supporting_plane # Height of the table (m)\n\
00113 \n\
00114 ================================================================================\n\
00115 MSG: geometry_msgs/Pose\n\
00116 # A representation of pose in free space, composed of postion and orientation. \n\
00117 Point position\n\
00118 Quaternion orientation\n\
00119 \n\
00120 ================================================================================\n\
00121 MSG: geometry_msgs/Point\n\
00122 # This contains the position of a point in free space\n\
00123 float64 x\n\
00124 float64 y\n\
00125 float64 z\n\
00126 \n\
00127 ================================================================================\n\
00128 MSG: geometry_msgs/Quaternion\n\
00129 # This represents an orientation in free space in quaternion form.\n\
00130 \n\
00131 float64 x\n\
00132 float64 y\n\
00133 float64 z\n\
00134 float64 w\n\
00135 \n\
00136 "; }
00137 public:
00138 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00139
00140 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00141
00142 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00143 {
00144 ros::serialization::OStream stream(write_ptr, 1000000000);
00145 ros::serialization::serialize(stream, header);
00146 ros::serialization::serialize(stream, goal_id);
00147 ros::serialization::serialize(stream, goal);
00148 return stream.getData();
00149 }
00150
00151 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00152 {
00153 ros::serialization::IStream stream(read_ptr, 1000000000);
00154 ros::serialization::deserialize(stream, header);
00155 ros::serialization::deserialize(stream, goal_id);
00156 ros::serialization::deserialize(stream, goal);
00157 return stream.getData();
00158 }
00159
00160 ROS_DEPRECATED virtual uint32_t serializationLength() const
00161 {
00162 uint32_t size = 0;
00163 size += ros::serialization::serializationLength(header);
00164 size += ros::serialization::serializationLength(goal_id);
00165 size += ros::serialization::serializationLength(goal);
00166 return size;
00167 }
00168
00169 typedef boost::shared_ptr< ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> > Ptr;
00170 typedef boost::shared_ptr< ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> const> ConstPtr;
00171 };
00172 typedef ::cogman_msgs::ArmHandActionGoal_<std::allocator<void> > ArmHandActionGoal;
00173
00174 typedef boost::shared_ptr< ::cogman_msgs::ArmHandActionGoal> ArmHandActionGoalPtr;
00175 typedef boost::shared_ptr< ::cogman_msgs::ArmHandActionGoal const> ArmHandActionGoalConstPtr;
00176
00177
00178 template<typename ContainerAllocator>
00179 std::ostream& operator<<(std::ostream& s, const ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> & v)
00180 {
00181 ros::message_operations::Printer< ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> >::stream(s, "", v);
00182 return s;}
00183
00184 }
00185
00186 namespace ros
00187 {
00188 namespace message_traits
00189 {
00190 template<class ContainerAllocator>
00191 struct MD5Sum< ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> > {
00192 static const char* value()
00193 {
00194 return "67892e60a5b18d39d45d5d9aff6688ae";
00195 }
00196
00197 static const char* value(const ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> &) { return value(); }
00198 static const uint64_t static_value1 = 0x67892e60a5b18d39ULL;
00199 static const uint64_t static_value2 = 0xd45d5d9aff6688aeULL;
00200 };
00201
00202 template<class ContainerAllocator>
00203 struct DataType< ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> > {
00204 static const char* value()
00205 {
00206 return "cogman_msgs/ArmHandActionGoal";
00207 }
00208
00209 static const char* value(const ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> &) { return value(); }
00210 };
00211
00212 template<class ContainerAllocator>
00213 struct Definition< ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> > {
00214 static const char* value()
00215 {
00216 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00217 \n\
00218 Header header\n\
00219 actionlib_msgs/GoalID goal_id\n\
00220 ArmHandGoal goal\n\
00221 \n\
00222 ================================================================================\n\
00223 MSG: std_msgs/Header\n\
00224 # Standard metadata for higher-level stamped data types.\n\
00225 # This is generally used to communicate timestamped data \n\
00226 # in a particular coordinate frame.\n\
00227 # \n\
00228 # sequence ID: consecutively increasing ID \n\
00229 uint32 seq\n\
00230 #Two-integer timestamp that is expressed as:\n\
00231 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00232 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00233 # time-handling sugar is provided by the client library\n\
00234 time stamp\n\
00235 #Frame this data is associated with\n\
00236 # 0: no frame\n\
00237 # 1: global frame\n\
00238 string frame_id\n\
00239 \n\
00240 ================================================================================\n\
00241 MSG: actionlib_msgs/GoalID\n\
00242 # The stamp should store the time at which this goal was requested.\n\
00243 # It is used by an action server when it tries to preempt all\n\
00244 # goals that were requested before a certain time\n\
00245 time stamp\n\
00246 \n\
00247 # The id provides a way to associate feedback and\n\
00248 # result message with specific goal requests. The id\n\
00249 # specified must be unique.\n\
00250 string id\n\
00251 \n\
00252 \n\
00253 ================================================================================\n\
00254 MSG: cogman_msgs/ArmHandGoal\n\
00255 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00256 string command # 'arm_cart_loid', 'arm_cart_pose', 'arm_cart_name', 'arm_joints', 'arm_joint_name', 'reach_primitive', 'hand_primitive', 'lift', 'put_down'\n\
00257 string pose_name # When moving to pre-defined poses, cointains the name\n\
00258 float32[] joint_angles # If command is 'arm_joints', the joint angles\n\
00259 geometry_msgs/Pose end_effector_pose # command=arm_cart_pose: where the arm should go\n\
00260 uint64 end_effector_loid # one lo_id where the arm should go\n\
00261 string hand_primitive # Allowed strings: open open_thumb90 3pinch 2pinch cup_top peace handshake noop. Used when command is 'finger_primitive'\n\
00262 string object_type # If command is 'reach_primitive', it will define how to grasp (orientation ...)\n\
00263 uint64[] obstacle_ids # List of lo_id's corresponding to obstacles\n\
00264 float32 distance # For reach_primitive: distance from grasp point to approach point (m). For 'lift', distance to lift up (m)\n\
00265 float32 supporting_plane # Height of the table (m)\n\
00266 \n\
00267 ================================================================================\n\
00268 MSG: geometry_msgs/Pose\n\
00269 # A representation of pose in free space, composed of postion and orientation. \n\
00270 Point position\n\
00271 Quaternion orientation\n\
00272 \n\
00273 ================================================================================\n\
00274 MSG: geometry_msgs/Point\n\
00275 # This contains the position of a point in free space\n\
00276 float64 x\n\
00277 float64 y\n\
00278 float64 z\n\
00279 \n\
00280 ================================================================================\n\
00281 MSG: geometry_msgs/Quaternion\n\
00282 # This represents an orientation in free space in quaternion form.\n\
00283 \n\
00284 float64 x\n\
00285 float64 y\n\
00286 float64 z\n\
00287 float64 w\n\
00288 \n\
00289 ";
00290 }
00291
00292 static const char* value(const ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> &) { return value(); }
00293 };
00294
00295 template<class ContainerAllocator> struct HasHeader< ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> > : public TrueType {};
00296 template<class ContainerAllocator> struct HasHeader< const ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> > : public TrueType {};
00297 }
00298 }
00299
00300 namespace ros
00301 {
00302 namespace serialization
00303 {
00304
00305 template<class ContainerAllocator> struct Serializer< ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> >
00306 {
00307 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00308 {
00309 stream.next(m.header);
00310 stream.next(m.goal_id);
00311 stream.next(m.goal);
00312 }
00313
00314 ROS_DECLARE_ALLINONE_SERIALIZER;
00315 };
00316 }
00317 }
00318
00319 namespace ros
00320 {
00321 namespace message_operations
00322 {
00323
00324 template<class ContainerAllocator>
00325 struct Printer< ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> >
00326 {
00327 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cogman_msgs::ArmHandActionGoal_<ContainerAllocator> & v)
00328 {
00329 s << indent << "header: ";
00330 s << std::endl;
00331 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00332 s << indent << "goal_id: ";
00333 s << std::endl;
00334 Printer< ::actionlib_msgs::GoalID_<ContainerAllocator> >::stream(s, indent + " ", v.goal_id);
00335 s << indent << "goal: ";
00336 s << std::endl;
00337 Printer< ::cogman_msgs::ArmHandGoal_<ContainerAllocator> >::stream(s, indent + " ", v.goal);
00338 }
00339 };
00340
00341
00342 }
00343 }
00344
00345 #endif // COGMAN_MSGS_MESSAGE_ARMHANDACTIONGOAL_H
00346