JointState.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-dynamixel_motor_experimental/doc_stacks/2014-10-05_23-31-27.140474/dynamixel_motor_experimental/dynamixel_hardware_interface/msg/JointState.msg */
00002 #ifndef DYNAMIXEL_HARDWARE_INTERFACE_MESSAGE_JOINTSTATE_H
00003 #define DYNAMIXEL_HARDWARE_INTERFACE_MESSAGE_JOINTSTATE_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 dynamixel_hardware_interface
00020 {
00021 template <class ContainerAllocator>
00022 struct JointState_ {
00023   typedef JointState_<ContainerAllocator> Type;
00024 
00025   JointState_()
00026   : header()
00027   , name()
00028   , target_position(0.0)
00029   , target_velocity(0.0)
00030   , position(0.0)
00031   , velocity(0.0)
00032   , load(0.0)
00033   , moving(false)
00034   {
00035   }
00036 
00037   JointState_(const ContainerAllocator& _alloc)
00038   : header(_alloc)
00039   , name(_alloc)
00040   , target_position(0.0)
00041   , target_velocity(0.0)
00042   , position(0.0)
00043   , velocity(0.0)
00044   , load(0.0)
00045   , moving(false)
00046   {
00047   }
00048 
00049   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00050    ::std_msgs::Header_<ContainerAllocator>  header;
00051 
00052   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _name_type;
00053   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  name;
00054 
00055   typedef double _target_position_type;
00056   double target_position;
00057 
00058   typedef double _target_velocity_type;
00059   double target_velocity;
00060 
00061   typedef double _position_type;
00062   double position;
00063 
00064   typedef double _velocity_type;
00065   double velocity;
00066 
00067   typedef double _load_type;
00068   double load;
00069 
00070   typedef uint8_t _moving_type;
00071   uint8_t moving;
00072 
00073 
00074   typedef boost::shared_ptr< ::dynamixel_hardware_interface::JointState_<ContainerAllocator> > Ptr;
00075   typedef boost::shared_ptr< ::dynamixel_hardware_interface::JointState_<ContainerAllocator>  const> ConstPtr;
00076   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00077 }; // struct JointState
00078 typedef  ::dynamixel_hardware_interface::JointState_<std::allocator<void> > JointState;
00079 
00080 typedef boost::shared_ptr< ::dynamixel_hardware_interface::JointState> JointStatePtr;
00081 typedef boost::shared_ptr< ::dynamixel_hardware_interface::JointState const> JointStateConstPtr;
00082 
00083 
00084 template<typename ContainerAllocator>
00085 std::ostream& operator<<(std::ostream& s, const  ::dynamixel_hardware_interface::JointState_<ContainerAllocator> & v)
00086 {
00087   ros::message_operations::Printer< ::dynamixel_hardware_interface::JointState_<ContainerAllocator> >::stream(s, "", v);
00088   return s;}
00089 
00090 } // namespace dynamixel_hardware_interface
00091 
00092 namespace ros
00093 {
00094 namespace message_traits
00095 {
00096 template<class ContainerAllocator> struct IsMessage< ::dynamixel_hardware_interface::JointState_<ContainerAllocator> > : public TrueType {};
00097 template<class ContainerAllocator> struct IsMessage< ::dynamixel_hardware_interface::JointState_<ContainerAllocator>  const> : public TrueType {};
00098 template<class ContainerAllocator>
00099 struct MD5Sum< ::dynamixel_hardware_interface::JointState_<ContainerAllocator> > {
00100   static const char* value() 
00101   {
00102     return "0fab1cf305c2bcc21c2d79dd7bcae0a9";
00103   }
00104 
00105   static const char* value(const  ::dynamixel_hardware_interface::JointState_<ContainerAllocator> &) { return value(); } 
00106   static const uint64_t static_value1 = 0x0fab1cf305c2bcc2ULL;
00107   static const uint64_t static_value2 = 0x1c2d79dd7bcae0a9ULL;
00108 };
00109 
00110 template<class ContainerAllocator>
00111 struct DataType< ::dynamixel_hardware_interface::JointState_<ContainerAllocator> > {
00112   static const char* value() 
00113   {
00114     return "dynamixel_hardware_interface/JointState";
00115   }
00116 
00117   static const char* value(const  ::dynamixel_hardware_interface::JointState_<ContainerAllocator> &) { return value(); } 
00118 };
00119 
00120 template<class ContainerAllocator>
00121 struct Definition< ::dynamixel_hardware_interface::JointState_<ContainerAllocator> > {
00122   static const char* value() 
00123   {
00124     return "Header header\n\
00125 string name             # joint name\n\
00126 float64 target_position # commanded position (in radians)\n\
00127 float64 target_velocity # commanded position (in radians per second)\n\
00128 float64 position        # current joint position (in radians)\n\
00129 float64 velocity        # current joint speed (in radians per second)\n\
00130 float64 load            # current load\n\
00131 bool    moving          # is joint currently in motion\n\
00132 \n\
00133 \n\
00134 ================================================================================\n\
00135 MSG: std_msgs/Header\n\
00136 # Standard metadata for higher-level stamped data types.\n\
00137 # This is generally used to communicate timestamped data \n\
00138 # in a particular coordinate frame.\n\
00139 # \n\
00140 # sequence ID: consecutively increasing ID \n\
00141 uint32 seq\n\
00142 #Two-integer timestamp that is expressed as:\n\
00143 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00144 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00145 # time-handling sugar is provided by the client library\n\
00146 time stamp\n\
00147 #Frame this data is associated with\n\
00148 # 0: no frame\n\
00149 # 1: global frame\n\
00150 string frame_id\n\
00151 \n\
00152 ";
00153   }
00154 
00155   static const char* value(const  ::dynamixel_hardware_interface::JointState_<ContainerAllocator> &) { return value(); } 
00156 };
00157 
00158 template<class ContainerAllocator> struct HasHeader< ::dynamixel_hardware_interface::JointState_<ContainerAllocator> > : public TrueType {};
00159 template<class ContainerAllocator> struct HasHeader< const ::dynamixel_hardware_interface::JointState_<ContainerAllocator> > : public TrueType {};
00160 } // namespace message_traits
00161 } // namespace ros
00162 
00163 namespace ros
00164 {
00165 namespace serialization
00166 {
00167 
00168 template<class ContainerAllocator> struct Serializer< ::dynamixel_hardware_interface::JointState_<ContainerAllocator> >
00169 {
00170   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00171   {
00172     stream.next(m.header);
00173     stream.next(m.name);
00174     stream.next(m.target_position);
00175     stream.next(m.target_velocity);
00176     stream.next(m.position);
00177     stream.next(m.velocity);
00178     stream.next(m.load);
00179     stream.next(m.moving);
00180   }
00181 
00182   ROS_DECLARE_ALLINONE_SERIALIZER;
00183 }; // struct JointState_
00184 } // namespace serialization
00185 } // namespace ros
00186 
00187 namespace ros
00188 {
00189 namespace message_operations
00190 {
00191 
00192 template<class ContainerAllocator>
00193 struct Printer< ::dynamixel_hardware_interface::JointState_<ContainerAllocator> >
00194 {
00195   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::dynamixel_hardware_interface::JointState_<ContainerAllocator> & v) 
00196   {
00197     s << indent << "header: ";
00198 s << std::endl;
00199     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00200     s << indent << "name: ";
00201     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.name);
00202     s << indent << "target_position: ";
00203     Printer<double>::stream(s, indent + "  ", v.target_position);
00204     s << indent << "target_velocity: ";
00205     Printer<double>::stream(s, indent + "  ", v.target_velocity);
00206     s << indent << "position: ";
00207     Printer<double>::stream(s, indent + "  ", v.position);
00208     s << indent << "velocity: ";
00209     Printer<double>::stream(s, indent + "  ", v.velocity);
00210     s << indent << "load: ";
00211     Printer<double>::stream(s, indent + "  ", v.load);
00212     s << indent << "moving: ";
00213     Printer<uint8_t>::stream(s, indent + "  ", v.moving);
00214   }
00215 };
00216 
00217 
00218 } // namespace message_operations
00219 } // namespace ros
00220 
00221 #endif // DYNAMIXEL_HARDWARE_INTERFACE_MESSAGE_JOINTSTATE_H
00222 


dynamixel_hardware_interface
Author(s): Antons Rebguns
autogenerated on Sun Oct 5 2014 23:33:10