populate LineMap from US sensor data

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: imaqine, 99jonathan, roger

Active User
Posts: 121
Joined: Thu Feb 10, 2011 5:47 pm
Location: London, Earth.

populate LineMap from US sensor data

Postby Rickz2020 » Tue Mar 27, 2012 7:56 pm


What's the best way to do this? I want to have the robot scan 360degrees (robot stays stationary - just sensor rotates via servo) , build a map and then use that map to navigate trough.

Also, in:

Code: Select all

lejos.geom.Rectangle bounds = new Rectangle(-50, -50, 250, 250);

The -50, -50 represents the X and Y, but what are these for? Why do we need them and what do they represent?


New User
Posts: 20
Joined: Thu Mar 22, 2012 11:44 am

Re: populate LineMap from US sensor data

Postby matthias » Wed Mar 28, 2012 8:29 am

This defines an outer rectangle for your map, that the Robot should not leave - but there was (or still is?) a flaw, that the Rectangle is not used by pathfinding and so they tended to find paths, that "drive you off the cliff". (already discussed somewhere in the forum)

if you dont need it, set it to null...

Return to “NXJ Software”

Who is online

Users browsing this forum: No registered users and 2 guests