Introduction
With the Lighting Systems REST API, you can:- create a new lighting system and all its elements, then set their respective properties,
- upload a packed lighting system, then add/remove or edit its elements or properties,
- download the lighting system as a file once the lighting system and its elements are created and their properties are set.
- on Windows:
lighting-systems-api.ps1 - on Linux:
lighting-systems-api.sh
Resources
In AVxcelerate Sensors Simulator, a lighting system defines the ego vehicle’s lightings which are rendered in camera simulation outputs. A lighting system is composed of:- projectors, usually 2 (front right and front left)
- one or several modules in each projector
- one or several lamps in each module
Platform overview
Creating advanced Lighting Systems is one of the steps needed to prepare a sensor simulation to be run in AVxcelerate Sensors Simulator. Once created, an advanced Lighting System can be downloaded as a packed file (.lightingsystemx) so that it can be set as a resource for simulation in AVxcelerate Sensors Simulator.
Requests
The easiest way to send API requests is using the Swagger UI interactive documentation, however you can also use Curl or Postman. Here are some request examples. GET request To list all the Lighting Systems: Curlhttp://localhost:5126/avx-lightingsystem/v1/lightingsystems
POST request
To create a new empty Lighting System:
Curl
http://localhost:5126/avx-lightingsystem/v1/lightingsystems
PATCH request
To modify the name of a Lighting System:
Curl
http://localhost:5126/avx-lightingsystem/v1/lightingsystems/a2d588b2-7ff4-4f99-a6d8-acac8b383790
In the request body, select Raw > json, then define the name, for example:
http://localhost:5126/avx-lightingsystem/v1/lightingsystems/2bbfca3b-356c-46bc-8ade-64ce2ad2a59a