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