Skip to content

Commit

Permalink
simplication of lattice_generator.py, fixes #3858 (#3859)
Browse files Browse the repository at this point in the history
* simplification of equation to compute the max_value/outer edge of the lattice based on number of headings.
  • Loading branch information
akchobby authored Oct 4, 2023
1 parent 67bae86 commit 4ce7702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_smac_planner/lattice_primitives/lattice_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _get_heading_discretization(self, number_of_headings: int) -> list:
A list of headings in radians
"""
max_val = int((((number_of_headings + 4) / 4) - 1) / 2)
max_val = int(number_of_headings / 8)

outer_edge_x = []
outer_edge_y = []
Expand Down

0 comments on commit 4ce7702

Please sign in to comment.