-
Notifications
You must be signed in to change notification settings - Fork 0
/
ECIRobotSystemHandler.hh
58 lines (32 loc) · 982 Bytes
/
ECIRobotSystemHandler.hh
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef _H_ECIRobotSystemHandler
#define _H_ECIRobotSystemHandler
//Environment Variables
// yaw in radians
float getYaw ();
void setYaw (const float& s);
float getXPosition ();
void setXPosition (const float& s);
float getYPosition ();
void setYPosition (const float& s);
float getLinearVelocity ();
void setLinearVelocity (const float& s);
float getAngularVelocity ();
void setAngularVelocity (const float& s);
int getReady();
void setReady(const int& v);
int getSafetyWarning();
void setSafetyWarning(const int& v);
//computation functions
float radAnglesDiff(double theta1,double theta2);
float distance(float x1, float y1, float x2, float y2);
float distance(float x1, float y1, float x2, float y2);
float sinrad(float rad);
float cosrad(float rad);
float tanrad(float rad);
//Commands
int requestLinearVelocity(float lv);
int requestAngularVelocity(float av);
//setup routines
void setupROSPublisher();
void startROSSuscriptionsThread();
#endif