From df8bb761cc566584dacded97a70bb4ecc7dcc6b0 Mon Sep 17 00:00:00 2001 From: Hamid Ebadi Date: Fri, 30 Apr 2021 22:00:52 +0200 Subject: [PATCH] Add remove_all_routing_points method --- lgsvl/dreamview/dreamview.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lgsvl/dreamview/dreamview.py b/lgsvl/dreamview/dreamview.py index e02f0a2..a1d9002 100644 --- a/lgsvl/dreamview/dreamview.py +++ b/lgsvl/dreamview/dreamview.py @@ -108,6 +108,15 @@ def set_destination(self, x_long_east, z_lat_north, y=0, coord_type=CoordType.Un return + def remove_all_routing_points(self): + """ + This function removes all routing points by calling this API : https://github.com/ApolloAuto/apollo/blob/master/modules/dreamview/backend/simulation_world/simulation_world_updater.cc#L309 + """ + self.ws.send( + json.dumps({"type": "Reset"}) + ) + return + def enable_module(self, module): """ module is the name of the Apollo 5.0 module as seen in the "Module Controller" tab of Dreamview