Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfxmap_python
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oscar
jfxmap_python
Commits
8d951b8c
Commit
8d951b8c
authored
Jan 11, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交格式错误
parent
e3ae85de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
compute_yaw.py
script/utils/compute_yaw.py
+7
-8
No files found.
script/utils/compute_yaw.py
View file @
8d951b8c
...
...
@@ -70,14 +70,13 @@ def xy_angle_cal(x1,y1,x2,y2):
return
angle
def
car_yaw_cal
(
base_angle
,
car_yaw
):
tmp_angle
=
0.0
car_angle
=
car_yaw
/
math
.
pi
*
180.0
if
car_angle
>=
0
:
tmp_angle
=
base_angle
-
car_angle
else
:
tmp_angle
=
base_angle
+
abs
(
car_angle
)
return
(
tmp_angle
+
360.0
)
%
360.0
tmp_angle
=
0.0
car_angle
=
car_yaw
/
math
.
pi
*
180.0
if
car_angle
>=
0
:
tmp_angle
=
base_angle
-
car_angle
else
:
tmp_angle
=
base_angle
+
abs
(
car_angle
)
return
(
tmp_angle
+
360.0
)
%
360.0
def
compute_yaw
(
car_yaw_in_lidar
):
'''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment