JointLimits.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-arm_navigation/doc_stacks/2013-12-02_12-23-34.850326/arm_navigation/arm_navigation_msgs/msg/JointLimits.msg */
00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_JOINTLIMITS_H
00003 #define ARM_NAVIGATION_MSGS_MESSAGE_JOINTLIMITS_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 JointLimits_ {
00022   typedef JointLimits_<ContainerAllocator> Type;
00023 
00024   JointLimits_()
00025   : joint_name()
00026   , has_position_limits(false)
00027   , min_position(0.0)
00028   , max_position(0.0)
00029   , has_velocity_limits(false)
00030   , max_velocity(0.0)
00031   , has_acceleration_limits(false)
00032   , max_acceleration(0.0)
00033   {
00034   }
00035 
00036   JointLimits_(const ContainerAllocator& _alloc)
00037   : joint_name(_alloc)
00038   , has_position_limits(false)
00039   , min_position(0.0)
00040   , max_position(0.0)
00041   , has_velocity_limits(false)
00042   , max_velocity(0.0)
00043   , has_acceleration_limits(false)
00044   , max_acceleration(0.0)
00045   {
00046   }
00047 
00048   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _joint_name_type;
00049   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  joint_name;
00050 
00051   typedef uint8_t _has_position_limits_type;
00052   uint8_t has_position_limits;
00053 
00054   typedef double _min_position_type;
00055   double min_position;
00056 
00057   typedef double _max_position_type;
00058   double max_position;
00059 
00060   typedef uint8_t _has_velocity_limits_type;
00061   uint8_t has_velocity_limits;
00062 
00063   typedef double _max_velocity_type;
00064   double max_velocity;
00065 
00066   typedef uint8_t _has_acceleration_limits_type;
00067   uint8_t has_acceleration_limits;
00068 
00069   typedef double _max_acceleration_type;
00070   double max_acceleration;
00071 
00072 
00073   typedef boost::shared_ptr< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> > Ptr;
00074   typedef boost::shared_ptr< ::arm_navigation_msgs::JointLimits_<ContainerAllocator>  const> ConstPtr;
00075   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00076 }; // struct JointLimits
00077 typedef  ::arm_navigation_msgs::JointLimits_<std::allocator<void> > JointLimits;
00078 
00079 typedef boost::shared_ptr< ::arm_navigation_msgs::JointLimits> JointLimitsPtr;
00080 typedef boost::shared_ptr< ::arm_navigation_msgs::JointLimits const> JointLimitsConstPtr;
00081 
00082 
00083 template<typename ContainerAllocator>
00084 std::ostream& operator<<(std::ostream& s, const  ::arm_navigation_msgs::JointLimits_<ContainerAllocator> & v)
00085 {
00086   ros::message_operations::Printer< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> >::stream(s, "", v);
00087   return s;}
00088 
00089 } // namespace arm_navigation_msgs
00090 
00091 namespace ros
00092 {
00093 namespace message_traits
00094 {
00095 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> > : public TrueType {};
00096 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::JointLimits_<ContainerAllocator>  const> : public TrueType {};
00097 template<class ContainerAllocator>
00098 struct MD5Sum< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> > {
00099   static const char* value() 
00100   {
00101     return "8ca618c7329ea46142cbc864a2efe856";
00102   }
00103 
00104   static const char* value(const  ::arm_navigation_msgs::JointLimits_<ContainerAllocator> &) { return value(); } 
00105   static const uint64_t static_value1 = 0x8ca618c7329ea461ULL;
00106   static const uint64_t static_value2 = 0x42cbc864a2efe856ULL;
00107 };
00108 
00109 template<class ContainerAllocator>
00110 struct DataType< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> > {
00111   static const char* value() 
00112   {
00113     return "arm_navigation_msgs/JointLimits";
00114   }
00115 
00116   static const char* value(const  ::arm_navigation_msgs::JointLimits_<ContainerAllocator> &) { return value(); } 
00117 };
00118 
00119 template<class ContainerAllocator>
00120 struct Definition< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> > {
00121   static const char* value() 
00122   {
00123     return "# This message contains information about limits of a particular joint (or control dimension)\n\
00124 string joint_name\n\
00125 \n\
00126 # true if the joint has position limits\n\
00127 bool has_position_limits\n\
00128 \n\
00129 # min and max position limits\n\
00130 float64 min_position\n\
00131 float64 max_position\n\
00132 \n\
00133 # true if joint has velocity limits\n\
00134 bool has_velocity_limits\n\
00135 \n\
00136 # max velocity limit\n\
00137 float64 max_velocity\n\
00138 # min_velocity is assumed to be -max_velocity\n\
00139 \n\
00140 # true if joint has acceleration limits\n\
00141 bool has_acceleration_limits\n\
00142 # max acceleration limit\n\
00143 float64 max_acceleration\n\
00144 # min_acceleration is assumed to be -max_acceleration\n\
00145 \n\
00146 ";
00147   }
00148 
00149   static const char* value(const  ::arm_navigation_msgs::JointLimits_<ContainerAllocator> &) { return value(); } 
00150 };
00151 
00152 } // namespace message_traits
00153 } // namespace ros
00154 
00155 namespace ros
00156 {
00157 namespace serialization
00158 {
00159 
00160 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> >
00161 {
00162   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00163   {
00164     stream.next(m.joint_name);
00165     stream.next(m.has_position_limits);
00166     stream.next(m.min_position);
00167     stream.next(m.max_position);
00168     stream.next(m.has_velocity_limits);
00169     stream.next(m.max_velocity);
00170     stream.next(m.has_acceleration_limits);
00171     stream.next(m.max_acceleration);
00172   }
00173 
00174   ROS_DECLARE_ALLINONE_SERIALIZER;
00175 }; // struct JointLimits_
00176 } // namespace serialization
00177 } // namespace ros
00178 
00179 namespace ros
00180 {
00181 namespace message_operations
00182 {
00183 
00184 template<class ContainerAllocator>
00185 struct Printer< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> >
00186 {
00187   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::arm_navigation_msgs::JointLimits_<ContainerAllocator> & v) 
00188   {
00189     s << indent << "joint_name: ";
00190     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.joint_name);
00191     s << indent << "has_position_limits: ";
00192     Printer<uint8_t>::stream(s, indent + "  ", v.has_position_limits);
00193     s << indent << "min_position: ";
00194     Printer<double>::stream(s, indent + "  ", v.min_position);
00195     s << indent << "max_position: ";
00196     Printer<double>::stream(s, indent + "  ", v.max_position);
00197     s << indent << "has_velocity_limits: ";
00198     Printer<uint8_t>::stream(s, indent + "  ", v.has_velocity_limits);
00199     s << indent << "max_velocity: ";
00200     Printer<double>::stream(s, indent + "  ", v.max_velocity);
00201     s << indent << "has_acceleration_limits: ";
00202     Printer<uint8_t>::stream(s, indent + "  ", v.has_acceleration_limits);
00203     s << indent << "max_acceleration: ";
00204     Printer<double>::stream(s, indent + "  ", v.max_acceleration);
00205   }
00206 };
00207 
00208 
00209 } // namespace message_operations
00210 } // namespace ros
00211 
00212 #endif // ARM_NAVIGATION_MSGS_MESSAGE_JOINTLIMITS_H
00213 


arm_navigation_msgs
Author(s): Gil Jones
autogenerated on Mon Dec 2 2013 12:31:51