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