and replace this std::cout <<lp.GetRange(1)<< std::endl;
(i replace this because of the segmentation error)
with this std::cout << lp << std::endl;
and run it again in simulation with playerV it does gives me the real reading from the laser
(from outputting "lp" but not GetRange).
my goal here is to do GetRange() on the real laser and use it on my potential field program..