Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
ax2550::AX2550 Class Reference

#include <ax2550.h>

List of all members.

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::Serialserial_port_
bool synced_
serial::utils::FilterPtr watch_dog_filt_

Detailed Description

This class provides an interface for driving and querying an ax2550

Definition at line 69 of file ax2550.h.


Constructor & Destructor Documentation

AX2550::AX2550 ( std::string  port = "")

Definition at line 51 of file ax2550.cc.

Definition at line 67 of file ax2550.cc.


Member Function Documentation

void AX2550::connect ( std::string  port = "")

Definition at line 72 of file ax2550.cc.

Definition at line 109 of file ax2550.cc.

Definition at line 121 of file ax2550.cc.

bool AX2550::issueCommand ( const std::string &  command,
std::string &  fail_why 
)

Definition at line 126 of file ax2550.cc.

void AX2550::move ( double  speed,
double  direction 
)

Definition at line 163 of file ax2550.cc.

void AX2550::queryEncoders ( long &  encoder1,
long &  encoder2,
bool  relative = false 
)

Definition at line 215 of file ax2550.cc.

void AX2550::setupFilters_ ( ) [private]

Definition at line 384 of file ax2550.cc.

void AX2550::sync_ ( ) [private]

Definition at line 301 of file ax2550.cc.

void AX2550::watchDogCallback_ ( const std::string &  ) [private]

Definition at line 359 of file ax2550.cc.


Member Data Documentation

Definition at line 100 of file ax2550.h.

Definition at line 104 of file ax2550.h.

Definition at line 87 of file ax2550.h.

Definition at line 97 of file ax2550.h.

Definition at line 88 of file ax2550.h.

boost::mutex ax2550::AX2550::mc_mutex [private]

Definition at line 106 of file ax2550.h.

std::string ax2550::AX2550::port_ [private]

Definition at line 92 of file ax2550.h.

Definition at line 94 of file ax2550.h.

Definition at line 93 of file ax2550.h.

bool ax2550::AX2550::synced_ [private]

Definition at line 105 of file ax2550.h.

Definition at line 89 of file ax2550.h.

Definition at line 86 of file ax2550.h.

Definition at line 99 of file ax2550.h.


The documentation for this class was generated from the following files:


ax2550
Author(s): William Woodall , Michael Carroll
autogenerated on Sat Jun 8 2019 18:26:02