Skip to content

Commit de44ea1

Browse files
committed
defined vehicle object and added to visualizer
1 parent 5b1c82d commit de44ea1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/simulations/mapping/binary_grid_map_construction/binary_grid_map_construction.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,14 @@ def main():
7070
obst_list.add_obstacle(Obstacle(State(x_m=25.0, y_m=0.0), length_m=2, width_m=2))
7171
obst_list.add_obstacle(Obstacle(State(x_m=35.0, y_m=-15.0), length_m=7, width_m=2))
7272
vis.add_object(obst_list)
73+
74+
# create vehicle instance
75+
spec = VehicleSpecification()
76+
pure_pursuit = PurePursuitController(spec, course)
77+
sensor_params = SensorParameters(lon_m=spec.wheel_base_m/2, max_m=15, dist_std_rate=0.05)
78+
lidar = OmniDirectionalLidar(obst_list, sensor_params)
79+
vehicle = FourWheelsVehicle(State(color=spec.color), spec,
80+
controller=pure_pursuit,
81+
sensors=Sensors(lidar=lidar),
82+
show_zoom=False)
83+
vis.add_object(vehicle)

0 commit comments

Comments
 (0)