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

feat(tier4_simulator_launch): add option to disable all perception related modules #6382

Merged

Conversation

brkay54
Copy link
Member

@brkay54 brkay54 commented Feb 12, 2024

Description

Part of:

Required for:

Reaction_analyzer runs with PSim and it publishes its perception outputs to be able to measure exact reaction times.

What we want to do is we can be able to disable the perception publishers.

This change does not have any effect on system behavior because its default value is true.

Tests performed

Tested in PSim. Works as we expected.

Effects on system behavior

  • launch_simulator_perception_modules is true -> it does not have any effect on the system.
  • launch_simulator_perception_modules is false -> it does not launch perception-related modules.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@yukkysaito
Copy link
Contributor

Thanks. The change itself is good, but I don't know if the original PR approach is appropriate.
#5954 (review)
cc @xmfcx

@xmfcx xmfcx self-requested a review February 28, 2024 13:55
@xmfcx
Copy link
Contributor

xmfcx commented Feb 29, 2024

@brkay54 could you rebase and resolve the conflicts?

@brkay54 brkay54 force-pushed the launch/add-disable-perception-option branch from aea9c9e to e308316 Compare February 29, 2024 09:10
@brkay54
Copy link
Member Author

brkay54 commented Feb 29, 2024

@xmfcx I solved the conflicts, however, currently, I am implementing message_filters to reaction_analyzer. So I couldn't try it yet, not tested. I am converting it to a draft. I will open it again asap.

@brkay54 brkay54 self-assigned this Feb 29, 2024
@brkay54 brkay54 marked this pull request as draft February 29, 2024 09:13
@xmfcx
Copy link
Contributor

xmfcx commented Feb 29, 2024

The way it is right now,

This change does not have any effect on system behavior because its default value is true.

this is not true because some parameters are removed with this pr.

@brkay54 brkay54 force-pushed the launch/add-disable-perception-option branch 2 times, most recently from 0667e71 to 0781732 Compare February 29, 2024 10:05
@brkay54 brkay54 marked this pull request as ready for review February 29, 2024 10:06
@brkay54 brkay54 requested a review from xmfcx February 29, 2024 10:06
@brkay54
Copy link
Member Author

brkay54 commented Feb 29, 2024

The way it is right now,

This change does not have any effect on system behavior because its default value is true.

this is not true because some parameters are removed with this pr.

@xmfcx Sorry, for the missed lines. I updated it now. Tested in PSim with:
<arg name="launch_simulator_perception_modules" default="true"/>
I couldn't see any effect on system behavior. However, when it is false, behavior_path_planner waits for perception messages and the vehicle does not move. (It is what we expect.)

@brkay54 brkay54 force-pushed the launch/add-disable-perception-option branch from 0781732 to 0d6b2b7 Compare March 4, 2024 06:34
@brkay54
Copy link
Member Author

brkay54 commented Mar 5, 2024

@xmfcx I tried with both options. When it is true as the default option, there is no effect on system behavior. When it is false, it does not launch perception-related modules except probabilistic_occupancy_grid_map (which is needed for behavior_path_planner, behavior_velocity_planner, and obstacle_velocity_limiter) and reaction_analyzer can publish the Obstacles without problem.

@brkay54 brkay54 force-pushed the launch/add-disable-perception-option branch from 0d6b2b7 to cd12d10 Compare March 5, 2024 14:13
@brkay54 brkay54 linked an issue Mar 5, 2024 that may be closed by this pull request
16 tasks
@brkay54 brkay54 force-pushed the launch/add-disable-perception-option branch from cd12d10 to f2928a1 Compare March 8, 2024 10:17
@brkay54 brkay54 force-pushed the launch/add-disable-perception-option branch from f2928a1 to 3f074cf Compare March 12, 2024 08:35
@xmfcx
Copy link
Contributor

xmfcx commented Mar 13, 2024

Why is occupancy_grid_map not part of this new perception condition?

<include file="$(find-pkg-share tier4_perception_launch)/launch/occupancy_grid_map/probabilistic_occupancy_grid_map.launch.xml">

It is in the tier4_perception_launch file.

@brkay54 brkay54 force-pushed the launch/add-disable-perception-option branch from 3f074cf to 30efae2 Compare March 13, 2024 11:10
@brkay54 brkay54 force-pushed the launch/add-disable-perception-option branch from ba29fad to 55b03cb Compare March 13, 2024 11:13
@xmfcx
Copy link
Contributor

xmfcx commented Mar 13, 2024

Alright, with the last change, this change puts:

  • fault_injection
  • dummy_perception_publisher
  • probabilistic_occupancy_grid_map
  • tracking
  • prediction
  • empty_objects_publisher
  • elevation_map_loader
  • traffic_light

into a group controlled by "launch_simulator_perception_modules" bool.
It is true by default.

Copy link
Contributor

@xmfcx xmfcx left a comment

Choose a reason for hiding this comment

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

It doesn't change the existing behavior, should be ok to merge.

@xmfcx xmfcx added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Mar 13, 2024
@xmfcx
Copy link
Contributor

xmfcx commented Mar 13, 2024

@KeisukeShima
@taikitanaka3
@TakaHoribe
@takayuki5168
@tkimura4

Could you review as code owners? Should be ok to merge, simple change.

@xmfcx
Copy link
Contributor

xmfcx commented Mar 13, 2024

@brkay54 brkay54 requested a review from takayuki5168 March 13, 2024 13:31
@xmfcx
Copy link
Contributor

xmfcx commented Mar 13, 2024

This is a very simple change, just adds 3 lines and changes no existing behaviors, can we merge it?

Once a better solution is found, it can easily be reverted.

@takayuki5168 -san

@xmfcx xmfcx merged commit 59c504b into autowarefoundation:main Mar 13, 2024
51 checks passed
@brkay54 brkay54 deleted the launch/add-disable-perception-option branch March 14, 2024 11:04
yhisaki pushed a commit to yhisaki/autoware.universe that referenced this pull request Mar 15, 2024
kaigohirao pushed a commit to kaigohirao/autoware.universe that referenced this pull request Mar 22, 2024
badai-nguyen pushed a commit to tier4/autoware.universe that referenced this pull request Apr 23, 2024
badai-nguyen pushed a commit to tier4/autoware.universe that referenced this pull request Apr 23, 2024
badai-nguyen pushed a commit to tier4/autoware.universe that referenced this pull request May 9, 2024
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:launch Launch files, scripts and initialization tools. (auto-assigned) tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a new tool to measure end-to-end delay of the Autoware for sudden obstacles
4 participants