Last change
on this file since 382 was 379, checked in by Sanahuja Guillaume, 4 years ago |
modifs ugv
|
-
Property svn:eol-style
set to
native
|
File size:
1.5 KB
|
Line | |
---|
1 | // created: 2020/12/09
|
---|
2 | // filename: CircleFollower.h
|
---|
3 | //
|
---|
4 | // author: Guillaume Sanahuja
|
---|
5 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
6 | //
|
---|
7 | // version: $Id: $
|
---|
8 | //
|
---|
9 | // purpose: demo cercle avec optitrack
|
---|
10 | //
|
---|
11 | //
|
---|
12 | /*********************************************************************/
|
---|
13 |
|
---|
14 | #ifndef CIRCLEFOLLOWER_H
|
---|
15 | #define CIRCLEFOLLOWER_H
|
---|
16 |
|
---|
17 | #include <Thread.h>
|
---|
18 |
|
---|
19 | namespace flair {
|
---|
20 | namespace gui {
|
---|
21 | class PushButton;
|
---|
22 | class DoubleSpinBox;
|
---|
23 | }
|
---|
24 | namespace filter {
|
---|
25 | class TrajectoryGenerator2DCircle;
|
---|
26 | class Pid;
|
---|
27 | }
|
---|
28 | namespace meta {
|
---|
29 | class MetaVrpnObject;
|
---|
30 | }
|
---|
31 | namespace sensor {
|
---|
32 | class TargetController;
|
---|
33 | }
|
---|
34 | }
|
---|
35 |
|
---|
36 | class CircleFollower : public flair::core::Thread {
|
---|
37 | public:
|
---|
38 | CircleFollower(std::string name,flair::sensor::TargetController *controller);
|
---|
39 | ~CircleFollower();
|
---|
40 |
|
---|
41 | private:
|
---|
42 |
|
---|
43 | enum class BehaviourMode_t {
|
---|
44 | Manual,
|
---|
45 | Circle
|
---|
46 | };
|
---|
47 |
|
---|
48 | void Run(void);
|
---|
49 | void StartCircle(void);
|
---|
50 | void StopCircle(void);
|
---|
51 | void ComputeManualControls(void);
|
---|
52 | void ComputeCircleControls(void);
|
---|
53 |
|
---|
54 | flair::filter::Pid *uX, *uY;
|
---|
55 | flair::gui::PushButton *startCircle,*stopCircle,*button_kill;
|
---|
56 | flair::gui::DoubleSpinBox *l;
|
---|
57 | flair::meta::MetaVrpnObject *targetVrpn,*ugvVrpn;
|
---|
58 | flair::filter::TrajectoryGenerator2DCircle *circle;
|
---|
59 | BehaviourMode_t behaviourMode;
|
---|
60 | bool vrpnLost;
|
---|
61 | flair::sensor::TargetController *controller;
|
---|
62 | };
|
---|
63 |
|
---|
64 | #endif // CIRCLEFOLLOWER_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.