-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlucciPLAN.h
49 lines (39 loc) · 1.37 KB
/
lucciPLAN.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
44
45
46
47
48
/**
* \file lucciPLAN.h
* Author: erupter
*
* Created on November 2, 2012, 2:41 PM
*/
#ifndef LUCCIPLAN_H
#define LUCCIPLAN_H
#ifdef __cplusplus
extern "C" {
#endif
#include "lucciRTB.h"
#include "lucciSERVICE.h"
#include <math.h>
/** \defgroup Plan */
/** \brief Plan calculate new direction
*
* \ingroup Plan
* Calculates the direction towards the next waypoint given the actual position.
* @param dest RTBvector with the destination vector
* @param actual RTBvector with the actual position vector
* @return direction RTBvector containing the computed new direction
*/
RTBvector lucciPLAN_givedir(RTBvector dest, RTBvector actual);
/** \brief Plan calculate new direction (4 param version
*
* \ingroup Plan
* Calculates the direction towards the next waypoint given the actual position.
* @param actualx RTBvector with the actual position X component
* @param actualy RTBvector with the actual position Y component
* @param destx RTBvector with the destination X component
* @param desty RTBvector with the destination Y component
* @return direction RTBvector containing the computed new direction
*/
RTBvector lucciPLAN_givedir_multiparam(RTB_FLOAT_TYPE actualx, RTB_FLOAT_TYPE actualy, RTB_FLOAT_TYPE destx, RTB_FLOAT_TYPE desty);
#ifdef __cplusplus
}
#endif
#endif /* LUCCIPLAN_H */