isaac_ros_image_proc
Source code on GitHub.
Quickstart
Set up your development environment by following the instructions here.
Clone
isaac_ros_common
and this repository under${ISAAC_ROS_WS}/src
.cd ${ISAAC_ROS_WS}/src
git clone -b release-3.1 https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_common.git isaac_ros_common
git clone -b release-3.1 https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_image_pipeline.git isaac_ros_image_pipeline
Build the RealSense camera package for Humble, using this doc.
Launch the Docker container using the
run_dev.sh
script:cd ${ISAAC_ROS_WS}/src/isaac_ros_common && \ ./scripts/run_dev.sh
Install this package’s dependencies.
sudo apt-get install -y ros-humble-isaac-ros-image-proc
Start
isaac_ros_image_proc
using the prebuilt executable (Using RealSense camera as an example):ros2 run isaac_ros_image_proc isaac_ros_image_proc --ros-args -r /image_raw:=/camera/color/image_raw --ros-args -r /camera_info:=/camera/color/camera_info
In a separate terminal, spin up a calibrated camera publisher to
/image_raw
and/camera_info
using any package(for example,realsense2_camera
):ros2 launch realsense2_camera rs_launch.py
Observe the image output in grayscale and color on
/image_mono
and/image_rect_color
, respectively:ros2 run image_view image_view --ros-args -r image:=image_mono ros2 run image_view image_view --ros-args -r image:=image_rect_color
Note
For RealSense camera package issues, please refer to the section here.
Other supported cameras can be found here.
For camera calibration, please refer to this guide.
API
Overview
The isaac_ros_image_proc
package offers functionality for
rectifying/undistorting images from a monocular camera setup, resizing
the image, and changing the image format. It largely replaces the
image_proc
package, though the image format conversion facility also
functions as a way to replace the CPU-based image format conversion in
cv_bridge
. The rectify node can also resize the image; if resizing
is not needed, specify the output width/height same as input.
Available Components
Component |
Topics Subscribed |
Topics Published |
Parameters |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Limitation: isaac_ros_image_proc
nodes require even number dimensions for
images.