00001
00002 #ifndef BRICS_ACTUATOR_MESSAGE_CARTESIANWRENCH_H
00003 #define BRICS_ACTUATOR_MESSAGE_CARTESIANWRENCH_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "brics_actuator/Poison.h"
00014 #include "brics_actuator/CartesianVector.h"
00015 #include "brics_actuator/CartesianVector.h"
00016
00017 namespace brics_actuator
00018 {
00019 template <class ContainerAllocator>
00020 struct CartesianWrench_ : public ros::Message
00021 {
00022 typedef CartesianWrench_<ContainerAllocator> Type;
00023
00024 CartesianWrench_()
00025 : timeStamp()
00026 , poisonStamp()
00027 , base_frame_uri()
00028 , target_frame_uri()
00029 , force()
00030 , torque()
00031 {
00032 }
00033
00034 CartesianWrench_(const ContainerAllocator& _alloc)
00035 : timeStamp()
00036 , poisonStamp(_alloc)
00037 , base_frame_uri(_alloc)
00038 , target_frame_uri(_alloc)
00039 , force(_alloc)
00040 , torque(_alloc)
00041 {
00042 }
00043
00044 typedef ros::Time _timeStamp_type;
00045 ros::Time timeStamp;
00046
00047 typedef ::brics_actuator::Poison_<ContainerAllocator> _poisonStamp_type;
00048 ::brics_actuator::Poison_<ContainerAllocator> poisonStamp;
00049
00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _base_frame_uri_type;
00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > base_frame_uri;
00052
00053 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _target_frame_uri_type;
00054 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > target_frame_uri;
00055
00056 typedef ::brics_actuator::CartesianVector_<ContainerAllocator> _force_type;
00057 ::brics_actuator::CartesianVector_<ContainerAllocator> force;
00058
00059 typedef ::brics_actuator::CartesianVector_<ContainerAllocator> _torque_type;
00060 ::brics_actuator::CartesianVector_<ContainerAllocator> torque;
00061
00062
00063 private:
00064 static const char* __s_getDataType_() { return "brics_actuator/CartesianWrench"; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00067
00068 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00069
00070 private:
00071 static const char* __s_getMD5Sum_() { return "9db8d24ea10e69de8feff86a9b0fa93d"; }
00072 public:
00073 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00074
00075 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00076
00077 private:
00078 static const char* __s_getMessageDefinition_() { return "time timeStamp\n\
00079 Poison poisonStamp\n\
00080 string base_frame_uri\n\
00081 string target_frame_uri\n\
00082 # need some more frames? \n\
00083 CartesianVector force\n\
00084 CartesianVector torque \n\
00085 \n\
00086 ================================================================================\n\
00087 MSG: brics_actuator/Poison\n\
00088 string originator # node id\n\
00089 string description # encoding still an issue\n\
00090 float32 qos # reliability of the channel\n\
00091 # 0..1 where 1 means healthy\n\
00092 \n\
00093 ================================================================================\n\
00094 MSG: brics_actuator/CartesianVector\n\
00095 string unit\n\
00096 float64 x\n\
00097 float64 y\n\
00098 float64 z\n\
00099 \n\
00100 "; }
00101 public:
00102 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00103
00104 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00105
00106 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00107 {
00108 ros::serialization::OStream stream(write_ptr, 1000000000);
00109 ros::serialization::serialize(stream, timeStamp);
00110 ros::serialization::serialize(stream, poisonStamp);
00111 ros::serialization::serialize(stream, base_frame_uri);
00112 ros::serialization::serialize(stream, target_frame_uri);
00113 ros::serialization::serialize(stream, force);
00114 ros::serialization::serialize(stream, torque);
00115 return stream.getData();
00116 }
00117
00118 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00119 {
00120 ros::serialization::IStream stream(read_ptr, 1000000000);
00121 ros::serialization::deserialize(stream, timeStamp);
00122 ros::serialization::deserialize(stream, poisonStamp);
00123 ros::serialization::deserialize(stream, base_frame_uri);
00124 ros::serialization::deserialize(stream, target_frame_uri);
00125 ros::serialization::deserialize(stream, force);
00126 ros::serialization::deserialize(stream, torque);
00127 return stream.getData();
00128 }
00129
00130 ROS_DEPRECATED virtual uint32_t serializationLength() const
00131 {
00132 uint32_t size = 0;
00133 size += ros::serialization::serializationLength(timeStamp);
00134 size += ros::serialization::serializationLength(poisonStamp);
00135 size += ros::serialization::serializationLength(base_frame_uri);
00136 size += ros::serialization::serializationLength(target_frame_uri);
00137 size += ros::serialization::serializationLength(force);
00138 size += ros::serialization::serializationLength(torque);
00139 return size;
00140 }
00141
00142 typedef boost::shared_ptr< ::brics_actuator::CartesianWrench_<ContainerAllocator> > Ptr;
00143 typedef boost::shared_ptr< ::brics_actuator::CartesianWrench_<ContainerAllocator> const> ConstPtr;
00144 };
00145 typedef ::brics_actuator::CartesianWrench_<std::allocator<void> > CartesianWrench;
00146
00147 typedef boost::shared_ptr< ::brics_actuator::CartesianWrench> CartesianWrenchPtr;
00148 typedef boost::shared_ptr< ::brics_actuator::CartesianWrench const> CartesianWrenchConstPtr;
00149
00150
00151 template<typename ContainerAllocator>
00152 std::ostream& operator<<(std::ostream& s, const ::brics_actuator::CartesianWrench_<ContainerAllocator> & v)
00153 {
00154 ros::message_operations::Printer< ::brics_actuator::CartesianWrench_<ContainerAllocator> >::stream(s, "", v);
00155 return s;}
00156
00157 }
00158
00159 namespace ros
00160 {
00161 namespace message_traits
00162 {
00163 template<class ContainerAllocator>
00164 struct MD5Sum< ::brics_actuator::CartesianWrench_<ContainerAllocator> > {
00165 static const char* value()
00166 {
00167 return "9db8d24ea10e69de8feff86a9b0fa93d";
00168 }
00169
00170 static const char* value(const ::brics_actuator::CartesianWrench_<ContainerAllocator> &) { return value(); }
00171 static const uint64_t static_value1 = 0x9db8d24ea10e69deULL;
00172 static const uint64_t static_value2 = 0x8feff86a9b0fa93dULL;
00173 };
00174
00175 template<class ContainerAllocator>
00176 struct DataType< ::brics_actuator::CartesianWrench_<ContainerAllocator> > {
00177 static const char* value()
00178 {
00179 return "brics_actuator/CartesianWrench";
00180 }
00181
00182 static const char* value(const ::brics_actuator::CartesianWrench_<ContainerAllocator> &) { return value(); }
00183 };
00184
00185 template<class ContainerAllocator>
00186 struct Definition< ::brics_actuator::CartesianWrench_<ContainerAllocator> > {
00187 static const char* value()
00188 {
00189 return "time timeStamp\n\
00190 Poison poisonStamp\n\
00191 string base_frame_uri\n\
00192 string target_frame_uri\n\
00193 # need some more frames? \n\
00194 CartesianVector force\n\
00195 CartesianVector torque \n\
00196 \n\
00197 ================================================================================\n\
00198 MSG: brics_actuator/Poison\n\
00199 string originator # node id\n\
00200 string description # encoding still an issue\n\
00201 float32 qos # reliability of the channel\n\
00202 # 0..1 where 1 means healthy\n\
00203 \n\
00204 ================================================================================\n\
00205 MSG: brics_actuator/CartesianVector\n\
00206 string unit\n\
00207 float64 x\n\
00208 float64 y\n\
00209 float64 z\n\
00210 \n\
00211 ";
00212 }
00213
00214 static const char* value(const ::brics_actuator::CartesianWrench_<ContainerAllocator> &) { return value(); }
00215 };
00216
00217 }
00218 }
00219
00220 namespace ros
00221 {
00222 namespace serialization
00223 {
00224
00225 template<class ContainerAllocator> struct Serializer< ::brics_actuator::CartesianWrench_<ContainerAllocator> >
00226 {
00227 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00228 {
00229 stream.next(m.timeStamp);
00230 stream.next(m.poisonStamp);
00231 stream.next(m.base_frame_uri);
00232 stream.next(m.target_frame_uri);
00233 stream.next(m.force);
00234 stream.next(m.torque);
00235 }
00236
00237 ROS_DECLARE_ALLINONE_SERIALIZER;
00238 };
00239 }
00240 }
00241
00242 namespace ros
00243 {
00244 namespace message_operations
00245 {
00246
00247 template<class ContainerAllocator>
00248 struct Printer< ::brics_actuator::CartesianWrench_<ContainerAllocator> >
00249 {
00250 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::brics_actuator::CartesianWrench_<ContainerAllocator> & v)
00251 {
00252 s << indent << "timeStamp: ";
00253 Printer<ros::Time>::stream(s, indent + " ", v.timeStamp);
00254 s << indent << "poisonStamp: ";
00255 s << std::endl;
00256 Printer< ::brics_actuator::Poison_<ContainerAllocator> >::stream(s, indent + " ", v.poisonStamp);
00257 s << indent << "base_frame_uri: ";
00258 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.base_frame_uri);
00259 s << indent << "target_frame_uri: ";
00260 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.target_frame_uri);
00261 s << indent << "force: ";
00262 s << std::endl;
00263 Printer< ::brics_actuator::CartesianVector_<ContainerAllocator> >::stream(s, indent + " ", v.force);
00264 s << indent << "torque: ";
00265 s << std::endl;
00266 Printer< ::brics_actuator::CartesianVector_<ContainerAllocator> >::stream(s, indent + " ", v.torque);
00267 }
00268 };
00269
00270
00271 }
00272 }
00273
00274 #endif // BRICS_ACTUATOR_MESSAGE_CARTESIANWRENCH_H
00275