Go to the documentation of this file.
31 confFileName = string(
"./conf.ini");
33 confFileName = string(
argv[1]);
36 string section(
"IK_1");
45 for (
size_t i = 0; i < obs.
sensedData.size(); i++)
47 cout << obs.
sensedData[i].sensedDistance <<
"\t";
50 std::this_thread::sleep_for(10ms);
55 catch (
const std::exception& e)
57 std::cerr << e.what();
bool kbhit() noexcept
An OS-independent version of kbhit, which returns true if a key has been pushed.
Contains classes for various device interfaces.
: An interface for the phidget Interface kit board (1018).
This namespace contains representation of robot actions and observations.
TMeasurementList sensedData
All the measurements.
Declares a class derived from "CObservation" that encapsules a single range measurement,...
void getObservation(mrpt::obs::CObservationRange &outObservation)
This method tries to get a set of range measurements from the IR sensors.
void initialize() override
Initialize the sensor according to the parameters previously read in the configuration file.
This class allows loading and storing values and vectors of different types from "....
void doProcess() override
This method should be called periodically.
void loadConfig(const mrpt::config::CConfigFileBase &configSource, const std::string §ion)
Loads the generic settings common to any sensor (See CGenericSensor), then call to "loadConfig_sensor...
Page generated by Doxygen 1.8.17 for MRPT 2.0.3 at Fri May 15 15:49:54 UTC 2020 | |