Skip to content

Commit b8b4e6f

Browse files
committed
Triggers support for the pedestrian agents.
1 parent c65b08e commit b8b4e6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lgsvl/agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ def follow(self, waypoints, loop = False):
344344
"position": wp.position.to_json(),
345345
"idle": wp.idle,
346346
"trigger_distance": wp.trigger_distance,
347-
"speed": wp.speed
347+
"speed": wp.speed,
348+
"trigger": (None if wp.trigger is None else wp.trigger.to_json())
348349
} for wp in waypoints],
349350
"loop": loop,
350351
})

0 commit comments

Comments
 (0)