$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/contrlr.msg */ 00002 #ifndef SR_ROBOT_MSGS_MESSAGE_CONTRLR_H 00003 #define SR_ROBOT_MSGS_MESSAGE_CONTRLR_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 contrlr_ { 00022 typedef contrlr_<ContainerAllocator> Type; 00023 00024 contrlr_() 00025 : contrlr_name() 00026 , list_of_parameters() 00027 , length_of_list(0) 00028 { 00029 } 00030 00031 contrlr_(const ContainerAllocator& _alloc) 00032 : contrlr_name(_alloc) 00033 , list_of_parameters(_alloc) 00034 , length_of_list(0) 00035 { 00036 } 00037 00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _contrlr_name_type; 00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > contrlr_name; 00040 00041 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _list_of_parameters_type; 00042 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > list_of_parameters; 00043 00044 typedef uint8_t _length_of_list_type; 00045 uint8_t length_of_list; 00046 00047 00048 ROS_DEPRECATED uint32_t get_list_of_parameters_size() const { return (uint32_t)list_of_parameters.size(); } 00049 ROS_DEPRECATED void set_list_of_parameters_size(uint32_t size) { list_of_parameters.resize((size_t)size); } 00050 ROS_DEPRECATED void get_list_of_parameters_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->list_of_parameters; } 00051 ROS_DEPRECATED void set_list_of_parameters_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->list_of_parameters = vec; } 00052 private: 00053 static const char* __s_getDataType_() { return "sr_robot_msgs/contrlr"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00056 00057 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00058 00059 private: 00060 static const char* __s_getMD5Sum_() { return "7b2aa60305c5a9ab0ff05803e4d2ab85"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00063 00064 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00065 00066 private: 00067 static const char* __s_getMessageDefinition_() { return "# the contrlr name (e.g. smart_motor_ff2)\n\ 00068 string contrlr_name\n\ 00069 \n\ 00070 # specify here a list of parameter_name:value\n\ 00071 # e.g. p:10 sets the p value of the controller to 10\n\ 00072 # the possible parameters are:\n\ 00073 #int16 p\n\ 00074 #int16 i\n\ 00075 #int16 d\n\ 00076 #int16 imax\n\ 00077 #int16 target\n\ 00078 #int16 sensor\n\ 00079 #int16 valve \n\ 00080 #int16 deadband\n\ 00081 #int16 offset\n\ 00082 #int16 shift\n\ 00083 #int16 max\n\ 00084 #\n\ 00085 ## parameters for the motors\n\ 00086 #int16 motor_maxforce\n\ 00087 #int16 motor_safeforce\n\ 00088 #int16 force_p\n\ 00089 #int16 force_i\n\ 00090 #int16 force_d\n\ 00091 #int16 force_imax\n\ 00092 #int16 force_out_shift\n\ 00093 #int16 force_deadband\n\ 00094 #int16 force_offset\n\ 00095 #int16 sensor_imax\n\ 00096 #int16 sensor_deadband\n\ 00097 #int16 sensor_offset\n\ 00098 #int16 max_temperature\n\ 00099 #int16 max_current\n\ 00100 \n\ 00101 string[] list_of_parameters\n\ 00102 \n\ 00103 # the size of the list_of_parameters you are sending\n\ 00104 uint8 length_of_list\n\ 00105 \n\ 00106 \n\ 00107 \n\ 00108 "; } 00109 public: 00110 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00111 00112 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00113 00114 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00115 { 00116 ros::serialization::OStream stream(write_ptr, 1000000000); 00117 ros::serialization::serialize(stream, contrlr_name); 00118 ros::serialization::serialize(stream, list_of_parameters); 00119 ros::serialization::serialize(stream, length_of_list); 00120 return stream.getData(); 00121 } 00122 00123 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00124 { 00125 ros::serialization::IStream stream(read_ptr, 1000000000); 00126 ros::serialization::deserialize(stream, contrlr_name); 00127 ros::serialization::deserialize(stream, list_of_parameters); 00128 ros::serialization::deserialize(stream, length_of_list); 00129 return stream.getData(); 00130 } 00131 00132 ROS_DEPRECATED virtual uint32_t serializationLength() const 00133 { 00134 uint32_t size = 0; 00135 size += ros::serialization::serializationLength(contrlr_name); 00136 size += ros::serialization::serializationLength(list_of_parameters); 00137 size += ros::serialization::serializationLength(length_of_list); 00138 return size; 00139 } 00140 00141 typedef boost::shared_ptr< ::sr_robot_msgs::contrlr_<ContainerAllocator> > Ptr; 00142 typedef boost::shared_ptr< ::sr_robot_msgs::contrlr_<ContainerAllocator> const> ConstPtr; 00143 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00144 }; // struct contrlr 00145 typedef ::sr_robot_msgs::contrlr_<std::allocator<void> > contrlr; 00146 00147 typedef boost::shared_ptr< ::sr_robot_msgs::contrlr> contrlrPtr; 00148 typedef boost::shared_ptr< ::sr_robot_msgs::contrlr const> contrlrConstPtr; 00149 00150 00151 template<typename ContainerAllocator> 00152 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::contrlr_<ContainerAllocator> & v) 00153 { 00154 ros::message_operations::Printer< ::sr_robot_msgs::contrlr_<ContainerAllocator> >::stream(s, "", v); 00155 return s;} 00156 00157 } // namespace sr_robot_msgs 00158 00159 namespace ros 00160 { 00161 namespace message_traits 00162 { 00163 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::contrlr_<ContainerAllocator> > : public TrueType {}; 00164 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::contrlr_<ContainerAllocator> const> : public TrueType {}; 00165 template<class ContainerAllocator> 00166 struct MD5Sum< ::sr_robot_msgs::contrlr_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "7b2aa60305c5a9ab0ff05803e4d2ab85"; 00170 } 00171 00172 static const char* value(const ::sr_robot_msgs::contrlr_<ContainerAllocator> &) { return value(); } 00173 static const uint64_t static_value1 = 0x7b2aa60305c5a9abULL; 00174 static const uint64_t static_value2 = 0x0ff05803e4d2ab85ULL; 00175 }; 00176 00177 template<class ContainerAllocator> 00178 struct DataType< ::sr_robot_msgs::contrlr_<ContainerAllocator> > { 00179 static const char* value() 00180 { 00181 return "sr_robot_msgs/contrlr"; 00182 } 00183 00184 static const char* value(const ::sr_robot_msgs::contrlr_<ContainerAllocator> &) { return value(); } 00185 }; 00186 00187 template<class ContainerAllocator> 00188 struct Definition< ::sr_robot_msgs::contrlr_<ContainerAllocator> > { 00189 static const char* value() 00190 { 00191 return "# the contrlr name (e.g. smart_motor_ff2)\n\ 00192 string contrlr_name\n\ 00193 \n\ 00194 # specify here a list of parameter_name:value\n\ 00195 # e.g. p:10 sets the p value of the controller to 10\n\ 00196 # the possible parameters are:\n\ 00197 #int16 p\n\ 00198 #int16 i\n\ 00199 #int16 d\n\ 00200 #int16 imax\n\ 00201 #int16 target\n\ 00202 #int16 sensor\n\ 00203 #int16 valve \n\ 00204 #int16 deadband\n\ 00205 #int16 offset\n\ 00206 #int16 shift\n\ 00207 #int16 max\n\ 00208 #\n\ 00209 ## parameters for the motors\n\ 00210 #int16 motor_maxforce\n\ 00211 #int16 motor_safeforce\n\ 00212 #int16 force_p\n\ 00213 #int16 force_i\n\ 00214 #int16 force_d\n\ 00215 #int16 force_imax\n\ 00216 #int16 force_out_shift\n\ 00217 #int16 force_deadband\n\ 00218 #int16 force_offset\n\ 00219 #int16 sensor_imax\n\ 00220 #int16 sensor_deadband\n\ 00221 #int16 sensor_offset\n\ 00222 #int16 max_temperature\n\ 00223 #int16 max_current\n\ 00224 \n\ 00225 string[] list_of_parameters\n\ 00226 \n\ 00227 # the size of the list_of_parameters you are sending\n\ 00228 uint8 length_of_list\n\ 00229 \n\ 00230 \n\ 00231 \n\ 00232 "; 00233 } 00234 00235 static const char* value(const ::sr_robot_msgs::contrlr_<ContainerAllocator> &) { return value(); } 00236 }; 00237 00238 } // namespace message_traits 00239 } // namespace ros 00240 00241 namespace ros 00242 { 00243 namespace serialization 00244 { 00245 00246 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::contrlr_<ContainerAllocator> > 00247 { 00248 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00249 { 00250 stream.next(m.contrlr_name); 00251 stream.next(m.list_of_parameters); 00252 stream.next(m.length_of_list); 00253 } 00254 00255 ROS_DECLARE_ALLINONE_SERIALIZER; 00256 }; // struct contrlr_ 00257 } // namespace serialization 00258 } // namespace ros 00259 00260 namespace ros 00261 { 00262 namespace message_operations 00263 { 00264 00265 template<class ContainerAllocator> 00266 struct Printer< ::sr_robot_msgs::contrlr_<ContainerAllocator> > 00267 { 00268 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::contrlr_<ContainerAllocator> & v) 00269 { 00270 s << indent << "contrlr_name: "; 00271 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.contrlr_name); 00272 s << indent << "list_of_parameters[]" << std::endl; 00273 for (size_t i = 0; i < v.list_of_parameters.size(); ++i) 00274 { 00275 s << indent << " list_of_parameters[" << i << "]: "; 00276 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.list_of_parameters[i]); 00277 } 00278 s << indent << "length_of_list: "; 00279 Printer<uint8_t>::stream(s, indent + " ", v.length_of_list); 00280 } 00281 }; 00282 00283 00284 } // namespace message_operations 00285 } // namespace ros 00286 00287 #endif // SR_ROBOT_MSGS_MESSAGE_CONTRLR_H 00288