00001
00002 #ifndef PLANNING_ENVIRONMENT_MSGS_MESSAGE_CONTACTINFORMATION_H
00003 #define PLANNING_ENVIRONMENT_MSGS_MESSAGE_CONTACTINFORMATION_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 "geometry_msgs/Point.h"
00015 #include "geometry_msgs/Vector3.h"
00016
00017 namespace planning_environment_msgs
00018 {
00019 template <class ContainerAllocator>
00020 struct ContactInformation_ : public ros::Message
00021 {
00022 typedef ContactInformation_<ContainerAllocator> Type;
00023
00024 ContactInformation_()
00025 : header()
00026 , position()
00027 , normal()
00028 , depth(0.0)
00029 , contact_body_1()
00030 , attached_body_1()
00031 , body_type_1(0)
00032 , contact_body_2()
00033 , attached_body_2()
00034 , body_type_2(0)
00035 {
00036 }
00037
00038 ContactInformation_(const ContainerAllocator& _alloc)
00039 : header(_alloc)
00040 , position(_alloc)
00041 , normal(_alloc)
00042 , depth(0.0)
00043 , contact_body_1(_alloc)
00044 , attached_body_1(_alloc)
00045 , body_type_1(0)
00046 , contact_body_2(_alloc)
00047 , attached_body_2(_alloc)
00048 , body_type_2(0)
00049 {
00050 }
00051
00052 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00053 ::std_msgs::Header_<ContainerAllocator> header;
00054
00055 typedef ::geometry_msgs::Point_<ContainerAllocator> _position_type;
00056 ::geometry_msgs::Point_<ContainerAllocator> position;
00057
00058 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _normal_type;
00059 ::geometry_msgs::Vector3_<ContainerAllocator> normal;
00060
00061 typedef double _depth_type;
00062 double depth;
00063
00064 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _contact_body_1_type;
00065 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > contact_body_1;
00066
00067 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _attached_body_1_type;
00068 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > attached_body_1;
00069
00070 typedef uint32_t _body_type_1_type;
00071 uint32_t body_type_1;
00072
00073 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _contact_body_2_type;
00074 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > contact_body_2;
00075
00076 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _attached_body_2_type;
00077 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > attached_body_2;
00078
00079 typedef uint32_t _body_type_2_type;
00080 uint32_t body_type_2;
00081
00082 enum { ROBOT_LINK = 0 };
00083 enum { OBJECT = 1 };
00084 enum { ATTACHED_BODY = 2 };
00085
00086 private:
00087 static const char* __s_getDataType_() { return "planning_environment_msgs/ContactInformation"; }
00088 public:
00089 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00090
00091 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00092
00093 private:
00094 static const char* __s_getMD5Sum_() { return "85f341c0166ad4e68b4421391bbd2e15"; }
00095 public:
00096 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00097
00098 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00099
00100 private:
00101 static const char* __s_getMessageDefinition_() { return "# Standard ROS header contains information \n\
00102 # about the frame in which this \n\
00103 # contact is specified\n\
00104 Header header\n\
00105 \n\
00106 # Position of the contact point\n\
00107 geometry_msgs/Point position\n\
00108 \n\
00109 # Normal corresponding to the contact point\n\
00110 geometry_msgs/Vector3 normal \n\
00111 \n\
00112 # Depth of contact point\n\
00113 float64 depth\n\
00114 \n\
00115 # Name of the first body that is in contact\n\
00116 # This could be a link or a namespace that represents a body\n\
00117 string contact_body_1\n\
00118 string attached_body_1\n\
00119 uint32 body_type_1\n\
00120 \n\
00121 # Name of the second body that is in contact\n\
00122 # This could be a link or a namespace that represents a body\n\
00123 string contact_body_2\n\
00124 string attached_body_2\n\
00125 uint32 body_type_2\n\
00126 \n\
00127 uint32 ROBOT_LINK=0\n\
00128 uint32 OBJECT=1\n\
00129 uint32 ATTACHED_BODY=2\n\
00130 ================================================================================\n\
00131 MSG: std_msgs/Header\n\
00132 # Standard metadata for higher-level stamped data types.\n\
00133 # This is generally used to communicate timestamped data \n\
00134 # in a particular coordinate frame.\n\
00135 # \n\
00136 # sequence ID: consecutively increasing ID \n\
00137 uint32 seq\n\
00138 #Two-integer timestamp that is expressed as:\n\
00139 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00140 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00141 # time-handling sugar is provided by the client library\n\
00142 time stamp\n\
00143 #Frame this data is associated with\n\
00144 # 0: no frame\n\
00145 # 1: global frame\n\
00146 string frame_id\n\
00147 \n\
00148 ================================================================================\n\
00149 MSG: geometry_msgs/Point\n\
00150 # This contains the position of a point in free space\n\
00151 float64 x\n\
00152 float64 y\n\
00153 float64 z\n\
00154 \n\
00155 ================================================================================\n\
00156 MSG: geometry_msgs/Vector3\n\
00157 # This represents a vector in free space. \n\
00158 \n\
00159 float64 x\n\
00160 float64 y\n\
00161 float64 z\n\
00162 "; }
00163 public:
00164 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00165
00166 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00167
00168 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00169 {
00170 ros::serialization::OStream stream(write_ptr, 1000000000);
00171 ros::serialization::serialize(stream, header);
00172 ros::serialization::serialize(stream, position);
00173 ros::serialization::serialize(stream, normal);
00174 ros::serialization::serialize(stream, depth);
00175 ros::serialization::serialize(stream, contact_body_1);
00176 ros::serialization::serialize(stream, attached_body_1);
00177 ros::serialization::serialize(stream, body_type_1);
00178 ros::serialization::serialize(stream, contact_body_2);
00179 ros::serialization::serialize(stream, attached_body_2);
00180 ros::serialization::serialize(stream, body_type_2);
00181 return stream.getData();
00182 }
00183
00184 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00185 {
00186 ros::serialization::IStream stream(read_ptr, 1000000000);
00187 ros::serialization::deserialize(stream, header);
00188 ros::serialization::deserialize(stream, position);
00189 ros::serialization::deserialize(stream, normal);
00190 ros::serialization::deserialize(stream, depth);
00191 ros::serialization::deserialize(stream, contact_body_1);
00192 ros::serialization::deserialize(stream, attached_body_1);
00193 ros::serialization::deserialize(stream, body_type_1);
00194 ros::serialization::deserialize(stream, contact_body_2);
00195 ros::serialization::deserialize(stream, attached_body_2);
00196 ros::serialization::deserialize(stream, body_type_2);
00197 return stream.getData();
00198 }
00199
00200 ROS_DEPRECATED virtual uint32_t serializationLength() const
00201 {
00202 uint32_t size = 0;
00203 size += ros::serialization::serializationLength(header);
00204 size += ros::serialization::serializationLength(position);
00205 size += ros::serialization::serializationLength(normal);
00206 size += ros::serialization::serializationLength(depth);
00207 size += ros::serialization::serializationLength(contact_body_1);
00208 size += ros::serialization::serializationLength(attached_body_1);
00209 size += ros::serialization::serializationLength(body_type_1);
00210 size += ros::serialization::serializationLength(contact_body_2);
00211 size += ros::serialization::serializationLength(attached_body_2);
00212 size += ros::serialization::serializationLength(body_type_2);
00213 return size;
00214 }
00215
00216 typedef boost::shared_ptr< ::planning_environment_msgs::ContactInformation_<ContainerAllocator> > Ptr;
00217 typedef boost::shared_ptr< ::planning_environment_msgs::ContactInformation_<ContainerAllocator> const> ConstPtr;
00218 };
00219 typedef ::planning_environment_msgs::ContactInformation_<std::allocator<void> > ContactInformation;
00220
00221 typedef boost::shared_ptr< ::planning_environment_msgs::ContactInformation> ContactInformationPtr;
00222 typedef boost::shared_ptr< ::planning_environment_msgs::ContactInformation const> ContactInformationConstPtr;
00223
00224
00225 template<typename ContainerAllocator>
00226 std::ostream& operator<<(std::ostream& s, const ::planning_environment_msgs::ContactInformation_<ContainerAllocator> & v)
00227 {
00228 ros::message_operations::Printer< ::planning_environment_msgs::ContactInformation_<ContainerAllocator> >::stream(s, "", v);
00229 return s;}
00230
00231 }
00232
00233 namespace ros
00234 {
00235 namespace message_traits
00236 {
00237 template<class ContainerAllocator>
00238 struct MD5Sum< ::planning_environment_msgs::ContactInformation_<ContainerAllocator> > {
00239 static const char* value()
00240 {
00241 return "85f341c0166ad4e68b4421391bbd2e15";
00242 }
00243
00244 static const char* value(const ::planning_environment_msgs::ContactInformation_<ContainerAllocator> &) { return value(); }
00245 static const uint64_t static_value1 = 0x85f341c0166ad4e6ULL;
00246 static const uint64_t static_value2 = 0x8b4421391bbd2e15ULL;
00247 };
00248
00249 template<class ContainerAllocator>
00250 struct DataType< ::planning_environment_msgs::ContactInformation_<ContainerAllocator> > {
00251 static const char* value()
00252 {
00253 return "planning_environment_msgs/ContactInformation";
00254 }
00255
00256 static const char* value(const ::planning_environment_msgs::ContactInformation_<ContainerAllocator> &) { return value(); }
00257 };
00258
00259 template<class ContainerAllocator>
00260 struct Definition< ::planning_environment_msgs::ContactInformation_<ContainerAllocator> > {
00261 static const char* value()
00262 {
00263 return "# Standard ROS header contains information \n\
00264 # about the frame in which this \n\
00265 # contact is specified\n\
00266 Header header\n\
00267 \n\
00268 # Position of the contact point\n\
00269 geometry_msgs/Point position\n\
00270 \n\
00271 # Normal corresponding to the contact point\n\
00272 geometry_msgs/Vector3 normal \n\
00273 \n\
00274 # Depth of contact point\n\
00275 float64 depth\n\
00276 \n\
00277 # Name of the first body that is in contact\n\
00278 # This could be a link or a namespace that represents a body\n\
00279 string contact_body_1\n\
00280 string attached_body_1\n\
00281 uint32 body_type_1\n\
00282 \n\
00283 # Name of the second body that is in contact\n\
00284 # This could be a link or a namespace that represents a body\n\
00285 string contact_body_2\n\
00286 string attached_body_2\n\
00287 uint32 body_type_2\n\
00288 \n\
00289 uint32 ROBOT_LINK=0\n\
00290 uint32 OBJECT=1\n\
00291 uint32 ATTACHED_BODY=2\n\
00292 ================================================================================\n\
00293 MSG: std_msgs/Header\n\
00294 # Standard metadata for higher-level stamped data types.\n\
00295 # This is generally used to communicate timestamped data \n\
00296 # in a particular coordinate frame.\n\
00297 # \n\
00298 # sequence ID: consecutively increasing ID \n\
00299 uint32 seq\n\
00300 #Two-integer timestamp that is expressed as:\n\
00301 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00302 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00303 # time-handling sugar is provided by the client library\n\
00304 time stamp\n\
00305 #Frame this data is associated with\n\
00306 # 0: no frame\n\
00307 # 1: global frame\n\
00308 string frame_id\n\
00309 \n\
00310 ================================================================================\n\
00311 MSG: geometry_msgs/Point\n\
00312 # This contains the position of a point in free space\n\
00313 float64 x\n\
00314 float64 y\n\
00315 float64 z\n\
00316 \n\
00317 ================================================================================\n\
00318 MSG: geometry_msgs/Vector3\n\
00319 # This represents a vector in free space. \n\
00320 \n\
00321 float64 x\n\
00322 float64 y\n\
00323 float64 z\n\
00324 ";
00325 }
00326
00327 static const char* value(const ::planning_environment_msgs::ContactInformation_<ContainerAllocator> &) { return value(); }
00328 };
00329
00330 template<class ContainerAllocator> struct HasHeader< ::planning_environment_msgs::ContactInformation_<ContainerAllocator> > : public TrueType {};
00331 template<class ContainerAllocator> struct HasHeader< const ::planning_environment_msgs::ContactInformation_<ContainerAllocator> > : public TrueType {};
00332 }
00333 }
00334
00335 namespace ros
00336 {
00337 namespace serialization
00338 {
00339
00340 template<class ContainerAllocator> struct Serializer< ::planning_environment_msgs::ContactInformation_<ContainerAllocator> >
00341 {
00342 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00343 {
00344 stream.next(m.header);
00345 stream.next(m.position);
00346 stream.next(m.normal);
00347 stream.next(m.depth);
00348 stream.next(m.contact_body_1);
00349 stream.next(m.attached_body_1);
00350 stream.next(m.body_type_1);
00351 stream.next(m.contact_body_2);
00352 stream.next(m.attached_body_2);
00353 stream.next(m.body_type_2);
00354 }
00355
00356 ROS_DECLARE_ALLINONE_SERIALIZER;
00357 };
00358 }
00359 }
00360
00361 namespace ros
00362 {
00363 namespace message_operations
00364 {
00365
00366 template<class ContainerAllocator>
00367 struct Printer< ::planning_environment_msgs::ContactInformation_<ContainerAllocator> >
00368 {
00369 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::planning_environment_msgs::ContactInformation_<ContainerAllocator> & v)
00370 {
00371 s << indent << "header: ";
00372 s << std::endl;
00373 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00374 s << indent << "position: ";
00375 s << std::endl;
00376 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.position);
00377 s << indent << "normal: ";
00378 s << std::endl;
00379 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.normal);
00380 s << indent << "depth: ";
00381 Printer<double>::stream(s, indent + " ", v.depth);
00382 s << indent << "contact_body_1: ";
00383 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.contact_body_1);
00384 s << indent << "attached_body_1: ";
00385 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.attached_body_1);
00386 s << indent << "body_type_1: ";
00387 Printer<uint32_t>::stream(s, indent + " ", v.body_type_1);
00388 s << indent << "contact_body_2: ";
00389 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.contact_body_2);
00390 s << indent << "attached_body_2: ";
00391 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.attached_body_2);
00392 s << indent << "body_type_2: ";
00393 Printer<uint32_t>::stream(s, indent + " ", v.body_type_2);
00394 }
00395 };
00396
00397
00398 }
00399 }
00400
00401 #endif // PLANNING_ENVIRONMENT_MSGS_MESSAGE_CONTACTINFORMATION_H
00402