Skip to content

World Header Data Block

Adnan Munawar edited this page May 2, 2019 · 1 revision

The World Header Data-Block

The world header data block world scene objects that include cameras and light. Similar to the Multi-Body header block, the relevant objects are defined in the header lists. This is an example world header

lights: [light1, light2]
cameras: [camera1, camera2]

The Header Data-Block is the entry point of the World config files and is parsed first and foremost.

  • lights:

This lights field is an associative array that contains the names of lights in the config file that need to be loaded. The config file can have many lights and not all lights might require loading so they can be conveniently removed from the lights array. If not lights are defined in the world config, a default light is created in the AMBF Simulator


  • cameras:

Similar to the lights field, cameras is an associative array as well that contains the names of cameras in the config file. Only the cameras defined in this array are loaded whereas the config file itself can have many additional cameras defined. If not cameras are defined in the world config, default camera is created in the AMBF Simulator


Clone this wiki locally