> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# vss::simulation::Simulation Class Reference

This service provides the simulation control procedures.

## Public Member Functions

| Type | Name |
| - | - |
| [vss::Status](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-sensors-simulator-api/2025-r1/structvss_1_1_status.md) | [Load](#abb8b416be837c11db6a4f7818793516b) ([Configuration](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-sensors-simulator-api/2025-r1/structvss_1_1simulation_1_1_configuration.md)) |
| [vss::Status](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-sensors-simulator-api/2025-r1/structvss_1_1_status.md) | [Initialize](#aa3f80c4cd36ad10a9ea64f495c14981e) ([WorldUpdate](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-sensors-simulator-api/2025-r1/structvss_1_1simulation_1_1_world_update.md)) |
| [vss::Status](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-sensors-simulator-api/2025-r1/structvss_1_1_status.md) | [Update](#a6cd6753bfa8324a015a6c1ea0f208672) ([WorldUpdate](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-sensors-simulator-api/2025-r1/structvss_1_1simulation_1_1_world_update.md)) |
| [vss::Status](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-sensors-simulator-api/2025-r1/structvss_1_1_status.md) | [Stop](#a051340c75f41cc927cd0467132e0f459) (google::protobuf::Empty) |
| [vss::Status](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-sensors-simulator-api/2025-r1/structvss_1_1_status.md) | [Unload](#a62ebf3aa1f54a82b04ffa806db37135b) (google::protobuf::Empty) |
| [vss::Status](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-sensors-simulator-api/2025-r1/structvss_1_1_status.md) | [Kill](#adacc0c903b414dfc738406d9c0e7bda8) (google::protobuf::Empty) |

## Detailed Description

This service provides the simulation control procedures.

> [!NOTE]
>
> The AVX state machine (simulation logic) must be considered when using simulation control procedures. Procedures that are not consistent with current AVX state will end in ERROR.

## Member Function Documentation

### Load()

```cpp theme={null}
vss::Status vss::simulation::Simulation::Load(Configuration)
```

Loads AVX with a track, a list of assets, some simulation parameters, a sensor configuration, a lighting system (optional), some deployment parameters and the ID of the ego vehicle (the vehicle instance on which the sensor configuration will be attached).

### Initialize()

```cpp theme={null}
vss::Status vss::simulation::Simulation::Initialize(WorldUpdate)
```

Sets the initial position/orientation/states of all components of the world and changes AVX state to RUNNING.

### Update()

```cpp theme={null}
vss::Status vss::simulation::Simulation::Update(WorldUpdate)
```

Applies a world model update to AVX.

### Stop()

```cpp theme={null}
vss::Status vss::simulation::Simulation::Stop(google::protobuf::Empty)
```

Changes AVX state from RUNNING to LOADED.

### Unload()

```cpp theme={null}
vss::Status vss::simulation::Simulation::Unload(google::protobuf::Empty)
```

Unloads the simulation and switches AVX back to STARTED state.

> [!NOTE]
>
> This command is used to restart a simulation without having to restart AVX.

### Kill()

```cpp theme={null}
vss::Status vss::simulation::Simulation::Kill(google::protobuf::Empty)
```

Sends a signal to end the AVX program properly. Closes the Grpc server.

The documentation for this class was generated from the following file:

* simulation.proto
