simulator.car

Contains the Car class. License:

BSD 3-Clause License Copyright (c) 2023, Autonomous Robotics Club of Purdue (Purdue ARC) All rights reserved.

Module Contents

Classes

Car

Attributes

JOINT_IDS

BASE_QUATERNION

simulator.car.JOINT_IDS = (1, 0, 2)
simulator.car.BASE_QUATERNION = [0.0, 0.0, 0.0]
class simulator.car.Car(car_id, pos, orient, car_properties)

Bases: object

set_properties(car_properties)
setCmd(cmd)
step(dt)
get_pose(noise=None)

Randomizes and sets a new position for the car. @param noise: The sensor noise and if it is present (None=no noise). @return: The position and orientation of the car.

get_velocity()

Returns the linear and angular velocity of the car.

reset(pos, orient)

Resets the car state with the new pose and orient.

check_overlap(pos)

Returns whether the position will overlap with the current car. @param pos: The position of the other object. @return: Boolean if the positions overlap (true = overlap).