Go to the documentation of this file.00001
00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_ORIENTATIONCONSTRAINT_H
00003 #define ARM_NAVIGATION_MSGS_MESSAGE_ORIENTATIONCONSTRAINT_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/Quaternion.h"
00019
00020 namespace arm_navigation_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct OrientationConstraint_ {
00024 typedef OrientationConstraint_<ContainerAllocator> Type;
00025
00026 OrientationConstraint_()
00027 : header()
00028 , link_name()
00029 , type(0)
00030 , orientation()
00031 , absolute_roll_tolerance(0.0)
00032 , absolute_pitch_tolerance(0.0)
00033 , absolute_yaw_tolerance(0.0)
00034 , weight(0.0)
00035 {
00036 }
00037
00038 OrientationConstraint_(const ContainerAllocator& _alloc)
00039 : header(_alloc)
00040 , link_name(_alloc)
00041 , type(0)
00042 , orientation(_alloc)
00043 , absolute_roll_tolerance(0.0)
00044 , absolute_pitch_tolerance(0.0)
00045 , absolute_yaw_tolerance(0.0)
00046 , weight(0.0)
00047 {
00048 }
00049
00050 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00051 ::std_msgs::Header_<ContainerAllocator> header;
00052
00053 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _link_name_type;
00054 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > link_name;
00055
00056 typedef int32_t _type_type;
00057 int32_t type;
00058
00059 typedef ::geometry_msgs::Quaternion_<ContainerAllocator> _orientation_type;
00060 ::geometry_msgs::Quaternion_<ContainerAllocator> orientation;
00061
00062 typedef double _absolute_roll_tolerance_type;
00063 double absolute_roll_tolerance;
00064
00065 typedef double _absolute_pitch_tolerance_type;
00066 double absolute_pitch_tolerance;
00067
00068 typedef double _absolute_yaw_tolerance_type;
00069 double absolute_yaw_tolerance;
00070
00071 typedef double _weight_type;
00072 double weight;
00073
00074 enum { LINK_FRAME = 0 };
00075 enum { HEADER_FRAME = 1 };
00076
00077 typedef boost::shared_ptr< ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> > Ptr;
00078 typedef boost::shared_ptr< ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> const> ConstPtr;
00079 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00080 };
00081 typedef ::arm_navigation_msgs::OrientationConstraint_<std::allocator<void> > OrientationConstraint;
00082
00083 typedef boost::shared_ptr< ::arm_navigation_msgs::OrientationConstraint> OrientationConstraintPtr;
00084 typedef boost::shared_ptr< ::arm_navigation_msgs::OrientationConstraint const> OrientationConstraintConstPtr;
00085
00086
00087 template<typename ContainerAllocator>
00088 std::ostream& operator<<(std::ostream& s, const ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> & v)
00089 {
00090 ros::message_operations::Printer< ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> >::stream(s, "", v);
00091 return s;}
00092
00093 }
00094
00095 namespace ros
00096 {
00097 namespace message_traits
00098 {
00099 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> > : public TrueType {};
00100 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> const> : public TrueType {};
00101 template<class ContainerAllocator>
00102 struct MD5Sum< ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> > {
00103 static const char* value()
00104 {
00105 return "27d99749ba49d4a822298bbd1e0988ba";
00106 }
00107
00108 static const char* value(const ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> &) { return value(); }
00109 static const uint64_t static_value1 = 0x27d99749ba49d4a8ULL;
00110 static const uint64_t static_value2 = 0x22298bbd1e0988baULL;
00111 };
00112
00113 template<class ContainerAllocator>
00114 struct DataType< ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> > {
00115 static const char* value()
00116 {
00117 return "arm_navigation_msgs/OrientationConstraint";
00118 }
00119
00120 static const char* value(const ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> &) { return value(); }
00121 };
00122
00123 template<class ContainerAllocator>
00124 struct Definition< ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> > {
00125 static const char* value()
00126 {
00127 return "# This message contains the definition of an orientation constraint.\n\
00128 Header header\n\
00129 \n\
00130 # The robot link this constraint refers to\n\
00131 string link_name\n\
00132 \n\
00133 # The type of the constraint\n\
00134 int32 type\n\
00135 int32 LINK_FRAME=0\n\
00136 int32 HEADER_FRAME=1\n\
00137 \n\
00138 # The desired orientation of the robot link specified as a quaternion\n\
00139 geometry_msgs/Quaternion orientation\n\
00140 \n\
00141 # optional RPY error tolerances specified if \n\
00142 float64 absolute_roll_tolerance\n\
00143 float64 absolute_pitch_tolerance\n\
00144 float64 absolute_yaw_tolerance\n\
00145 \n\
00146 # Constraint weighting factor - a weight for this constraint\n\
00147 float64 weight\n\
00148 \n\
00149 ================================================================================\n\
00150 MSG: std_msgs/Header\n\
00151 # Standard metadata for higher-level stamped data types.\n\
00152 # This is generally used to communicate timestamped data \n\
00153 # in a particular coordinate frame.\n\
00154 # \n\
00155 # sequence ID: consecutively increasing ID \n\
00156 uint32 seq\n\
00157 #Two-integer timestamp that is expressed as:\n\
00158 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00159 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00160 # time-handling sugar is provided by the client library\n\
00161 time stamp\n\
00162 #Frame this data is associated with\n\
00163 # 0: no frame\n\
00164 # 1: global frame\n\
00165 string frame_id\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::OrientationConstraint_<ContainerAllocator> &) { return value(); }
00180 };
00181
00182 template<class ContainerAllocator> struct HasHeader< ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> > : public TrueType {};
00183 template<class ContainerAllocator> struct HasHeader< const ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> > : public TrueType {};
00184 }
00185 }
00186
00187 namespace ros
00188 {
00189 namespace serialization
00190 {
00191
00192 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::OrientationConstraint_<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.link_name);
00198 stream.next(m.type);
00199 stream.next(m.orientation);
00200 stream.next(m.absolute_roll_tolerance);
00201 stream.next(m.absolute_pitch_tolerance);
00202 stream.next(m.absolute_yaw_tolerance);
00203 stream.next(m.weight);
00204 }
00205
00206 ROS_DECLARE_ALLINONE_SERIALIZER;
00207 };
00208 }
00209 }
00210
00211 namespace ros
00212 {
00213 namespace message_operations
00214 {
00215
00216 template<class ContainerAllocator>
00217 struct Printer< ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> >
00218 {
00219 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::arm_navigation_msgs::OrientationConstraint_<ContainerAllocator> & v)
00220 {
00221 s << indent << "header: ";
00222 s << std::endl;
00223 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00224 s << indent << "link_name: ";
00225 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.link_name);
00226 s << indent << "type: ";
00227 Printer<int32_t>::stream(s, indent + " ", v.type);
00228 s << indent << "orientation: ";
00229 s << std::endl;
00230 Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >::stream(s, indent + " ", v.orientation);
00231 s << indent << "absolute_roll_tolerance: ";
00232 Printer<double>::stream(s, indent + " ", v.absolute_roll_tolerance);
00233 s << indent << "absolute_pitch_tolerance: ";
00234 Printer<double>::stream(s, indent + " ", v.absolute_pitch_tolerance);
00235 s << indent << "absolute_yaw_tolerance: ";
00236 Printer<double>::stream(s, indent + " ", v.absolute_yaw_tolerance);
00237 s << indent << "weight: ";
00238 Printer<double>::stream(s, indent + " ", v.weight);
00239 }
00240 };
00241
00242
00243 }
00244 }
00245
00246 #endif // ARM_NAVIGATION_MSGS_MESSAGE_ORIENTATIONCONSTRAINT_H
00247