00001
00002 #ifndef BRICS_ACTUATOR_MESSAGE_CARTESIANPOSE_H
00003 #define BRICS_ACTUATOR_MESSAGE_CARTESIANPOSE_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 "geometry_msgs/Quaternion.h"
00016
00017 namespace brics_actuator
00018 {
00019 template <class ContainerAllocator>
00020 struct CartesianPose_ : public ros::Message
00021 {
00022 typedef CartesianPose_<ContainerAllocator> Type;
00023
00024 CartesianPose_()
00025 : timeStamp()
00026 , poisonStamp()
00027 , base_frame_uri()
00028 , target_frame_uri()
00029 , position()
00030 , orientation()
00031 {
00032 }
00033
00034 CartesianPose_(const ContainerAllocator& _alloc)
00035 : timeStamp()
00036 , poisonStamp(_alloc)
00037 , base_frame_uri(_alloc)
00038 , target_frame_uri(_alloc)
00039 , position(_alloc)
00040 , orientation(_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> _position_type;
00057 ::brics_actuator::CartesianVector_<ContainerAllocator> position;
00058
00059 typedef ::geometry_msgs::Quaternion_<ContainerAllocator> _orientation_type;
00060 ::geometry_msgs::Quaternion_<ContainerAllocator> orientation;
00061
00062
00063 private:
00064 static const char* __s_getDataType_() { return "brics_actuator/CartesianPose"; }
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 "0fe287468091771914ed98dea2d2a5a5"; }
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 CartesianVector position\n\
00083 geometry_msgs/Quaternion orientation\n\
00084 \n\
00085 ================================================================================\n\
00086 MSG: brics_actuator/Poison\n\
00087 string originator # node id\n\
00088 string description # encoding still an issue\n\
00089 float32 qos # reliability of the channel\n\
00090 # 0..1 where 1 means healthy\n\
00091 \n\
00092 ================================================================================\n\
00093 MSG: brics_actuator/CartesianVector\n\
00094 string unit\n\
00095 float64 x\n\
00096 float64 y\n\
00097 float64 z\n\
00098 \n\
00099 ================================================================================\n\
00100 MSG: geometry_msgs/Quaternion\n\
00101 # This represents an orientation in free space in quaternion form.\n\
00102 \n\
00103 float64 x\n\
00104 float64 y\n\
00105 float64 z\n\
00106 float64 w\n\
00107 \n\
00108 "; }
00109 public:
00110 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00111
00112 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00113
00114 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00115 {
00116 ros::serialization::OStream stream(write_ptr, 1000000000);
00117 ros::serialization::serialize(stream, timeStamp);
00118 ros::serialization::serialize(stream, poisonStamp);
00119 ros::serialization::serialize(stream, base_frame_uri);
00120 ros::serialization::serialize(stream, target_frame_uri);
00121 ros::serialization::serialize(stream, position);
00122 ros::serialization::serialize(stream, orientation);
00123 return stream.getData();
00124 }
00125
00126 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00127 {
00128 ros::serialization::IStream stream(read_ptr, 1000000000);
00129 ros::serialization::deserialize(stream, timeStamp);
00130 ros::serialization::deserialize(stream, poisonStamp);
00131 ros::serialization::deserialize(stream, base_frame_uri);
00132 ros::serialization::deserialize(stream, target_frame_uri);
00133 ros::serialization::deserialize(stream, position);
00134 ros::serialization::deserialize(stream, orientation);
00135 return stream.getData();
00136 }
00137
00138 ROS_DEPRECATED virtual uint32_t serializationLength() const
00139 {
00140 uint32_t size = 0;
00141 size += ros::serialization::serializationLength(timeStamp);
00142 size += ros::serialization::serializationLength(poisonStamp);
00143 size += ros::serialization::serializationLength(base_frame_uri);
00144 size += ros::serialization::serializationLength(target_frame_uri);
00145 size += ros::serialization::serializationLength(position);
00146 size += ros::serialization::serializationLength(orientation);
00147 return size;
00148 }
00149
00150 typedef boost::shared_ptr< ::brics_actuator::CartesianPose_<ContainerAllocator> > Ptr;
00151 typedef boost::shared_ptr< ::brics_actuator::CartesianPose_<ContainerAllocator> const> ConstPtr;
00152 };
00153 typedef ::brics_actuator::CartesianPose_<std::allocator<void> > CartesianPose;
00154
00155 typedef boost::shared_ptr< ::brics_actuator::CartesianPose> CartesianPosePtr;
00156 typedef boost::shared_ptr< ::brics_actuator::CartesianPose const> CartesianPoseConstPtr;
00157
00158
00159 template<typename ContainerAllocator>
00160 std::ostream& operator<<(std::ostream& s, const ::brics_actuator::CartesianPose_<ContainerAllocator> & v)
00161 {
00162 ros::message_operations::Printer< ::brics_actuator::CartesianPose_<ContainerAllocator> >::stream(s, "", v);
00163 return s;}
00164
00165 }
00166
00167 namespace ros
00168 {
00169 namespace message_traits
00170 {
00171 template<class ContainerAllocator>
00172 struct MD5Sum< ::brics_actuator::CartesianPose_<ContainerAllocator> > {
00173 static const char* value()
00174 {
00175 return "0fe287468091771914ed98dea2d2a5a5";
00176 }
00177
00178 static const char* value(const ::brics_actuator::CartesianPose_<ContainerAllocator> &) { return value(); }
00179 static const uint64_t static_value1 = 0x0fe2874680917719ULL;
00180 static const uint64_t static_value2 = 0x14ed98dea2d2a5a5ULL;
00181 };
00182
00183 template<class ContainerAllocator>
00184 struct DataType< ::brics_actuator::CartesianPose_<ContainerAllocator> > {
00185 static const char* value()
00186 {
00187 return "brics_actuator/CartesianPose";
00188 }
00189
00190 static const char* value(const ::brics_actuator::CartesianPose_<ContainerAllocator> &) { return value(); }
00191 };
00192
00193 template<class ContainerAllocator>
00194 struct Definition< ::brics_actuator::CartesianPose_<ContainerAllocator> > {
00195 static const char* value()
00196 {
00197 return "time timeStamp\n\
00198 Poison poisonStamp\n\
00199 string base_frame_uri\n\
00200 string target_frame_uri\n\
00201 CartesianVector position\n\
00202 geometry_msgs/Quaternion orientation\n\
00203 \n\
00204 ================================================================================\n\
00205 MSG: brics_actuator/Poison\n\
00206 string originator # node id\n\
00207 string description # encoding still an issue\n\
00208 float32 qos # reliability of the channel\n\
00209 # 0..1 where 1 means healthy\n\
00210 \n\
00211 ================================================================================\n\
00212 MSG: brics_actuator/CartesianVector\n\
00213 string unit\n\
00214 float64 x\n\
00215 float64 y\n\
00216 float64 z\n\
00217 \n\
00218 ================================================================================\n\
00219 MSG: geometry_msgs/Quaternion\n\
00220 # This represents an orientation in free space in quaternion form.\n\
00221 \n\
00222 float64 x\n\
00223 float64 y\n\
00224 float64 z\n\
00225 float64 w\n\
00226 \n\
00227 ";
00228 }
00229
00230 static const char* value(const ::brics_actuator::CartesianPose_<ContainerAllocator> &) { return value(); }
00231 };
00232
00233 }
00234 }
00235
00236 namespace ros
00237 {
00238 namespace serialization
00239 {
00240
00241 template<class ContainerAllocator> struct Serializer< ::brics_actuator::CartesianPose_<ContainerAllocator> >
00242 {
00243 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00244 {
00245 stream.next(m.timeStamp);
00246 stream.next(m.poisonStamp);
00247 stream.next(m.base_frame_uri);
00248 stream.next(m.target_frame_uri);
00249 stream.next(m.position);
00250 stream.next(m.orientation);
00251 }
00252
00253 ROS_DECLARE_ALLINONE_SERIALIZER;
00254 };
00255 }
00256 }
00257
00258 namespace ros
00259 {
00260 namespace message_operations
00261 {
00262
00263 template<class ContainerAllocator>
00264 struct Printer< ::brics_actuator::CartesianPose_<ContainerAllocator> >
00265 {
00266 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::brics_actuator::CartesianPose_<ContainerAllocator> & v)
00267 {
00268 s << indent << "timeStamp: ";
00269 Printer<ros::Time>::stream(s, indent + " ", v.timeStamp);
00270 s << indent << "poisonStamp: ";
00271 s << std::endl;
00272 Printer< ::brics_actuator::Poison_<ContainerAllocator> >::stream(s, indent + " ", v.poisonStamp);
00273 s << indent << "base_frame_uri: ";
00274 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.base_frame_uri);
00275 s << indent << "target_frame_uri: ";
00276 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.target_frame_uri);
00277 s << indent << "position: ";
00278 s << std::endl;
00279 Printer< ::brics_actuator::CartesianVector_<ContainerAllocator> >::stream(s, indent + " ", v.position);
00280 s << indent << "orientation: ";
00281 s << std::endl;
00282 Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >::stream(s, indent + " ", v.orientation);
00283 }
00284 };
00285
00286
00287 }
00288 }
00289
00290 #endif // BRICS_ACTUATOR_MESSAGE_CARTESIANPOSE_H
00291