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