Go to the documentation of this file.00001
00002 #ifndef SR_ROBOT_MSGS_MESSAGE_MOTORSYSTEMCONTROLS_H
00003 #define SR_ROBOT_MSGS_MESSAGE_MOTORSYSTEMCONTROLS_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 MotorSystemControls_ {
00022 typedef MotorSystemControls_<ContainerAllocator> Type;
00023
00024 MotorSystemControls_()
00025 : motor_id(0)
00026 , enable_backlash_compensation(false)
00027 , increase_sgl_tracking(false)
00028 , decrease_sgl_tracking(false)
00029 , increase_sgr_tracking(false)
00030 , decrease_sgr_tracking(false)
00031 , initiate_jiggling(false)
00032 , write_config_to_eeprom(false)
00033 {
00034 }
00035
00036 MotorSystemControls_(const ContainerAllocator& _alloc)
00037 : motor_id(0)
00038 , enable_backlash_compensation(false)
00039 , increase_sgl_tracking(false)
00040 , decrease_sgl_tracking(false)
00041 , increase_sgr_tracking(false)
00042 , decrease_sgr_tracking(false)
00043 , initiate_jiggling(false)
00044 , write_config_to_eeprom(false)
00045 {
00046 }
00047
00048 typedef int8_t _motor_id_type;
00049 int8_t motor_id;
00050
00051 typedef uint8_t _enable_backlash_compensation_type;
00052 uint8_t enable_backlash_compensation;
00053
00054 typedef uint8_t _increase_sgl_tracking_type;
00055 uint8_t increase_sgl_tracking;
00056
00057 typedef uint8_t _decrease_sgl_tracking_type;
00058 uint8_t decrease_sgl_tracking;
00059
00060 typedef uint8_t _increase_sgr_tracking_type;
00061 uint8_t increase_sgr_tracking;
00062
00063 typedef uint8_t _decrease_sgr_tracking_type;
00064 uint8_t decrease_sgr_tracking;
00065
00066 typedef uint8_t _initiate_jiggling_type;
00067 uint8_t initiate_jiggling;
00068
00069 typedef uint8_t _write_config_to_eeprom_type;
00070 uint8_t write_config_to_eeprom;
00071
00072
00073 typedef boost::shared_ptr< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > Ptr;
00074 typedef boost::shared_ptr< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> const> ConstPtr;
00075 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00076 };
00077 typedef ::sr_robot_msgs::MotorSystemControls_<std::allocator<void> > MotorSystemControls;
00078
00079 typedef boost::shared_ptr< ::sr_robot_msgs::MotorSystemControls> MotorSystemControlsPtr;
00080 typedef boost::shared_ptr< ::sr_robot_msgs::MotorSystemControls const> MotorSystemControlsConstPtr;
00081
00082
00083 template<typename ContainerAllocator>
00084 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> & v)
00085 {
00086 ros::message_operations::Printer< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> >::stream(s, "", v);
00087 return s;}
00088
00089 }
00090
00091 namespace ros
00092 {
00093 namespace message_traits
00094 {
00095 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > : public TrueType {};
00096 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> const> : public TrueType {};
00097 template<class ContainerAllocator>
00098 struct MD5Sum< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "0686822f46acfde0133711bd613a20f1";
00102 }
00103
00104 static const char* value(const ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> &) { return value(); }
00105 static const uint64_t static_value1 = 0x0686822f46acfde0ULL;
00106 static const uint64_t static_value2 = 0x133711bd613a20f1ULL;
00107 };
00108
00109 template<class ContainerAllocator>
00110 struct DataType< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "sr_robot_msgs/MotorSystemControls";
00114 }
00115
00116 static const char* value(const ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> &) { return value(); }
00117 };
00118
00119 template<class ContainerAllocator>
00120 struct Definition< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "int8 motor_id # the id of the motor you want to control\n\
00124 \n\
00125 bool enable_backlash_compensation # switch on/off backlash compensation at the motor level\n\
00126 bool increase_sgl_tracking # increment the tracking value for the left gauge\n\
00127 bool decrease_sgl_tracking # decrement the tracking value for the left gauge\n\
00128 bool increase_sgr_tracking # increment the tracking value for the right gauge\n\
00129 bool decrease_sgr_tracking # decrement the tracking value for the right gauge\n\
00130 bool initiate_jiggling # starts jiggling the given motor\n\
00131 bool write_config_to_eeprom # write the current configuration to the eeprom\n\
00132 ";
00133 }
00134
00135 static const char* value(const ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> &) { return value(); }
00136 };
00137
00138 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > : public TrueType {};
00139 }
00140 }
00141
00142 namespace ros
00143 {
00144 namespace serialization
00145 {
00146
00147 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> >
00148 {
00149 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00150 {
00151 stream.next(m.motor_id);
00152 stream.next(m.enable_backlash_compensation);
00153 stream.next(m.increase_sgl_tracking);
00154 stream.next(m.decrease_sgl_tracking);
00155 stream.next(m.increase_sgr_tracking);
00156 stream.next(m.decrease_sgr_tracking);
00157 stream.next(m.initiate_jiggling);
00158 stream.next(m.write_config_to_eeprom);
00159 }
00160
00161 ROS_DECLARE_ALLINONE_SERIALIZER;
00162 };
00163 }
00164 }
00165
00166 namespace ros
00167 {
00168 namespace message_operations
00169 {
00170
00171 template<class ContainerAllocator>
00172 struct Printer< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> >
00173 {
00174 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> & v)
00175 {
00176 s << indent << "motor_id: ";
00177 Printer<int8_t>::stream(s, indent + " ", v.motor_id);
00178 s << indent << "enable_backlash_compensation: ";
00179 Printer<uint8_t>::stream(s, indent + " ", v.enable_backlash_compensation);
00180 s << indent << "increase_sgl_tracking: ";
00181 Printer<uint8_t>::stream(s, indent + " ", v.increase_sgl_tracking);
00182 s << indent << "decrease_sgl_tracking: ";
00183 Printer<uint8_t>::stream(s, indent + " ", v.decrease_sgl_tracking);
00184 s << indent << "increase_sgr_tracking: ";
00185 Printer<uint8_t>::stream(s, indent + " ", v.increase_sgr_tracking);
00186 s << indent << "decrease_sgr_tracking: ";
00187 Printer<uint8_t>::stream(s, indent + " ", v.decrease_sgr_tracking);
00188 s << indent << "initiate_jiggling: ";
00189 Printer<uint8_t>::stream(s, indent + " ", v.initiate_jiggling);
00190 s << indent << "write_config_to_eeprom: ";
00191 Printer<uint8_t>::stream(s, indent + " ", v.write_config_to_eeprom);
00192 }
00193 };
00194
00195
00196 }
00197 }
00198
00199 #endif // SR_ROBOT_MSGS_MESSAGE_MOTORSYSTEMCONTROLS_H
00200