Raúl
Moderator
 Moderator
| Posts: 590 |  | Karma: 10
|
Re:making a larger map in explorersimsonar - 2008/10/14 17:46
Hi, About the metrics, Robotics Studio adopted the International Metrics System, therefore all measurements should use the meter as unit. That means that for example 1.2f is 1 meter and 20 centimeters.
You can change the dimensions of the maze in the ExplorerSimSonar you just need to change the dimensions of the bitmap file that is used to build the map. In other words, the size of the maze is img.Width x img.Height, being img the bitmap image which is loaded. (look at the AddMaze method in MazeSimulatorRa.cs file).
Basically, each pixel of the bitmap will became a cell of the maze. And the grid size is defined in the MazeSimulatorState class:
| Code: | // Grid size for bitmaps, i.e. one pixel = GridSpacing
[DataMember]
public float GridSpacing = 0.1f; // Maze grid size (meters)
|
So you can easily change the scale by altering the value of this variable..
Raúl Arrabales Moreno. conscious-robots.com/raul |