Skip to content

Commit

Permalink
defined vehicle object and added to visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
ShisatoYano committed Feb 25, 2025
1 parent 5b1c82d commit de44ea1
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,14 @@ def main():
obst_list.add_obstacle(Obstacle(State(x_m=25.0, y_m=0.0), length_m=2, width_m=2))
obst_list.add_obstacle(Obstacle(State(x_m=35.0, y_m=-15.0), length_m=7, width_m=2))
vis.add_object(obst_list)

# create vehicle instance
spec = VehicleSpecification()
pure_pursuit = PurePursuitController(spec, course)
sensor_params = SensorParameters(lon_m=spec.wheel_base_m/2, max_m=15, dist_std_rate=0.05)
lidar = OmniDirectionalLidar(obst_list, sensor_params)
vehicle = FourWheelsVehicle(State(color=spec.color), spec,
controller=pure_pursuit,
sensors=Sensors(lidar=lidar),
show_zoom=False)
vis.add_object(vehicle)

0 comments on commit de44ea1

Please sign in to comment.