Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::sr_robot_msgs::command_<ContainerAllocator> > Ptr;
00051 typedef boost::shared_ptr< ::sr_robot_msgs::command_<ContainerAllocator> const> ConstPtr;
00052 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00053 };
00054 typedef ::sr_robot_msgs::command_<std::allocator<void> > command;
00055
00056 typedef boost::shared_ptr< ::sr_robot_msgs::command> commandPtr;
00057 typedef boost::shared_ptr< ::sr_robot_msgs::command const> commandConstPtr;
00058
00059
00060 template<typename ContainerAllocator>
00061 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::command_<ContainerAllocator> & v)
00062 {
00063 ros::message_operations::Printer< ::sr_robot_msgs::command_<ContainerAllocator> >::stream(s, "", v);
00064 return s;}
00065
00066 }
00067
00068 namespace ros
00069 {
00070 namespace message_traits
00071 {
00072 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::command_<ContainerAllocator> > : public TrueType {};
00073 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::command_<ContainerAllocator> const> : public TrueType {};
00074 template<class ContainerAllocator>
00075 struct MD5Sum< ::sr_robot_msgs::command_<ContainerAllocator> > {
00076 static const char* value()
00077 {
00078 return "2c927cc3decc25060b43219a05beb823";
00079 }
00080
00081 static const char* value(const ::sr_robot_msgs::command_<ContainerAllocator> &) { return value(); }
00082 static const uint64_t static_value1 = 0x2c927cc3decc2506ULL;
00083 static const uint64_t static_value2 = 0x0b43219a05beb823ULL;
00084 };
00085
00086 template<class ContainerAllocator>
00087 struct DataType< ::sr_robot_msgs::command_<ContainerAllocator> > {
00088 static const char* value()
00089 {
00090 return "sr_robot_msgs/command";
00091 }
00092
00093 static const char* value(const ::sr_robot_msgs::command_<ContainerAllocator> &) { return value(); }
00094 };
00095
00096 template<class ContainerAllocator>
00097 struct Definition< ::sr_robot_msgs::command_<ContainerAllocator> > {
00098 static const char* value()
00099 {
00100 return "# sendupdate is 1\n\
00101 # contrlr is 2\n\
00102 int8 command_type\n\
00103 \n\
00104 sendupdate sendupdate_command\n\
00105 contrlr contrlr_command\n\
00106 \n\
00107 ================================================================================\n\
00108 MSG: sr_robot_msgs/sendupdate\n\
00109 int8 sendupdate_length\n\
00110 joint[] sendupdate_list\n\
00111 \n\
00112 \n\
00113 ================================================================================\n\
00114 MSG: sr_robot_msgs/joint\n\
00115 string joint_name\n\
00116 float64 joint_position\n\
00117 float64 joint_target\n\
00118 float64 joint_torque\n\
00119 float64 joint_temperature\n\
00120 float64 joint_current\n\
00121 string error_flag\n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: sr_robot_msgs/contrlr\n\
00125 # the contrlr name (e.g. smart_motor_ff2)\n\
00126 string contrlr_name\n\
00127 \n\
00128 # specify here a list of parameter_name:value\n\
00129 # e.g. p:10 sets the p value of the controller to 10\n\
00130 # the possible parameters are:\n\
00131 #int16 p\n\
00132 #int16 i\n\
00133 #int16 d\n\
00134 #int16 imax\n\
00135 #int16 target\n\
00136 #int16 sensor\n\
00137 #int16 valve \n\
00138 #int16 deadband\n\
00139 #int16 offset\n\
00140 #int16 shift\n\
00141 #int16 max\n\
00142 #\n\
00143 ## parameters for the motors\n\
00144 #int16 motor_maxforce\n\
00145 #int16 motor_safeforce\n\
00146 #int16 force_p\n\
00147 #int16 force_i\n\
00148 #int16 force_d\n\
00149 #int16 force_imax\n\
00150 #int16 force_out_shift\n\
00151 #int16 force_deadband\n\
00152 #int16 force_offset\n\
00153 #int16 sensor_imax\n\
00154 #int16 sensor_deadband\n\
00155 #int16 sensor_offset\n\
00156 #int16 max_temperature\n\
00157 #int16 max_current\n\
00158 \n\
00159 string[] list_of_parameters\n\
00160 \n\
00161 # the size of the list_of_parameters you are sending\n\
00162 uint8 length_of_list\n\
00163 \n\
00164 \n\
00165 \n\
00166 ";
00167 }
00168
00169 static const char* value(const ::sr_robot_msgs::command_<ContainerAllocator> &) { return value(); }
00170 };
00171
00172 }
00173 }
00174
00175 namespace ros
00176 {
00177 namespace serialization
00178 {
00179
00180 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::command_<ContainerAllocator> >
00181 {
00182 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00183 {
00184 stream.next(m.command_type);
00185 stream.next(m.sendupdate_command);
00186 stream.next(m.contrlr_command);
00187 }
00188
00189 ROS_DECLARE_ALLINONE_SERIALIZER;
00190 };
00191 }
00192 }
00193
00194 namespace ros
00195 {
00196 namespace message_operations
00197 {
00198
00199 template<class ContainerAllocator>
00200 struct Printer< ::sr_robot_msgs::command_<ContainerAllocator> >
00201 {
00202 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::command_<ContainerAllocator> & v)
00203 {
00204 s << indent << "command_type: ";
00205 Printer<int8_t>::stream(s, indent + " ", v.command_type);
00206 s << indent << "sendupdate_command: ";
00207 s << std::endl;
00208 Printer< ::sr_robot_msgs::sendupdate_<ContainerAllocator> >::stream(s, indent + " ", v.sendupdate_command);
00209 s << indent << "contrlr_command: ";
00210 s << std::endl;
00211 Printer< ::sr_robot_msgs::contrlr_<ContainerAllocator> >::stream(s, indent + " ", v.contrlr_command);
00212 }
00213 };
00214
00215
00216 }
00217 }
00218
00219 #endif // SR_ROBOT_MSGS_MESSAGE_COMMAND_H
00220