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