--- title: "SDL" slug: "sdl" updated: 2022-04-20T15:12:43Z published: 2022-04-20T15:12:43Z canonical: "docs.safetypooldb.ai/sdl" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.safetypooldb.ai/llms.txt > Use this file to discover all available pages before exploring further. # SDL ## Overview The Safety Pool Database uses the Scenario Definition Language - SDL - developed by [WMG](https://warwick.ac.uk/fac/sci/wmg/research/cav/vandv/) as the preferred language for defining scenarios within the database. SDL has been developed with the primary objective of being human-readable so that it can be understood by all users involved in developing ADS. It is also machine-readable which enables scenario definitions to be fed into testing toolchains, and other ADS development tools, and is simulator independent meaning that it can be readily translated into simulator specific code for executing scenarios in a simulator, current toolchains existing for the [CARLA](https://carla.org/) simulator. Toolchains also exist for translating SDL to ASAM [OpenScenario](https://www.asam.net/standards/detail/openscenario) and [OpenDrive](https://www.asam.net/standards/detail/opendrive/). ### SDL User Guide (coming soon) The user guide is a useful initial resource for anyone wanting to write scenarios in the SDL language. ### SDL Specification The SDL specification is a more in-depth resource on the SDL language with more complex examples. [Download Specification](https://cdn.document360.io/d9bf0084-0d5b-468a-971b-537dce7153b6/Images/Documentation/WMG_SDL_8.1.pdf) ### SDL Grammar Definition (preview) The grammar definition provides a low-level definition of the SDL syntax which is essential if you need to create an SDL parser for use-cases such as converting SDL to another language, or translating SDL into simulator code. [Download Grammar](https://cdn.document360.io/d9bf0084-0d5b-468a-971b-537dce7153b6/Images/Documentation/wmg-sdl-grammar-2022.pdf) ### SDL Translation to ASAM OpenX Formats (OpenSCENARIO, OpenDRIVE) The ASAM OpenX formats for scenarios are supported by several simulation platforms and it is possible to translate SDL to ASAM OpenSCENARIO and OpenDRIVE formats. The following files demonstrate such a translation through an example translation of the ALKS Lateral Detection Range scenario specified in SDL to ASAM OpenSCENARIO and OpenDRIVE formats. [ALKS Lateral Detection Range scenario (SDL)](https://cdn.document360.io/d9bf0084-0d5b-468a-971b-537dce7153b6/Images/Documentation/ALKS_Lateral_Detection_Range.sdl) [ALKS Lateral Detection Range scenario (OpenSCENARIO)](https://cdn.document360.io/d9bf0084-0d5b-468a-971b-537dce7153b6/Images/Documentation/ALKS_Lateral_Detection_Range.xosc) [ALKS Lateral Detection Range scenario (OpenDRIVE)](https://cdn.document360.io/d9bf0084-0d5b-468a-971b-537dce7153b6/Images/Documentation/ALKS_Lateral_Detection_Range.xodr) ### SDL Research Paper The research paper for SDL can be found [here](http://wrap.warwick.ac.uk/141130/) ## Attachments - [wmg-sdl-grammar-2022.pdf](https://cdn.document360.io/d9bf0084-0d5b-468a-971b-537dce7153b6/Images/Documentation/wmg-sdl-grammar-2022.pdf) - [WMG_SDL_8.1.pdf](https://cdn.document360.io/d9bf0084-0d5b-468a-971b-537dce7153b6/Images/Documentation/WMG_SDL_8.1.pdf) - [ALKS_Lateral_Detection_Range.sdl](https://cdn.document360.io/d9bf0084-0d5b-468a-971b-537dce7153b6/Images/Documentation/ALKS_Lateral_Detection_Range.sdl) - [ALKS_Lateral_Detection_Range.xodr](https://cdn.document360.io/d9bf0084-0d5b-468a-971b-537dce7153b6/Images/Documentation/ALKS_Lateral_Detection_Range.xodr) - [ALKS_Lateral_Detection_Range.xosc](https://cdn.document360.io/d9bf0084-0d5b-468a-971b-537dce7153b6/Images/Documentation/ALKS_Lateral_Detection_Range.xosc)