$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-simulator_gazebo/doc_stacks/2013-03-02_13-33-37.038309/simulator_gazebo/gazebo/msg/ODEJointProperties.msg */ 00002 #ifndef GAZEBO_MESSAGE_ODEJOINTPROPERTIES_H 00003 #define GAZEBO_MESSAGE_ODEJOINTPROPERTIES_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 gazebo 00019 { 00020 template <class ContainerAllocator> 00021 struct ODEJointProperties_ { 00022 typedef ODEJointProperties_<ContainerAllocator> Type; 00023 00024 ODEJointProperties_() 00025 : damping() 00026 , hiStop() 00027 , loStop() 00028 , erp() 00029 , cfm() 00030 , stop_erp() 00031 , stop_cfm() 00032 , fudge_factor() 00033 , fmax() 00034 , vel() 00035 { 00036 } 00037 00038 ODEJointProperties_(const ContainerAllocator& _alloc) 00039 : damping(_alloc) 00040 , hiStop(_alloc) 00041 , loStop(_alloc) 00042 , erp(_alloc) 00043 , cfm(_alloc) 00044 , stop_erp(_alloc) 00045 , stop_cfm(_alloc) 00046 , fudge_factor(_alloc) 00047 , fmax(_alloc) 00048 , vel(_alloc) 00049 { 00050 } 00051 00052 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _damping_type; 00053 std::vector<double, typename ContainerAllocator::template rebind<double>::other > damping; 00054 00055 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _hiStop_type; 00056 std::vector<double, typename ContainerAllocator::template rebind<double>::other > hiStop; 00057 00058 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _loStop_type; 00059 std::vector<double, typename ContainerAllocator::template rebind<double>::other > loStop; 00060 00061 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _erp_type; 00062 std::vector<double, typename ContainerAllocator::template rebind<double>::other > erp; 00063 00064 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _cfm_type; 00065 std::vector<double, typename ContainerAllocator::template rebind<double>::other > cfm; 00066 00067 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _stop_erp_type; 00068 std::vector<double, typename ContainerAllocator::template rebind<double>::other > stop_erp; 00069 00070 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _stop_cfm_type; 00071 std::vector<double, typename ContainerAllocator::template rebind<double>::other > stop_cfm; 00072 00073 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _fudge_factor_type; 00074 std::vector<double, typename ContainerAllocator::template rebind<double>::other > fudge_factor; 00075 00076 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _fmax_type; 00077 std::vector<double, typename ContainerAllocator::template rebind<double>::other > fmax; 00078 00079 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _vel_type; 00080 std::vector<double, typename ContainerAllocator::template rebind<double>::other > vel; 00081 00082 00083 ROS_DEPRECATED uint32_t get_damping_size() const { return (uint32_t)damping.size(); } 00084 ROS_DEPRECATED void set_damping_size(uint32_t size) { damping.resize((size_t)size); } 00085 ROS_DEPRECATED void get_damping_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->damping; } 00086 ROS_DEPRECATED void set_damping_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->damping = vec; } 00087 ROS_DEPRECATED uint32_t get_hiStop_size() const { return (uint32_t)hiStop.size(); } 00088 ROS_DEPRECATED void set_hiStop_size(uint32_t size) { hiStop.resize((size_t)size); } 00089 ROS_DEPRECATED void get_hiStop_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->hiStop; } 00090 ROS_DEPRECATED void set_hiStop_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->hiStop = vec; } 00091 ROS_DEPRECATED uint32_t get_loStop_size() const { return (uint32_t)loStop.size(); } 00092 ROS_DEPRECATED void set_loStop_size(uint32_t size) { loStop.resize((size_t)size); } 00093 ROS_DEPRECATED void get_loStop_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->loStop; } 00094 ROS_DEPRECATED void set_loStop_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->loStop = vec; } 00095 ROS_DEPRECATED uint32_t get_erp_size() const { return (uint32_t)erp.size(); } 00096 ROS_DEPRECATED void set_erp_size(uint32_t size) { erp.resize((size_t)size); } 00097 ROS_DEPRECATED void get_erp_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->erp; } 00098 ROS_DEPRECATED void set_erp_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->erp = vec; } 00099 ROS_DEPRECATED uint32_t get_cfm_size() const { return (uint32_t)cfm.size(); } 00100 ROS_DEPRECATED void set_cfm_size(uint32_t size) { cfm.resize((size_t)size); } 00101 ROS_DEPRECATED void get_cfm_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->cfm; } 00102 ROS_DEPRECATED void set_cfm_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->cfm = vec; } 00103 ROS_DEPRECATED uint32_t get_stop_erp_size() const { return (uint32_t)stop_erp.size(); } 00104 ROS_DEPRECATED void set_stop_erp_size(uint32_t size) { stop_erp.resize((size_t)size); } 00105 ROS_DEPRECATED void get_stop_erp_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->stop_erp; } 00106 ROS_DEPRECATED void set_stop_erp_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->stop_erp = vec; } 00107 ROS_DEPRECATED uint32_t get_stop_cfm_size() const { return (uint32_t)stop_cfm.size(); } 00108 ROS_DEPRECATED void set_stop_cfm_size(uint32_t size) { stop_cfm.resize((size_t)size); } 00109 ROS_DEPRECATED void get_stop_cfm_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->stop_cfm; } 00110 ROS_DEPRECATED void set_stop_cfm_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->stop_cfm = vec; } 00111 ROS_DEPRECATED uint32_t get_fudge_factor_size() const { return (uint32_t)fudge_factor.size(); } 00112 ROS_DEPRECATED void set_fudge_factor_size(uint32_t size) { fudge_factor.resize((size_t)size); } 00113 ROS_DEPRECATED void get_fudge_factor_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->fudge_factor; } 00114 ROS_DEPRECATED void set_fudge_factor_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->fudge_factor = vec; } 00115 ROS_DEPRECATED uint32_t get_fmax_size() const { return (uint32_t)fmax.size(); } 00116 ROS_DEPRECATED void set_fmax_size(uint32_t size) { fmax.resize((size_t)size); } 00117 ROS_DEPRECATED void get_fmax_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->fmax; } 00118 ROS_DEPRECATED void set_fmax_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->fmax = vec; } 00119 ROS_DEPRECATED uint32_t get_vel_size() const { return (uint32_t)vel.size(); } 00120 ROS_DEPRECATED void set_vel_size(uint32_t size) { vel.resize((size_t)size); } 00121 ROS_DEPRECATED void get_vel_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->vel; } 00122 ROS_DEPRECATED void set_vel_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->vel = vec; } 00123 private: 00124 static const char* __s_getDataType_() { return "gazebo/ODEJointProperties"; } 00125 public: 00126 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00127 00128 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00129 00130 private: 00131 static const char* __s_getMD5Sum_() { return "1b744c32a920af979f53afe2f9c3511f"; } 00132 public: 00133 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00134 00135 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00136 00137 private: 00138 static const char* __s_getMessageDefinition_() { return "#This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00139 \n\ 00140 # access to low level joint properties, change these at your own risk\n\ 00141 float64[] damping # joint damping\n\ 00142 float64[] hiStop # joint limit\n\ 00143 float64[] loStop # joint limit\n\ 00144 float64[] erp # set joint erp\n\ 00145 float64[] cfm # set joint cfm\n\ 00146 float64[] stop_erp # set joint erp for joint limit \"contact\" joint\n\ 00147 float64[] stop_cfm # set joint cfm for joint limit \"contact\" joint\n\ 00148 float64[] fudge_factor # joint fudge_factor applied at limits, see ODE manual for info.\n\ 00149 float64[] fmax # ode joint param fmax\n\ 00150 float64[] vel # ode joint param vel\n\ 00151 \n\ 00152 "; } 00153 public: 00154 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00155 00156 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00157 00158 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00159 { 00160 ros::serialization::OStream stream(write_ptr, 1000000000); 00161 ros::serialization::serialize(stream, damping); 00162 ros::serialization::serialize(stream, hiStop); 00163 ros::serialization::serialize(stream, loStop); 00164 ros::serialization::serialize(stream, erp); 00165 ros::serialization::serialize(stream, cfm); 00166 ros::serialization::serialize(stream, stop_erp); 00167 ros::serialization::serialize(stream, stop_cfm); 00168 ros::serialization::serialize(stream, fudge_factor); 00169 ros::serialization::serialize(stream, fmax); 00170 ros::serialization::serialize(stream, vel); 00171 return stream.getData(); 00172 } 00173 00174 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00175 { 00176 ros::serialization::IStream stream(read_ptr, 1000000000); 00177 ros::serialization::deserialize(stream, damping); 00178 ros::serialization::deserialize(stream, hiStop); 00179 ros::serialization::deserialize(stream, loStop); 00180 ros::serialization::deserialize(stream, erp); 00181 ros::serialization::deserialize(stream, cfm); 00182 ros::serialization::deserialize(stream, stop_erp); 00183 ros::serialization::deserialize(stream, stop_cfm); 00184 ros::serialization::deserialize(stream, fudge_factor); 00185 ros::serialization::deserialize(stream, fmax); 00186 ros::serialization::deserialize(stream, vel); 00187 return stream.getData(); 00188 } 00189 00190 ROS_DEPRECATED virtual uint32_t serializationLength() const 00191 { 00192 uint32_t size = 0; 00193 size += ros::serialization::serializationLength(damping); 00194 size += ros::serialization::serializationLength(hiStop); 00195 size += ros::serialization::serializationLength(loStop); 00196 size += ros::serialization::serializationLength(erp); 00197 size += ros::serialization::serializationLength(cfm); 00198 size += ros::serialization::serializationLength(stop_erp); 00199 size += ros::serialization::serializationLength(stop_cfm); 00200 size += ros::serialization::serializationLength(fudge_factor); 00201 size += ros::serialization::serializationLength(fmax); 00202 size += ros::serialization::serializationLength(vel); 00203 return size; 00204 } 00205 00206 typedef boost::shared_ptr< ::gazebo::ODEJointProperties_<ContainerAllocator> > Ptr; 00207 typedef boost::shared_ptr< ::gazebo::ODEJointProperties_<ContainerAllocator> const> ConstPtr; 00208 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00209 }; // struct ODEJointProperties 00210 typedef ::gazebo::ODEJointProperties_<std::allocator<void> > ODEJointProperties; 00211 00212 typedef boost::shared_ptr< ::gazebo::ODEJointProperties> ODEJointPropertiesPtr; 00213 typedef boost::shared_ptr< ::gazebo::ODEJointProperties const> ODEJointPropertiesConstPtr; 00214 00215 00216 template<typename ContainerAllocator> 00217 std::ostream& operator<<(std::ostream& s, const ::gazebo::ODEJointProperties_<ContainerAllocator> & v) 00218 { 00219 ros::message_operations::Printer< ::gazebo::ODEJointProperties_<ContainerAllocator> >::stream(s, "", v); 00220 return s;} 00221 00222 } // namespace gazebo 00223 00224 namespace ros 00225 { 00226 namespace message_traits 00227 { 00228 template<class ContainerAllocator> struct IsMessage< ::gazebo::ODEJointProperties_<ContainerAllocator> > : public TrueType {}; 00229 template<class ContainerAllocator> struct IsMessage< ::gazebo::ODEJointProperties_<ContainerAllocator> const> : public TrueType {}; 00230 template<class ContainerAllocator> 00231 struct MD5Sum< ::gazebo::ODEJointProperties_<ContainerAllocator> > { 00232 static const char* value() 00233 { 00234 return "1b744c32a920af979f53afe2f9c3511f"; 00235 } 00236 00237 static const char* value(const ::gazebo::ODEJointProperties_<ContainerAllocator> &) { return value(); } 00238 static const uint64_t static_value1 = 0x1b744c32a920af97ULL; 00239 static const uint64_t static_value2 = 0x9f53afe2f9c3511fULL; 00240 }; 00241 00242 template<class ContainerAllocator> 00243 struct DataType< ::gazebo::ODEJointProperties_<ContainerAllocator> > { 00244 static const char* value() 00245 { 00246 return "gazebo/ODEJointProperties"; 00247 } 00248 00249 static const char* value(const ::gazebo::ODEJointProperties_<ContainerAllocator> &) { return value(); } 00250 }; 00251 00252 template<class ContainerAllocator> 00253 struct Definition< ::gazebo::ODEJointProperties_<ContainerAllocator> > { 00254 static const char* value() 00255 { 00256 return "#This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00257 \n\ 00258 # access to low level joint properties, change these at your own risk\n\ 00259 float64[] damping # joint damping\n\ 00260 float64[] hiStop # joint limit\n\ 00261 float64[] loStop # joint limit\n\ 00262 float64[] erp # set joint erp\n\ 00263 float64[] cfm # set joint cfm\n\ 00264 float64[] stop_erp # set joint erp for joint limit \"contact\" joint\n\ 00265 float64[] stop_cfm # set joint cfm for joint limit \"contact\" joint\n\ 00266 float64[] fudge_factor # joint fudge_factor applied at limits, see ODE manual for info.\n\ 00267 float64[] fmax # ode joint param fmax\n\ 00268 float64[] vel # ode joint param vel\n\ 00269 \n\ 00270 "; 00271 } 00272 00273 static const char* value(const ::gazebo::ODEJointProperties_<ContainerAllocator> &) { return value(); } 00274 }; 00275 00276 } // namespace message_traits 00277 } // namespace ros 00278 00279 namespace ros 00280 { 00281 namespace serialization 00282 { 00283 00284 template<class ContainerAllocator> struct Serializer< ::gazebo::ODEJointProperties_<ContainerAllocator> > 00285 { 00286 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00287 { 00288 stream.next(m.damping); 00289 stream.next(m.hiStop); 00290 stream.next(m.loStop); 00291 stream.next(m.erp); 00292 stream.next(m.cfm); 00293 stream.next(m.stop_erp); 00294 stream.next(m.stop_cfm); 00295 stream.next(m.fudge_factor); 00296 stream.next(m.fmax); 00297 stream.next(m.vel); 00298 } 00299 00300 ROS_DECLARE_ALLINONE_SERIALIZER; 00301 }; // struct ODEJointProperties_ 00302 } // namespace serialization 00303 } // namespace ros 00304 00305 namespace ros 00306 { 00307 namespace message_operations 00308 { 00309 00310 template<class ContainerAllocator> 00311 struct Printer< ::gazebo::ODEJointProperties_<ContainerAllocator> > 00312 { 00313 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::gazebo::ODEJointProperties_<ContainerAllocator> & v) 00314 { 00315 s << indent << "damping[]" << std::endl; 00316 for (size_t i = 0; i < v.damping.size(); ++i) 00317 { 00318 s << indent << " damping[" << i << "]: "; 00319 Printer<double>::stream(s, indent + " ", v.damping[i]); 00320 } 00321 s << indent << "hiStop[]" << std::endl; 00322 for (size_t i = 0; i < v.hiStop.size(); ++i) 00323 { 00324 s << indent << " hiStop[" << i << "]: "; 00325 Printer<double>::stream(s, indent + " ", v.hiStop[i]); 00326 } 00327 s << indent << "loStop[]" << std::endl; 00328 for (size_t i = 0; i < v.loStop.size(); ++i) 00329 { 00330 s << indent << " loStop[" << i << "]: "; 00331 Printer<double>::stream(s, indent + " ", v.loStop[i]); 00332 } 00333 s << indent << "erp[]" << std::endl; 00334 for (size_t i = 0; i < v.erp.size(); ++i) 00335 { 00336 s << indent << " erp[" << i << "]: "; 00337 Printer<double>::stream(s, indent + " ", v.erp[i]); 00338 } 00339 s << indent << "cfm[]" << std::endl; 00340 for (size_t i = 0; i < v.cfm.size(); ++i) 00341 { 00342 s << indent << " cfm[" << i << "]: "; 00343 Printer<double>::stream(s, indent + " ", v.cfm[i]); 00344 } 00345 s << indent << "stop_erp[]" << std::endl; 00346 for (size_t i = 0; i < v.stop_erp.size(); ++i) 00347 { 00348 s << indent << " stop_erp[" << i << "]: "; 00349 Printer<double>::stream(s, indent + " ", v.stop_erp[i]); 00350 } 00351 s << indent << "stop_cfm[]" << std::endl; 00352 for (size_t i = 0; i < v.stop_cfm.size(); ++i) 00353 { 00354 s << indent << " stop_cfm[" << i << "]: "; 00355 Printer<double>::stream(s, indent + " ", v.stop_cfm[i]); 00356 } 00357 s << indent << "fudge_factor[]" << std::endl; 00358 for (size_t i = 0; i < v.fudge_factor.size(); ++i) 00359 { 00360 s << indent << " fudge_factor[" << i << "]: "; 00361 Printer<double>::stream(s, indent + " ", v.fudge_factor[i]); 00362 } 00363 s << indent << "fmax[]" << std::endl; 00364 for (size_t i = 0; i < v.fmax.size(); ++i) 00365 { 00366 s << indent << " fmax[" << i << "]: "; 00367 Printer<double>::stream(s, indent + " ", v.fmax[i]); 00368 } 00369 s << indent << "vel[]" << std::endl; 00370 for (size_t i = 0; i < v.vel.size(); ++i) 00371 { 00372 s << indent << " vel[" << i << "]: "; 00373 Printer<double>::stream(s, indent + " ", v.vel[i]); 00374 } 00375 } 00376 }; 00377 00378 00379 } // namespace message_operations 00380 } // namespace ros 00381 00382 #endif // GAZEBO_MESSAGE_ODEJOINTPROPERTIES_H 00383