-
Notifications
You must be signed in to change notification settings - Fork 0
/
DrawLocalization.h
executable file
·50 lines (41 loc) · 1.48 KB
/
DrawLocalization.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
49
50
/**
* @file DrawLocalization.h
* @ingroup Drawing
* @author Dominique Vaufreydaz, Grenoble Alpes University, Inria
* @copyright All right reserved.
*/
#ifndef __DRAW_LOCALIZATION_H__
#define __DRAW_LOCALIZATION_H__
#include "DrawTimestampData.h"
#include "Drawable.h"
#define LocalisationFileName "/robulab/Localization.timestamp" /*!< @brief Timestamp file for the localization of the robot */
namespace MobileRGBD {
/**
* @class DrawLocalization DrawLocalization.cpp DrawLocalization.h
* @brief Class to draw localization of the robot
*
* @author Dominique Vaufreydaz, Grenoble Alpes University, Inria
*/
class DrawLocalization : public DrawTimestampData
{
public:
/** @brief constructor. Draw localization from the robot.
*
* @param Folder [in] Main folder containing the data. Data will be search in 'Folder/robulab/Localization.timestamp' file.
*/
DrawLocalization( const std::string& Folder )
: DrawTimestampData( Folder + LocalisationFileName )
{
}
/** @brief Virtual destructor, always.
*/
virtual ~DrawLocalization() {}
/** @brief ProcessElement is a callback function called by mother classes when data are ready.
*
* @param RequestTimestamp [in] The timestamp of the data.
* @param UserData [in] User pointer to working data. Here a pointer to a cv:Mat to draw in.
*/
virtual bool ProcessElement(const TimeB &RequestedTimestamp, void * UserData = nullptr );
};
} // namespace MobileRGBD
#endif // __DRAW_LOCALIZATION_H__