VehicleClient
class provides an interface to the underlying simulation, allowing us to modify the environment even without directly controlling a specific vehicle.
simGetObjectPose
method retrieves the current position and orientation of any object in the simulation, while simSetObjectPose
allows us to update it.
simDestroyObject
method completely removes an object from the simulation environment. This can be used to:
simSetTimeOfDay
method takes two parameters:
is_enabled
: Whether to enable custom time of day (True) or use the system time (False)datetime_str
: A string representing the desired date and time in “YYYY-MM-DD HH:MM:SS” format