Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Small refactor pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-5546 committed Jan 25, 2024
1 parent 0ba9025 commit a9c1650
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions local_pathfinding/ompl_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ def get_waypoints(self) -> List[HelperLatLon]:
return []

solution_path = self._simple_setup.getSolutionPath()
referenceLatlon = cs.LatLon(*self.state.goal_state)
reference_latlon = cs.LatLon(*self.state.goal_state)
waypoints = []

for state in solution_path.getStates():
waypoint_XY = cs.XY(*(state.getX(), state.getY()))
waypoint_latlon = cs.xy_to_latlon(referenceLatlon, waypoint_XY)
waypoint_XY = cs.XY(state.getX(), state.getY())
waypoint_latlon = cs.xy_to_latlon(reference_latlon, waypoint_XY)
waypoints.append(
HelperLatLon(
latitude=waypoint_latlon.latitude, longitude=waypoint_latlon.longitude
Expand Down

0 comments on commit a9c1650

Please sign in to comment.