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
serialconn.h
1#ifndef __SERIALCONN_H__
2#define __SERIALCONN_H__
3
4#include <QObject>
5#include <QString>
6#include <QVector>
7#include <QTime>
8#include "intelhex.h"
9
10#define TIMEPERMSG_ms 50
11
12class SerialConnection: public QObject {
13 Q_OBJECT
14
15private:
16 QString portname;
17 void *context;
19 QTime delay;
20 int mode;
21 int page;
22 int page_total;
23 QVector < QByteArray > cmds;
24
25public:
26 SerialConnection(QObject *p=0, QString="");
27 static QVector<QString> enumerate();
28 void setPort(QString);
29 QString getPort() const;
30 void clearQueue();
31 int cmdQueueSize() {return this->cmds.size();}
32
33signals:
34 void readText(QString);
35 void status(QString);
36 void error(QString);
37 void SendMsgsQueueState(bool);
38
39public slots:
40 void queueCommand(QByteArray);
41 void sendQueuedCommand();
42 void sendCommand(QByteArray);
43 void sendProgram(QString);
44 void open();
45 void close();
46 void read();
47 void resetDelay();
48
49private slots:
50 void readLoop();
51 void programLoop();
52};
53
54#endif//__SERIALCONN_H__
Definition intelhex.h:28