00001
00002 #ifndef BRICS_ACTUATOR_MESSAGE_CARTESIANTWIST_H
00003 #define BRICS_ACTUATOR_MESSAGE_CARTESIANTWIST_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 CartesianTwist_ : public ros::Message
00021 {
00022 typedef CartesianTwist_<ContainerAllocator> Type;
00023
00024 CartesianTwist_()
00025 : timeStamp()
00026 , poisonStamp()
00027 , base_frame_uri()
00028 , target_frame_uri()
00029 , translation()
00030 , rotation()
00031 {
00032 }
00033
00034 CartesianTwist_(const ContainerAllocator& _alloc)
00035 : timeStamp()
00036 , poisonStamp(_alloc)
00037 , base_frame_uri(_alloc)
00038 , target_frame_uri(_alloc)
00039 , translation(_alloc)
00040 , rotation(_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> _translation_type;
00057 ::brics_actuator::CartesianVector_<ContainerAllocator> translation;
00058
00059 typedef ::brics_actuator::CartesianVector_<ContainerAllocator> _rotation_type;
00060 ::brics_actuator::CartesianVector_<ContainerAllocator> rotation;
00061
00062
00063 private:
00064 static const char* __s_getDataType_() { return "brics_actuator/CartesianTwist"; }
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 "e86336d0ca57e442a1f55b8cb29e1a22"; }
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 translation \n\
00084 CartesianVector rotation\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, translation);
00114 ros::serialization::serialize(stream, rotation);
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, translation);
00126 ros::serialization::deserialize(stream, rotation);
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(translation);
00138 size += ros::serialization::serializationLength(rotation);
00139 return size;
00140 }
00141
00142 typedef boost::shared_ptr< ::brics_actuator::CartesianTwist_<ContainerAllocator> > Ptr;
00143 typedef boost::shared_ptr< ::brics_actuator::CartesianTwist_<ContainerAllocator> const> ConstPtr;
00144 };
00145 typedef ::brics_actuator::CartesianTwist_<std::allocator<void> > CartesianTwist;
00146
00147 typedef boost::shared_ptr< ::brics_actuator::CartesianTwist> CartesianTwistPtr;
00148 typedef boost::shared_ptr< ::brics_actuator::CartesianTwist const> CartesianTwistConstPtr;
00149
00150
00151 template<typename ContainerAllocator>
00152 std::ostream& operator<<(std::ostream& s, const ::brics_actuator::CartesianTwist_<ContainerAllocator> & v)
00153 {
00154 ros::message_operations::Printer< ::brics_actuator::CartesianTwist_<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::CartesianTwist_<ContainerAllocator> > {
00165 static const char* value()
00166 {
00167 return "e86336d0ca57e442a1f55b8cb29e1a22";
00168 }
00169
00170 static const char* value(const ::brics_actuator::CartesianTwist_<ContainerAllocator> &) { return value(); }
00171 static const uint64_t static_value1 = 0xe86336d0ca57e442ULL;
00172 static const uint64_t static_value2 = 0xa1f55b8cb29e1a22ULL;
00173 };
00174
00175 template<class ContainerAllocator>
00176 struct DataType< ::brics_actuator::CartesianTwist_<ContainerAllocator> > {
00177 static const char* value()
00178 {
00179 return "brics_actuator/CartesianTwist";
00180 }
00181
00182 static const char* value(const ::brics_actuator::CartesianTwist_<ContainerAllocator> &) { return value(); }
00183 };
00184
00185 template<class ContainerAllocator>
00186 struct Definition< ::brics_actuator::CartesianTwist_<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 translation \n\
00195 CartesianVector rotation\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::CartesianTwist_<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::CartesianTwist_<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.translation);
00234 stream.next(m.rotation);
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::CartesianTwist_<ContainerAllocator> >
00249 {
00250 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::brics_actuator::CartesianTwist_<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 << "translation: ";
00262 s << std::endl;
00263 Printer< ::brics_actuator::CartesianVector_<ContainerAllocator> >::stream(s, indent + " ", v.translation);
00264 s << indent << "rotation: ";
00265 s << std::endl;
00266 Printer< ::brics_actuator::CartesianVector_<ContainerAllocator> >::stream(s, indent + " ", v.rotation);
00267 }
00268 };
00269
00270
00271 }
00272 }
00273
00274 #endif // BRICS_ACTUATOR_MESSAGE_CARTESIANTWIST_H
00275