LARS
LARS (Light Augmented Reality System) is an open-source framework for light-based interaction and real-time tracking in multi-robot experiments. Inspired by ARK, LARS extends the augmented reality paradigm to robotic collectives by projecting dynamic visual cues and environments onto the arena, enabling new experimental possibilities for collective robotics research, education, and outreach. LARS features integrated tracking, light projection, and modular experiment control with a user-friendly Qt GUI.
Loading...
Searching...
No Matches
mobileobject.h
1#ifndef MOBILEOBJECT_H
2#define MOBILEOBJECT_H
3
4#include <QDebug>
5#include <QTimer>
6#include <vector>
7
8using namespace std;
9
10//#include "geom.h"
11#include "position.h"
12
13#define LAST_COUNT 4
14
15struct PositionTime
16{
17 Position pos;
18
19 double time;
20 PositionTime()
21 {
22 time = 0;
23 }
24};
25
26class MobileObject : public QObject
27{
28 Q_OBJECT
29
30public:
31 explicit MobileObject();
32 virtual void seenAt(vector<Position> p, double t, int c) = 0;
33
34 bool isValid;
35
36 Position pos;
37 Position pos_predicted;
38 double time;
39
40 int camera_timeout;
41
42 Position vel;
43
44protected:
45 PositionTime last_post[LAST_COUNT];
46 PositionTime vel_post;
47 void appendPostc(PositionTime &post);
48
49//private:
50 QTimer timer_seen;
51 int timer_seen_interval;
52 QTimer timer_vel;
53 int timer_vel_interval;
54 void vel_calc();
55
56private slots:
57 void timer_seen_timeout();
58 void timer_vel_timeout();
59
60};
61
62#endif // MOBILEOBJECT_H
Definition position.h:8
Definition mobileobject.h:16