$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/command.msg */ 00002 #ifndef SR_ROBOT_MSGS_MESSAGE_COMMAND_H 00003 #define SR_ROBOT_MSGS_MESSAGE_COMMAND_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 "sr_robot_msgs/sendupdate.h" 00018 #include "sr_robot_msgs/contrlr.h" 00019 00020 namespace sr_robot_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct command_ { 00024 typedef command_<ContainerAllocator> Type; 00025 00026 command_() 00027 : command_type(0) 00028 , sendupdate_command() 00029 , contrlr_command() 00030 { 00031 } 00032 00033 command_(const ContainerAllocator& _alloc) 00034 : command_type(0) 00035 , sendupdate_command(_alloc) 00036 , contrlr_command(_alloc) 00037 { 00038 } 00039 00040 typedef int8_t _command_type_type; 00041 int8_t command_type; 00042 00043 typedef ::sr_robot_msgs::sendupdate_<ContainerAllocator> _sendupdate_command_type; 00044 ::sr_robot_msgs::sendupdate_<ContainerAllocator> sendupdate_command; 00045 00046 typedef ::sr_robot_msgs::contrlr_<ContainerAllocator> _contrlr_command_type; 00047 ::sr_robot_msgs::contrlr_<ContainerAllocator> contrlr_command; 00048 00049 00050 private: 00051 static const char* __s_getDataType_() { return "sr_robot_msgs/command"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00054 00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00056 00057 private: 00058 static const char* __s_getMD5Sum_() { return "2c927cc3decc25060b43219a05beb823"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getMessageDefinition_() { return "# sendupdate is 1\n\ 00066 # contrlr is 2\n\ 00067 int8 command_type\n\ 00068 \n\ 00069 sendupdate sendupdate_command\n\ 00070 contrlr contrlr_command\n\ 00071 \n\ 00072 ================================================================================\n\ 00073 MSG: sr_robot_msgs/sendupdate\n\ 00074 int8 sendupdate_length\n\ 00075 joint[] sendupdate_list\n\ 00076 \n\ 00077 \n\ 00078 ================================================================================\n\ 00079 MSG: sr_robot_msgs/joint\n\ 00080 string joint_name\n\ 00081 float64 joint_position\n\ 00082 float64 joint_target\n\ 00083 float64 joint_torque\n\ 00084 float64 joint_temperature\n\ 00085 float64 joint_current\n\ 00086 string error_flag\n\ 00087 \n\ 00088 ================================================================================\n\ 00089 MSG: sr_robot_msgs/contrlr\n\ 00090 # the contrlr name (e.g. smart_motor_ff2)\n\ 00091 string contrlr_name\n\ 00092 \n\ 00093 # specify here a list of parameter_name:value\n\ 00094 # e.g. p:10 sets the p value of the controller to 10\n\ 00095 # the possible parameters are:\n\ 00096 #int16 p\n\ 00097 #int16 i\n\ 00098 #int16 d\n\ 00099 #int16 imax\n\ 00100 #int16 target\n\ 00101 #int16 sensor\n\ 00102 #int16 valve \n\ 00103 #int16 deadband\n\ 00104 #int16 offset\n\ 00105 #int16 shift\n\ 00106 #int16 max\n\ 00107 #\n\ 00108 ## parameters for the motors\n\ 00109 #int16 motor_maxforce\n\ 00110 #int16 motor_safeforce\n\ 00111 #int16 force_p\n\ 00112 #int16 force_i\n\ 00113 #int16 force_d\n\ 00114 #int16 force_imax\n\ 00115 #int16 force_out_shift\n\ 00116 #int16 force_deadband\n\ 00117 #int16 force_offset\n\ 00118 #int16 sensor_imax\n\ 00119 #int16 sensor_deadband\n\ 00120 #int16 sensor_offset\n\ 00121 #int16 max_temperature\n\ 00122 #int16 max_current\n\ 00123 \n\ 00124 string[] list_of_parameters\n\ 00125 \n\ 00126 # the size of the list_of_parameters you are sending\n\ 00127 uint8 length_of_list\n\ 00128 \n\ 00129 \n\ 00130 \n\ 00131 "; } 00132 public: 00133 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00134 00135 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00136 00137 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00138 { 00139 ros::serialization::OStream stream(write_ptr, 1000000000); 00140 ros::serialization::serialize(stream, command_type); 00141 ros::serialization::serialize(stream, sendupdate_command); 00142 ros::serialization::serialize(stream, contrlr_command); 00143 return stream.getData(); 00144 } 00145 00146 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00147 { 00148 ros::serialization::IStream stream(read_ptr, 1000000000); 00149 ros::serialization::deserialize(stream, command_type); 00150 ros::serialization::deserialize(stream, sendupdate_command); 00151 ros::serialization::deserialize(stream, contrlr_command); 00152 return stream.getData(); 00153 } 00154 00155 ROS_DEPRECATED virtual uint32_t serializationLength() const 00156 { 00157 uint32_t size = 0; 00158 size += ros::serialization::serializationLength(command_type); 00159 size += ros::serialization::serializationLength(sendupdate_command); 00160 size += ros::serialization::serializationLength(contrlr_command); 00161 return size; 00162 } 00163 00164 typedef boost::shared_ptr< ::sr_robot_msgs::command_<ContainerAllocator> > Ptr; 00165 typedef boost::shared_ptr< ::sr_robot_msgs::command_<ContainerAllocator> const> ConstPtr; 00166 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00167 }; // struct command 00168 typedef ::sr_robot_msgs::command_<std::allocator<void> > command; 00169 00170 typedef boost::shared_ptr< ::sr_robot_msgs::command> commandPtr; 00171 typedef boost::shared_ptr< ::sr_robot_msgs::command const> commandConstPtr; 00172 00173 00174 template<typename ContainerAllocator> 00175 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::command_<ContainerAllocator> & v) 00176 { 00177 ros::message_operations::Printer< ::sr_robot_msgs::command_<ContainerAllocator> >::stream(s, "", v); 00178 return s;} 00179 00180 } // namespace sr_robot_msgs 00181 00182 namespace ros 00183 { 00184 namespace message_traits 00185 { 00186 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::command_<ContainerAllocator> > : public TrueType {}; 00187 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::command_<ContainerAllocator> const> : public TrueType {}; 00188 template<class ContainerAllocator> 00189 struct MD5Sum< ::sr_robot_msgs::command_<ContainerAllocator> > { 00190 static const char* value() 00191 { 00192 return "2c927cc3decc25060b43219a05beb823"; 00193 } 00194 00195 static const char* value(const ::sr_robot_msgs::command_<ContainerAllocator> &) { return value(); } 00196 static const uint64_t static_value1 = 0x2c927cc3decc2506ULL; 00197 static const uint64_t static_value2 = 0x0b43219a05beb823ULL; 00198 }; 00199 00200 template<class ContainerAllocator> 00201 struct DataType< ::sr_robot_msgs::command_<ContainerAllocator> > { 00202 static const char* value() 00203 { 00204 return "sr_robot_msgs/command"; 00205 } 00206 00207 static const char* value(const ::sr_robot_msgs::command_<ContainerAllocator> &) { return value(); } 00208 }; 00209 00210 template<class ContainerAllocator> 00211 struct Definition< ::sr_robot_msgs::command_<ContainerAllocator> > { 00212 static const char* value() 00213 { 00214 return "# sendupdate is 1\n\ 00215 # contrlr is 2\n\ 00216 int8 command_type\n\ 00217 \n\ 00218 sendupdate sendupdate_command\n\ 00219 contrlr contrlr_command\n\ 00220 \n\ 00221 ================================================================================\n\ 00222 MSG: sr_robot_msgs/sendupdate\n\ 00223 int8 sendupdate_length\n\ 00224 joint[] sendupdate_list\n\ 00225 \n\ 00226 \n\ 00227 ================================================================================\n\ 00228 MSG: sr_robot_msgs/joint\n\ 00229 string joint_name\n\ 00230 float64 joint_position\n\ 00231 float64 joint_target\n\ 00232 float64 joint_torque\n\ 00233 float64 joint_temperature\n\ 00234 float64 joint_current\n\ 00235 string error_flag\n\ 00236 \n\ 00237 ================================================================================\n\ 00238 MSG: sr_robot_msgs/contrlr\n\ 00239 # the contrlr name (e.g. smart_motor_ff2)\n\ 00240 string contrlr_name\n\ 00241 \n\ 00242 # specify here a list of parameter_name:value\n\ 00243 # e.g. p:10 sets the p value of the controller to 10\n\ 00244 # the possible parameters are:\n\ 00245 #int16 p\n\ 00246 #int16 i\n\ 00247 #int16 d\n\ 00248 #int16 imax\n\ 00249 #int16 target\n\ 00250 #int16 sensor\n\ 00251 #int16 valve \n\ 00252 #int16 deadband\n\ 00253 #int16 offset\n\ 00254 #int16 shift\n\ 00255 #int16 max\n\ 00256 #\n\ 00257 ## parameters for the motors\n\ 00258 #int16 motor_maxforce\n\ 00259 #int16 motor_safeforce\n\ 00260 #int16 force_p\n\ 00261 #int16 force_i\n\ 00262 #int16 force_d\n\ 00263 #int16 force_imax\n\ 00264 #int16 force_out_shift\n\ 00265 #int16 force_deadband\n\ 00266 #int16 force_offset\n\ 00267 #int16 sensor_imax\n\ 00268 #int16 sensor_deadband\n\ 00269 #int16 sensor_offset\n\ 00270 #int16 max_temperature\n\ 00271 #int16 max_current\n\ 00272 \n\ 00273 string[] list_of_parameters\n\ 00274 \n\ 00275 # the size of the list_of_parameters you are sending\n\ 00276 uint8 length_of_list\n\ 00277 \n\ 00278 \n\ 00279 \n\ 00280 "; 00281 } 00282 00283 static const char* value(const ::sr_robot_msgs::command_<ContainerAllocator> &) { return value(); } 00284 }; 00285 00286 } // namespace message_traits 00287 } // namespace ros 00288 00289 namespace ros 00290 { 00291 namespace serialization 00292 { 00293 00294 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::command_<ContainerAllocator> > 00295 { 00296 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00297 { 00298 stream.next(m.command_type); 00299 stream.next(m.sendupdate_command); 00300 stream.next(m.contrlr_command); 00301 } 00302 00303 ROS_DECLARE_ALLINONE_SERIALIZER; 00304 }; // struct command_ 00305 } // namespace serialization 00306 } // namespace ros 00307 00308 namespace ros 00309 { 00310 namespace message_operations 00311 { 00312 00313 template<class ContainerAllocator> 00314 struct Printer< ::sr_robot_msgs::command_<ContainerAllocator> > 00315 { 00316 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::command_<ContainerAllocator> & v) 00317 { 00318 s << indent << "command_type: "; 00319 Printer<int8_t>::stream(s, indent + " ", v.command_type); 00320 s << indent << "sendupdate_command: "; 00321 s << std::endl; 00322 Printer< ::sr_robot_msgs::sendupdate_<ContainerAllocator> >::stream(s, indent + " ", v.sendupdate_command); 00323 s << indent << "contrlr_command: "; 00324 s << std::endl; 00325 Printer< ::sr_robot_msgs::contrlr_<ContainerAllocator> >::stream(s, indent + " ", v.contrlr_command); 00326 } 00327 }; 00328 00329 00330 } // namespace message_operations 00331 } // namespace ros 00332 00333 #endif // SR_ROBOT_MSGS_MESSAGE_COMMAND_H 00334