AirGenCar
class provides an interface to control the vehicle, while the data_collector
decorator will help us capture sensor data during movement. WeatherParameter
and Vector3r
allow us to customize the environment and represent 3D positions.
simPlanPathToRandomFreePoint
function generates a collision-free path to a random destination within 50 meters. It creates waypoints forming a smooth trajectory and visualizes it in the simulation. We convert these points to the required Vector3r
format for AirGen’s movement functions, preparing the path for our car to follow.
@data_collector
decorator transforms our movement function into a data collection pipeline that calls runAIModels
every 0.1 seconds. The car follows our generated path at 5 m/s while continuously collecting perception data. This approach demonstrates how to integrate movement control with perception in autonomous systems.