Wednesday, March 23, 2011

Exercise 7, Problem 1

Make a 'lines' array with start point (3,-4) and end point( 3,1). Make a scan with scannerpose (0,0,0), maxDistance=4, resol=0.36 and field_of_view 180 and plot with the 'polar' function.

lines=[3 -4 3 1]';
scannerPose = [0 0 0]; %theta is in radians
maxDist = 4;
resol = 0.36;
field_of_view = 180;
laserScan = laserscan2011(scannerPose(1), scannerPose(2), scannerPose(3), lines, maxDist,resol,field_of_view);
figure(1);
polar(laserScan(1,:),laserScan(2,:),'.')
title('Ex 7, Problem 1')

No comments:

Post a Comment