Public Member Functions | Public Attributes | List of all members
rokubimini::serial::setup::RokubiminiSerial Class Reference

The Rokubimini Serial Setup class. More...

#include <RokubiminiSerial.hpp>

Inheritance diagram for rokubimini::serial::setup::RokubiminiSerial:
Inheritance graph
[legend]

Public Member Functions

void load (const std::string &rokubiminiName, NodeHandlePtr nh) override
 Loads the sensor configuration from the parameter server. More...
 
 RokubiminiSerial ()=default
 Default constructor of a Rokubimini Serial Setup. More...
 
 ~RokubiminiSerial () override=default
 
- Public Member Functions inherited from rokubimini::setup::Rokubimini
 Rokubimini ()=default
 
virtual ~Rokubimini ()=default
 

Public Attributes

uint32_t baudRate_ { 0 }
 The baud rate of the serial communication. More...
 
std::string serialPort_ { "/dev/ttyUSB0" }
 The serial port name. More...
 
- Public Attributes inherited from rokubimini::setup::Rokubimini
configuration::Configuration configuration_
 
std::string name_
 
std::uint32_t productCode_
 

Additional Inherited Members

- Public Types inherited from rokubimini::setup::Rokubimini
typedef std::shared_ptr< ros::NodeHandleNodeHandlePtr
 

Detailed Description

The Rokubimini Serial Setup class.

Inherits from the Rokubimini Setup class. It's used for parsing a setup file and creating a Rokubimini Serial Setup from it, by parsing specific serial attributes from the file (port, baudrate, etc.).

Definition at line 28 of file setup/RokubiminiSerial.hpp.

Constructor & Destructor Documentation

rokubimini::serial::setup::RokubiminiSerial::RokubiminiSerial ( )
default

Default constructor of a Rokubimini Serial Setup.

rokubimini::serial::setup::RokubiminiSerial::~RokubiminiSerial ( )
overridedefault

Member Function Documentation

void rokubimini::serial::setup::RokubiminiSerial::load ( const std::string &  rokubiminiName,
NodeHandlePtr  nh 
)
overridevirtual

Loads the sensor configuration from the parameter server.

Parameters
rokubiminiNameThe name of the rokubimini to search in the parameter server.
nhThe ROS NodeHandle to access the parameter server.

Reimplemented from rokubimini::setup::Rokubimini.

Definition at line 10 of file setup/RokubiminiSerial.cpp.

Member Data Documentation

uint32_t rokubimini::serial::setup::RokubiminiSerial::baudRate_ { 0 }

The baud rate of the serial communication.

Definition at line 63 of file setup/RokubiminiSerial.hpp.

std::string rokubimini::serial::setup::RokubiminiSerial::serialPort_ { "/dev/ttyUSB0" }

The serial port name.

Definition at line 55 of file setup/RokubiminiSerial.hpp.


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


rokubimini_serial
Author(s):
autogenerated on Wed Mar 3 2021 03:09:18