#include <ax2550.h>
Public Member Functions | |
AX2550 (std::string port="") | |
void | connect (std::string port="") |
void | disconnect () |
bool | isConnected () |
bool | issueCommand (const std::string &command, std::string &fail_why) |
void | move (double speed, double direction) |
void | queryEncoders (long &encoder1, long &encoder2, bool relative=false) |
~AX2550 () | |
Public Attributes | |
LoggingCallback | debug |
LoggingCallback | info |
LoggingCallback | warn |
WatchDogCallback | watch_dog_callback |
Private Member Functions | |
void | setupFilters_ () |
void | sync_ () |
void | watchDogCallback_ (const std::string &) |
Private Attributes | |
serial::utils::BufferedFilterPtr | ack_nak_filt_ |
bool | connected_ |
serial::utils::BufferedFilterPtr | encoders_filt_ |
boost::mutex | mc_mutex |
std::string | port_ |
serial::utils::SerialListener | serial_listener_ |
serial::Serial * | serial_port_ |
bool | synced_ |
serial::utils::FilterPtr | watch_dog_filt_ |
This class provides an interface for driving and querying an ax2550
AX2550::AX2550 | ( | std::string | port = "" | ) |
AX2550::~AX2550 | ( | ) |
void AX2550::connect | ( | std::string | port = "" | ) |
void AX2550::disconnect | ( | ) |
bool AX2550::isConnected | ( | ) |
bool AX2550::issueCommand | ( | const std::string & | command, |
std::string & | fail_why | ||
) |
void AX2550::move | ( | double | speed, |
double | direction | ||
) |
void AX2550::queryEncoders | ( | long & | encoder1, |
long & | encoder2, | ||
bool | relative = false |
||
) |
void AX2550::setupFilters_ | ( | ) | [private] |
void AX2550::sync_ | ( | ) | [private] |
void AX2550::watchDogCallback_ | ( | const std::string & | ) | [private] |
bool ax2550::AX2550::connected_ [private] |
boost::mutex ax2550::AX2550::mc_mutex [private] |
std::string ax2550::AX2550::port_ [private] |
serial::Serial* ax2550::AX2550::serial_port_ [private] |
bool ax2550::AX2550::synced_ [private] |