00001
00002 #ifndef PR2_MECHANISM_CONTROLLERS_MESSAGE_BASEODOMETRYSTATE_H
00003 #define PR2_MECHANISM_CONTROLLERS_MESSAGE_BASEODOMETRYSTATE_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 "geometry_msgs/Twist.h"
00014
00015 namespace pr2_mechanism_controllers
00016 {
00017 template <class ContainerAllocator>
00018 struct BaseOdometryState_ : public ros::Message
00019 {
00020 typedef BaseOdometryState_<ContainerAllocator> Type;
00021
00022 BaseOdometryState_()
00023 : velocity()
00024 , wheel_link_names()
00025 , drive_constraint_errors()
00026 , longitudinal_slip_constraint_errors()
00027 {
00028 }
00029
00030 BaseOdometryState_(const ContainerAllocator& _alloc)
00031 : velocity(_alloc)
00032 , wheel_link_names(_alloc)
00033 , drive_constraint_errors(_alloc)
00034 , longitudinal_slip_constraint_errors(_alloc)
00035 {
00036 }
00037
00038 typedef ::geometry_msgs::Twist_<ContainerAllocator> _velocity_type;
00039 ::geometry_msgs::Twist_<ContainerAllocator> velocity;
00040
00041 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _wheel_link_names_type;
00042 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > wheel_link_names;
00043
00044 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _drive_constraint_errors_type;
00045 std::vector<double, typename ContainerAllocator::template rebind<double>::other > drive_constraint_errors;
00046
00047 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _longitudinal_slip_constraint_errors_type;
00048 std::vector<double, typename ContainerAllocator::template rebind<double>::other > longitudinal_slip_constraint_errors;
00049
00050
00051 ROS_DEPRECATED uint32_t get_wheel_link_names_size() const { return (uint32_t)wheel_link_names.size(); }
00052 ROS_DEPRECATED void set_wheel_link_names_size(uint32_t size) { wheel_link_names.resize((size_t)size); }
00053 ROS_DEPRECATED void get_wheel_link_names_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->wheel_link_names; }
00054 ROS_DEPRECATED void set_wheel_link_names_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->wheel_link_names = vec; }
00055 ROS_DEPRECATED uint32_t get_drive_constraint_errors_size() const { return (uint32_t)drive_constraint_errors.size(); }
00056 ROS_DEPRECATED void set_drive_constraint_errors_size(uint32_t size) { drive_constraint_errors.resize((size_t)size); }
00057 ROS_DEPRECATED void get_drive_constraint_errors_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->drive_constraint_errors; }
00058 ROS_DEPRECATED void set_drive_constraint_errors_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->drive_constraint_errors = vec; }
00059 ROS_DEPRECATED uint32_t get_longitudinal_slip_constraint_errors_size() const { return (uint32_t)longitudinal_slip_constraint_errors.size(); }
00060 ROS_DEPRECATED void set_longitudinal_slip_constraint_errors_size(uint32_t size) { longitudinal_slip_constraint_errors.resize((size_t)size); }
00061 ROS_DEPRECATED void get_longitudinal_slip_constraint_errors_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->longitudinal_slip_constraint_errors; }
00062 ROS_DEPRECATED void set_longitudinal_slip_constraint_errors_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->longitudinal_slip_constraint_errors = vec; }
00063 private:
00064 static const char* __s_getDataType_() { return "pr2_mechanism_controllers/BaseOdometryState"; }
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 "8a483e137ebc37abafa4c26549091dd6"; }
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 "geometry_msgs/Twist velocity\n\
00079 string[] wheel_link_names\n\
00080 float64[] drive_constraint_errors\n\
00081 float64[] longitudinal_slip_constraint_errors\n\
00082 ================================================================================\n\
00083 MSG: geometry_msgs/Twist\n\
00084 # This expresses velocity in free space broken into it's linear and angular parts. \n\
00085 Vector3 linear\n\
00086 Vector3 angular\n\
00087 \n\
00088 ================================================================================\n\
00089 MSG: geometry_msgs/Vector3\n\
00090 # This represents a vector in free space. \n\
00091 \n\
00092 float64 x\n\
00093 float64 y\n\
00094 float64 z\n\
00095 "; }
00096 public:
00097 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00098
00099 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00100
00101 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00102 {
00103 ros::serialization::OStream stream(write_ptr, 1000000000);
00104 ros::serialization::serialize(stream, velocity);
00105 ros::serialization::serialize(stream, wheel_link_names);
00106 ros::serialization::serialize(stream, drive_constraint_errors);
00107 ros::serialization::serialize(stream, longitudinal_slip_constraint_errors);
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, velocity);
00115 ros::serialization::deserialize(stream, wheel_link_names);
00116 ros::serialization::deserialize(stream, drive_constraint_errors);
00117 ros::serialization::deserialize(stream, longitudinal_slip_constraint_errors);
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(velocity);
00125 size += ros::serialization::serializationLength(wheel_link_names);
00126 size += ros::serialization::serializationLength(drive_constraint_errors);
00127 size += ros::serialization::serializationLength(longitudinal_slip_constraint_errors);
00128 return size;
00129 }
00130
00131 typedef boost::shared_ptr< ::pr2_mechanism_controllers::BaseOdometryState_<ContainerAllocator> > Ptr;
00132 typedef boost::shared_ptr< ::pr2_mechanism_controllers::BaseOdometryState_<ContainerAllocator> const> ConstPtr;
00133 };
00134 typedef ::pr2_mechanism_controllers::BaseOdometryState_<std::allocator<void> > BaseOdometryState;
00135
00136 typedef boost::shared_ptr< ::pr2_mechanism_controllers::BaseOdometryState> BaseOdometryStatePtr;
00137 typedef boost::shared_ptr< ::pr2_mechanism_controllers::BaseOdometryState const> BaseOdometryStateConstPtr;
00138
00139
00140 template<typename ContainerAllocator>
00141 std::ostream& operator<<(std::ostream& s, const ::pr2_mechanism_controllers::BaseOdometryState_<ContainerAllocator> & v)
00142 {
00143 ros::message_operations::Printer< ::pr2_mechanism_controllers::BaseOdometryState_<ContainerAllocator> >::stream(s, "", v);
00144 return s;}
00145
00146 }
00147
00148 namespace ros
00149 {
00150 namespace message_traits
00151 {
00152 template<class ContainerAllocator>
00153 struct MD5Sum< ::pr2_mechanism_controllers::BaseOdometryState_<ContainerAllocator> > {
00154 static const char* value()
00155 {
00156 return "8a483e137ebc37abafa4c26549091dd6";
00157 }
00158
00159 static const char* value(const ::pr2_mechanism_controllers::BaseOdometryState_<ContainerAllocator> &) { return value(); }
00160 static const uint64_t static_value1 = 0x8a483e137ebc37abULL;
00161 static const uint64_t static_value2 = 0xafa4c26549091dd6ULL;
00162 };
00163
00164 template<class ContainerAllocator>
00165 struct DataType< ::pr2_mechanism_controllers::BaseOdometryState_<ContainerAllocator> > {
00166 static const char* value()
00167 {
00168 return "pr2_mechanism_controllers/BaseOdometryState";
00169 }
00170
00171 static const char* value(const ::pr2_mechanism_controllers::BaseOdometryState_<ContainerAllocator> &) { return value(); }
00172 };
00173
00174 template<class ContainerAllocator>
00175 struct Definition< ::pr2_mechanism_controllers::BaseOdometryState_<ContainerAllocator> > {
00176 static const char* value()
00177 {
00178 return "geometry_msgs/Twist velocity\n\
00179 string[] wheel_link_names\n\
00180 float64[] drive_constraint_errors\n\
00181 float64[] longitudinal_slip_constraint_errors\n\
00182 ================================================================================\n\
00183 MSG: geometry_msgs/Twist\n\
00184 # This expresses velocity in free space broken into it's linear and angular parts. \n\
00185 Vector3 linear\n\
00186 Vector3 angular\n\
00187 \n\
00188 ================================================================================\n\
00189 MSG: geometry_msgs/Vector3\n\
00190 # This represents a vector in free space. \n\
00191 \n\
00192 float64 x\n\
00193 float64 y\n\
00194 float64 z\n\
00195 ";
00196 }
00197
00198 static const char* value(const ::pr2_mechanism_controllers::BaseOdometryState_<ContainerAllocator> &) { return value(); }
00199 };
00200
00201 }
00202 }
00203
00204 namespace ros
00205 {
00206 namespace serialization
00207 {
00208
00209 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_controllers::BaseOdometryState_<ContainerAllocator> >
00210 {
00211 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00212 {
00213 stream.next(m.velocity);
00214 stream.next(m.wheel_link_names);
00215 stream.next(m.drive_constraint_errors);
00216 stream.next(m.longitudinal_slip_constraint_errors);
00217 }
00218
00219 ROS_DECLARE_ALLINONE_SERIALIZER;
00220 };
00221 }
00222 }
00223
00224 namespace ros
00225 {
00226 namespace message_operations
00227 {
00228
00229 template<class ContainerAllocator>
00230 struct Printer< ::pr2_mechanism_controllers::BaseOdometryState_<ContainerAllocator> >
00231 {
00232 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_mechanism_controllers::BaseOdometryState_<ContainerAllocator> & v)
00233 {
00234 s << indent << "velocity: ";
00235 s << std::endl;
00236 Printer< ::geometry_msgs::Twist_<ContainerAllocator> >::stream(s, indent + " ", v.velocity);
00237 s << indent << "wheel_link_names[]" << std::endl;
00238 for (size_t i = 0; i < v.wheel_link_names.size(); ++i)
00239 {
00240 s << indent << " wheel_link_names[" << i << "]: ";
00241 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.wheel_link_names[i]);
00242 }
00243 s << indent << "drive_constraint_errors[]" << std::endl;
00244 for (size_t i = 0; i < v.drive_constraint_errors.size(); ++i)
00245 {
00246 s << indent << " drive_constraint_errors[" << i << "]: ";
00247 Printer<double>::stream(s, indent + " ", v.drive_constraint_errors[i]);
00248 }
00249 s << indent << "longitudinal_slip_constraint_errors[]" << std::endl;
00250 for (size_t i = 0; i < v.longitudinal_slip_constraint_errors.size(); ++i)
00251 {
00252 s << indent << " longitudinal_slip_constraint_errors[" << i << "]: ";
00253 Printer<double>::stream(s, indent + " ", v.longitudinal_slip_constraint_errors[i]);
00254 }
00255 }
00256 };
00257
00258
00259 }
00260 }
00261
00262 #endif // PR2_MECHANISM_CONTROLLERS_MESSAGE_BASEODOMETRYSTATE_H
00263