-
Notifications
You must be signed in to change notification settings - Fork 0
/
gazebotools.h
45 lines (34 loc) · 985 Bytes
/
gazebotools.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef GAZEBOTOOLS_H
#define GAZEBOTOOLS_H
#include <QObject>
#include <yarp/os/all.h>
#include <QTimer>
#include "yarptools.h"
#include "messagetypes.h"
#include "connectionmonitor.h"
#include <Eigen/Lgsm>
class GazeboTools : public QObject
{
Q_OBJECT
public:
explicit GazeboTools(QObject *parent = 0);
virtual ~GazeboTools();
Eigen::Displacementd getRobotWorldPose();
signals:
void showUserMessage(const std::string& msg, MESSAGE_TYPE type);
void newRobotWorldPose(const Eigen::Displacementd& robotWorldPose);
public slots:
void addTaskFrames(const std::string &taskName);
void removeTaskFrames(const std::string &taskName);
void sendRobotWorldPose();
private slots:
void getRobotWorldPoseInternal();
private:
yarp::os::Network yarp;
yarp::os::RpcClient m_port;
ConnectionMonitor *conMon;
std::string m_portName;
std::string m_pluginPortName;
Eigen::Displacementd robotWorldPose;
};
#endif // GAZEBOTOOLS_H