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

Last change on this file since 158 was 158, checked in by Sanahuja Guillaume, 5 years ago

corrected simu/device id for sensors

File size: 1.2 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5//  created:    2013/03/25
6//  filename:   Simulator_impl.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_IMPL_H
18#define SIMULATOR_IMPL_H
19
20#include <vrpn_Connection.h>
21#include <Thread.h>
22
23namespace flair {
24namespace simulator {
25class Simulator;
26class Model;
27class GenericObject;
28}
29}
30
31class Model_impl;
32
33class Simulator_impl : public vrpn_Connection_IP, private flair::core::Thread {
34  friend class ::Model_impl;
35  friend class flair::simulator::GenericObject;
36
37public:
38  Simulator_impl(flair::simulator::Simulator *self, int optitrack_mstime = 10,
39                 float yaw_deg = 30);
40  ~Simulator_impl();
41
42  void RunSimu(void);
43  float yaw_rad;
44
45private:
46  void Run(void);
47  flair::simulator::Simulator *self;
48  std::vector<flair::simulator::Model *> models;
49  std::vector<flair::simulator::GenericObject *> objects;
50  int optitrack_mstime;
51};
52
53#endif // SIMULATOR_IMPL_H
Note: See TracBrowser for help on using the repository browser.