Function SimOneAPI::SetTrajectory

Function Documentation

bool SimOneAPI::SetTrajectory(const char *mainVehicleId, SimOne_Data_Trajectory *Trajectory)

预测轨迹设置

Set vehicle waypoints.

此函数用于设置车辆的预测轨迹,包括车辆在未来的路径点

This function is used to set the vehicle's predicted trajectory, including waypoints for the vehicle's future path.

参数:
  • mainVehicleId -- [in]

    主车的ID

    Id of the main vehicle.

  • Trajectory -- [in]

    车辆轨迹数据

    Vehicle trajectory data.

返回:

如果轨迹设置成功,则返回true,否则返回false

Returns true if the trajectory is successfully set, false otherwise.