00001
00002 #ifndef SR_ROBOT_MSGS_MESSAGE_CARTESIAN_POSITION_H
00003 #define SR_ROBOT_MSGS_MESSAGE_CARTESIAN_POSITION_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
00014 namespace sr_robot_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct cartesian_position_ : public ros::Message
00018 {
00019 typedef cartesian_position_<ContainerAllocator> Type;
00020
00021 cartesian_position_()
00022 : tip_name()
00023 , tip_pos_x(0.0)
00024 , tip_pos_y(0.0)
00025 , tip_pos_z(0.0)
00026 , tip_orientation_rho(0.0)
00027 , tip_orientation_theta(0.0)
00028 , tip_orientation_sigma(0.0)
00029 {
00030 }
00031
00032 cartesian_position_(const ContainerAllocator& _alloc)
00033 : tip_name(_alloc)
00034 , tip_pos_x(0.0)
00035 , tip_pos_y(0.0)
00036 , tip_pos_z(0.0)
00037 , tip_orientation_rho(0.0)
00038 , tip_orientation_theta(0.0)
00039 , tip_orientation_sigma(0.0)
00040 {
00041 }
00042
00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _tip_name_type;
00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > tip_name;
00045
00046 typedef float _tip_pos_x_type;
00047 float tip_pos_x;
00048
00049 typedef float _tip_pos_y_type;
00050 float tip_pos_y;
00051
00052 typedef float _tip_pos_z_type;
00053 float tip_pos_z;
00054
00055 typedef float _tip_orientation_rho_type;
00056 float tip_orientation_rho;
00057
00058 typedef float _tip_orientation_theta_type;
00059 float tip_orientation_theta;
00060
00061 typedef float _tip_orientation_sigma_type;
00062 float tip_orientation_sigma;
00063
00064
00065 private:
00066 static const char* __s_getDataType_() { return "sr_robot_msgs/cartesian_position"; }
00067 public:
00068 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00069
00070 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00071
00072 private:
00073 static const char* __s_getMD5Sum_() { return "cfc3f1750a36a668eb93288ed1128f42"; }
00074 public:
00075 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00076
00077 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00078
00079 private:
00080 static const char* __s_getMessageDefinition_() { return "string tip_name\n\
00081 float32 tip_pos_x\n\
00082 float32 tip_pos_y\n\
00083 float32 tip_pos_z\n\
00084 float32 tip_orientation_rho\n\
00085 float32 tip_orientation_theta\n\
00086 float32 tip_orientation_sigma\n\
00087 \n\
00088 \n\
00089 "; }
00090 public:
00091 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00092
00093 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00094
00095 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00096 {
00097 ros::serialization::OStream stream(write_ptr, 1000000000);
00098 ros::serialization::serialize(stream, tip_name);
00099 ros::serialization::serialize(stream, tip_pos_x);
00100 ros::serialization::serialize(stream, tip_pos_y);
00101 ros::serialization::serialize(stream, tip_pos_z);
00102 ros::serialization::serialize(stream, tip_orientation_rho);
00103 ros::serialization::serialize(stream, tip_orientation_theta);
00104 ros::serialization::serialize(stream, tip_orientation_sigma);
00105 return stream.getData();
00106 }
00107
00108 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00109 {
00110 ros::serialization::IStream stream(read_ptr, 1000000000);
00111 ros::serialization::deserialize(stream, tip_name);
00112 ros::serialization::deserialize(stream, tip_pos_x);
00113 ros::serialization::deserialize(stream, tip_pos_y);
00114 ros::serialization::deserialize(stream, tip_pos_z);
00115 ros::serialization::deserialize(stream, tip_orientation_rho);
00116 ros::serialization::deserialize(stream, tip_orientation_theta);
00117 ros::serialization::deserialize(stream, tip_orientation_sigma);
00118 return stream.getData();
00119 }
00120
00121 ROS_DEPRECATED virtual uint32_t serializationLength() const
00122 {
00123 uint32_t size = 0;
00124 size += ros::serialization::serializationLength(tip_name);
00125 size += ros::serialization::serializationLength(tip_pos_x);
00126 size += ros::serialization::serializationLength(tip_pos_y);
00127 size += ros::serialization::serializationLength(tip_pos_z);
00128 size += ros::serialization::serializationLength(tip_orientation_rho);
00129 size += ros::serialization::serializationLength(tip_orientation_theta);
00130 size += ros::serialization::serializationLength(tip_orientation_sigma);
00131 return size;
00132 }
00133
00134 typedef boost::shared_ptr< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> > Ptr;
00135 typedef boost::shared_ptr< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> const> ConstPtr;
00136 };
00137 typedef ::sr_robot_msgs::cartesian_position_<std::allocator<void> > cartesian_position;
00138
00139 typedef boost::shared_ptr< ::sr_robot_msgs::cartesian_position> cartesian_positionPtr;
00140 typedef boost::shared_ptr< ::sr_robot_msgs::cartesian_position const> cartesian_positionConstPtr;
00141
00142
00143 template<typename ContainerAllocator>
00144 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::cartesian_position_<ContainerAllocator> & v)
00145 {
00146 ros::message_operations::Printer< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> >::stream(s, "", v);
00147 return s;}
00148
00149 }
00150
00151 namespace ros
00152 {
00153 namespace message_traits
00154 {
00155 template<class ContainerAllocator>
00156 struct MD5Sum< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "cfc3f1750a36a668eb93288ed1128f42";
00160 }
00161
00162 static const char* value(const ::sr_robot_msgs::cartesian_position_<ContainerAllocator> &) { return value(); }
00163 static const uint64_t static_value1 = 0xcfc3f1750a36a668ULL;
00164 static const uint64_t static_value2 = 0xeb93288ed1128f42ULL;
00165 };
00166
00167 template<class ContainerAllocator>
00168 struct DataType< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> > {
00169 static const char* value()
00170 {
00171 return "sr_robot_msgs/cartesian_position";
00172 }
00173
00174 static const char* value(const ::sr_robot_msgs::cartesian_position_<ContainerAllocator> &) { return value(); }
00175 };
00176
00177 template<class ContainerAllocator>
00178 struct Definition< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> > {
00179 static const char* value()
00180 {
00181 return "string tip_name\n\
00182 float32 tip_pos_x\n\
00183 float32 tip_pos_y\n\
00184 float32 tip_pos_z\n\
00185 float32 tip_orientation_rho\n\
00186 float32 tip_orientation_theta\n\
00187 float32 tip_orientation_sigma\n\
00188 \n\
00189 \n\
00190 ";
00191 }
00192
00193 static const char* value(const ::sr_robot_msgs::cartesian_position_<ContainerAllocator> &) { return value(); }
00194 };
00195
00196 }
00197 }
00198
00199 namespace ros
00200 {
00201 namespace serialization
00202 {
00203
00204 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> >
00205 {
00206 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00207 {
00208 stream.next(m.tip_name);
00209 stream.next(m.tip_pos_x);
00210 stream.next(m.tip_pos_y);
00211 stream.next(m.tip_pos_z);
00212 stream.next(m.tip_orientation_rho);
00213 stream.next(m.tip_orientation_theta);
00214 stream.next(m.tip_orientation_sigma);
00215 }
00216
00217 ROS_DECLARE_ALLINONE_SERIALIZER;
00218 };
00219 }
00220 }
00221
00222 namespace ros
00223 {
00224 namespace message_operations
00225 {
00226
00227 template<class ContainerAllocator>
00228 struct Printer< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> >
00229 {
00230 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::cartesian_position_<ContainerAllocator> & v)
00231 {
00232 s << indent << "tip_name: ";
00233 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.tip_name);
00234 s << indent << "tip_pos_x: ";
00235 Printer<float>::stream(s, indent + " ", v.tip_pos_x);
00236 s << indent << "tip_pos_y: ";
00237 Printer<float>::stream(s, indent + " ", v.tip_pos_y);
00238 s << indent << "tip_pos_z: ";
00239 Printer<float>::stream(s, indent + " ", v.tip_pos_z);
00240 s << indent << "tip_orientation_rho: ";
00241 Printer<float>::stream(s, indent + " ", v.tip_orientation_rho);
00242 s << indent << "tip_orientation_theta: ";
00243 Printer<float>::stream(s, indent + " ", v.tip_orientation_theta);
00244 s << indent << "tip_orientation_sigma: ";
00245 Printer<float>::stream(s, indent + " ", v.tip_orientation_sigma);
00246 }
00247 };
00248
00249
00250 }
00251 }
00252
00253 #endif // SR_ROBOT_MSGS_MESSAGE_CARTESIAN_POSITION_H
00254