Documentation Index
Fetch the complete documentation index at: https://docs.generalrobotics.dev/llms.txt
Use this file to discover all available pages before exploring further.
AirGenCar
Inherits from: Wheeled
AirGen simulation car implementation.
This class provides an interface to control simulated wheeled cars in AirGen
using the CarClient from the pyairgen library.
Inherited methods
init
AirGenCar.__init__(ip: str = '127.0.0.1', port: int = 41471, timeout_value: int = 3600, vehicle_name: str = '')
Initialize a simulated AirGen car client.
IP address of the AirGen server. (default: “127.0.0.1”)
Port number for the AirGen server. (default: 41471)
Timeout value for the connection in seconds. (default: 3600)
Name of the vehicle in the simulation. (default: "")
getState
AirGenCar.getState() -> dict
Get the current state of the car.
Current state including position, orientation, and velocity.
getPosition
AirGenCar.getPosition() -> Optional[Position]
Get the position of the car in the world frame.
Current position of the car in world coordinates.
getOrientation
AirGenCar.getOrientation() -> Optional[Orientation]
Get the orientation of the car in the world frame.
Current orientation as a quaternion (x, y, z, w).
getImage
AirGenCar.getImage(camera_name: str = 'front_center', image_type: str = 'rgb') -> Image
Get an image from the specified camera.
Name of the camera in the AirGen scene. (default: “front_center”)
Image type, one of (“rgb”|“depth”). (default: “rgb”)
Captured image wrapped in the project’s Image type.
moveByVelocity
AirGenCar.moveByVelocity(linear_velocity: Velocity, angular_velocity: Velocity, frame: str = 'body') -> None
Move the car with a velocity command.
For cars, velocity control is limited. The linear_velocity.x_vel controls
forward/backward speed, and angular_velocity.z_vel controls turning rate.
linear_velocity (Velocity)
Linear velocity in m/s (x_vel used for forward speed).
angular_velocity (Velocity)
Angular velocity in rad/s (z_vel/yaw rate is used).
Reference frame for velocity (“body” only). (default: “body”)
stop
Stop the car by zeroing target speed and controls.
cleanup
AirGenCar.cleanup() -> None
Clean up resources and disable API control.