Skip to content

refactor(simple_planning_simulator): remove tier4_api_utils dependency from autoware_simple_planning_simulator#12383

Merged
sasakisasaki merged 6 commits intoautowarefoundation:mainfrom
sasakisasaki:refactor-to-remove-tier4-api-utils-in-autoware-simple-planning-simulator
Apr 2, 2026
Merged

refactor(simple_planning_simulator): remove tier4_api_utils dependency from autoware_simple_planning_simulator#12383
sasakisasaki merged 6 commits intoautowarefoundation:mainfrom
sasakisasaki:refactor-to-remove-tier4-api-utils-in-autoware-simple-planning-simulator

Conversation

@sasakisasaki
Copy link
Copy Markdown
Contributor

@sasakisasaki sasakisasaki commented Mar 25, 2026

Description

  • Drop tier4_api_utils usage in simple_planning_simulator.

Let me quote @isamu-takagi san's comment. We do not need to set pose via simulator.

The service /api/simulator/set/pose is probably not being used, so it should be possible to simply delete it. According to this diagram, the simulator receives /initialpose3d from the pose_initializer. Also, since the service /localization/initialize is provided by pose_initializer, it should not be provided by the simulator.

Related links

How was this PR tested?

Based on this PR, I built all the autoware packages based on the nightly installation instructions.

Note that I edited autoware-nightly.repos and replaced the remote URL and branch to point to my fork and branch for this PR, so that the source code of this PR is included in the build.

$ colcon build --base-paths ./src --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release

After build, I followed the instruction in this planning simulator demo, and confirmed that the simulator still works as follows.

$ source ~/autoware/install/setup.bash
$ ros2 launch autoware_launch planning_simulator.launch.xml map_path:=$HOME/autoware_map/sample-map-planning vehicle_model:=sample_vehicle sensor_model:=sample_sensor_kit

During the planning simulation, I checked by:

  • Initialize pose
  • Set route
  • Run autonomous driving
  • Put dummy objects: pedestrian, vehicle, car, and bus

Interface changes

Topic changes

Additions and removals

Change type Topic Type Topic Name Message Type Description
Removed Srv /api/simulator/set/pose tier4_external_api_msgs/srv/InitializePose Legacy simulator pose initialization

Modifications

None.

ROS Parameter Changes

Additions and removals

None.

Modifications

None.

Effects on system behavior

No functional changes expected for simulation; this only drops a deprecated dependency.

…dency

  * `tier4_api_utils` is deprecated. Thus fixed to use newer interface.

Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
@sasakisasaki sasakisasaki self-assigned this Mar 25, 2026
@github-actions github-actions bot added the component:simulation Virtual environment setups and simulations. (auto-assigned) label Mar 25, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 25, 2026

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@sasakisasaki sasakisasaki added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Mar 25, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 19.14%. Comparing base (d6ff08d) to head (059f203).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12383      +/-   ##
==========================================
+ Coverage   18.53%   19.14%   +0.61%     
==========================================
  Files        1888     1893       +5     
  Lines      129807   130606     +799     
  Branches    45966    48143    +2177     
==========================================
+ Hits        24065    25010     +945     
- Misses      85919    86757     +838     
+ Partials    19823    18839     -984     
Flag Coverage Δ *Carryforward flag
daily 21.00% <ø> (+<0.01%) ⬆️ Carriedforward from 29ae458
daily-cuda 18.56% <ø> (+<0.01%) ⬆️ Carriedforward from 29ae458
daily-humble-amd64-cuda 18.35% <ø> (-0.17%) ⬇️ Carriedforward from 29ae458
daily-humble-amd64-nocuda 20.86% <ø> (-0.19%) ⬇️ Carriedforward from 29ae458
daily-jazzy-amd64-nocuda ?
differential 4.22% <ø> (?)
total-cuda 18.56% <ø> (+<0.01%) ⬆️ Carriedforward from 29ae458
total-humble-cuda 18.36% <ø> (-0.16%) ⬇️ Carriedforward from 29ae458

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sasakisasaki sasakisasaki changed the title refactor(simple_planning_simulator): remove tier4_api_utils depen… refactor(simple_planning_simulator): remove tier4_api_utils dependency from autoware_simple_planning_simulator Mar 25, 2026
@isamu-takagi
Copy link
Copy Markdown
Contributor

The service /api/simulator/set/pose is probably not being used, so it should be possible to simply delete it. According to this diagram, the simulator receives /initialpose3d from the pose_initializer. Also, since the service /localization/initialize is provided by pose_initializer, it should not be provided by the simulator.

  * Pose set must be performed by `autoware_pose_initializer`, not by simulator
  * I noticed this issue thanks to the following review comment:
```
The service `/api/simulator/set/pose` is probably not being used, so it should be possible to simply delete it.
According to [this diagram](https://github.com/autowarefoundation/autoware_universe/blob/main/system/autoware_default_adapi_universe/document/localization.md), the simulator receives `/initialpose3d` from the pose_initializer.
Also, since the service `/localization/initialize` is provided by pose_initializer, it should not be provided by the simulator.
```

Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
…lanning-simulator' of github.com:sasakisasaki/autoware.universe into refactor-to-remove-tier4-api-utils-in-autoware-simple-planning-simulator

Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
@sasakisasaki
Copy link
Copy Markdown
Contributor Author

@isamu-takagi Exactly, you are right. In actual, when I applied the change as this PR, the planning simulator still worked.

Could you do review again? Thank you in advance.

@sasakisasaki sasakisasaki merged commit 42bf2a3 into autowarefoundation:main Apr 2, 2026
66 checks passed
@github-project-automation github-project-automation bot moved this from To Triage to Done in Software Working Group Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:simulation Virtual environment setups and simulations. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants