$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-shadow_robot/doc_stacks/2013-03-02_13-32-28.994675/shadow_robot/sr_robot_msgs/msg/MotorSystemControls.msg */ 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 private: 00074 static const char* __s_getDataType_() { return "sr_robot_msgs/MotorSystemControls"; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00077 00078 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00079 00080 private: 00081 static const char* __s_getMD5Sum_() { return "0686822f46acfde0133711bd613a20f1"; } 00082 public: 00083 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00084 00085 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00086 00087 private: 00088 static const char* __s_getMessageDefinition_() { return "int8 motor_id # the id of the motor you want to control\n\ 00089 \n\ 00090 bool enable_backlash_compensation # switch on/off backlash compensation at the motor level\n\ 00091 bool increase_sgl_tracking # increment the tracking value for the left gauge\n\ 00092 bool decrease_sgl_tracking # decrement the tracking value for the left gauge\n\ 00093 bool increase_sgr_tracking # increment the tracking value for the right gauge\n\ 00094 bool decrease_sgr_tracking # decrement the tracking value for the right gauge\n\ 00095 bool initiate_jiggling # starts jiggling the given motor\n\ 00096 bool write_config_to_eeprom # write the current configuration to the eeprom\n\ 00097 "; } 00098 public: 00099 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00100 00101 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00102 00103 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00104 { 00105 ros::serialization::OStream stream(write_ptr, 1000000000); 00106 ros::serialization::serialize(stream, motor_id); 00107 ros::serialization::serialize(stream, enable_backlash_compensation); 00108 ros::serialization::serialize(stream, increase_sgl_tracking); 00109 ros::serialization::serialize(stream, decrease_sgl_tracking); 00110 ros::serialization::serialize(stream, increase_sgr_tracking); 00111 ros::serialization::serialize(stream, decrease_sgr_tracking); 00112 ros::serialization::serialize(stream, initiate_jiggling); 00113 ros::serialization::serialize(stream, write_config_to_eeprom); 00114 return stream.getData(); 00115 } 00116 00117 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00118 { 00119 ros::serialization::IStream stream(read_ptr, 1000000000); 00120 ros::serialization::deserialize(stream, motor_id); 00121 ros::serialization::deserialize(stream, enable_backlash_compensation); 00122 ros::serialization::deserialize(stream, increase_sgl_tracking); 00123 ros::serialization::deserialize(stream, decrease_sgl_tracking); 00124 ros::serialization::deserialize(stream, increase_sgr_tracking); 00125 ros::serialization::deserialize(stream, decrease_sgr_tracking); 00126 ros::serialization::deserialize(stream, initiate_jiggling); 00127 ros::serialization::deserialize(stream, write_config_to_eeprom); 00128 return stream.getData(); 00129 } 00130 00131 ROS_DEPRECATED virtual uint32_t serializationLength() const 00132 { 00133 uint32_t size = 0; 00134 size += ros::serialization::serializationLength(motor_id); 00135 size += ros::serialization::serializationLength(enable_backlash_compensation); 00136 size += ros::serialization::serializationLength(increase_sgl_tracking); 00137 size += ros::serialization::serializationLength(decrease_sgl_tracking); 00138 size += ros::serialization::serializationLength(increase_sgr_tracking); 00139 size += ros::serialization::serializationLength(decrease_sgr_tracking); 00140 size += ros::serialization::serializationLength(initiate_jiggling); 00141 size += ros::serialization::serializationLength(write_config_to_eeprom); 00142 return size; 00143 } 00144 00145 typedef boost::shared_ptr< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > Ptr; 00146 typedef boost::shared_ptr< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> const> ConstPtr; 00147 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00148 }; // struct MotorSystemControls 00149 typedef ::sr_robot_msgs::MotorSystemControls_<std::allocator<void> > MotorSystemControls; 00150 00151 typedef boost::shared_ptr< ::sr_robot_msgs::MotorSystemControls> MotorSystemControlsPtr; 00152 typedef boost::shared_ptr< ::sr_robot_msgs::MotorSystemControls const> MotorSystemControlsConstPtr; 00153 00154 00155 template<typename ContainerAllocator> 00156 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> & v) 00157 { 00158 ros::message_operations::Printer< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> >::stream(s, "", v); 00159 return s;} 00160 00161 } // namespace sr_robot_msgs 00162 00163 namespace ros 00164 { 00165 namespace message_traits 00166 { 00167 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > : public TrueType {}; 00168 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> const> : public TrueType {}; 00169 template<class ContainerAllocator> 00170 struct MD5Sum< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > { 00171 static const char* value() 00172 { 00173 return "0686822f46acfde0133711bd613a20f1"; 00174 } 00175 00176 static const char* value(const ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> &) { return value(); } 00177 static const uint64_t static_value1 = 0x0686822f46acfde0ULL; 00178 static const uint64_t static_value2 = 0x133711bd613a20f1ULL; 00179 }; 00180 00181 template<class ContainerAllocator> 00182 struct DataType< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > { 00183 static const char* value() 00184 { 00185 return "sr_robot_msgs/MotorSystemControls"; 00186 } 00187 00188 static const char* value(const ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> &) { return value(); } 00189 }; 00190 00191 template<class ContainerAllocator> 00192 struct Definition< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > { 00193 static const char* value() 00194 { 00195 return "int8 motor_id # the id of the motor you want to control\n\ 00196 \n\ 00197 bool enable_backlash_compensation # switch on/off backlash compensation at the motor level\n\ 00198 bool increase_sgl_tracking # increment the tracking value for the left gauge\n\ 00199 bool decrease_sgl_tracking # decrement the tracking value for the left gauge\n\ 00200 bool increase_sgr_tracking # increment the tracking value for the right gauge\n\ 00201 bool decrease_sgr_tracking # decrement the tracking value for the right gauge\n\ 00202 bool initiate_jiggling # starts jiggling the given motor\n\ 00203 bool write_config_to_eeprom # write the current configuration to the eeprom\n\ 00204 "; 00205 } 00206 00207 static const char* value(const ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> &) { return value(); } 00208 }; 00209 00210 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > : public TrueType {}; 00211 } // namespace message_traits 00212 } // namespace ros 00213 00214 namespace ros 00215 { 00216 namespace serialization 00217 { 00218 00219 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > 00220 { 00221 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00222 { 00223 stream.next(m.motor_id); 00224 stream.next(m.enable_backlash_compensation); 00225 stream.next(m.increase_sgl_tracking); 00226 stream.next(m.decrease_sgl_tracking); 00227 stream.next(m.increase_sgr_tracking); 00228 stream.next(m.decrease_sgr_tracking); 00229 stream.next(m.initiate_jiggling); 00230 stream.next(m.write_config_to_eeprom); 00231 } 00232 00233 ROS_DECLARE_ALLINONE_SERIALIZER; 00234 }; // struct MotorSystemControls_ 00235 } // namespace serialization 00236 } // namespace ros 00237 00238 namespace ros 00239 { 00240 namespace message_operations 00241 { 00242 00243 template<class ContainerAllocator> 00244 struct Printer< ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> > 00245 { 00246 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::MotorSystemControls_<ContainerAllocator> & v) 00247 { 00248 s << indent << "motor_id: "; 00249 Printer<int8_t>::stream(s, indent + " ", v.motor_id); 00250 s << indent << "enable_backlash_compensation: "; 00251 Printer<uint8_t>::stream(s, indent + " ", v.enable_backlash_compensation); 00252 s << indent << "increase_sgl_tracking: "; 00253 Printer<uint8_t>::stream(s, indent + " ", v.increase_sgl_tracking); 00254 s << indent << "decrease_sgl_tracking: "; 00255 Printer<uint8_t>::stream(s, indent + " ", v.decrease_sgl_tracking); 00256 s << indent << "increase_sgr_tracking: "; 00257 Printer<uint8_t>::stream(s, indent + " ", v.increase_sgr_tracking); 00258 s << indent << "decrease_sgr_tracking: "; 00259 Printer<uint8_t>::stream(s, indent + " ", v.decrease_sgr_tracking); 00260 s << indent << "initiate_jiggling: "; 00261 Printer<uint8_t>::stream(s, indent + " ", v.initiate_jiggling); 00262 s << indent << "write_config_to_eeprom: "; 00263 Printer<uint8_t>::stream(s, indent + " ", v.write_config_to_eeprom); 00264 } 00265 }; 00266 00267 00268 } // namespace message_operations 00269 } // namespace ros 00270 00271 #endif // SR_ROBOT_MSGS_MESSAGE_MOTORSYSTEMCONTROLS_H 00272