Function SimOneAPI::SetVehicleToInitState

Function Documentation

bool SimOneAPI::SetVehicleToInitState(const char *mainVehicleId)

重置主车到初始状态

Reset the main vehicle state to the initial state.

此函数用于将主车的状态重置为初始状态

This function is used to reset the state of the main vehicle to its initial state.

参数:

mainVehicleId -- [in]

主车的ID

Id of the main vehicle.

返回:

如果主车状态成功重置,则返回true,否则返回false

Returns true if the main vehicle's state is successfully reset, false otherwise.