Quantcast

laser detection obstacle issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

laser detection obstacle issue

light86
hi every body
this is the definition of my laser (i'm using stage 3.2)
  range_max 10.00 fov 3.14159 resolution 1 samples 180
the definition of the obstacle
"size [0.2 0.3 7]
        color "orange"
orange(name "orange4" pose [-4 -5 0 0])

the bigbob robot
  size [1 1 0.2]    origin [0.125 0 0 0]pose [-4 -7 0 90]   color "green"
the cc+ code
t=ls.GetCount() ;

for (i=0;i<t;i++)
{  robot.Read();

d=ls.GetRange(i);
printf("%f\n",d);
 //if( d <3) printf("warning");
}
i've notice that value of dis  between 1.840676 and 1.85

if i change the position the robot I've found that d=10

really i don't understand how i can make a simple detection obstacle
Thank you
Loading...