MIRA
Toolbox MapBuilder


This toolbox provides graphical tools to create maps of the environment from sensor data, as well as tools to edit and load these maps.

  1. The mapping process
  2. Prerequisites for mapping
  3. Simple Mapper tool
  4. Simple Map Editor tool
  5. Map files

The mapping process

The mapping process comes down to gathering sensor measurements of the environment's structure while driving around with the robot. This sensor data, combined with the corresponding measurement positions, yields a set of discrete obstacle positions in global coordinates, which can easily be converted to the occupancy grid map representation used.

However, the robot's odometry is inherently erroneous, so that we cannot rely on the measurement positions returned by the odometry. There are two ways implemented to solve this problem:

For further information, please read the page Introduction to the mapping process.

Prerequisites for mapping

Before you can start to create maps, you'll have to make certain that you meet some prerequisites. The mapping tool Simple Mapper needs to be started in an instance of miracenter that is running a sufficient configuration for mapping.

What does this mean, exactly?
It means that the following data needs to be present when starting the mapping:

Where do I get such a configuration?
Please have a look at the SCITOSConfigs package. It provides a configuration file SCITOS-mapping.xml that loads the required SCITOS- and range finder drivers for your robot.

Simple Mapper tool

The tool Simple Mapper provides an easy to use interface to create occupancy grid maps from laser range finder measurements and rectified odometry data. Simply load the tool in an appropriate instance of miracenter (see Prerequisites for mapping) by pressing CTRL+D and selecting Simple Mapper.

You should see a window like the one below:

sm1.png

The typical mapping process is as follows:

Using reference points:

  1. Determine a sufficient number of reference points of the environment (see The mapping process).
  2. Start the Simple Mapper tool and enter the determined reference points.
  3. Initiate mapping by starting the recording of the sensor data.
  4. Map your environment by driving from reference point to reference point, stopping and logging them every time you reach them.
  5. Stop recording and let the Simple Mapper build the map.
  6. Save the created map (see Map files).

Using SLAM:

  1. Start the Simple Mapper tool.
  2. Initiate mapping by starting the recording of the sensor data.
  3. Map your environment by driving around so that the whole environment is covered. While driving close loops and visit intersections multiple times to reduce ambiguities.
  4. Stop recording and let the Simple Mapper build the map.
  5. Save the created map (see Map files).

For further information, please read the page Simple Mapper.

Simple Map Editor tool

The tool Simple Map Editor provides an easy to use interface to edit maps created with the Simple Mapper tool. Simply load the tool in any instance of miracenter (the Prerequisites for mapping do not apply here) by pressing CTRL+D and selecting Simple Map Editor.

You should see a window like the one below:

sme1.png

The typical map editing process is as follows:

  1. Load the MCF file of a previously created map (see Map files and Simple Mapper tool).
  2. Use the pencil tool to correct mapping mistakes like range sensor noise and such.
  3. Create nogo, speed areas, one way areas and forbidden areas appropriate for the mapped environment.
  4. Save the map to update the map's MCF and PNG files.
  5. Either reload MIRA with the edited maps or directly publish the edited maps to the appropriate channels.

For further information, please read the page Simple Map Editor.

Map files

Both Simple Mapper and Simple Map Editor use a file format called MCF, as in map configuration file. When saving the built map with Simple Mapper, seven files are created: The MCF file itself as well as PNG and XML files for the static, nogo and speed map. A folder containing a valid mapping structure should look similar to this:

mcf_folder_structure.png

The MCF file stores the path to the static, nogo and speed map XML files, as well as the descriptive primitives of the nogo and speed areas. The PNG files store the actual map information, while the corresponding XML files describe the map information contained in the PNG files.

For further information, please read the page Map Configuration Files (MCF).