00001
00002 #ifndef PR2_CREATE_OBJECT_MODEL_MESSAGE_MODELOBJECTINHANDACTIONGOAL_H
00003 #define PR2_CREATE_OBJECT_MODEL_MESSAGE_MODELOBJECTINHANDACTIONGOAL_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 "std_msgs/Header.h"
00018 #include "actionlib_msgs/GoalID.h"
00019 #include "pr2_create_object_model/ModelObjectInHandGoal.h"
00020
00021 namespace pr2_create_object_model
00022 {
00023 template <class ContainerAllocator>
00024 struct ModelObjectInHandActionGoal_ {
00025 typedef ModelObjectInHandActionGoal_<ContainerAllocator> Type;
00026
00027 ModelObjectInHandActionGoal_()
00028 : header()
00029 , goal_id()
00030 , goal()
00031 {
00032 }
00033
00034 ModelObjectInHandActionGoal_(const ContainerAllocator& _alloc)
00035 : header(_alloc)
00036 , goal_id(_alloc)
00037 , goal(_alloc)
00038 {
00039 }
00040
00041 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00042 ::std_msgs::Header_<ContainerAllocator> header;
00043
00044 typedef ::actionlib_msgs::GoalID_<ContainerAllocator> _goal_id_type;
00045 ::actionlib_msgs::GoalID_<ContainerAllocator> goal_id;
00046
00047 typedef ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> _goal_type;
00048 ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> goal;
00049
00050
00051 private:
00052 static const char* __s_getDataType_() { return "pr2_create_object_model/ModelObjectInHandActionGoal"; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00055
00056 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00057
00058 private:
00059 static const char* __s_getMD5Sum_() { return "a8491f28c088bcf34352bff94e068ce7"; }
00060 public:
00061 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00062
00063 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00064
00065 private:
00066 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00067 \n\
00068 Header header\n\
00069 actionlib_msgs/GoalID goal_id\n\
00070 ModelObjectInHandGoal goal\n\
00071 \n\
00072 ================================================================================\n\
00073 MSG: std_msgs/Header\n\
00074 # Standard metadata for higher-level stamped data types.\n\
00075 # This is generally used to communicate timestamped data \n\
00076 # in a particular coordinate frame.\n\
00077 # \n\
00078 # sequence ID: consecutively increasing ID \n\
00079 uint32 seq\n\
00080 #Two-integer timestamp that is expressed as:\n\
00081 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00082 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00083 # time-handling sugar is provided by the client library\n\
00084 time stamp\n\
00085 #Frame this data is associated with\n\
00086 # 0: no frame\n\
00087 # 1: global frame\n\
00088 string frame_id\n\
00089 \n\
00090 ================================================================================\n\
00091 MSG: actionlib_msgs/GoalID\n\
00092 # The stamp should store the time at which this goal was requested.\n\
00093 # It is used by an action server when it tries to preempt all\n\
00094 # goals that were requested before a certain time\n\
00095 time stamp\n\
00096 \n\
00097 # The id provides a way to associate feedback and\n\
00098 # result message with specific goal requests. The id\n\
00099 # specified must be unique.\n\
00100 string id\n\
00101 \n\
00102 \n\
00103 ================================================================================\n\
00104 MSG: pr2_create_object_model/ModelObjectInHandGoal\n\
00105 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00106 # which arm to use\n\
00107 string arm_name\n\
00108 \n\
00109 # the relative motion in which to move the gripper to get it clear of objects \n\
00110 #(if left unfilled, will not move)\n\
00111 geometry_msgs/Vector3Stamped clear_move\n\
00112 \n\
00113 # the pose to go to for rotating (if left unfilled, will not go)\n\
00114 geometry_msgs/PoseStamped rotate_pose\n\
00115 \n\
00116 # whether to rotate the object at rotate_pose to build up the model\n\
00117 uint8 rotate_object\n\
00118 \n\
00119 # whether to add the object to the collision map \n\
00120 uint8 add_to_collision_map\n\
00121 \n\
00122 # whether to keep the object level while rotating\n\
00123 uint8 keep_level\n\
00124 \n\
00125 \n\
00126 ================================================================================\n\
00127 MSG: geometry_msgs/Vector3Stamped\n\
00128 # This represents a Vector3 with reference coordinate frame and timestamp\n\
00129 Header header\n\
00130 Vector3 vector\n\
00131 \n\
00132 ================================================================================\n\
00133 MSG: geometry_msgs/Vector3\n\
00134 # This represents a vector in free space. \n\
00135 \n\
00136 float64 x\n\
00137 float64 y\n\
00138 float64 z\n\
00139 ================================================================================\n\
00140 MSG: geometry_msgs/PoseStamped\n\
00141 # A Pose with reference coordinate frame and timestamp\n\
00142 Header header\n\
00143 Pose pose\n\
00144 \n\
00145 ================================================================================\n\
00146 MSG: geometry_msgs/Pose\n\
00147 # A representation of pose in free space, composed of postion and orientation. \n\
00148 Point position\n\
00149 Quaternion orientation\n\
00150 \n\
00151 ================================================================================\n\
00152 MSG: geometry_msgs/Point\n\
00153 # This contains the position of a point in free space\n\
00154 float64 x\n\
00155 float64 y\n\
00156 float64 z\n\
00157 \n\
00158 ================================================================================\n\
00159 MSG: geometry_msgs/Quaternion\n\
00160 # This represents an orientation in free space in quaternion form.\n\
00161 \n\
00162 float64 x\n\
00163 float64 y\n\
00164 float64 z\n\
00165 float64 w\n\
00166 \n\
00167 "; }
00168 public:
00169 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00170
00171 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00172
00173 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00174 {
00175 ros::serialization::OStream stream(write_ptr, 1000000000);
00176 ros::serialization::serialize(stream, header);
00177 ros::serialization::serialize(stream, goal_id);
00178 ros::serialization::serialize(stream, goal);
00179 return stream.getData();
00180 }
00181
00182 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00183 {
00184 ros::serialization::IStream stream(read_ptr, 1000000000);
00185 ros::serialization::deserialize(stream, header);
00186 ros::serialization::deserialize(stream, goal_id);
00187 ros::serialization::deserialize(stream, goal);
00188 return stream.getData();
00189 }
00190
00191 ROS_DEPRECATED virtual uint32_t serializationLength() const
00192 {
00193 uint32_t size = 0;
00194 size += ros::serialization::serializationLength(header);
00195 size += ros::serialization::serializationLength(goal_id);
00196 size += ros::serialization::serializationLength(goal);
00197 return size;
00198 }
00199
00200 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> > Ptr;
00201 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> const> ConstPtr;
00202 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00203 };
00204 typedef ::pr2_create_object_model::ModelObjectInHandActionGoal_<std::allocator<void> > ModelObjectInHandActionGoal;
00205
00206 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandActionGoal> ModelObjectInHandActionGoalPtr;
00207 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandActionGoal const> ModelObjectInHandActionGoalConstPtr;
00208
00209
00210 template<typename ContainerAllocator>
00211 std::ostream& operator<<(std::ostream& s, const ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> & v)
00212 {
00213 ros::message_operations::Printer< ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> >::stream(s, "", v);
00214 return s;}
00215
00216 }
00217
00218 namespace ros
00219 {
00220 namespace message_traits
00221 {
00222 template<class ContainerAllocator> struct IsMessage< ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> > : public TrueType {};
00223 template<class ContainerAllocator> struct IsMessage< ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> const> : public TrueType {};
00224 template<class ContainerAllocator>
00225 struct MD5Sum< ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> > {
00226 static const char* value()
00227 {
00228 return "a8491f28c088bcf34352bff94e068ce7";
00229 }
00230
00231 static const char* value(const ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> &) { return value(); }
00232 static const uint64_t static_value1 = 0xa8491f28c088bcf3ULL;
00233 static const uint64_t static_value2 = 0x4352bff94e068ce7ULL;
00234 };
00235
00236 template<class ContainerAllocator>
00237 struct DataType< ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> > {
00238 static const char* value()
00239 {
00240 return "pr2_create_object_model/ModelObjectInHandActionGoal";
00241 }
00242
00243 static const char* value(const ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> &) { return value(); }
00244 };
00245
00246 template<class ContainerAllocator>
00247 struct Definition< ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> > {
00248 static const char* value()
00249 {
00250 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00251 \n\
00252 Header header\n\
00253 actionlib_msgs/GoalID goal_id\n\
00254 ModelObjectInHandGoal goal\n\
00255 \n\
00256 ================================================================================\n\
00257 MSG: std_msgs/Header\n\
00258 # Standard metadata for higher-level stamped data types.\n\
00259 # This is generally used to communicate timestamped data \n\
00260 # in a particular coordinate frame.\n\
00261 # \n\
00262 # sequence ID: consecutively increasing ID \n\
00263 uint32 seq\n\
00264 #Two-integer timestamp that is expressed as:\n\
00265 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00266 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00267 # time-handling sugar is provided by the client library\n\
00268 time stamp\n\
00269 #Frame this data is associated with\n\
00270 # 0: no frame\n\
00271 # 1: global frame\n\
00272 string frame_id\n\
00273 \n\
00274 ================================================================================\n\
00275 MSG: actionlib_msgs/GoalID\n\
00276 # The stamp should store the time at which this goal was requested.\n\
00277 # It is used by an action server when it tries to preempt all\n\
00278 # goals that were requested before a certain time\n\
00279 time stamp\n\
00280 \n\
00281 # The id provides a way to associate feedback and\n\
00282 # result message with specific goal requests. The id\n\
00283 # specified must be unique.\n\
00284 string id\n\
00285 \n\
00286 \n\
00287 ================================================================================\n\
00288 MSG: pr2_create_object_model/ModelObjectInHandGoal\n\
00289 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00290 # which arm to use\n\
00291 string arm_name\n\
00292 \n\
00293 # the relative motion in which to move the gripper to get it clear of objects \n\
00294 #(if left unfilled, will not move)\n\
00295 geometry_msgs/Vector3Stamped clear_move\n\
00296 \n\
00297 # the pose to go to for rotating (if left unfilled, will not go)\n\
00298 geometry_msgs/PoseStamped rotate_pose\n\
00299 \n\
00300 # whether to rotate the object at rotate_pose to build up the model\n\
00301 uint8 rotate_object\n\
00302 \n\
00303 # whether to add the object to the collision map \n\
00304 uint8 add_to_collision_map\n\
00305 \n\
00306 # whether to keep the object level while rotating\n\
00307 uint8 keep_level\n\
00308 \n\
00309 \n\
00310 ================================================================================\n\
00311 MSG: geometry_msgs/Vector3Stamped\n\
00312 # This represents a Vector3 with reference coordinate frame and timestamp\n\
00313 Header header\n\
00314 Vector3 vector\n\
00315 \n\
00316 ================================================================================\n\
00317 MSG: geometry_msgs/Vector3\n\
00318 # This represents a vector in free space. \n\
00319 \n\
00320 float64 x\n\
00321 float64 y\n\
00322 float64 z\n\
00323 ================================================================================\n\
00324 MSG: geometry_msgs/PoseStamped\n\
00325 # A Pose with reference coordinate frame and timestamp\n\
00326 Header header\n\
00327 Pose pose\n\
00328 \n\
00329 ================================================================================\n\
00330 MSG: geometry_msgs/Pose\n\
00331 # A representation of pose in free space, composed of postion and orientation. \n\
00332 Point position\n\
00333 Quaternion orientation\n\
00334 \n\
00335 ================================================================================\n\
00336 MSG: geometry_msgs/Point\n\
00337 # This contains the position of a point in free space\n\
00338 float64 x\n\
00339 float64 y\n\
00340 float64 z\n\
00341 \n\
00342 ================================================================================\n\
00343 MSG: geometry_msgs/Quaternion\n\
00344 # This represents an orientation in free space in quaternion form.\n\
00345 \n\
00346 float64 x\n\
00347 float64 y\n\
00348 float64 z\n\
00349 float64 w\n\
00350 \n\
00351 ";
00352 }
00353
00354 static const char* value(const ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> &) { return value(); }
00355 };
00356
00357 template<class ContainerAllocator> struct HasHeader< ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> > : public TrueType {};
00358 template<class ContainerAllocator> struct HasHeader< const ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> > : public TrueType {};
00359 }
00360 }
00361
00362 namespace ros
00363 {
00364 namespace serialization
00365 {
00366
00367 template<class ContainerAllocator> struct Serializer< ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> >
00368 {
00369 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00370 {
00371 stream.next(m.header);
00372 stream.next(m.goal_id);
00373 stream.next(m.goal);
00374 }
00375
00376 ROS_DECLARE_ALLINONE_SERIALIZER;
00377 };
00378 }
00379 }
00380
00381 namespace ros
00382 {
00383 namespace message_operations
00384 {
00385
00386 template<class ContainerAllocator>
00387 struct Printer< ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> >
00388 {
00389 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_create_object_model::ModelObjectInHandActionGoal_<ContainerAllocator> & v)
00390 {
00391 s << indent << "header: ";
00392 s << std::endl;
00393 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00394 s << indent << "goal_id: ";
00395 s << std::endl;
00396 Printer< ::actionlib_msgs::GoalID_<ContainerAllocator> >::stream(s, indent + " ", v.goal_id);
00397 s << indent << "goal: ";
00398 s << std::endl;
00399 Printer< ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> >::stream(s, indent + " ", v.goal);
00400 }
00401 };
00402
00403
00404 }
00405 }
00406
00407 #endif // PR2_CREATE_OBJECT_MODEL_MESSAGE_MODELOBJECTINHANDACTIONGOAL_H
00408