JointMuscleValveControllerCommand.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-shadow_robot/doc_stacks/2014-10-06_07-33-10.674696/shadow_robot/sr_robot_msgs/msg/JointMuscleValveControllerCommand.msg */
00002 #ifndef SR_ROBOT_MSGS_MESSAGE_JOINTMUSCLEVALVECONTROLLERCOMMAND_H
00003 #define SR_ROBOT_MSGS_MESSAGE_JOINTMUSCLEVALVECONTROLLERCOMMAND_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 sr_robot_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct JointMuscleValveControllerCommand_ {
00022   typedef JointMuscleValveControllerCommand_<ContainerAllocator> Type;
00023 
00024   JointMuscleValveControllerCommand_()
00025   : cmd_valve_muscle()
00026   , cmd_duration_ms()
00027   {
00028     cmd_valve_muscle.assign(0);
00029     cmd_duration_ms.assign(0);
00030   }
00031 
00032   JointMuscleValveControllerCommand_(const ContainerAllocator& _alloc)
00033   : cmd_valve_muscle()
00034   , cmd_duration_ms()
00035   {
00036     cmd_valve_muscle.assign(0);
00037     cmd_duration_ms.assign(0);
00038   }
00039 
00040   typedef boost::array<int8_t, 2>  _cmd_valve_muscle_type;
00041   boost::array<int8_t, 2>  cmd_valve_muscle;
00042 
00043   typedef boost::array<uint64_t, 2>  _cmd_duration_ms_type;
00044   boost::array<uint64_t, 2>  cmd_duration_ms;
00045 
00046 
00047   typedef boost::shared_ptr< ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> > Ptr;
00048   typedef boost::shared_ptr< ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator>  const> ConstPtr;
00049   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00050 }; // struct JointMuscleValveControllerCommand
00051 typedef  ::sr_robot_msgs::JointMuscleValveControllerCommand_<std::allocator<void> > JointMuscleValveControllerCommand;
00052 
00053 typedef boost::shared_ptr< ::sr_robot_msgs::JointMuscleValveControllerCommand> JointMuscleValveControllerCommandPtr;
00054 typedef boost::shared_ptr< ::sr_robot_msgs::JointMuscleValveControllerCommand const> JointMuscleValveControllerCommandConstPtr;
00055 
00056 
00057 template<typename ContainerAllocator>
00058 std::ostream& operator<<(std::ostream& s, const  ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> & v)
00059 {
00060   ros::message_operations::Printer< ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> >::stream(s, "", v);
00061   return s;}
00062 
00063 } // namespace sr_robot_msgs
00064 
00065 namespace ros
00066 {
00067 namespace message_traits
00068 {
00069 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> > : public TrueType {};
00070 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator>  const> : public TrueType {};
00071 template<class ContainerAllocator>
00072 struct MD5Sum< ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> > {
00073   static const char* value() 
00074   {
00075     return "1a35a9f185150fc2bca2640471eeb55f";
00076   }
00077 
00078   static const char* value(const  ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> &) { return value(); } 
00079   static const uint64_t static_value1 = 0x1a35a9f185150fc2ULL;
00080   static const uint64_t static_value2 = 0xbca2640471eeb55fULL;
00081 };
00082 
00083 template<class ContainerAllocator>
00084 struct DataType< ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> > {
00085   static const char* value() 
00086   {
00087     return "sr_robot_msgs/JointMuscleValveControllerCommand";
00088   }
00089 
00090   static const char* value(const  ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> &) { return value(); } 
00091 };
00092 
00093 template<class ContainerAllocator>
00094 struct Definition< ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> > {
00095   static const char* value() 
00096   {
00097     return "# This command will allow the user to specify a separate command for each of the two muscles that control the joint.\n\
00098 # The user will also specify a duration in ms for that command. During this duration the command will be sent to the hand\n\
00099 # every ms. \n\
00100 # Once this duration period has elapsed, a command of 0 will be sent to the muscle (meaning both the filling and emptying valves for that \n\
00101 # muscle remain closed), until a new command is received\n\
00102 # A duration of 0 means that there is no timeout, so the valve command will be sent to the muscle until a different valve command is received.\n\
00103 # BE CAREFUL WHEN USING A DURATION OF 0 AS THIS COULD EVENTUALLY DAMAGE THE MUSCLE\n\
00104 \n\
00105 # Allowed values for the cmd_valve_muscle are integers from -4 to +4.\n\
00106 # +4 the filling valve is open during a full ms cycle. Emptying valve is closed\n\
00107 # +3 the filling valve is open during 0.75 ms and closed during 0.25 ms in a 1 ms cycle. Emptying valve is closed\n\
00108 # +2 the filling valve is open during 0.5 ms and closed during 0.5 ms in a 1 ms cycle. Emptying valve is closed\n\
00109 # +1 the filling valve is open during 0.25 ms and closed during 0.75 ms in a 1 ms cycle. Emptying valve is closed\n\
00110 # 0 both valves (filling and emptying) remain closed in a 1 ms cycle\n\
00111 # ...\n\
00112 # -3 the emptying valve is open during 0.75 ms and closed during 0.25 ms in a 1 ms cycle. Filling valve is closed\n\
00113 # -4 the emptying valve is open during a full ms cycle. Filling valve is closed\n\
00114 \n\
00115 int8[2] cmd_valve_muscle\n\
00116 uint64[2] cmd_duration_ms\n\
00117 \n\
00118 \n\
00119 \n\
00120 \n\
00121 ";
00122   }
00123 
00124   static const char* value(const  ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> &) { return value(); } 
00125 };
00126 
00127 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> > : public TrueType {};
00128 } // namespace message_traits
00129 } // namespace ros
00130 
00131 namespace ros
00132 {
00133 namespace serialization
00134 {
00135 
00136 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> >
00137 {
00138   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00139   {
00140     stream.next(m.cmd_valve_muscle);
00141     stream.next(m.cmd_duration_ms);
00142   }
00143 
00144   ROS_DECLARE_ALLINONE_SERIALIZER;
00145 }; // struct JointMuscleValveControllerCommand_
00146 } // namespace serialization
00147 } // namespace ros
00148 
00149 namespace ros
00150 {
00151 namespace message_operations
00152 {
00153 
00154 template<class ContainerAllocator>
00155 struct Printer< ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> >
00156 {
00157   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::sr_robot_msgs::JointMuscleValveControllerCommand_<ContainerAllocator> & v) 
00158   {
00159     s << indent << "cmd_valve_muscle[]" << std::endl;
00160     for (size_t i = 0; i < v.cmd_valve_muscle.size(); ++i)
00161     {
00162       s << indent << "  cmd_valve_muscle[" << i << "]: ";
00163       Printer<int8_t>::stream(s, indent + "  ", v.cmd_valve_muscle[i]);
00164     }
00165     s << indent << "cmd_duration_ms[]" << std::endl;
00166     for (size_t i = 0; i < v.cmd_duration_ms.size(); ++i)
00167     {
00168       s << indent << "  cmd_duration_ms[" << i << "]: ";
00169       Printer<uint64_t>::stream(s, indent + "  ", v.cmd_duration_ms[i]);
00170     }
00171   }
00172 };
00173 
00174 
00175 } // namespace message_operations
00176 } // namespace ros
00177 
00178 #endif // SR_ROBOT_MSGS_MESSAGE_JOINTMUSCLEVALVECONTROLLERCOMMAND_H
00179 


sr_robot_msgs
Author(s): Ugo Cupcic/ugo@shadowrobot.com
autogenerated on Mon Oct 6 2014 07:40:06