Go to the documentation of this file.
25 int main(
int argc,
char** argv)
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 (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).
void initialize()
Initialize the sensor according to the parameters previously read in the configuration file.
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.
This class allows loading and storing values and vectors of different types from "....
GLsizei const GLchar ** string
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...
void doProcess()
This method should be called periodically.
This namespace provides a OS-independent interface to many useful functions: filenames manipulation,...
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 | |