Isaac_ros_rtdetr for isaac_ros_foundationpose

I’m trying to follow the QuickstartGuide on the isaac_ros_rtdetr for isaac_ros_foundationpose with Jetson AGX Orin Devkit +NVMe SSD installed on JetPack6 GA(including Jetson SDK Components).
https://nvidia-isaac-ros.github.io/repositories_and_packages/isaac_ros_object_detection/isaac_ros_rtdetr/index.html#quickstart

I check the Rosbug tag at first and then I faced the following error when I used the command (ros2 run isaac_ros_rtdetr isaac_ros_rtdetr_visualizer.py) at the “Visualize Results” section:

admin@nvidia-desktop:/workspaces/isaac_ros-dev$ ros2 run isaac_ros_rtdetr isaac_ros_rtdetr_visualizer.py

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.1 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with ‘pybind11>=2.12’.

If you are a user of the module, the easiest solution will be to
downgrade to ‘numpy<2’ or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last): File “/opt/ros/humble/lib/isaac_ros_rtdetr/isaac_ros_rtdetr_visualizer.py”, line 24, in
import cv2
AttributeError: _ARRAY_API not found
Traceback (most recent call last):
File “/opt/ros/humble/lib/isaac_ros_rtdetr/isaac_ros_rtdetr_visualizer.py”, line 24, in
import cv2
ImportError: numpy.core.multiarray failed to import
[ros2run]: Process exited with failure 1

So, I run the command to escape from this issue below:

pip install --upgrade pip
pip install numpy --upgrade
# or
pip install -U numpy

In addition:

pip install pybind11>=2.12

However, I still cannot run the RT-DETR visualization script :

ros2 run isaac_ros_rtdetr isaac_ros_rtdetr_visualizer.py

So, Could you please help me figure out this issue?

thanks

Hi @A_Y ,

This version incompatibility issue could be fixed by downgrading to the latest 1.X release.
Please try this command:

$ pip install "numpy<2.0"

Best,
Johnny

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.