31 #ifndef GPIOENCODERCONFIGURATOR_H 32 #define GPIOENCODERCONFIGURATOR_H 36 #include <roboteq_control/RoboteqEncoderConfig.h> 37 #include <dynamic_reconfigure/server.h> 78 std::vector<roboteq::Motor *>
_motor;
84 dynamic_reconfigure::Server<roboteq_control::RoboteqEncoderConfig> *
ds_encoder;
100 #endif // GPIOENCODERCONFIGURATOR_H
bool setup_encoder
Setup variable.
string mName
Associate name space.
void getEncoderFromRoboteq()
getEncoderFromRoboteq Load Encoder parameters from Roboteq board
void initConfigurator(bool load_from_board)
initConfigurator Initialize all parameter and syncronize parameters between ros and roboteq board ...
std::vector< roboteq::Motor * > _motor
double getConversion(double reduction)
getConversion Get conversion from pulse value to real value
ros::NodeHandle nh_
Private namespace.
void reconfigureCBEncoder(roboteq_control::RoboteqEncoderConfig &config, uint32_t level)
reconfigureCBEncoder when the dynamic reconfigurator change some values start this method ...
unsigned int mNumber
Number motor.
GPIOEncoderConfigurator(const ros::NodeHandle &nh, roboteq::serial_controller *serial, std::vector< roboteq::Motor * > motor, string name, unsigned int number)
GPIOEncoderConfigurator.
roboteq_control::RoboteqEncoderConfig _last_encoder_config
dynamic_reconfigure::Server< roboteq_control::RoboteqEncoderConfig > * ds_encoder
Dynamic reconfigure encoder.
roboteq_control::RoboteqEncoderConfig default_encoder_config
roboteq::serial_controller * mSerial
Serial port.