Go to the documentation of this file.00001
00002 #ifndef SR_EDC_ETHERCAT_DRIVERS_MESSAGE_MOTORTRACE_H
00003 #define SR_EDC_ETHERCAT_DRIVERS_MESSAGE_MOTORTRACE_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 "std_msgs/Header.h"
00018 #include "sr_edc_ethercat_drivers/ActuatorInfo.h"
00019 #include "sr_edc_ethercat_drivers/MotorTraceSample.h"
00020
00021 namespace sr_edc_ethercat_drivers
00022 {
00023 template <class ContainerAllocator>
00024 struct MotorTrace_ {
00025 typedef MotorTrace_<ContainerAllocator> Type;
00026
00027 MotorTrace_()
00028 : header()
00029 , reason()
00030 , actuator_info()
00031 , samples()
00032 {
00033 }
00034
00035 MotorTrace_(const ContainerAllocator& _alloc)
00036 : header(_alloc)
00037 , reason(_alloc)
00038 , actuator_info(_alloc)
00039 , samples(_alloc)
00040 {
00041 }
00042
00043 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00044 ::std_msgs::Header_<ContainerAllocator> header;
00045
00046 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _reason_type;
00047 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > reason;
00048
00049 typedef ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> _actuator_info_type;
00050 ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> actuator_info;
00051
00052 typedef std::vector< ::sr_edc_ethercat_drivers::MotorTraceSample_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_edc_ethercat_drivers::MotorTraceSample_<ContainerAllocator> >::other > _samples_type;
00053 std::vector< ::sr_edc_ethercat_drivers::MotorTraceSample_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_edc_ethercat_drivers::MotorTraceSample_<ContainerAllocator> >::other > samples;
00054
00055
00056 typedef boost::shared_ptr< ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> > Ptr;
00057 typedef boost::shared_ptr< ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> const> ConstPtr;
00058 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00059 };
00060 typedef ::sr_edc_ethercat_drivers::MotorTrace_<std::allocator<void> > MotorTrace;
00061
00062 typedef boost::shared_ptr< ::sr_edc_ethercat_drivers::MotorTrace> MotorTracePtr;
00063 typedef boost::shared_ptr< ::sr_edc_ethercat_drivers::MotorTrace const> MotorTraceConstPtr;
00064
00065
00066 template<typename ContainerAllocator>
00067 std::ostream& operator<<(std::ostream& s, const ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> & v)
00068 {
00069 ros::message_operations::Printer< ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> >::stream(s, "", v);
00070 return s;}
00071
00072 }
00073
00074 namespace ros
00075 {
00076 namespace message_traits
00077 {
00078 template<class ContainerAllocator> struct IsMessage< ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> > : public TrueType {};
00079 template<class ContainerAllocator> struct IsMessage< ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> const> : public TrueType {};
00080 template<class ContainerAllocator>
00081 struct MD5Sum< ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> > {
00082 static const char* value()
00083 {
00084 return "d06300e55fe6989d2795bc4072205fe1";
00085 }
00086
00087 static const char* value(const ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> &) { return value(); }
00088 static const uint64_t static_value1 = 0xd06300e55fe6989dULL;
00089 static const uint64_t static_value2 = 0x2795bc4072205fe1ULL;
00090 };
00091
00092 template<class ContainerAllocator>
00093 struct DataType< ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> > {
00094 static const char* value()
00095 {
00096 return "sr_edc_ethercat_drivers/MotorTrace";
00097 }
00098
00099 static const char* value(const ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> &) { return value(); }
00100 };
00101
00102 template<class ContainerAllocator>
00103 struct Definition< ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> > {
00104 static const char* value()
00105 {
00106 return "Header header\n\
00107 string reason\n\
00108 sr_edc_ethercat_drivers/ActuatorInfo actuator_info\n\
00109 sr_edc_ethercat_drivers/MotorTraceSample[] samples\n\
00110 \n\
00111 ================================================================================\n\
00112 MSG: std_msgs/Header\n\
00113 # Standard metadata for higher-level stamped data types.\n\
00114 # This is generally used to communicate timestamped data \n\
00115 # in a particular coordinate frame.\n\
00116 # \n\
00117 # sequence ID: consecutively increasing ID \n\
00118 uint32 seq\n\
00119 #Two-integer timestamp that is expressed as:\n\
00120 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00121 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00122 # time-handling sugar is provided by the client library\n\
00123 time stamp\n\
00124 #Frame this data is associated with\n\
00125 # 0: no frame\n\
00126 # 1: global frame\n\
00127 string frame_id\n\
00128 \n\
00129 ================================================================================\n\
00130 MSG: sr_edc_ethercat_drivers/ActuatorInfo\n\
00131 string name\n\
00132 float64 slow_motor_current_limit\n\
00133 float64 quick_motor_current_limit\n\
00134 float64 duty_limit\n\
00135 float64 max_duty\n\
00136 ================================================================================\n\
00137 MSG: sr_edc_ethercat_drivers/MotorTraceSample\n\
00138 float64 commanded_effort\n\
00139 float64 slow_effort_limit\n\
00140 float64 quick_effort_limit\n\
00141 float64 motor_current\n\
00142 float64 motor_supply_voltage\n\
00143 float64 hbridge_duty\n\
00144 float64 temperature\n\
00145 float64 force_sensor_1\n\
00146 float64 force_sensor_2\n\
00147 float64 force_sensor_3\n\
00148 float64 motor_velocity\n\
00149 float64 velocity\n\
00150 float64 position\n\
00151 \n\
00152 ";
00153 }
00154
00155 static const char* value(const ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> &) { return value(); }
00156 };
00157
00158 template<class ContainerAllocator> struct HasHeader< ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> > : public TrueType {};
00159 template<class ContainerAllocator> struct HasHeader< const ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> > : public TrueType {};
00160 }
00161 }
00162
00163 namespace ros
00164 {
00165 namespace serialization
00166 {
00167
00168 template<class ContainerAllocator> struct Serializer< ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> >
00169 {
00170 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00171 {
00172 stream.next(m.header);
00173 stream.next(m.reason);
00174 stream.next(m.actuator_info);
00175 stream.next(m.samples);
00176 }
00177
00178 ROS_DECLARE_ALLINONE_SERIALIZER;
00179 };
00180 }
00181 }
00182
00183 namespace ros
00184 {
00185 namespace message_operations
00186 {
00187
00188 template<class ContainerAllocator>
00189 struct Printer< ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> >
00190 {
00191 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_edc_ethercat_drivers::MotorTrace_<ContainerAllocator> & v)
00192 {
00193 s << indent << "header: ";
00194 s << std::endl;
00195 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00196 s << indent << "reason: ";
00197 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.reason);
00198 s << indent << "actuator_info: ";
00199 s << std::endl;
00200 Printer< ::sr_edc_ethercat_drivers::ActuatorInfo_<ContainerAllocator> >::stream(s, indent + " ", v.actuator_info);
00201 s << indent << "samples[]" << std::endl;
00202 for (size_t i = 0; i < v.samples.size(); ++i)
00203 {
00204 s << indent << " samples[" << i << "]: ";
00205 s << std::endl;
00206 s << indent;
00207 Printer< ::sr_edc_ethercat_drivers::MotorTraceSample_<ContainerAllocator> >::stream(s, indent + " ", v.samples[i]);
00208 }
00209 }
00210 };
00211
00212
00213 }
00214 }
00215
00216 #endif // SR_EDC_ETHERCAT_DRIVERS_MESSAGE_MOTORTRACE_H
00217