Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Motor_Controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Spring
WP6_Robot_Behavior
Motor_Controller
Commits
1ad5c89c
Commit
1ad5c89c
authored
2 years ago
by
AUTERNAUD Alex
Browse files
Options
Downloads
Patches
Plain Diff
angle issue
parent
4cab1e48
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
social_mpc/path.py
+1
-1
1 addition, 1 deletion
social_mpc/path.py
with
1 addition
and
1 deletion
social_mpc/path.py
+
1
−
1
View file @
1ad5c89c
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment