From 8168fcc0f5095c901dfcb2b947611239ab5865f0 Mon Sep 17 00:00:00 2001 From: SnowBird <90465411+MingfeiCheng@users.noreply.github.com> Date: Tue, 15 Feb 2022 15:31:40 +0800 Subject: [PATCH] Change line 427 -> wp.acceleration.to_json() wp.acceleration is 'Vector' type, which occurs a problem when dumps. --- lgsvl/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsvl/agent.py b/lgsvl/agent.py index f9ca63e..f6f26bc 100644 --- a/lgsvl/agent.py +++ b/lgsvl/agent.py @@ -424,7 +424,7 @@ def follow(self, waypoints, loop=False, waypoints_path_type="Linear"): "idle": wp.idle, "trigger_distance": wp.trigger_distance, "speed": wp.speed, - "acceleration": wp.acceleration, + "acceleration": wp.acceleration.to_json(), "trigger": ( None if wp.trigger is None else wp.trigger.to_json() ),