Skip to content

Commit 948d59f

Browse files
author
clane
committed
cleaned up subsection 3
1 parent 0b1dfa8 commit 948d59f

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

GEMstack/knowledge/defaults/computation_graph.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ components:
4949
- motion_planning:
5050
inputs: all
5151
outputs: trajectory
52-
- signaline:
52+
- trajectory_tracking:
53+
inputs: [vehicle, trajectory]
54+
outputs:
55+
- signaling:
5356
inputs: intent
54-
outputs: []
57+
outputs:

GEMstack/onboard/planning/blink_component.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ def cleanup(self):
3333
self.send_turn_command(TURN_OFF)
3434
# pass
3535

36-
def update(self, intent):
36+
def update(self, state: AllState):
3737
"""Run in a loop"""
3838
# we need to set up a GEMVehicleCommand which encapsulates all commands that will be
3939
# sent to the drive-by-wire system, simultaneously. To avoid doing arbitrary things
4040
# to the vehicle, let's maintain the current values (e.g., accelerator, brake pedal,
41-
# steering angle) from its current readings.
42-
if intent.intent == VehicleIntentEnum.HALTING:
41+
# steering angle) from its current readings.
42+
if state.intent.intent == VehicleIntentEnum.HALTING:
4343
current_time = time.time()
4444
if current_time - self.last_update_time >= 2: # Change signal every 2 seconds
4545
if self.turn_state == TURN_OFF:

0 commit comments

Comments
 (0)