Go to the documentation of this file.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 typedef boost::shared_ptr< ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> > Ptr;
00057 typedef boost::shared_ptr< ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> const> ConstPtr;
00058 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00059 };
00060 typedef ::arm_navigation_msgs::VisibilityConstraint_<std::allocator<void> > VisibilityConstraint;
00061
00062 typedef boost::shared_ptr< ::arm_navigation_msgs::VisibilityConstraint> VisibilityConstraintPtr;
00063 typedef boost::shared_ptr< ::arm_navigation_msgs::VisibilityConstraint const> VisibilityConstraintConstPtr;
00064
00065
00066 template<typename ContainerAllocator>
00067 std::ostream& operator<<(std::ostream& s, const ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> & v)
00068 {
00069 ros::message_operations::Printer< ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> >::stream(s, "", v);
00070 return s;}
00071
00072 }
00073
00074 namespace ros
00075 {
00076 namespace message_traits
00077 {
00078 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> > : public TrueType {};
00079 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> const> : public TrueType {};
00080 template<class ContainerAllocator>
00081 struct MD5Sum< ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> > {
00082 static const char* value()
00083 {
00084 return "ab297b6588ea21c1a862067d8447cb08";
00085 }
00086
00087 static const char* value(const ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> &) { return value(); }
00088 static const uint64_t static_value1 = 0xab297b6588ea21c1ULL;
00089 static const uint64_t static_value2 = 0xa862067d8447cb08ULL;
00090 };
00091
00092 template<class ContainerAllocator>
00093 struct DataType< ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> > {
00094 static const char* value()
00095 {
00096 return "arm_navigation_msgs/VisibilityConstraint";
00097 }
00098
00099 static const char* value(const ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> &) { return value(); }
00100 };
00101
00102 template<class ContainerAllocator>
00103 struct Definition< ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> > {
00104 static const char* value()
00105 {
00106 return "# This message contains the definition of a visibility constraint.\n\
00107 Header header\n\
00108 \n\
00109 # The point stamped target that needs to be kept within view of the sensor\n\
00110 geometry_msgs/PointStamped target\n\
00111 \n\
00112 # The local pose of the frame in which visibility is to be maintained\n\
00113 # The frame id should represent the robot link to which the sensor is attached\n\
00114 # The visual axis of the sensor is assumed to be along the X axis of this frame\n\
00115 geometry_msgs/PoseStamped sensor_pose\n\
00116 \n\
00117 # The deviation (in radians) that will be tolerated\n\
00118 # Constraint error will be measured as the solid angle between the \n\
00119 # X axis of the frame defined above and the vector between the origin \n\
00120 # of the frame defined above and the target location\n\
00121 float64 absolute_tolerance\n\
00122 \n\
00123 \n\
00124 ================================================================================\n\
00125 MSG: std_msgs/Header\n\
00126 # Standard metadata for higher-level stamped data types.\n\
00127 # This is generally used to communicate timestamped data \n\
00128 # in a particular coordinate frame.\n\
00129 # \n\
00130 # sequence ID: consecutively increasing ID \n\
00131 uint32 seq\n\
00132 #Two-integer timestamp that is expressed as:\n\
00133 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00134 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00135 # time-handling sugar is provided by the client library\n\
00136 time stamp\n\
00137 #Frame this data is associated with\n\
00138 # 0: no frame\n\
00139 # 1: global frame\n\
00140 string frame_id\n\
00141 \n\
00142 ================================================================================\n\
00143 MSG: geometry_msgs/PointStamped\n\
00144 # This represents a Point with reference coordinate frame and timestamp\n\
00145 Header header\n\
00146 Point point\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/PoseStamped\n\
00157 # A Pose with reference coordinate frame and timestamp\n\
00158 Header header\n\
00159 Pose pose\n\
00160 \n\
00161 ================================================================================\n\
00162 MSG: geometry_msgs/Pose\n\
00163 # A representation of pose in free space, composed of postion and orientation. \n\
00164 Point position\n\
00165 Quaternion orientation\n\
00166 \n\
00167 ================================================================================\n\
00168 MSG: geometry_msgs/Quaternion\n\
00169 # This represents an orientation in free space in quaternion form.\n\
00170 \n\
00171 float64 x\n\
00172 float64 y\n\
00173 float64 z\n\
00174 float64 w\n\
00175 \n\
00176 ";
00177 }
00178
00179 static const char* value(const ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> &) { return value(); }
00180 };
00181
00182 template<class ContainerAllocator> struct HasHeader< ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> > : public TrueType {};
00183 template<class ContainerAllocator> struct HasHeader< const ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> > : public TrueType {};
00184 }
00185 }
00186
00187 namespace ros
00188 {
00189 namespace serialization
00190 {
00191
00192 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> >
00193 {
00194 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00195 {
00196 stream.next(m.header);
00197 stream.next(m.target);
00198 stream.next(m.sensor_pose);
00199 stream.next(m.absolute_tolerance);
00200 }
00201
00202 ROS_DECLARE_ALLINONE_SERIALIZER;
00203 };
00204 }
00205 }
00206
00207 namespace ros
00208 {
00209 namespace message_operations
00210 {
00211
00212 template<class ContainerAllocator>
00213 struct Printer< ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> >
00214 {
00215 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::arm_navigation_msgs::VisibilityConstraint_<ContainerAllocator> & v)
00216 {
00217 s << indent << "header: ";
00218 s << std::endl;
00219 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00220 s << indent << "target: ";
00221 s << std::endl;
00222 Printer< ::geometry_msgs::PointStamped_<ContainerAllocator> >::stream(s, indent + " ", v.target);
00223 s << indent << "sensor_pose: ";
00224 s << std::endl;
00225 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.sensor_pose);
00226 s << indent << "absolute_tolerance: ";
00227 Printer<double>::stream(s, indent + " ", v.absolute_tolerance);
00228 }
00229 };
00230
00231
00232 }
00233 }
00234
00235 #endif // ARM_NAVIGATION_MSGS_MESSAGE_VISIBILITYCONSTRAINT_H
00236