© Copyright 2006-2007 White Box Robotics Inc. and Frontline Robotics Inc
Once you have the ‘.inc files’ you include them in the world model that sets the ‘stage’ for the
simulator that will be called later in the ‘.cfg file’. This file ties together the models
(robots/sensors/objects) and the map for the world (.png file that can be created by the user, examples
are found under the ‘bitmaps’ directory) surrounding your robot. Essentially replicates the physical
world into the Stage simulated world.
‘wbr914sim.world’ file code
# Desc: PC-BOT Stage demo with lots of models
# the size of a pixel in Stage's underlying raytrace model in meters
resolution 0.02
interval_sim 100 # milliseconds per update step
interval_real 100 # real-time milliseconds per update step
# defines Pioneer-like robots
include "pioneer.inc"
# defines PC-BOT robot
include "wbr914.inc"
# defines 'map' object used for floorplans
include "map.inc"
# defines the laser models `sick_laser' configured like a Sick LMS-200
# and defines Hokuyo URG Laser
include "laser.inc"
#defines the size of the world
size [40 20 ]
gui_disable 0
gui_interval 100
gui_menu_interval 20
window(
size [ 755.000 684.000 ]
# size [ 500 500 ]
center [-7.707 2.553]
scale 0.009
)
map(
bitmap "bitmaps/hospital_section.png"
map_resolution 0.02
size [40 18]
name "hospital"
)
# a block for gripping
define puck model(
size [ 0.08 0.08 ]
gripper_return 1
gui_movemask 3
gui_nose 0
fiducial_return 10