You are here

Problem with class CHokuyoURG

Hi,
I've got a problem with the CHokuyoURG class: if I try to compile, for example, the samples HOKUYO_laser_test , I always get the same error while running it (the compiling gives no problem): *FATAL* signal SIGSEGV caught.
I've controlled each part of the code and the problem is in the line "laser.setSerialName(serName)".
I've also controlled the header file and the cpp source code and everything seems to be correct.
As IDE I use NetBeans.
Thank you very much for the support

Forums: 
jlblanco's picture

Hi Gabriele,

Could you please attach a minimal example code that fails (including IDE projects or CMake script to build it) to investigate what's going on?

JL

gabriele's picture

Hi
first of all thank you for your assistance.
I've solved the problem with the class CHokuyoURG: the code gave errors because of some library that was out of date, so the program generated wrong memory reference; furthermore I've changed the laser with another of the same type and now the code works.
However I must congratulate with you for this set of library, it's a precious tool for several mobile robot problems.
Again thank you

gabriele