noid_lower_controller.h
Go to the documentation of this file.
1 #ifndef _NOID_LOWER_CONTROLLER_H_
2 #define _NOID_LOWER_CONTROLLER_H_
3 
4 #include <ros/ros.h>
5 #include "seed_solutions_sdk/aero3_command.h"
6 
7 namespace noid
8 {
9  namespace controller
10  {
12  {
13  public: NoidLowerController(const std::string& _port);
14  public: ~NoidLowerController();
15 
16  public:
17  void getPosition();
18  void sendPosition(uint16_t _time, std::vector<int16_t>& _data);
19  void remapAeroToRos(std::vector<int16_t>& _before, std::vector<int16_t>& _after);
20  void remapRosToAero(std::vector<int16_t>& _before, std::vector<int16_t>& _after);
21  void sendVelocity(std::vector<int16_t>& _data);
22  void onServo(bool _value);
23 
24  bool is_open_;
25  std::vector<int16_t> raw_data_;
26  unsigned int number_of_angles_;
27 
28  std::vector<std::string> name_;
29  std::vector<int> aero_index_;
30  std::vector<int> ros_index_;
31  int DOF_;
32 
33  std::vector<int> wheel_aero_index_;
34  std::vector<int> wheel_ros_index_;
35 
36  protected:
37  aero::controller::AeroCommand *lower_;
38  const static uint32_t BAUDRATE = 1000000;
39  };
40 
41  }
42 }
43 
44 #endif
NoidLowerController(const std::string &_port)
void remapRosToAero(std::vector< int16_t > &_before, std::vector< int16_t > &_after)
void sendVelocity(std::vector< int16_t > &_data)
aero::controller::AeroCommand * lower_
void remapAeroToRos(std::vector< int16_t > &_before, std::vector< int16_t > &_after)
void sendPosition(uint16_t _time, std::vector< int16_t > &_data)


noid_robot_interface
Author(s):
autogenerated on Sat Jul 20 2019 03:44:26