$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_msgs/msg/ODEJointProperties.msg */ 00002 #ifndef GAZEBO_MSGS_MESSAGE_ODEJOINTPROPERTIES_H 00003 #define GAZEBO_MSGS_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_msgs 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_msgs/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 "# access to low level joint properties, change these at your own risk\n\ 00139 float64[] damping # joint damping\n\ 00140 float64[] hiStop # joint limit\n\ 00141 float64[] loStop # joint limit\n\ 00142 float64[] erp # set joint erp\n\ 00143 float64[] cfm # set joint cfm\n\ 00144 float64[] stop_erp # set joint erp for joint limit \"contact\" joint\n\ 00145 float64[] stop_cfm # set joint cfm for joint limit \"contact\" joint\n\ 00146 float64[] fudge_factor # joint fudge_factor applied at limits, see ODE manual for info.\n\ 00147 float64[] fmax # ode joint param fmax\n\ 00148 float64[] vel # ode joint param vel\n\ 00149 \n\ 00150 "; } 00151 public: 00152 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00153 00154 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00155 00156 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00157 { 00158 ros::serialization::OStream stream(write_ptr, 1000000000); 00159 ros::serialization::serialize(stream, damping); 00160 ros::serialization::serialize(stream, hiStop); 00161 ros::serialization::serialize(stream, loStop); 00162 ros::serialization::serialize(stream, erp); 00163 ros::serialization::serialize(stream, cfm); 00164 ros::serialization::serialize(stream, stop_erp); 00165 ros::serialization::serialize(stream, stop_cfm); 00166 ros::serialization::serialize(stream, fudge_factor); 00167 ros::serialization::serialize(stream, fmax); 00168 ros::serialization::serialize(stream, vel); 00169 return stream.getData(); 00170 } 00171 00172 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00173 { 00174 ros::serialization::IStream stream(read_ptr, 1000000000); 00175 ros::serialization::deserialize(stream, damping); 00176 ros::serialization::deserialize(stream, hiStop); 00177 ros::serialization::deserialize(stream, loStop); 00178 ros::serialization::deserialize(stream, erp); 00179 ros::serialization::deserialize(stream, cfm); 00180 ros::serialization::deserialize(stream, stop_erp); 00181 ros::serialization::deserialize(stream, stop_cfm); 00182 ros::serialization::deserialize(stream, fudge_factor); 00183 ros::serialization::deserialize(stream, fmax); 00184 ros::serialization::deserialize(stream, vel); 00185 return stream.getData(); 00186 } 00187 00188 ROS_DEPRECATED virtual uint32_t serializationLength() const 00189 { 00190 uint32_t size = 0; 00191 size += ros::serialization::serializationLength(damping); 00192 size += ros::serialization::serializationLength(hiStop); 00193 size += ros::serialization::serializationLength(loStop); 00194 size += ros::serialization::serializationLength(erp); 00195 size += ros::serialization::serializationLength(cfm); 00196 size += ros::serialization::serializationLength(stop_erp); 00197 size += ros::serialization::serializationLength(stop_cfm); 00198 size += ros::serialization::serializationLength(fudge_factor); 00199 size += ros::serialization::serializationLength(fmax); 00200 size += ros::serialization::serializationLength(vel); 00201 return size; 00202 } 00203 00204 typedef boost::shared_ptr< ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> > Ptr; 00205 typedef boost::shared_ptr< ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> const> ConstPtr; 00206 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00207 }; // struct ODEJointProperties 00208 typedef ::gazebo_msgs::ODEJointProperties_<std::allocator<void> > ODEJointProperties; 00209 00210 typedef boost::shared_ptr< ::gazebo_msgs::ODEJointProperties> ODEJointPropertiesPtr; 00211 typedef boost::shared_ptr< ::gazebo_msgs::ODEJointProperties const> ODEJointPropertiesConstPtr; 00212 00213 00214 template<typename ContainerAllocator> 00215 std::ostream& operator<<(std::ostream& s, const ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> & v) 00216 { 00217 ros::message_operations::Printer< ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> >::stream(s, "", v); 00218 return s;} 00219 00220 } // namespace gazebo_msgs 00221 00222 namespace ros 00223 { 00224 namespace message_traits 00225 { 00226 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> > : public TrueType {}; 00227 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> const> : public TrueType {}; 00228 template<class ContainerAllocator> 00229 struct MD5Sum< ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> > { 00230 static const char* value() 00231 { 00232 return "1b744c32a920af979f53afe2f9c3511f"; 00233 } 00234 00235 static const char* value(const ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> &) { return value(); } 00236 static const uint64_t static_value1 = 0x1b744c32a920af97ULL; 00237 static const uint64_t static_value2 = 0x9f53afe2f9c3511fULL; 00238 }; 00239 00240 template<class ContainerAllocator> 00241 struct DataType< ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> > { 00242 static const char* value() 00243 { 00244 return "gazebo_msgs/ODEJointProperties"; 00245 } 00246 00247 static const char* value(const ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> &) { return value(); } 00248 }; 00249 00250 template<class ContainerAllocator> 00251 struct Definition< ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> > { 00252 static const char* value() 00253 { 00254 return "# access to low level joint properties, change these at your own risk\n\ 00255 float64[] damping # joint damping\n\ 00256 float64[] hiStop # joint limit\n\ 00257 float64[] loStop # joint limit\n\ 00258 float64[] erp # set joint erp\n\ 00259 float64[] cfm # set joint cfm\n\ 00260 float64[] stop_erp # set joint erp for joint limit \"contact\" joint\n\ 00261 float64[] stop_cfm # set joint cfm for joint limit \"contact\" joint\n\ 00262 float64[] fudge_factor # joint fudge_factor applied at limits, see ODE manual for info.\n\ 00263 float64[] fmax # ode joint param fmax\n\ 00264 float64[] vel # ode joint param vel\n\ 00265 \n\ 00266 "; 00267 } 00268 00269 static const char* value(const ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> &) { return value(); } 00270 }; 00271 00272 } // namespace message_traits 00273 } // namespace ros 00274 00275 namespace ros 00276 { 00277 namespace serialization 00278 { 00279 00280 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> > 00281 { 00282 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00283 { 00284 stream.next(m.damping); 00285 stream.next(m.hiStop); 00286 stream.next(m.loStop); 00287 stream.next(m.erp); 00288 stream.next(m.cfm); 00289 stream.next(m.stop_erp); 00290 stream.next(m.stop_cfm); 00291 stream.next(m.fudge_factor); 00292 stream.next(m.fmax); 00293 stream.next(m.vel); 00294 } 00295 00296 ROS_DECLARE_ALLINONE_SERIALIZER; 00297 }; // struct ODEJointProperties_ 00298 } // namespace serialization 00299 } // namespace ros 00300 00301 namespace ros 00302 { 00303 namespace message_operations 00304 { 00305 00306 template<class ContainerAllocator> 00307 struct Printer< ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> > 00308 { 00309 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::gazebo_msgs::ODEJointProperties_<ContainerAllocator> & v) 00310 { 00311 s << indent << "damping[]" << std::endl; 00312 for (size_t i = 0; i < v.damping.size(); ++i) 00313 { 00314 s << indent << " damping[" << i << "]: "; 00315 Printer<double>::stream(s, indent + " ", v.damping[i]); 00316 } 00317 s << indent << "hiStop[]" << std::endl; 00318 for (size_t i = 0; i < v.hiStop.size(); ++i) 00319 { 00320 s << indent << " hiStop[" << i << "]: "; 00321 Printer<double>::stream(s, indent + " ", v.hiStop[i]); 00322 } 00323 s << indent << "loStop[]" << std::endl; 00324 for (size_t i = 0; i < v.loStop.size(); ++i) 00325 { 00326 s << indent << " loStop[" << i << "]: "; 00327 Printer<double>::stream(s, indent + " ", v.loStop[i]); 00328 } 00329 s << indent << "erp[]" << std::endl; 00330 for (size_t i = 0; i < v.erp.size(); ++i) 00331 { 00332 s << indent << " erp[" << i << "]: "; 00333 Printer<double>::stream(s, indent + " ", v.erp[i]); 00334 } 00335 s << indent << "cfm[]" << std::endl; 00336 for (size_t i = 0; i < v.cfm.size(); ++i) 00337 { 00338 s << indent << " cfm[" << i << "]: "; 00339 Printer<double>::stream(s, indent + " ", v.cfm[i]); 00340 } 00341 s << indent << "stop_erp[]" << std::endl; 00342 for (size_t i = 0; i < v.stop_erp.size(); ++i) 00343 { 00344 s << indent << " stop_erp[" << i << "]: "; 00345 Printer<double>::stream(s, indent + " ", v.stop_erp[i]); 00346 } 00347 s << indent << "stop_cfm[]" << std::endl; 00348 for (size_t i = 0; i < v.stop_cfm.size(); ++i) 00349 { 00350 s << indent << " stop_cfm[" << i << "]: "; 00351 Printer<double>::stream(s, indent + " ", v.stop_cfm[i]); 00352 } 00353 s << indent << "fudge_factor[]" << std::endl; 00354 for (size_t i = 0; i < v.fudge_factor.size(); ++i) 00355 { 00356 s << indent << " fudge_factor[" << i << "]: "; 00357 Printer<double>::stream(s, indent + " ", v.fudge_factor[i]); 00358 } 00359 s << indent << "fmax[]" << std::endl; 00360 for (size_t i = 0; i < v.fmax.size(); ++i) 00361 { 00362 s << indent << " fmax[" << i << "]: "; 00363 Printer<double>::stream(s, indent + " ", v.fmax[i]); 00364 } 00365 s << indent << "vel[]" << std::endl; 00366 for (size_t i = 0; i < v.vel.size(); ++i) 00367 { 00368 s << indent << " vel[" << i << "]: "; 00369 Printer<double>::stream(s, indent + " ", v.vel[i]); 00370 } 00371 } 00372 }; 00373 00374 00375 } // namespace message_operations 00376 } // namespace ros 00377 00378 #endif // GAZEBO_MSGS_MESSAGE_ODEJOINTPROPERTIES_H 00379