Go to the documentation of this file.
10 #ifndef CEnoseModular_H
11 #define CEnoseModular_H
std::vector< float > enose_poses_yaw
std::string getSerialPort() const
std::vector< float > enose_poses_pitch
std::vector< float > enose_poses_y
void doProcess()
This method should be called periodically (at least at 1Hz to capture ALL the real-time data) It is t...
void setSerialPortBaud(unsigned int baud)
Set the serial port baud rate (default: 115200)
mrpt::io::CStream * checkConnectionAndConnect()
Tries to connect to the USB device (if disconnected).
unsigned int m_COM_baud
Default=115200.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_GENERIC_SENSOR(class_name)
This declaration must be inserted in all CGenericSensor classes definition, within the class declarat...
A class for interfacing an e-NoseModular via a FTDI USB link.
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
void purgeBuffers()
Purge the Serial/FTDI buffer.
std::unique_ptr< mrpt::comms::CSerialPort > m_stream_SERIAL
Serial port comms.
This class allows loading and storing values and vectors of different types from a configuration text...
mrpt::system::TTimeStamp initial_timestamp
void setSerialPort(const std::string &port)
If not an empty string, will open that serial port, otherwise will try to open USB FTDI device "m_usb...
std::string m_usbSerialNumber
A copy of the device serial number (to open the USB FTDI chip)
bool getObservation(mrpt::obs::CObservationGasSensors &outObservation)
Request the master eNose the latest readings from all the eNoses.
CEnoseModular()
Constructor.
std::vector< float > enose_poses_x
The 3D pose of the master + N slave eNoses on the robot (meters & radians)
A generic interface for a wide-variety of sensors designed to be used in the application RawLogGrabbe...
std::vector< float > enose_poses_roll
Declares a class derived from "CObservation" that represents a set of readings from gas sensors.
std::unique_ptr< mrpt::comms::CInterfaceFTDI > m_stream_FTDI
FTDI comms pipe (when not in serial port mode)
std::string m_COM_port
If not an empty string (default), will open that serial port, otherwise will try to open USB FTDI dev...
void loadConfig_sensorSpecific(const mrpt::config::CConfigFileBase &configSource, const std::string §ion)
See the class documentation at the top for expected parameters.
GLsizei const GLchar ** string
std::vector< float > enose_poses_z
unsigned int getSerialPortBaud() const
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at mié 12 jul 2023 10:03:34 CEST | |