JointCommand.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-rtm-ros-robotics__rtmros_common/doc_stacks/2013-07-23_11-44-14.910425/rtm-ros-robotics/rtmros_common/hrpsys_gazebo_msgs/msg/JointCommand.msg */
00002 #ifndef HRPSYS_GAZEBO_MSGS_MESSAGE_JOINTCOMMAND_H
00003 #define HRPSYS_GAZEBO_MSGS_MESSAGE_JOINTCOMMAND_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 hrpsys_gazebo_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct JointCommand_ {
00023   typedef JointCommand_<ContainerAllocator> Type;
00024 
00025   JointCommand_()
00026   : header()
00027   , position()
00028   , velocity()
00029   , effort()
00030   , kp_position()
00031   , ki_position()
00032   , kd_position()
00033   , kp_velocity()
00034   , i_effort_min()
00035   , i_effort_max()
00036   , desired_controller_period_ms(0)
00037   {
00038   }
00039 
00040   JointCommand_(const ContainerAllocator& _alloc)
00041   : header(_alloc)
00042   , position(_alloc)
00043   , velocity(_alloc)
00044   , effort(_alloc)
00045   , kp_position(_alloc)
00046   , ki_position(_alloc)
00047   , kd_position(_alloc)
00048   , kp_velocity(_alloc)
00049   , i_effort_min(_alloc)
00050   , i_effort_max(_alloc)
00051   , desired_controller_period_ms(0)
00052   {
00053   }
00054 
00055   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00056    ::std_msgs::Header_<ContainerAllocator>  header;
00057 
00058   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _position_type;
00059   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  position;
00060 
00061   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _velocity_type;
00062   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  velocity;
00063 
00064   typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >  _effort_type;
00065   std::vector<double, typename ContainerAllocator::template rebind<double>::other >  effort;
00066 
00067   typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other >  _kp_position_type;
00068   std::vector<float, typename ContainerAllocator::template rebind<float>::other >  kp_position;
00069 
00070   typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other >  _ki_position_type;
00071   std::vector<float, typename ContainerAllocator::template rebind<float>::other >  ki_position;
00072 
00073   typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other >  _kd_position_type;
00074   std::vector<float, typename ContainerAllocator::template rebind<float>::other >  kd_position;
00075 
00076   typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other >  _kp_velocity_type;
00077   std::vector<float, typename ContainerAllocator::template rebind<float>::other >  kp_velocity;
00078 
00079   typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other >  _i_effort_min_type;
00080   std::vector<float, typename ContainerAllocator::template rebind<float>::other >  i_effort_min;
00081 
00082   typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other >  _i_effort_max_type;
00083   std::vector<float, typename ContainerAllocator::template rebind<float>::other >  i_effort_max;
00084 
00085   typedef uint8_t _desired_controller_period_ms_type;
00086   uint8_t desired_controller_period_ms;
00087 
00088 
00089   typedef boost::shared_ptr< ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> > Ptr;
00090   typedef boost::shared_ptr< ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator>  const> ConstPtr;
00091   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00092 }; // struct JointCommand
00093 typedef  ::hrpsys_gazebo_msgs::JointCommand_<std::allocator<void> > JointCommand;
00094 
00095 typedef boost::shared_ptr< ::hrpsys_gazebo_msgs::JointCommand> JointCommandPtr;
00096 typedef boost::shared_ptr< ::hrpsys_gazebo_msgs::JointCommand const> JointCommandConstPtr;
00097 
00098 
00099 template<typename ContainerAllocator>
00100 std::ostream& operator<<(std::ostream& s, const  ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> & v)
00101 {
00102   ros::message_operations::Printer< ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> >::stream(s, "", v);
00103   return s;}
00104 
00105 } // namespace hrpsys_gazebo_msgs
00106 
00107 namespace ros
00108 {
00109 namespace message_traits
00110 {
00111 template<class ContainerAllocator> struct IsMessage< ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> > : public TrueType {};
00112 template<class ContainerAllocator> struct IsMessage< ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator>  const> : public TrueType {};
00113 template<class ContainerAllocator>
00114 struct MD5Sum< ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> > {
00115   static const char* value() 
00116   {
00117     return "a0372ef5d92196049cc6aad1edca920c";
00118   }
00119 
00120   static const char* value(const  ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> &) { return value(); } 
00121   static const uint64_t static_value1 = 0xa0372ef5d9219604ULL;
00122   static const uint64_t static_value2 = 0x9cc6aad1edca920cULL;
00123 };
00124 
00125 template<class ContainerAllocator>
00126 struct DataType< ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> > {
00127   static const char* value() 
00128   {
00129     return "hrpsys_gazebo_msgs/JointCommand";
00130   }
00131 
00132   static const char* value(const  ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> &) { return value(); } 
00133 };
00134 
00135 template<class ContainerAllocator>
00136 struct Definition< ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> > {
00137   static const char* value() 
00138   {
00139     return "# Joint Command Message\n\
00140 # This structure contains the gains to be applied to a joint.\n\
00141 # The controller is a PID with feedforward desired torque:\n\
00142 #\n\
00143 # This message has been carefully constructed to be less\n\
00144 # than 1500 in size when serialized, to accommodate transfer\n\
00145 # UDP.\n\
00146 #\n\
00147 #   k_effort * (\n\
00148 #     kp_position     * ( position - measured_position )       +\n\
00149 #     ki_position     * 1/s * ( position - measured_position ) +\n\
00150 #     kd_position     * s * ( position - measured_position ) +\n\
00151 #     kp_velocity     * ( velocity - measured_velocity )     +\n\
00152 #     effort ) +\n\
00153 #   (1 - k_effort)  * effort_bdi\n\
00154 #\n\
00155 #  Where effort_bdi comes from AtlasSimInterface Dynamics Behavior Library.\n\
00156 #\n\
00157 Header header\n\
00158 \n\
00159 float64[] position\n\
00160 float64[] velocity\n\
00161 float64[] effort\n\
00162 \n\
00163 float32[] kp_position\n\
00164 float32[] ki_position\n\
00165 float32[] kd_position\n\
00166 float32[] kp_velocity\n\
00167 \n\
00168 float32[] i_effort_min\n\
00169 float32[] i_effort_max\n\
00170 \n\
00171 uint8 desired_controller_period_ms # max allowed controller update period in milli-seconds simulation time for controller synchronization.  See SynchronizationStatistics.msg for tracking synchronization status.\n\
00172 \n\
00173 ================================================================================\n\
00174 MSG: std_msgs/Header\n\
00175 # Standard metadata for higher-level stamped data types.\n\
00176 # This is generally used to communicate timestamped data \n\
00177 # in a particular coordinate frame.\n\
00178 # \n\
00179 # sequence ID: consecutively increasing ID \n\
00180 uint32 seq\n\
00181 #Two-integer timestamp that is expressed as:\n\
00182 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00183 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00184 # time-handling sugar is provided by the client library\n\
00185 time stamp\n\
00186 #Frame this data is associated with\n\
00187 # 0: no frame\n\
00188 # 1: global frame\n\
00189 string frame_id\n\
00190 \n\
00191 ";
00192   }
00193 
00194   static const char* value(const  ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> &) { return value(); } 
00195 };
00196 
00197 template<class ContainerAllocator> struct HasHeader< ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> > : public TrueType {};
00198 template<class ContainerAllocator> struct HasHeader< const ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> > : public TrueType {};
00199 } // namespace message_traits
00200 } // namespace ros
00201 
00202 namespace ros
00203 {
00204 namespace serialization
00205 {
00206 
00207 template<class ContainerAllocator> struct Serializer< ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> >
00208 {
00209   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00210   {
00211     stream.next(m.header);
00212     stream.next(m.position);
00213     stream.next(m.velocity);
00214     stream.next(m.effort);
00215     stream.next(m.kp_position);
00216     stream.next(m.ki_position);
00217     stream.next(m.kd_position);
00218     stream.next(m.kp_velocity);
00219     stream.next(m.i_effort_min);
00220     stream.next(m.i_effort_max);
00221     stream.next(m.desired_controller_period_ms);
00222   }
00223 
00224   ROS_DECLARE_ALLINONE_SERIALIZER;
00225 }; // struct JointCommand_
00226 } // namespace serialization
00227 } // namespace ros
00228 
00229 namespace ros
00230 {
00231 namespace message_operations
00232 {
00233 
00234 template<class ContainerAllocator>
00235 struct Printer< ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> >
00236 {
00237   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::hrpsys_gazebo_msgs::JointCommand_<ContainerAllocator> & v) 
00238   {
00239     s << indent << "header: ";
00240 s << std::endl;
00241     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00242     s << indent << "position[]" << std::endl;
00243     for (size_t i = 0; i < v.position.size(); ++i)
00244     {
00245       s << indent << "  position[" << i << "]: ";
00246       Printer<double>::stream(s, indent + "  ", v.position[i]);
00247     }
00248     s << indent << "velocity[]" << std::endl;
00249     for (size_t i = 0; i < v.velocity.size(); ++i)
00250     {
00251       s << indent << "  velocity[" << i << "]: ";
00252       Printer<double>::stream(s, indent + "  ", v.velocity[i]);
00253     }
00254     s << indent << "effort[]" << std::endl;
00255     for (size_t i = 0; i < v.effort.size(); ++i)
00256     {
00257       s << indent << "  effort[" << i << "]: ";
00258       Printer<double>::stream(s, indent + "  ", v.effort[i]);
00259     }
00260     s << indent << "kp_position[]" << std::endl;
00261     for (size_t i = 0; i < v.kp_position.size(); ++i)
00262     {
00263       s << indent << "  kp_position[" << i << "]: ";
00264       Printer<float>::stream(s, indent + "  ", v.kp_position[i]);
00265     }
00266     s << indent << "ki_position[]" << std::endl;
00267     for (size_t i = 0; i < v.ki_position.size(); ++i)
00268     {
00269       s << indent << "  ki_position[" << i << "]: ";
00270       Printer<float>::stream(s, indent + "  ", v.ki_position[i]);
00271     }
00272     s << indent << "kd_position[]" << std::endl;
00273     for (size_t i = 0; i < v.kd_position.size(); ++i)
00274     {
00275       s << indent << "  kd_position[" << i << "]: ";
00276       Printer<float>::stream(s, indent + "  ", v.kd_position[i]);
00277     }
00278     s << indent << "kp_velocity[]" << std::endl;
00279     for (size_t i = 0; i < v.kp_velocity.size(); ++i)
00280     {
00281       s << indent << "  kp_velocity[" << i << "]: ";
00282       Printer<float>::stream(s, indent + "  ", v.kp_velocity[i]);
00283     }
00284     s << indent << "i_effort_min[]" << std::endl;
00285     for (size_t i = 0; i < v.i_effort_min.size(); ++i)
00286     {
00287       s << indent << "  i_effort_min[" << i << "]: ";
00288       Printer<float>::stream(s, indent + "  ", v.i_effort_min[i]);
00289     }
00290     s << indent << "i_effort_max[]" << std::endl;
00291     for (size_t i = 0; i < v.i_effort_max.size(); ++i)
00292     {
00293       s << indent << "  i_effort_max[" << i << "]: ";
00294       Printer<float>::stream(s, indent + "  ", v.i_effort_max[i]);
00295     }
00296     s << indent << "desired_controller_period_ms: ";
00297     Printer<uint8_t>::stream(s, indent + "  ", v.desired_controller_period_ms);
00298   }
00299 };
00300 
00301 
00302 } // namespace message_operations
00303 } // namespace ros
00304 
00305 #endif // HRPSYS_GAZEBO_MSGS_MESSAGE_JOINTCOMMAND_H
00306 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


hrpsys_gazebo_msgs
Author(s): Yohei Kakiuchi
autogenerated on Tue Jul 23 2013 11:48:59