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