JointConstraint.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-arm_navigation/doc_stacks/2013-12-12_11-02-12.519893/arm_navigation/arm_navigation_msgs/msg/JointConstraint.msg */
00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_JOINTCONSTRAINT_H
00003 #define ARM_NAVIGATION_MSGS_MESSAGE_JOINTCONSTRAINT_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 
00018 namespace arm_navigation_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct JointConstraint_ {
00022   typedef JointConstraint_<ContainerAllocator> Type;
00023 
00024   JointConstraint_()
00025   : joint_name()
00026   , position(0.0)
00027   , tolerance_above(0.0)
00028   , tolerance_below(0.0)
00029   , weight(0.0)
00030   {
00031   }
00032 
00033   JointConstraint_(const ContainerAllocator& _alloc)
00034   : joint_name(_alloc)
00035   , position(0.0)
00036   , tolerance_above(0.0)
00037   , tolerance_below(0.0)
00038   , weight(0.0)
00039   {
00040   }
00041 
00042   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _joint_name_type;
00043   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  joint_name;
00044 
00045   typedef double _position_type;
00046   double position;
00047 
00048   typedef double _tolerance_above_type;
00049   double tolerance_above;
00050 
00051   typedef double _tolerance_below_type;
00052   double tolerance_below;
00053 
00054   typedef double _weight_type;
00055   double weight;
00056 
00057 
00058   typedef boost::shared_ptr< ::arm_navigation_msgs::JointConstraint_<ContainerAllocator> > Ptr;
00059   typedef boost::shared_ptr< ::arm_navigation_msgs::JointConstraint_<ContainerAllocator>  const> ConstPtr;
00060   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 }; // struct JointConstraint
00062 typedef  ::arm_navigation_msgs::JointConstraint_<std::allocator<void> > JointConstraint;
00063 
00064 typedef boost::shared_ptr< ::arm_navigation_msgs::JointConstraint> JointConstraintPtr;
00065 typedef boost::shared_ptr< ::arm_navigation_msgs::JointConstraint const> JointConstraintConstPtr;
00066 
00067 
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const  ::arm_navigation_msgs::JointConstraint_<ContainerAllocator> & v)
00070 {
00071   ros::message_operations::Printer< ::arm_navigation_msgs::JointConstraint_<ContainerAllocator> >::stream(s, "", v);
00072   return s;}
00073 
00074 } // namespace arm_navigation_msgs
00075 
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::JointConstraint_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::JointConstraint_<ContainerAllocator>  const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::arm_navigation_msgs::JointConstraint_<ContainerAllocator> > {
00084   static const char* value() 
00085   {
00086     return "c02a15146bec0ce13564807805b008f0";
00087   }
00088 
00089   static const char* value(const  ::arm_navigation_msgs::JointConstraint_<ContainerAllocator> &) { return value(); } 
00090   static const uint64_t static_value1 = 0xc02a15146bec0ce1ULL;
00091   static const uint64_t static_value2 = 0x3564807805b008f0ULL;
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct DataType< ::arm_navigation_msgs::JointConstraint_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "arm_navigation_msgs/JointConstraint";
00099   }
00100 
00101   static const char* value(const  ::arm_navigation_msgs::JointConstraint_<ContainerAllocator> &) { return value(); } 
00102 };
00103 
00104 template<class ContainerAllocator>
00105 struct Definition< ::arm_navigation_msgs::JointConstraint_<ContainerAllocator> > {
00106   static const char* value() 
00107   {
00108     return "# Constrain the position of a joint to be within a certain bound\n\
00109 string joint_name\n\
00110 \n\
00111 # the bound to be achieved is [position - tolerance_below, position + tolerance_above]\n\
00112 float64 position\n\
00113 float64 tolerance_above\n\
00114 float64 tolerance_below\n\
00115 \n\
00116 # A weighting factor for this constraint\n\
00117 float64 weight\n\
00118 ";
00119   }
00120 
00121   static const char* value(const  ::arm_navigation_msgs::JointConstraint_<ContainerAllocator> &) { return value(); } 
00122 };
00123 
00124 } // namespace message_traits
00125 } // namespace ros
00126 
00127 namespace ros
00128 {
00129 namespace serialization
00130 {
00131 
00132 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::JointConstraint_<ContainerAllocator> >
00133 {
00134   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00135   {
00136     stream.next(m.joint_name);
00137     stream.next(m.position);
00138     stream.next(m.tolerance_above);
00139     stream.next(m.tolerance_below);
00140     stream.next(m.weight);
00141   }
00142 
00143   ROS_DECLARE_ALLINONE_SERIALIZER;
00144 }; // struct JointConstraint_
00145 } // namespace serialization
00146 } // namespace ros
00147 
00148 namespace ros
00149 {
00150 namespace message_operations
00151 {
00152 
00153 template<class ContainerAllocator>
00154 struct Printer< ::arm_navigation_msgs::JointConstraint_<ContainerAllocator> >
00155 {
00156   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::arm_navigation_msgs::JointConstraint_<ContainerAllocator> & v) 
00157   {
00158     s << indent << "joint_name: ";
00159     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.joint_name);
00160     s << indent << "position: ";
00161     Printer<double>::stream(s, indent + "  ", v.position);
00162     s << indent << "tolerance_above: ";
00163     Printer<double>::stream(s, indent + "  ", v.tolerance_above);
00164     s << indent << "tolerance_below: ";
00165     Printer<double>::stream(s, indent + "  ", v.tolerance_below);
00166     s << indent << "weight: ";
00167     Printer<double>::stream(s, indent + "  ", v.weight);
00168   }
00169 };
00170 
00171 
00172 } // namespace message_operations
00173 } // namespace ros
00174 
00175 #endif // ARM_NAVIGATION_MSGS_MESSAGE_JOINTCONSTRAINT_H
00176 


arm_navigation_msgs
Author(s): Gil Jones
autogenerated on Thu Dec 12 2013 11:08:10