$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_data.msg */ 00002 #ifndef SR_ROBOT_MSGS_MESSAGE_CARTESIAN_DATA_H 00003 #define SR_ROBOT_MSGS_MESSAGE_CARTESIAN_DATA_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 #include "sr_robot_msgs/cartesian_position.h" 00018 00019 namespace sr_robot_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct cartesian_data_ { 00023 typedef cartesian_data_<ContainerAllocator> Type; 00024 00025 cartesian_data_() 00026 : cartesian_positions_length(0) 00027 , cartesian_positions() 00028 { 00029 } 00030 00031 cartesian_data_(const ContainerAllocator& _alloc) 00032 : cartesian_positions_length(0) 00033 , cartesian_positions(_alloc) 00034 { 00035 } 00036 00037 typedef int8_t _cartesian_positions_length_type; 00038 int8_t cartesian_positions_length; 00039 00040 typedef std::vector< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> >::other > _cartesian_positions_type; 00041 std::vector< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> >::other > cartesian_positions; 00042 00043 00044 ROS_DEPRECATED uint32_t get_cartesian_positions_size() const { return (uint32_t)cartesian_positions.size(); } 00045 ROS_DEPRECATED void set_cartesian_positions_size(uint32_t size) { cartesian_positions.resize((size_t)size); } 00046 ROS_DEPRECATED void get_cartesian_positions_vec(std::vector< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> >::other > & vec) const { vec = this->cartesian_positions; } 00047 ROS_DEPRECATED void set_cartesian_positions_vec(const std::vector< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> >::other > & vec) { this->cartesian_positions = vec; } 00048 private: 00049 static const char* __s_getDataType_() { return "sr_robot_msgs/cartesian_data"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "0efe699b2863e30a84ffabfdca8dfb19"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "int8 cartesian_positions_length\n\ 00064 cartesian_position[] cartesian_positions\n\ 00065 \n\ 00066 ================================================================================\n\ 00067 MSG: sr_robot_msgs/cartesian_position\n\ 00068 string tip_name\n\ 00069 float32 tip_pos_x\n\ 00070 float32 tip_pos_y\n\ 00071 float32 tip_pos_z\n\ 00072 float32 tip_orientation_rho\n\ 00073 float32 tip_orientation_theta\n\ 00074 float32 tip_orientation_sigma\n\ 00075 \n\ 00076 \n\ 00077 "; } 00078 public: 00079 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00080 00081 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00082 00083 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00084 { 00085 ros::serialization::OStream stream(write_ptr, 1000000000); 00086 ros::serialization::serialize(stream, cartesian_positions_length); 00087 ros::serialization::serialize(stream, cartesian_positions); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00092 { 00093 ros::serialization::IStream stream(read_ptr, 1000000000); 00094 ros::serialization::deserialize(stream, cartesian_positions_length); 00095 ros::serialization::deserialize(stream, cartesian_positions); 00096 return stream.getData(); 00097 } 00098 00099 ROS_DEPRECATED virtual uint32_t serializationLength() const 00100 { 00101 uint32_t size = 0; 00102 size += ros::serialization::serializationLength(cartesian_positions_length); 00103 size += ros::serialization::serializationLength(cartesian_positions); 00104 return size; 00105 } 00106 00107 typedef boost::shared_ptr< ::sr_robot_msgs::cartesian_data_<ContainerAllocator> > Ptr; 00108 typedef boost::shared_ptr< ::sr_robot_msgs::cartesian_data_<ContainerAllocator> const> ConstPtr; 00109 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00110 }; // struct cartesian_data 00111 typedef ::sr_robot_msgs::cartesian_data_<std::allocator<void> > cartesian_data; 00112 00113 typedef boost::shared_ptr< ::sr_robot_msgs::cartesian_data> cartesian_dataPtr; 00114 typedef boost::shared_ptr< ::sr_robot_msgs::cartesian_data const> cartesian_dataConstPtr; 00115 00116 00117 template<typename ContainerAllocator> 00118 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::cartesian_data_<ContainerAllocator> & v) 00119 { 00120 ros::message_operations::Printer< ::sr_robot_msgs::cartesian_data_<ContainerAllocator> >::stream(s, "", v); 00121 return s;} 00122 00123 } // namespace sr_robot_msgs 00124 00125 namespace ros 00126 { 00127 namespace message_traits 00128 { 00129 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::cartesian_data_<ContainerAllocator> > : public TrueType {}; 00130 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::cartesian_data_<ContainerAllocator> const> : public TrueType {}; 00131 template<class ContainerAllocator> 00132 struct MD5Sum< ::sr_robot_msgs::cartesian_data_<ContainerAllocator> > { 00133 static const char* value() 00134 { 00135 return "0efe699b2863e30a84ffabfdca8dfb19"; 00136 } 00137 00138 static const char* value(const ::sr_robot_msgs::cartesian_data_<ContainerAllocator> &) { return value(); } 00139 static const uint64_t static_value1 = 0x0efe699b2863e30aULL; 00140 static const uint64_t static_value2 = 0x84ffabfdca8dfb19ULL; 00141 }; 00142 00143 template<class ContainerAllocator> 00144 struct DataType< ::sr_robot_msgs::cartesian_data_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "sr_robot_msgs/cartesian_data"; 00148 } 00149 00150 static const char* value(const ::sr_robot_msgs::cartesian_data_<ContainerAllocator> &) { return value(); } 00151 }; 00152 00153 template<class ContainerAllocator> 00154 struct Definition< ::sr_robot_msgs::cartesian_data_<ContainerAllocator> > { 00155 static const char* value() 00156 { 00157 return "int8 cartesian_positions_length\n\ 00158 cartesian_position[] cartesian_positions\n\ 00159 \n\ 00160 ================================================================================\n\ 00161 MSG: sr_robot_msgs/cartesian_position\n\ 00162 string tip_name\n\ 00163 float32 tip_pos_x\n\ 00164 float32 tip_pos_y\n\ 00165 float32 tip_pos_z\n\ 00166 float32 tip_orientation_rho\n\ 00167 float32 tip_orientation_theta\n\ 00168 float32 tip_orientation_sigma\n\ 00169 \n\ 00170 \n\ 00171 "; 00172 } 00173 00174 static const char* value(const ::sr_robot_msgs::cartesian_data_<ContainerAllocator> &) { return value(); } 00175 }; 00176 00177 } // namespace message_traits 00178 } // namespace ros 00179 00180 namespace ros 00181 { 00182 namespace serialization 00183 { 00184 00185 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::cartesian_data_<ContainerAllocator> > 00186 { 00187 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00188 { 00189 stream.next(m.cartesian_positions_length); 00190 stream.next(m.cartesian_positions); 00191 } 00192 00193 ROS_DECLARE_ALLINONE_SERIALIZER; 00194 }; // struct cartesian_data_ 00195 } // namespace serialization 00196 } // namespace ros 00197 00198 namespace ros 00199 { 00200 namespace message_operations 00201 { 00202 00203 template<class ContainerAllocator> 00204 struct Printer< ::sr_robot_msgs::cartesian_data_<ContainerAllocator> > 00205 { 00206 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::cartesian_data_<ContainerAllocator> & v) 00207 { 00208 s << indent << "cartesian_positions_length: "; 00209 Printer<int8_t>::stream(s, indent + " ", v.cartesian_positions_length); 00210 s << indent << "cartesian_positions[]" << std::endl; 00211 for (size_t i = 0; i < v.cartesian_positions.size(); ++i) 00212 { 00213 s << indent << " cartesian_positions[" << i << "]: "; 00214 s << std::endl; 00215 s << indent; 00216 Printer< ::sr_robot_msgs::cartesian_position_<ContainerAllocator> >::stream(s, indent + " ", v.cartesian_positions[i]); 00217 } 00218 } 00219 }; 00220 00221 00222 } // namespace message_operations 00223 } // namespace ros 00224 00225 #endif // SR_ROBOT_MSGS_MESSAGE_CARTESIAN_DATA_H 00226