Units.hpp
Go to the documentation of this file.
1 /****************************************************************
2  *
3  * Copyright (c) 2011
4  * All rights reserved.
5  *
6  * Hochschule Bonn-Rhein-Sieg
7  * University of Applied Sciences
8  * Computer Science Department
9  *
10  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11  *
12  * Author:
13  * Jan Paulus, Nico Hochgeschwender, Michael Reckhaus, Azamat Shakhimardanov
14  * Supervised by:
15  * Gerhard K. Kraetzschmar
16  *
17  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
18  *
19  * This sofware is published under a dual-license: GNU Lesser General Public
20  * License LGPL 2.1 and BSD license. The dual-license implies that users of this
21  * code may choose which terms they prefer.
22  *
23  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24  *
25  * Redistribution and use in source and binary forms, with or without
26  * modification, are permitted provided that the following conditions are met:
27  *
28  * * Redistributions of source code must retain the above copyright
29  * notice, this list of conditions and the following disclaimer.
30  * * Redistributions in binary form must reproduce the above copyright
31  * notice, this list of conditions and the following disclaimer in the
32  * documentation and/or other materials provided with the distribution.
33  * * Neither the name of the Hochschule Bonn-Rhein-Sieg nor the names of its
34  * contributors may be used to endorse or promote products derived from
35  * this software without specific prior written permission.
36  *
37  * This program is free software: you can redistribute it and/or modify
38  * it under the terms of the GNU Lesser General Public License LGPL as
39  * published by the Free Software Foundation, either version 2.1 of the
40  * License, or (at your option) any later version or the BSD license.
41  *
42  * This program is distributed in the hope that it will be useful,
43  * but WITHOUT ANY WARRANTY; without even the implied warranty of
44  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45  * GNU Lesser General Public License LGPL and the BSD license for more details.
46  *
47  * You should have received a copy of the GNU Lesser General Public
48  * License LGPL and BSD license along with this program.
49  *
50  ****************************************************************/
51 
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>
61 
62 
63 using namespace boost::units;
64 using namespace boost::units::si;
65 using namespace boost::units::angle;
66 
67 //typedef boost::units::si::length meter;
68 using boost::units::si::meters;
69 namespace youbot {
70 
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;
73 BOOST_UNITS_STATIC_CONSTANT(centimeters, centimeter);
74 
75 
76 typedef boost::units::make_scaled_unit<si::time, boost::units::scale<10, boost::units::static_rational<-3> > >::type millisecond;
77 //BOOST_UNITS_STATIC_CONSTANT(millimeters, millimeter);
78 
79 } // namespace youbot
80 
81 #endif /* YOUBOT_UNITS_HPP */
82 
boost::units::make_scaled_unit< si::length, boost::units::scale< 10, boost::units::static_rational<-3 > > >::type millimeter
Definition: Units.hpp:71
boost::units::make_scaled_unit< si::length, boost::units::scale< 10, boost::units::static_rational<-2 > > >::type centimeter
Definition: Units.hpp:72
boost::units::make_scaled_unit< si::time, boost::units::scale< 10, boost::units::static_rational<-3 > > >::type millisecond
Definition: Units.hpp:76
BOOST_UNITS_STATIC_CONSTANT(centimeters, centimeter)


youbot_driver
Author(s): Jan Paulus
autogenerated on Mon Jun 10 2019 15:46:25