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