simulation.src.gazebo_simulation.src.car_model package
Submodules
simulation.src.gazebo_simulation.src.car_model.car_specs module
Classes:
|
- class CarSpecs(wheelbase: float, track: float, vehicle_width: float, distance_cog_front: float, distance_cog_rear: float, cog_height: float, moment_of_inertia: float, tire_stiffness_front: float, tire_stiffness_rear: float, mass: float, tire_radius: float, distance_to_front_bumper: float, distance_to_rear_bumper: float, max_steering_angle_front_left: float, max_steering_angle_front_right: float, max_steering_angle_back_left: float, max_steering_angle_back_right: float, tire_mass: float = 0.5)[source]
Bases:
InitOptions,SaveOptionsAttributes:
Center of rear axle in COG coordinate frame.
Left rear tire in COG coordinate frame.
Right rear tire in COG coordinate frame.
Center of front axle in COG coordinate frame.
Left front tire in COG coordinate frame.
Right front tire in COG coordinate frame.
- wheelbase: float
- track: float
- vehicle_width: float
- distance_cog_front: float
- distance_cog_rear: float
- cog_height: float
- moment_of_inertia: float
- tire_stiffness_front: float
- tire_stiffness_rear: float
- mass: float
- tire_radius: float
- distance_to_front_bumper: float
- distance_to_rear_bumper: float
- max_steering_angle_front_left: float
- max_steering_angle_front_right: float
- max_steering_angle_back_left: float
- max_steering_angle_back_right: float
- tire_mass: float = 0.5
- property body_height
- property tire_width
- property center_rear_axle: Point
Center of rear axle in COG coordinate frame.
- Type:
Point
- property center_rear_left_tire: Point
Left rear tire in COG coordinate frame.
- Type:
Point
- property center_rear_right_tire: Point
Right rear tire in COG coordinate frame.
- Type:
Point
- property center_front_axle: Point
Center of front axle in COG coordinate frame.
- Type:
Point
- property center_front_left_tire: Point
Left front tire in COG coordinate frame.
- Type:
Point
- property center_front_right_tire: Point
Right front tire in COG coordinate frame.
- Type:
Point
- property steering_limit_rear: JointLimit
- property steering_limit_front: JointLimit
- property tire_dynamics
simulation.src.gazebo_simulation.src.car_model.dr_drift module
Classes:
|
Representation of the Dr. |
Functions:
|
Create a DrDrift instance with the information located in the provided files. |
- class DrDrift(specs: CarSpecs, camera_specs: CameraSpecs, tof_sensors: List[TofSensor], name: str = 'dr_drift', version='1.0.0')[source]
Bases:
XmlObjectRepresentation of the Dr. Drift vehicle.
This class can be used to create a gazebo model of our Dr. Drift car. Within the initializer all pieces that make up the simulated model of Dr. Drift are created.
Information about the sensors’ specifications and positions are taken from the car_specs ROS package located in KITcar_brain.
Attributes:
Chassis.
- TAG = 'robot'
- load_dr_drift(car_specs_path: str, camera_specs_path: str, coordinate_systems_path: str, save_car_specs: str | None = None, save_camera_calibration: str | None = None, save_static_coordinates: str | None = None) DrDrift[source]
Create a DrDrift instance with the information located in the provided files.
- Parameters:
car_specs_path – Path to a yaml file that can be converted into a CarSpecs instance.
camera_specs_path – Path to a yaml file that can be converted into a CameraSpecs instance.
coordinate_systems_path – Path to a file defining the positions time of flight sensors.
save_car_specs – Path to where the resulting car_specs should be saved.
save_camera_calibration – Path to where the resulting camera calibration should be saved.
save_static_coordinates – Path to where the used static coordinate systems should be saved.
simulation.src.gazebo_simulation.src.car_model.tof_sensors module
Functions:
|
Classes:
|
- _get_depth_properties(name: str) DepthCameraProperties[source]
- class TofSensor(name: str, origin: simulation.utils.urdf.core.Origin, properties: simulation.utils.urdf.camera.DepthCameraProperties, size: kitcar_utils.geometry.vector.Vector = Vector(0.02, 0.02, 0.02), mass: float = 1e-05)[source]
Bases:
objectAttributes:
Methods:
with_default_properties(name, origin)- name: str
- properties: DepthCameraProperties
- size: Vector = Vector(0.02, 0.02, 0.02)
- mass: float = 1e-05
- property full_name: str