Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

140 feature create an integrated acc with the collision node #147

Merged

Conversation

samuelkuehnel
Copy link
Collaborator

Description

In this PR a node for the collision check and ACC are created, as well as a test node to simulate them independently. The Collision Check detects collision based on the minimum distance to an object in front and the ACC publishes a speed to keep the distance to this object.

Fixes #140

Type of change

Please delete options that are not relevant.
__

  • New feature (non-breaking change which adds functionality)

Does this PR introduce a breaking change?

No

Most important changes

New Collision Check

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works (might be obsolete with CI later on)
  • New and existing unit tests pass locally with my changes (might be obsolete with CI later on)

@samuelkuehnel samuelkuehnel self-assigned this Dec 17, 2023
@samuelkuehnel samuelkuehnel linked an issue Dec 17, 2023 that may be closed by this pull request
1 task
Copy link

Simulation results

Metric Value
Avg. driving score 0.006825
Avg. route completion 0.015
Avg. infraction penalty 0.455
Collisions with pedestrians 0.0
Collisions with vehicles 0.0
Collisions with layout 930.763
Red lights infractions 0.0
Stop sign infractions 0.0
Off-road infractions 0
Route deviations 0.0
Route timeouts 930.763
Agent blocked 0.0
Yield emergency vehicles infractions 0.0
Scenario timeouts 930.763
Min speed infractions 0.0

Copy link

Simulation results

Metric Value
Avg. driving score 0.005892
Avg. route completion 0.02
Avg. infraction penalty 0.348058
Collisions with pedestrians 0.0
Collisions with vehicles 0.0
Collisions with layout 709.196
Red lights infractions 0.0
Stop sign infractions 0.0
Off-road infractions 0.001
Route deviations 0.0
Route timeouts 709.196
Agent blocked 0.0
Yield emergency vehicles infractions 0.0
Scenario timeouts 709.196
Min speed infractions 0.0

Copy link

Simulation results

Metric Value
Avg. driving score 0.006825
Avg. route completion 0.015
Avg. infraction penalty 0.455
Collisions with pedestrians 0.0
Collisions with vehicles 0.0
Collisions with layout 930.763
Red lights infractions 0.0
Stop sign infractions 0.0
Off-road infractions 0
Route deviations 0.0
Route timeouts 930.763
Agent blocked 0.0
Yield emergency vehicles infractions 0.0
Scenario timeouts 930.763
Min speed infractions 0.0

Copy link

Simulation results

Metric Value
Avg. driving score 0.008808
Avg. route completion 0.035
Avg. infraction penalty 0.336384
Collisions with pedestrians 0.0
Collisions with vehicles 0.0
Collisions with layout 620.596
Red lights infractions 0.0
Stop sign infractions 0.0
Off-road infractions 0.002
Route deviations 0.0
Route timeouts 206.865
Agent blocked 206.865
Yield emergency vehicles infractions 0.0
Scenario timeouts 206.865
Min speed infractions 0.0

Copy link

Simulation results

Metric Value
Avg. driving score 0.005892
Avg. route completion 0.02
Avg. infraction penalty 0.348058
Collisions with pedestrians 0.0
Collisions with vehicles 0.0
Collisions with layout 709.196
Red lights infractions 0.0
Stop sign infractions 0.0
Off-road infractions 0.001
Route deviations 0.0
Route timeouts 709.196
Agent blocked 0.0
Yield emergency vehicles infractions 0.0
Scenario timeouts 709.196
Min speed infractions 0.0

2 similar comments
Copy link

Simulation results

Metric Value
Avg. driving score 0.005892
Avg. route completion 0.02
Avg. infraction penalty 0.348058
Collisions with pedestrians 0.0
Collisions with vehicles 0.0
Collisions with layout 709.196
Red lights infractions 0.0
Stop sign infractions 0.0
Off-road infractions 0.001
Route deviations 0.0
Route timeouts 709.196
Agent blocked 0.0
Yield emergency vehicles infractions 0.0
Scenario timeouts 709.196
Min speed infractions 0.0

Copy link

Simulation results

Metric Value
Avg. driving score 0.005892
Avg. route completion 0.02
Avg. infraction penalty 0.348058
Collisions with pedestrians 0.0
Collisions with vehicles 0.0
Collisions with layout 709.196
Red lights infractions 0.0
Stop sign infractions 0.0
Off-road infractions 0.001
Route deviations 0.0
Route timeouts 709.196
Agent blocked 0.0
Yield emergency vehicles infractions 0.0
Scenario timeouts 709.196
Min speed infractions 0.0

@@ -1,12 +1,12 @@
<launch>
<!--

<node pkg="planning" type="dev_global_route.py" name="DevGlobalRoute" output="screen">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this node be active in the main branch ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I commented out the dev node

callback=self.__current_position_callback,
qos_profile=1)

# Publish desiored speed to acting
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Publish desired speed to motion planning

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo fixed

Copy link

Simulation results

Metric Value
Avg. driving score 0.005892
Avg. route completion 0.02
Avg. infraction penalty 0.348058
Collisions with pedestrians 0.0
Collisions with vehicles 0.0
Collisions with layout 709.196
Red lights infractions 0.0
Stop sign infractions 0.0
Off-road infractions 0.001
Route deviations 0.0
Route timeouts 709.196
Agent blocked 0.0
Yield emergency vehicles infractions 0.0
Scenario timeouts 709.196
Min speed infractions 0.0

@samuelkuehnel samuelkuehnel linked an issue Dec 19, 2023 that may be closed by this pull request
1 task
Copy link
Collaborator

@JuliusMiller JuliusMiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Copy link

Simulation results

Metric Value
Avg. driving score 0.005892
Avg. route completion 0.02
Avg. infraction penalty 0.348058
Collisions with pedestrians 0.0
Collisions with vehicles 0.0
Collisions with layout 709.196
Red lights infractions 0.0
Stop sign infractions 0.0
Off-road infractions 0.001
Route deviations 0.0
Route timeouts 709.196
Agent blocked 0.0
Yield emergency vehicles infractions 0.0
Scenario timeouts 709.196
Min speed infractions 0.0

@JuliusMiller JuliusMiller merged commit 84fc959 into main Dec 19, 2023
3 checks passed
@JuliusMiller JuliusMiller deleted the 140-feature-create-an-integrated-acc-with-the-collision-node branch December 19, 2023 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Feature]: Create an ACC Node [Feature]: Create a collision check
2 participants