imuClient.h
Go to the documentation of this file.
1 
5 #pragma once
6 
7 #include "../../../../LIBRARIES/MIDDLEWARE/src/com/dpyMwClient.h"
8 #include "imu.pb.h"
9 #include "imuApi.h"
10 
16 class ImuClient: public DpyMwClient
17 {
18 
19 private:
20  void RegisterCallbacks();
21  bool setConfigProperty(IMU::ConfigImu& config, int property);
22  std::map<int, IMU::ConfigImu::Properties> s_mapProperties;
23 
24 public:
25  ImuClient(std::string ip, int dport, int sport);
26  ~ImuClient();
27 
28  void asyncGetConfigImu(dpyImu::configimu_handler_function handler, int num_property);
29  void asyncSetConfigImu(dpyImu::set_handler_function handler, int num_property, std::string value);
30  void asyncGetInertialValues(dpyImu::infoimu_handler_function handler, int device_number);
31  void getInertialValues_S(dpyImu::infoimu_handler_function handler);
32  void getInertialValues_U();
33 };
boost::function< void(boost::system::error_code &ec, dpyImu::info_imu_struct &info_struct)> infoimu_handler_function
Handlers to the functions the client has to implement.
Definition: imuApi.h:86
boost::function< void(boost::system::error_code &ec)> set_handler_function
Result of an operation handler function.
Definition: imuApi.h:88
This class is responsible of the client logic. His main target is to subscribe to the server informat...
Definition: imuClient.h:16
boost::function< void(boost::system::error_code &ec, dpyImu::config_imu_struct &config_struct)> configimu_handler_function
Configuration handler function.
Definition: imuApi.h:87
Manages dealer and susbriber.
Definition: dpyMwClient.h:59