Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1ad5c89c authored by AUTERNAUD Alex's avatar AUTERNAUD Alex
Browse files

angle issue

parent 4cab1e48
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,7 @@ class PathPlanner(): ...@@ -76,7 +76,7 @@ class PathPlanner():
if len(xl) == 0 or len(yl) == 0 or len(vxl) == 0 or len(vyl) == 0: if len(xl) == 0 or len(yl) == 0 or len(vxl) == 0 or len(vyl) == 0:
return [] return []
d_angle = np.arctan2(vxl[0], -vyl[0]) - pos[2] d_angle = utils.constraint_angle(np.arctan2(vxl[0], -vyl[0]) - pos[2])
if dl[0] < self.max_d_orientation: # if within range, set waypoint = target if dl[0] < self.max_d_orientation: # if within range, set waypoint = target
wpt_pos = [self.target[0], self.target[1], self.target[2]] wpt_pos = [self.target[0], self.target[1], self.target[2]]
elif dl[0] < self.max_d: elif dl[0] < self.max_d:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment