-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrpcrangefinder.h
50 lines (45 loc) · 1.09 KB
/
rpcrangefinder.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
#ifndef RPCRANGEFINDER_H
#define RPCRANGEFINDER_H
#include <string>
#include <vector>
#include "robotrpcclient.h"
#include "pose2d.h"
#include "rangefinder.h"
namespace Rapi
{
/**
* A rangefinder for use over RPC - specific to chatterbox
* @author Ash Charles ([email protected])
*/
class RpcRangeFinder : public ARangeFinder
{
public:
/** Default constructor */
RpcRangeFinder( RobotRpcClient* client, std::string devName );
/** Default destructor */
virtual ~RpcRangeFinder();
/**
* Enables or disables the device
* @param enable = true to enable, false to disable
*/
virtual void setEnabled( bool enable );
/**
* Initializes the device
* @param return 1 if success 0 otherwise
*/
virtual int init();
/**
* This method gets called by the framework every step to update
* the sensor data
* @param dt size of time step [s]
*/
virtual void updateData( const double dt );
/**
* Prints the devices main information
*/
virtual void print() const;
private:
RobotRpcClient* mClient;
};
} // namespace
#endif