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