Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
localization VROB
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Böttger
localization VROB
Commits
d0f16dfb
Commit
d0f16dfb
authored
1 year ago
by
Sebastian Böttger
Browse files
Options
Downloads
Patches
Plain Diff
improve description
parent
6b892b92
Branches
Branches containing commit
Tags
release-2.1.1
Tags containing commit
1 merge request
!1
Development
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
driving.py
+4
-1
4 additions, 1 deletion
driving.py
with
4 additions
and
1 deletion
driving.py
+
4
−
1
View file @
d0f16dfb
...
@@ -46,10 +46,13 @@ class Driving_Analyser:
...
@@ -46,10 +46,13 @@ class Driving_Analyser:
# whether the current rotation speed is a left or a right turn
# whether the current rotation speed is a left or a right turn
# and sums up these types in the amount of the block size to make the decision for the section type.
# and sums up these types in the amount of the block size to make the decision for the section type.
# If the function is called and the sum of values are lower than the block size it
'
s return None
# If the function is called and the sum of values are lower than the block size it
'
s return None
# If the detection of the section is completed, the function will return
a
integer value.
# If the detection of the section is completed, the function will return
the section_type as an
integer value.
# 0 # Value for a straight part of the track
# 0 # Value for a straight part of the track
# 1 # Value for a right turn
# 1 # Value for a right turn
# 2 # Value for a left turn
# 2 # Value for a left turn
# The entire return statemant is a tuple with the section type, the counte for left and right turns and a counter for straight
# return:
# section_type, counter_left, counter_right, counter_straight
"""
"""
def
detect_section_type
(
self
,
w
):
def
detect_section_type
(
self
,
w
):
section_type
=
None
section_type
=
None
...
...
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