Skip to content

Commit

Permalink
add localizer update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShisatoYano committed Nov 2, 2023
1 parent 8cd4f0e commit 9531567
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ def __init__(self, state, color='r'):
self.DRAW_COLOR = color

def update(self, accel_mps2, yaw_rate_rps, time_s, gnss):
pass
print(gnss)
3 changes: 2 additions & 1 deletion src/components/vehicle/four_wheels_vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ def update(self, time_s):
target_accel, target_yaw_rate = self._update_control_data()

if self.localizer:
pass
self.localizer.update(target_accel, target_yaw_rate, time_s,
self.sensors.get_xy_pos_from_gnss())
else:
self.state.update(target_accel, target_yaw_rate, time_s)

Expand Down

0 comments on commit 9531567

Please sign in to comment.