52 #ifndef YOUBOT_UNITS_HPP 53 #define YOUBOT_UNITS_HPP 54 #include <boost/units/io.hpp> 55 #include <boost/units/pow.hpp> 56 #include <boost/units/systems/si.hpp> 57 #include <boost/units/systems/temperature/celsius.hpp> 58 #include <boost/units/cmath.hpp> 59 #include <boost/units/make_scaled_unit.hpp> 60 #include <boost/units/systems/si/prefixes.hpp> 68 using boost::units::si::meters;
71 typedef boost::units::make_scaled_unit<si::length, boost::units::scale<10, boost::units::static_rational<-3> > >::type
millimeter;
72 typedef boost::units::make_scaled_unit<si::length, boost::units::scale<10, boost::units::static_rational<-2> > >::type
centimeter;
76 typedef boost::units::make_scaled_unit<si::time, boost::units::scale<10, boost::units::static_rational<-3> > >::type
millisecond;
boost::units::make_scaled_unit< si::length, boost::units::scale< 10, boost::units::static_rational<-3 > > >::type millimeter
boost::units::make_scaled_unit< si::length, boost::units::scale< 10, boost::units::static_rational<-2 > > >::type centimeter
boost::units::make_scaled_unit< si::time, boost::units::scale< 10, boost::units::static_rational<-3 > > >::type millisecond
BOOST_UNITS_STATIC_CONSTANT(centimeters, centimeter)