Example that shows how to acquire Sick LD-MRS laser measurements.
- Warning
- For the moment, this example is only working on UNIX platforms since the Sick LD-MRS driver was not ported to Windows.
#include <visp/vpDebug.h>
#include <visp/vpSickLDMRS.h>
#include <visp/vpParseArgv.h>
#ifdef UNIX
int main()
{
std::string ip = "131.254.12.119";
unsigned long int iter = 0;
for ( ; ; ) {
if (laser.
measure(laserscan) ==
false)
continue;
iter ++;
std::cout << "iter: " << iter << " time: "
}
return 0;
}
#else // #ifdef UNIX
int main()
{
std::cout << "This example is only working on UNIX platforms \n"
<< "since the Sick LD-MRS driver was not ported to Windows."
<< std::endl;
return 0;
}
#endif // #ifdef UNIX