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