Public Member Functions | Private Member Functions | Private Attributes | List of all members
sr_hand_detector::SrHandDetector Class Reference

#include <sr_hand_detector.h>

Public Member Functions

std::map< int, std::string > get_hand_serial_to_port ()
 
void run ()
 
 SrHandDetector ()
 
 ~SrHandDetector ()
 

Private Member Functions

int count_slaves_on_port (std::string)
 
void detect_hand_ports ()
 
void get_available_port_names ()
 
int get_hand_serial (std::string)
 
void get_hands_ports_and_serials ()
 
int read_eeprom (int, int, int)
 

Private Attributes

std::vector< std::string > available_port_names_
 
uint8 ebuf_ [MAXBUF]
 
std::map< int, std::string > hand_serial_to_port_map_
 
const int NUM_OF_SLAVES_EXPECTED_FOR_HAND_ = 2
 
const int SLAVE_WITH_HAND_SERIAL_ = 2
 

Detailed Description

Definition at line 31 of file sr_hand_detector.h.

Constructor & Destructor Documentation

◆ SrHandDetector()

sr_hand_detector::SrHandDetector::SrHandDetector ( )

Definition at line 29 of file sr_hand_detector.cpp.

◆ ~SrHandDetector()

sr_hand_detector::SrHandDetector::~SrHandDetector ( )

Definition at line 34 of file sr_hand_detector.cpp.

Member Function Documentation

◆ count_slaves_on_port()

int sr_hand_detector::SrHandDetector::count_slaves_on_port ( std::string  port_name)
private

Definition at line 81 of file sr_hand_detector.cpp.

◆ detect_hand_ports()

void sr_hand_detector::SrHandDetector::detect_hand_ports ( )
private

◆ get_available_port_names()

void sr_hand_detector::SrHandDetector::get_available_port_names ( )
private

Definition at line 44 of file sr_hand_detector.cpp.

◆ get_hand_serial()

int sr_hand_detector::SrHandDetector::get_hand_serial ( std::string  port_name)
private

Definition at line 95 of file sr_hand_detector.cpp.

◆ get_hand_serial_to_port()

std::map< int, std::string > sr_hand_detector::SrHandDetector::get_hand_serial_to_port ( )

Definition at line 169 of file sr_hand_detector.cpp.

◆ get_hands_ports_and_serials()

void sr_hand_detector::SrHandDetector::get_hands_ports_and_serials ( )
private

Definition at line 69 of file sr_hand_detector.cpp.

◆ read_eeprom()

int sr_hand_detector::SrHandDetector::read_eeprom ( int  slave,
int  start,
int  length 
)
private

Definition at line 117 of file sr_hand_detector.cpp.

◆ run()

void sr_hand_detector::SrHandDetector::run ( )

Definition at line 38 of file sr_hand_detector.cpp.

Member Data Documentation

◆ available_port_names_

std::vector<std::string> sr_hand_detector::SrHandDetector::available_port_names_
private

Definition at line 48 of file sr_hand_detector.h.

◆ ebuf_

uint8 sr_hand_detector::SrHandDetector::ebuf_[MAXBUF]
private

Definition at line 49 of file sr_hand_detector.h.

◆ hand_serial_to_port_map_

std::map<int, std::string> sr_hand_detector::SrHandDetector::hand_serial_to_port_map_
private

Definition at line 47 of file sr_hand_detector.h.

◆ NUM_OF_SLAVES_EXPECTED_FOR_HAND_

const int sr_hand_detector::SrHandDetector::NUM_OF_SLAVES_EXPECTED_FOR_HAND_ = 2
private

Definition at line 51 of file sr_hand_detector.h.

◆ SLAVE_WITH_HAND_SERIAL_

const int sr_hand_detector::SrHandDetector::SLAVE_WITH_HAND_SERIAL_ = 2
private

Definition at line 50 of file sr_hand_detector.h.


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


sr_hand_detector
Author(s):
autogenerated on Sat Sep 24 2022 02:26:10