Last change
on this file since 20 was 13, checked in by Bayard Gildas, 9 years ago |
formatting script + include reformatted
|
File size:
1.6 KB
|
Rev | Line | |
---|
[9] | 1 | // %flair:license{
|
---|
[13] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[9] | 4 | // %flair:license}
|
---|
[8] | 5 | // created: 2013/03/25
|
---|
| 6 | // filename: Simulator.h
|
---|
| 7 | //
|
---|
| 8 | // author: Guillaume Sanahuja
|
---|
| 9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 10 | //
|
---|
| 11 | // version: $Id: $
|
---|
| 12 | //
|
---|
| 13 | // purpose: classe de base du simulateur
|
---|
| 14 | //
|
---|
| 15 | /*********************************************************************/
|
---|
| 16 |
|
---|
| 17 | #ifndef SIMULATOR_H
|
---|
| 18 | #define SIMULATOR_H
|
---|
| 19 |
|
---|
| 20 | #include <FrameworkManager.h>
|
---|
| 21 | #include <stdint.h>
|
---|
| 22 |
|
---|
| 23 | class Simulator_impl;
|
---|
| 24 |
|
---|
| 25 | namespace flair {
|
---|
[13] | 26 | namespace core {
|
---|
| 27 | class Quaternion;
|
---|
| 28 | class Vector3D;
|
---|
[8] | 29 | }
|
---|
[13] | 30 | }
|
---|
[8] | 31 |
|
---|
[13] | 32 | namespace flair {
|
---|
| 33 | namespace simulator {
|
---|
| 34 | class Model;
|
---|
| 35 | class Gui;
|
---|
[8] | 36 |
|
---|
[13] | 37 | class Simulator : public core::FrameworkManager {
|
---|
| 38 | friend class Model;
|
---|
| 39 | friend class Gui;
|
---|
| 40 | friend class GenericObject;
|
---|
[8] | 41 |
|
---|
[13] | 42 | public:
|
---|
| 43 | // yaw_deg: rotation of the vrpn coordinate with respect to the earth
|
---|
| 44 | // coordinate, around z axis
|
---|
| 45 | Simulator(std::string name, int optitrack_mstime = 10, float yaw_deg = 30);
|
---|
| 46 | ~Simulator();
|
---|
| 47 | void RunSimu(void);
|
---|
| 48 | // get rotation of the vrpn coordinate with respect to the earth coordinate,
|
---|
| 49 | // around z axis; in radians
|
---|
| 50 | float Yaw(void) const;
|
---|
| 51 | // compute rotation of the vrpn coordinate with respect to the earth
|
---|
| 52 | // coordinate, around z axis
|
---|
| 53 | core::Quaternion ToVRPNReference(core::Quaternion quat_in);
|
---|
| 54 | core::Vector3D ToVRPNReference(core::Vector3D point_in);
|
---|
[8] | 55 |
|
---|
[13] | 56 | private:
|
---|
| 57 | Simulator_impl *pimpl_;
|
---|
| 58 | };
|
---|
[8] | 59 |
|
---|
[13] | 60 | /*!
|
---|
| 61 | * \brief get Simulator
|
---|
| 62 | *
|
---|
| 63 | * \return the Simulator
|
---|
| 64 | */
|
---|
| 65 | Simulator *getSimulator(void);
|
---|
[8] | 66 |
|
---|
| 67 | } // end namespace simulator
|
---|
| 68 | } // end namespace flair
|
---|
| 69 |
|
---|
| 70 | #endif // SIMULATOR_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.