Skip to content

feat(autoware_image_undistortion): correct camera image undistortion#337

Open
sakunaka39 wants to merge 14 commits intoautowarefoundation:mainfrom
sakunaka39:main
Open

feat(autoware_image_undistortion): correct camera image undistortion#337
sakunaka39 wants to merge 14 commits intoautowarefoundation:mainfrom
sakunaka39:main

Conversation

@sakunaka39
Copy link
Copy Markdown

@sakunaka39 sakunaka39 commented Jan 13, 2026

Description

This PR introduces a new package autoware_image_undistortion to rectify distorted images from cameras. This package subscribes to raw or compressed images and camera info, performs rectification using image_geometry, and publishes the rectified images.

Changes

  • Added autoware_image_undistortion package.
  • Implemented ImageUndistortion node to rectify images using image_geometry::PinholeCameraModel.
  • Added launch files for single camera and multi-camera configurations (e.g., aip_x2_gen2).
  • Supports both raw and compressed image transport.
  • Added license headers and resolved pre-commit errors.

Results

Before (Distorted)

image

After (Rectified)

image

How was this PR tested?

  1. Launch the node with a camera driver.
    ros2 launch autoware_image_undistortion undistortion.launch.xml sensor_model:=sample_sensor_kit
  2. Verify that rectified images are published to /sensing/camera/camera*/image_rect.
  3. Check the images using rviz2.

Signed-off-by: sakunaka39 <shotaro.nakamura@tier4.jp>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 13, 2026

Thank you for contributing to the Autoware project!

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

Please ensure:

pre-commit-ci Bot and others added 3 commits January 13, 2026 08:05
Signed-off-by: sakunaka39 <shotaro.nakamura@tier4.jp>
Signed-off-by: sakunaka39 <shotaro.nakamura@tier4.jp>
@sakunaka39 sakunaka39 closed this Jan 13, 2026
@sakunaka39 sakunaka39 reopened this Jan 13, 2026
@sakunaka39 sakunaka39 marked this pull request as ready for review January 14, 2026 07:35
@isseitzk isseitzk requested a review from manato January 21, 2026 00:35
Copy link
Copy Markdown

@manato manato left a comment

Choose a reason for hiding this comment

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

@sakunaka39
Thank you for your contribution!
I left some comments that I noticed. I'd appreciate if if you could consider them.
Besides, from the perspective of the node behavior, I think autoware_image_"un"distortion is a more appropriate name for the node because this node performs undistortion (getting rid of lens distortion). Considering this point would also be appreciated!

Comment thread sensing/autoware_image_distortion/launch/distortion.launch.xml Outdated
Comment thread sensing/autoware_image_distortion/src/image_distortion.cpp Outdated
@sakunaka39 sakunaka39 changed the title feat(autoware_image_distortion): correct camera image distortion feat(autoware_image_undistortion): correct camera image undistortion Mar 3, 2026
Signed-off-by: sakunaka39 <shotaro.nakamura@tier4.jp>
@sakunaka39
Copy link
Copy Markdown
Author

pre-commit.ci run

Copy link
Copy Markdown

@manato manato left a comment

Choose a reason for hiding this comment

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

Thank you very much for dealing with all my comments. LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants