Go to the documentation of this file.
22 CRoboticHeadInterface::CRoboticHeadInterface()
67 "ERROR LEYENDO LA GANANCIA DEL AMPLIFICADOR DE LA OREJA \n");
113 for (
size_t k = 0; k < 3; k++)
115 for (
size_t j = 0; j < 500 / 100; j++)
119 for (
size_t i = 0; i < 100; i++)
120 buf(k, 100 * j + i) =
void setSize(size_t row, size_t col, bool zeroNewElements=false)
Changes the size of matrix, maintaining the previous contents.
void GetSoundLocation(int &ang)
This function return the angle where last sound where detected.
This template class provides the basic functionality for a general 2D any-size, resizable container o...
mrpt::comms::CInterfaceFTDI m_usbConnection
void loadConfig_sensorSpecific(const mrpt::config::CConfigFileBase *configSource, const std::string &iniSection)
Loads specific configuration for the device from a given source of configuration parameters,...
Contains classes for various device interfaces.
uint32_t type
An identifier of the message type (only the least-sig byte is typically sent)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
mrpt::system::COutputLogger COutputLogger
#define THROW_EXCEPTION(msg)
std::string read_string(const std::string §ion, const std::string &name, const std::string &defaultValue, bool failIfNotFound=false) const
int read_int(const std::string §ion, const std::string &name, int defaultValue, bool failIfNotFound=false) const
std::vector< int32_t > gain
mrpt::serialization::CMessage msg
bool SetGain(int &new_gain, int &channel)
Set the gain for the amplifier each ear.
This class allows loading and storing values and vectors of different types from a configuration text...
std::vector< uint8_t > content
The contents of the message (memory is automatically handled by the std::vector object)
void Get3SoundBuffer(mrpt::math::CMatrixTemplate< int > &buf)
Debug only!!! This function return the last 500 acquired samples for each sound channel.
void GetGain(int &_gain, int &channel)
Read the gain for the amplifier of the ear "channel", where channel is 0, 1 or 2.
CArchiveStreamBase< STREAM > archiveFrom(STREAM &s)
Helper function to create a templatized wrapper CArchive object for a: MRPT's CStream,...
This base provides a set of functions for maths stuff.
GLsizei const GLchar ** string
std::string m_serialNumber
void read_vector(const std::string §ion, const std::string &name, const VECTOR_TYPE &defaultValue, VECTOR_TYPE &outValues, bool failIfNotFound=false) const
Reads a configuration parameter of type vector, stored in the file as a string: "[v1 v2 v3 ....
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 | |