Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends
roboteq::Controller Class Reference

#include <controller.h>

List of all members.

Classes

class  EOMSend
class  MessageSender

Public Member Functions

void addChannel (Channel *channel)
void connect ()
bool connected ()
 Controller (const char *port, int baud)
bool downloadScript ()
void flush ()
void resetDIOx (int i)
void resetEstop ()
void setDIOx (int i)
void setEstop ()
int setSerialEcho (bool serial_echo)
void setUserBool (int var, bool val)
void setUserVariable (int var, int val)
void spinOnce ()
void startScript ()
void stopScript ()
 ~Controller ()

Protected Member Functions

bool haveLastResponse ()

Protected Attributes

MessageSender command
std::string last_response_
boost::condition_variable last_response_available_
boost::mutex last_response_mutex_
MessageSender param
MessageSender query
EOMSend send
EOMSend sendVerify
uint8_t start_script_attempts_

Private Member Functions

void processFeedback (std::string msg)
void processStatus (std::string msg)
void read ()
void write (std::string)

Private Attributes

int baud_
std::vector< Channel * > channels_
bool connected_
ros::NodeHandle nh_
const char * port_
ros::Publisher pub_status_
serial::Serialserial_
std::stringstream tx_buffer_
std::string version_

Friends

class Channel

Detailed Description

Definition at line 43 of file controller.h.


Constructor & Destructor Documentation

roboteq::Controller::Controller ( const char *  port,
int  baud 
)

Definition at line 50 of file controller.cpp.

Definition at line 58 of file controller.cpp.


Member Function Documentation

Definition at line 61 of file controller.cpp.

Definition at line 65 of file controller.cpp.

bool roboteq::Controller::connected ( ) [inline]

Definition at line 116 of file controller.h.

Definition at line 210 of file controller.cpp.

Definition at line 142 of file controller.cpp.

bool roboteq::Controller::haveLastResponse ( ) [inline, protected]

Definition at line 71 of file controller.h.

void roboteq::Controller::processFeedback ( std::string  msg) [private]

Definition at line 188 of file controller.cpp.

void roboteq::Controller::processStatus ( std::string  msg) [private]

Definition at line 151 of file controller.cpp.

void roboteq::Controller::read ( ) [private]

Definition at line 93 of file controller.cpp.

void roboteq::Controller::resetDIOx ( int  i) [inline]

Definition at line 123 of file controller.h.

Definition at line 122 of file controller.h.

void roboteq::Controller::setDIOx ( int  i) [inline]

Definition at line 124 of file controller.h.

void roboteq::Controller::setEstop ( ) [inline]

Definition at line 121 of file controller.h.

int roboteq::Controller::setSerialEcho ( bool  serial_echo) [inline]

Definition at line 131 of file controller.h.

void roboteq::Controller::setUserBool ( int  var,
bool  val 
) [inline]

Definition at line 128 of file controller.h.

void roboteq::Controller::setUserVariable ( int  var,
int  val 
) [inline]

Definition at line 127 of file controller.h.

void roboteq::Controller::spinOnce ( ) [inline]

Definition at line 117 of file controller.h.

Definition at line 125 of file controller.h.

Definition at line 126 of file controller.h.

void roboteq::Controller::write ( std::string  msg) [private]

Definition at line 138 of file controller.cpp.


Friends And Related Function Documentation

friend class Channel [friend]

Definition at line 44 of file controller.h.


Member Data Documentation

Definition at line 48 of file controller.h.

std::vector<Channel*> roboteq::Controller::channels_ [private]

Definition at line 53 of file controller.h.

Definition at line 105 of file controller.h.

Definition at line 49 of file controller.h.

std::string roboteq::Controller::last_response_ [protected]

Definition at line 68 of file controller.h.

boost::condition_variable roboteq::Controller::last_response_available_ [protected]

Definition at line 70 of file controller.h.

Definition at line 69 of file controller.h.

Definition at line 55 of file controller.h.

Definition at line 107 of file controller.h.

const char* roboteq::Controller::port_ [private]

Definition at line 47 of file controller.h.

Definition at line 56 of file controller.h.

Definition at line 106 of file controller.h.

Definition at line 108 of file controller.h.

Definition at line 108 of file controller.h.

Definition at line 51 of file controller.h.

Definition at line 74 of file controller.h.

std::stringstream roboteq::Controller::tx_buffer_ [private]

Definition at line 52 of file controller.h.

std::string roboteq::Controller::version_ [private]

Definition at line 50 of file controller.h.


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


roboteq_driver
Author(s):
autogenerated on Thu Jun 6 2019 18:40:39