source: flair-src/trunk/lib/FlairSimulator/src/TwoWheelRobot.h @ 372

Last change on this file since 372 was 372, checked in by Sanahuja Guillaume, 11 months ago

add twowheelrobot

File size: 1.3 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:    2020/11/20
6//  filename:   TwoWheelRobot.h
7//
8//  author:     Guillaume Sanahuja
9//              Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11//  version:    $Id: $
12//
13//  purpose:    classe definissant un TwoWheelRobot
14//
15/*********************************************************************/
16
17#ifndef TWOWHEELROBOT_H
18#define TWOWHEELROBOT_H
19
20#include <Model.h>
21
22namespace flair {
23namespace core {
24class Mutex;
25}
26namespace gui {
27class DoubleSpinBox;
28class SpinBox;
29}
30namespace actuator {
31class SimuBldc;
32}
33}
34
35#ifdef GL
36namespace irr {
37namespace scene {
38class IMesh;
39}
40}
41#endif
42
43namespace flair {
44namespace simulator {
45class Blade;
46
47class TwoWheelRobot : public Model {
48public:
49  TwoWheelRobot(std::string name, uint32_t modelId);
50  ~TwoWheelRobot();
51#ifdef GL
52  virtual void Draw(void);
53  virtual void ExtraDraw(void){}; 
54#endif
55
56private:
57  void CalcModel(void);
58#ifdef GL
59  void AnimateModel(void);
60  size_t dbtSize(void) const;
61  void WritedbtBuf(char *dbtbuf);
62  void ReaddbtBuf(char *dbtbuf);
63  irr::scene::IMesh *colored_body;
64#endif
65  gui::SpinBox *bodyColorR,*bodyColorG,*bodyColorB;
66  gui::DoubleSpinBox *size,*m;
67
68 
69};
70} // end namespace simulator
71} // end namespace flair
72#endif // TWOWHEELROBOT_H
Note: See TracBrowser for help on using the repository browser.