source: flair-src/trunk/lib/FlairSimulator/src/unexported/Simulator_impl.h@ 8

Last change on this file since 8 was 8, checked in by Sanahuja Guillaume, 6 years ago

simulator

File size: 1.1 KB
Line 
1// created: 2013/03/25
2// filename: Simulator_impl.h
3//
4// author: Guillaume Sanahuja
5// Copyright Heudiasyc UMR UTC/CNRS 7253
6//
7// version: $Id: $
8//
9// purpose: classe de base du simulateur
10//
11/*********************************************************************/
12
13#ifndef SIMULATOR_IMPL_H
14#define SIMULATOR_IMPL_H
15
16#include <vrpn_Connection.h>
17#include <Thread.h>
18
19
20namespace flair
21{
22 namespace simulator
23 {
24 class Simulator;
25 class Model;
26 class GenericObject;
27 }
28}
29
30class Simulator_impl: public vrpn_Connection_IP, private flair::core::Thread
31{
32 friend class flair::simulator::Model;
33 friend class flair::simulator::GenericObject;
34
35 public:
36 Simulator_impl(flair::simulator::Simulator* self,int optitrack_mstime=10,float yaw_deg=30);
37 ~Simulator_impl();
38
39 void RunSimu(void);
40 float yaw_rad;
41
42 private:
43 void Run(void);
44 flair::simulator::Simulator* self;
45 std::vector<flair::simulator::Model*> models;
46 std::vector<flair::simulator::GenericObject*> objects;
47 int optitrack_mstime;
48};
49
50#endif // SIMULATOR_IMPL_H
Note: See TracBrowser for help on using the repository browser.