4 using namespace controller;
15 lower_ =
new aero::controller::AeroCommand();
17 ROS_INFO(
"%s is connected", _port.c_str());
22 ROS_ERROR(
"%s is not connected", _port.c_str());
45 else raw_data_.assign(_data.begin(), _data.end());
50 for(
int i=0; i <
DOF_; ++i){
62 size_t aero_array_size = 30;
63 for(
size_t i=0; i < aero_array_size; ++i){
75 size_t aero_array_size = 30;
76 std::vector<int16_t> send_data(aero_array_size);
77 fill(send_data.begin(),send_data.end(),0x7FFF);
79 for(
size_t i=0; i < aero_array_size; ++i){
94 std::vector<uint16_t>
data(30);
95 fill(data.begin(),data.end(),0x7FFF);
NoidLowerController(const std::string &_port)
std::vector< int > wheel_aero_index_
void remapRosToAero(std::vector< int16_t > &_before, std::vector< int16_t > &_after)
std::vector< int > wheel_ros_index_
std::vector< std::string > name_
void sendVelocity(std::vector< int16_t > &_data)
std::vector< int16_t > raw_data_
ROSCPP_DECL bool get(const std::string &key, std::string &s)
std::vector< int > aero_index_
std::vector< int > ros_index_
void onServo(bool _value)
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)
static const uint32_t BAUDRATE