next up previous contents
Next: 4.5 Examples Up: 4. The World File Previous: 4.3 Using include files   Contents

4.4 Units

The default units for length and angles are meters and degrees respectively. Units may be changed using the following global properties:

\begin{table}\begin{tabularx}{\columnwidth}{llX}
\hline
Name & Values & Descript...
...t the unit angle to degrees or radians.\\
\par
\hline
\end{tabularx}\end{table}

The following example uses millimeters rather than meters for the unit length unit:

# This world file creates two robots with lasers.
# It uses the 'include' statement to include the robot definitions.

unit_length "mm"

include "myrobots.inc"

environment ( file "cave.pnm" scale 30 )

myrobot ( name "robot1" port 6665 pose [1000 1000 0] )
myrobot ( name "robot2" port 6666 pose [2000 1000 0] )
Be warned that the length specfication applies to the include files as well, so choose a unit length early and stick to it.



2003-12-07