$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_assisted_arm_navigation_msgs/msg/CollisionObject.msg */ 00002 #ifndef SRS_ASSISTED_ARM_NAVIGATION_MSGS_MESSAGE_COLLISIONOBJECT_H 00003 #define SRS_ASSISTED_ARM_NAVIGATION_MSGS_MESSAGE_COLLISIONOBJECT_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/PoseStamped.h" 00018 #include "geometry_msgs/Point.h" 00019 00020 namespace srs_assisted_arm_navigation_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct CollisionObject_ { 00024 typedef CollisionObject_<ContainerAllocator> Type; 00025 00026 CollisionObject_() 00027 : name() 00028 , id() 00029 , pose() 00030 , bb_lwh() 00031 , allow_collision(false) 00032 , attached(false) 00033 , allow_pregrasps(false) 00034 { 00035 } 00036 00037 CollisionObject_(const ContainerAllocator& _alloc) 00038 : name(_alloc) 00039 , id(_alloc) 00040 , pose(_alloc) 00041 , bb_lwh(_alloc) 00042 , allow_collision(false) 00043 , attached(false) 00044 , allow_pregrasps(false) 00045 { 00046 } 00047 00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type; 00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name; 00050 00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _id_type; 00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > id; 00053 00054 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _pose_type; 00055 ::geometry_msgs::PoseStamped_<ContainerAllocator> pose; 00056 00057 typedef ::geometry_msgs::Point_<ContainerAllocator> _bb_lwh_type; 00058 ::geometry_msgs::Point_<ContainerAllocator> bb_lwh; 00059 00060 typedef uint8_t _allow_collision_type; 00061 uint8_t allow_collision; 00062 00063 typedef uint8_t _attached_type; 00064 uint8_t attached; 00065 00066 typedef uint8_t _allow_pregrasps_type; 00067 uint8_t allow_pregrasps; 00068 00069 00070 private: 00071 static const char* __s_getDataType_() { return "srs_assisted_arm_navigation_msgs/CollisionObject"; } 00072 public: 00073 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00074 00075 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00076 00077 private: 00078 static const char* __s_getMD5Sum_() { return "6e08640b15af10838d660fe5e8275c69"; } 00079 public: 00080 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00081 00082 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00083 00084 private: 00085 static const char* __s_getMessageDefinition_() { return "string name\n\ 00086 string id\n\ 00087 geometry_msgs/PoseStamped pose\n\ 00088 geometry_msgs/Point bb_lwh\n\ 00089 bool allow_collision\n\ 00090 bool attached\n\ 00091 bool allow_pregrasps\n\ 00092 \n\ 00093 ================================================================================\n\ 00094 MSG: geometry_msgs/PoseStamped\n\ 00095 # A Pose with reference coordinate frame and timestamp\n\ 00096 Header header\n\ 00097 Pose pose\n\ 00098 \n\ 00099 ================================================================================\n\ 00100 MSG: std_msgs/Header\n\ 00101 # Standard metadata for higher-level stamped data types.\n\ 00102 # This is generally used to communicate timestamped data \n\ 00103 # in a particular coordinate frame.\n\ 00104 # \n\ 00105 # sequence ID: consecutively increasing ID \n\ 00106 uint32 seq\n\ 00107 #Two-integer timestamp that is expressed as:\n\ 00108 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00109 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00110 # time-handling sugar is provided by the client library\n\ 00111 time stamp\n\ 00112 #Frame this data is associated with\n\ 00113 # 0: no frame\n\ 00114 # 1: global frame\n\ 00115 string frame_id\n\ 00116 \n\ 00117 ================================================================================\n\ 00118 MSG: geometry_msgs/Pose\n\ 00119 # A representation of pose in free space, composed of postion and orientation. \n\ 00120 Point position\n\ 00121 Quaternion orientation\n\ 00122 \n\ 00123 ================================================================================\n\ 00124 MSG: geometry_msgs/Point\n\ 00125 # This contains the position of a point in free space\n\ 00126 float64 x\n\ 00127 float64 y\n\ 00128 float64 z\n\ 00129 \n\ 00130 ================================================================================\n\ 00131 MSG: geometry_msgs/Quaternion\n\ 00132 # This represents an orientation in free space in quaternion form.\n\ 00133 \n\ 00134 float64 x\n\ 00135 float64 y\n\ 00136 float64 z\n\ 00137 float64 w\n\ 00138 \n\ 00139 "; } 00140 public: 00141 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00142 00143 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00144 00145 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00146 { 00147 ros::serialization::OStream stream(write_ptr, 1000000000); 00148 ros::serialization::serialize(stream, name); 00149 ros::serialization::serialize(stream, id); 00150 ros::serialization::serialize(stream, pose); 00151 ros::serialization::serialize(stream, bb_lwh); 00152 ros::serialization::serialize(stream, allow_collision); 00153 ros::serialization::serialize(stream, attached); 00154 ros::serialization::serialize(stream, allow_pregrasps); 00155 return stream.getData(); 00156 } 00157 00158 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00159 { 00160 ros::serialization::IStream stream(read_ptr, 1000000000); 00161 ros::serialization::deserialize(stream, name); 00162 ros::serialization::deserialize(stream, id); 00163 ros::serialization::deserialize(stream, pose); 00164 ros::serialization::deserialize(stream, bb_lwh); 00165 ros::serialization::deserialize(stream, allow_collision); 00166 ros::serialization::deserialize(stream, attached); 00167 ros::serialization::deserialize(stream, allow_pregrasps); 00168 return stream.getData(); 00169 } 00170 00171 ROS_DEPRECATED virtual uint32_t serializationLength() const 00172 { 00173 uint32_t size = 0; 00174 size += ros::serialization::serializationLength(name); 00175 size += ros::serialization::serializationLength(id); 00176 size += ros::serialization::serializationLength(pose); 00177 size += ros::serialization::serializationLength(bb_lwh); 00178 size += ros::serialization::serializationLength(allow_collision); 00179 size += ros::serialization::serializationLength(attached); 00180 size += ros::serialization::serializationLength(allow_pregrasps); 00181 return size; 00182 } 00183 00184 typedef boost::shared_ptr< ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> > Ptr; 00185 typedef boost::shared_ptr< ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> const> ConstPtr; 00186 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00187 }; // struct CollisionObject 00188 typedef ::srs_assisted_arm_navigation_msgs::CollisionObject_<std::allocator<void> > CollisionObject; 00189 00190 typedef boost::shared_ptr< ::srs_assisted_arm_navigation_msgs::CollisionObject> CollisionObjectPtr; 00191 typedef boost::shared_ptr< ::srs_assisted_arm_navigation_msgs::CollisionObject const> CollisionObjectConstPtr; 00192 00193 00194 template<typename ContainerAllocator> 00195 std::ostream& operator<<(std::ostream& s, const ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> & v) 00196 { 00197 ros::message_operations::Printer< ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> >::stream(s, "", v); 00198 return s;} 00199 00200 } // namespace srs_assisted_arm_navigation_msgs 00201 00202 namespace ros 00203 { 00204 namespace message_traits 00205 { 00206 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> > : public TrueType {}; 00207 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> const> : public TrueType {}; 00208 template<class ContainerAllocator> 00209 struct MD5Sum< ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> > { 00210 static const char* value() 00211 { 00212 return "6e08640b15af10838d660fe5e8275c69"; 00213 } 00214 00215 static const char* value(const ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> &) { return value(); } 00216 static const uint64_t static_value1 = 0x6e08640b15af1083ULL; 00217 static const uint64_t static_value2 = 0x8d660fe5e8275c69ULL; 00218 }; 00219 00220 template<class ContainerAllocator> 00221 struct DataType< ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> > { 00222 static const char* value() 00223 { 00224 return "srs_assisted_arm_navigation_msgs/CollisionObject"; 00225 } 00226 00227 static const char* value(const ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> &) { return value(); } 00228 }; 00229 00230 template<class ContainerAllocator> 00231 struct Definition< ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> > { 00232 static const char* value() 00233 { 00234 return "string name\n\ 00235 string id\n\ 00236 geometry_msgs/PoseStamped pose\n\ 00237 geometry_msgs/Point bb_lwh\n\ 00238 bool allow_collision\n\ 00239 bool attached\n\ 00240 bool allow_pregrasps\n\ 00241 \n\ 00242 ================================================================================\n\ 00243 MSG: geometry_msgs/PoseStamped\n\ 00244 # A Pose with reference coordinate frame and timestamp\n\ 00245 Header header\n\ 00246 Pose pose\n\ 00247 \n\ 00248 ================================================================================\n\ 00249 MSG: std_msgs/Header\n\ 00250 # Standard metadata for higher-level stamped data types.\n\ 00251 # This is generally used to communicate timestamped data \n\ 00252 # in a particular coordinate frame.\n\ 00253 # \n\ 00254 # sequence ID: consecutively increasing ID \n\ 00255 uint32 seq\n\ 00256 #Two-integer timestamp that is expressed as:\n\ 00257 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00258 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00259 # time-handling sugar is provided by the client library\n\ 00260 time stamp\n\ 00261 #Frame this data is associated with\n\ 00262 # 0: no frame\n\ 00263 # 1: global frame\n\ 00264 string frame_id\n\ 00265 \n\ 00266 ================================================================================\n\ 00267 MSG: geometry_msgs/Pose\n\ 00268 # A representation of pose in free space, composed of postion and orientation. \n\ 00269 Point position\n\ 00270 Quaternion orientation\n\ 00271 \n\ 00272 ================================================================================\n\ 00273 MSG: geometry_msgs/Point\n\ 00274 # This contains the position of a point in free space\n\ 00275 float64 x\n\ 00276 float64 y\n\ 00277 float64 z\n\ 00278 \n\ 00279 ================================================================================\n\ 00280 MSG: geometry_msgs/Quaternion\n\ 00281 # This represents an orientation in free space in quaternion form.\n\ 00282 \n\ 00283 float64 x\n\ 00284 float64 y\n\ 00285 float64 z\n\ 00286 float64 w\n\ 00287 \n\ 00288 "; 00289 } 00290 00291 static const char* value(const ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> &) { return value(); } 00292 }; 00293 00294 } // namespace message_traits 00295 } // namespace ros 00296 00297 namespace ros 00298 { 00299 namespace serialization 00300 { 00301 00302 template<class ContainerAllocator> struct Serializer< ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> > 00303 { 00304 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00305 { 00306 stream.next(m.name); 00307 stream.next(m.id); 00308 stream.next(m.pose); 00309 stream.next(m.bb_lwh); 00310 stream.next(m.allow_collision); 00311 stream.next(m.attached); 00312 stream.next(m.allow_pregrasps); 00313 } 00314 00315 ROS_DECLARE_ALLINONE_SERIALIZER; 00316 }; // struct CollisionObject_ 00317 } // namespace serialization 00318 } // namespace ros 00319 00320 namespace ros 00321 { 00322 namespace message_operations 00323 { 00324 00325 template<class ContainerAllocator> 00326 struct Printer< ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> > 00327 { 00328 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_assisted_arm_navigation_msgs::CollisionObject_<ContainerAllocator> & v) 00329 { 00330 s << indent << "name: "; 00331 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name); 00332 s << indent << "id: "; 00333 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.id); 00334 s << indent << "pose: "; 00335 s << std::endl; 00336 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.pose); 00337 s << indent << "bb_lwh: "; 00338 s << std::endl; 00339 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.bb_lwh); 00340 s << indent << "allow_collision: "; 00341 Printer<uint8_t>::stream(s, indent + " ", v.allow_collision); 00342 s << indent << "attached: "; 00343 Printer<uint8_t>::stream(s, indent + " ", v.attached); 00344 s << indent << "allow_pregrasps: "; 00345 Printer<uint8_t>::stream(s, indent + " ", v.allow_pregrasps); 00346 } 00347 }; 00348 00349 00350 } // namespace message_operations 00351 } // namespace ros 00352 00353 #endif // SRS_ASSISTED_ARM_NAVIGATION_MSGS_MESSAGE_COLLISIONOBJECT_H 00354