Skip to content

Commit

Permalink
simplication of lattice_generator.py, fixes ros-navigation#3858 (ros-…
Browse files Browse the repository at this point in the history
…navigation#3859)

* simplification of equation to compute the max_value/outer edge of the lattice based on number of headings.

Signed-off-by: enricosutera <enricosutera@outlook.com>
  • Loading branch information
akchobby authored and enricosutera committed May 19, 2024
1 parent 7e2462a commit 3540300
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 3540300

Please sign in to comment.