JointAnglesWithSpeed.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-alufr-humanoid_stacks/doc_stacks/2013-10-15_10-01-44.393682/nao_robot/nao_msgs/msg/JointAnglesWithSpeed.msg */
00002 #ifndef NAO_MSGS_MESSAGE_JOINTANGLESWITHSPEED_H
00003 #define NAO_MSGS_MESSAGE_JOINTANGLESWITHSPEED_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 
00019 namespace nao_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct JointAnglesWithSpeed_ {
00023   typedef JointAnglesWithSpeed_<ContainerAllocator> Type;
00024 
00025   JointAnglesWithSpeed_()
00026   : header()
00027   , joint_names()
00028   , joint_angles()
00029   , speed(0.0)
00030   , relative(0)
00031   {
00032   }
00033 
00034   JointAnglesWithSpeed_(const ContainerAllocator& _alloc)
00035   : header(_alloc)
00036   , joint_names(_alloc)
00037   , joint_angles(_alloc)
00038   , speed(0.0)
00039   , relative(0)
00040   {
00041   }
00042 
00043   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00044    ::std_msgs::Header_<ContainerAllocator>  header;
00045 
00046   typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  _joint_names_type;
00047   std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  joint_names;
00048 
00049   typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other >  _joint_angles_type;
00050   std::vector<float, typename ContainerAllocator::template rebind<float>::other >  joint_angles;
00051 
00052   typedef float _speed_type;
00053   float speed;
00054 
00055   typedef uint8_t _relative_type;
00056   uint8_t relative;
00057 
00058 
00059   typedef boost::shared_ptr< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > Ptr;
00060   typedef boost::shared_ptr< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator>  const> ConstPtr;
00061   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00062 }; // struct JointAnglesWithSpeed
00063 typedef  ::nao_msgs::JointAnglesWithSpeed_<std::allocator<void> > JointAnglesWithSpeed;
00064 
00065 typedef boost::shared_ptr< ::nao_msgs::JointAnglesWithSpeed> JointAnglesWithSpeedPtr;
00066 typedef boost::shared_ptr< ::nao_msgs::JointAnglesWithSpeed const> JointAnglesWithSpeedConstPtr;
00067 
00068 
00069 template<typename ContainerAllocator>
00070 std::ostream& operator<<(std::ostream& s, const  ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> & v)
00071 {
00072   ros::message_operations::Printer< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> >::stream(s, "", v);
00073   return s;}
00074 
00075 } // namespace nao_msgs
00076 
00077 namespace ros
00078 {
00079 namespace message_traits
00080 {
00081 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > : public TrueType {};
00082 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator>  const> : public TrueType {};
00083 template<class ContainerAllocator>
00084 struct MD5Sum< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > {
00085   static const char* value() 
00086   {
00087     return "052ca11f74a00ad6745dfff6ebc2b4d8";
00088   }
00089 
00090   static const char* value(const  ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> &) { return value(); } 
00091   static const uint64_t static_value1 = 0x052ca11f74a00ad6ULL;
00092   static const uint64_t static_value2 = 0x745dfff6ebc2b4d8ULL;
00093 };
00094 
00095 template<class ContainerAllocator>
00096 struct DataType< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > {
00097   static const char* value() 
00098   {
00099     return "nao_msgs/JointAnglesWithSpeed";
00100   }
00101 
00102   static const char* value(const  ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> &) { return value(); } 
00103 };
00104 
00105 template<class ContainerAllocator>
00106 struct Definition< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > {
00107   static const char* value() 
00108   {
00109     return "Header header\n\
00110 \n\
00111 # A list of joint names, corresponding to their names in the Nao docs.\n\
00112 # This must be either the same lenght of joint_angles or 1 if it's a\n\
00113 # keyword such as 'Body' (for all angles)\n\
00114 string[] joint_names\n\
00115 float32[] joint_angles\n\
00116 \n\
00117 #fraction of max joint velocity [0:1]\n\
00118 float32 speed\n\
00119 \n\
00120 # Absolute angle(=0, default) or relative change\n\
00121 uint8 relative\n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: std_msgs/Header\n\
00125 # Standard metadata for higher-level stamped data types.\n\
00126 # This is generally used to communicate timestamped data \n\
00127 # in a particular coordinate frame.\n\
00128 # \n\
00129 # sequence ID: consecutively increasing ID \n\
00130 uint32 seq\n\
00131 #Two-integer timestamp that is expressed as:\n\
00132 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00133 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00134 # time-handling sugar is provided by the client library\n\
00135 time stamp\n\
00136 #Frame this data is associated with\n\
00137 # 0: no frame\n\
00138 # 1: global frame\n\
00139 string frame_id\n\
00140 \n\
00141 ";
00142   }
00143 
00144   static const char* value(const  ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> &) { return value(); } 
00145 };
00146 
00147 template<class ContainerAllocator> struct HasHeader< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > : public TrueType {};
00148 template<class ContainerAllocator> struct HasHeader< const ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > : public TrueType {};
00149 } // namespace message_traits
00150 } // namespace ros
00151 
00152 namespace ros
00153 {
00154 namespace serialization
00155 {
00156 
00157 template<class ContainerAllocator> struct Serializer< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> >
00158 {
00159   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00160   {
00161     stream.next(m.header);
00162     stream.next(m.joint_names);
00163     stream.next(m.joint_angles);
00164     stream.next(m.speed);
00165     stream.next(m.relative);
00166   }
00167 
00168   ROS_DECLARE_ALLINONE_SERIALIZER;
00169 }; // struct JointAnglesWithSpeed_
00170 } // namespace serialization
00171 } // namespace ros
00172 
00173 namespace ros
00174 {
00175 namespace message_operations
00176 {
00177 
00178 template<class ContainerAllocator>
00179 struct Printer< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> >
00180 {
00181   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> & v) 
00182   {
00183     s << indent << "header: ";
00184 s << std::endl;
00185     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00186     s << indent << "joint_names[]" << std::endl;
00187     for (size_t i = 0; i < v.joint_names.size(); ++i)
00188     {
00189       s << indent << "  joint_names[" << i << "]: ";
00190       Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.joint_names[i]);
00191     }
00192     s << indent << "joint_angles[]" << std::endl;
00193     for (size_t i = 0; i < v.joint_angles.size(); ++i)
00194     {
00195       s << indent << "  joint_angles[" << i << "]: ";
00196       Printer<float>::stream(s, indent + "  ", v.joint_angles[i]);
00197     }
00198     s << indent << "speed: ";
00199     Printer<float>::stream(s, indent + "  ", v.speed);
00200     s << indent << "relative: ";
00201     Printer<uint8_t>::stream(s, indent + "  ", v.relative);
00202   }
00203 };
00204 
00205 
00206 } // namespace message_operations
00207 } // namespace ros
00208 
00209 #endif // NAO_MSGS_MESSAGE_JOINTANGLESWITHSPEED_H
00210 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


nao_msgs
Author(s): Armin Hornung, Stefan Osswald, Daniel Maier
autogenerated on Tue Oct 15 2013 10:05:22