Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remove_all_routing_points method #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lgsvl/dreamview/dreamview.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down