Skip to content

Privacy Zones Tutorial

Suzanne Dazo edited this page Aug 11, 2014 · 2 revisions

#Privacy Zones Tutorial This tutorial will cover basic use of current features as of
13ef1f

###Running the program

  1. Navigate to the repository/catkin workspace where the privacy_zones folder is located in the command line, run
python privacyZones.py

###Loading the map On startup, you will be asked to import a map file. You can use any image file supported by Qt4

  • BMP
  • GIF
  • JPG
  • JPEG
  • PNG
  • PBM
  • PGM
  • PPM
  • XBM
  • XPM

If you cancel from this dialog, it will load one of the default maps from the maps folder 1

You must include a name for the zone before being allowed to save. 2

Click on the map to place a marker. Once 4 markers are placed, it will draw a box to preview what the zone will look like. 3

You can go into the edit menu to change the name, the privacy mode, or the points for any zone. 4 5

When in edit mode, click on the map again to re-define the points for a given zone. The markers will preview what the zone will look like when saved.
6

After saving, the size and color of the zone will change depending on the new points and if a different privacy mode was defined. 7

When done creating zones, click the "Export as..." button to export all of the zones as a YAML file. 8

It will bring up a file dialog. This only exports as .yaml files. 9

When opening up to an empty map, you can load up a previously saved YAML file containing the zone information. Select "Import Map Data" and select a file. In this case, we will use the file that we just saved. 10

Here is the open file, it will import all zones, add them to the map, and set the first created zone as editable. 11

This can be used with any number of maps, floorplans, or diagrams. 12

Next steps

To use these zone files with a robot, use the map_registration tool

Clone this wiki locally