basicmap-stagemodel.inc

Go to the documentation of this file.
00001 # Map model for Stage
00002 # ...Include file for Stage World File
00003 
00004 # =========================================================================== #
00005 # A Basic map model - for inclusion in Stage World files
00006 #
00007 # ... include this file in your Stage World file and create the model.
00008 # The map model is based on the Simple example from the official P/S examples.
00009 
00010 # Use this include in your Stage World file:
00011 #  include "../basicmap-model-model.inc"
00012 # Then create the object in your Stage World file (after the include):
00013 #  basicmap
00014 #  (
00015 #     name "Basicmap"
00016 #        bitmap "cave.png"
00017 #        size [16 16]
00018 #  )
00019 # ... of course you could change these parameters and paint your own bitmap
00020 #  and use.
00021 
00022 # Jonas Fonseca <fonseca@diku.dk>
00023 # Bue Petersen <buep@diku.dk>
00024 # Department of Computer Science University of Copenhagen
00025 # January 2007
00026 # =========================================================================== #
00027 
00028 
00029 define basicmap model
00030 (
00031   # - Properties of the general model ("model)" -
00032   # Chose black as color to mimic eg. wall.
00033   color "black"
00034 
00035   # If 1, this model can be gripped by a gripper and can be pushed around by
00036   # collisions with anything that has a non-zero obstacle_return
00037   # We clearly do not want this to apply to a map object
00038   gripper_return 0
00039   
00040   
00041   # - GUI properties of the general model ("model") -
00042   # Draw a nose on the model so we can see which way it points
00043   # This is not used as we use this object as a map
00044   gui_nose 0
00045 
00046   # If 1, draw a bouding box around the model, indicating its size
00047   # Most maps will need a bounding box
00048   # Using bounding box will make the map seem limited even though the worlds
00049   #  size is bigger than the map.
00050   boundary 1
00051 
00052   # If 1, draw a scaling grid over the model 
00053   # This is the grid you see en the Stage Window. The grid is snapped
00054   # to the map model and usefull as background when robots moving around.
00055   gui_grid 1
00056   
00057   
00058   # Define how the model can be moved be the mouse in the GUI window
00059   # You should not be able to move the "map".
00060   gui_movemask 0
00061   
00062   # This is non-documentet property but it is used in some of the "official"
00063   #  Stage examples when making map-objects.
00064   gui_outline 0
00065  
00066 )

Generated on Sat Jan 13 03:11:09 2007 for ERSP Player driver by  doxygen 1.5.1