Closed brianlmerritt closed 9 months ago
Just noticed I should have been going for
locate opencv/*.hpp
Just in case someone finds this closed ticket, first I updated nano_build_opencv for jetpack 6 to reinstall opencv 4.9 from source.
https://github.com/brianlmerritt/nano_build_opencv
I then created a separate workspace depthai_ws/src/
with depthai-ros there, and ran the build script in the top ws folder. I was trying to build inside the agilex limo ws but had to run build.sh to get it to work.
Check if issue already exists
https://github.com/luxonis/depthai-ros/issues/419 mentions the issue on Xavier, but has not progressed
Describe the bug Standard Jetpack 6 Ubuntu 22.04 build with ROS 2 humble compiles ok with Orbbec Astra but not with DepthAI See below
Minimal Reproducible Example
Install Jetpack 6 on Jetson (must be Orin + for Jetpack 6 Install ROS 2 humble, install depthai-sdk and ros-humble-depthai Git clone depthai-ros in src and colcon build --symlink-install reproduces the above error.
If available launch files don't work in your case, please check if you also get errors while running: not applicable
Expected behavior colcon build should work or the necessary dependencies should be included (or workarounds mentioned) in depthai-ros
Screenshots If applicable, add screenshots to help explain your problem.
Pipeline Graph
Not applicable
Attach system log
depthai-ros
built from source or installed from apt - APT but either makes no differencedepthai/depthai-core
library installed from rosdep or manually? For rosdep install, check ifros-<rosdistro>-depthai
package is installed, manual install can be checked withldconfig -p | grep depthai
- Don't knowapt show ros-$ROS_DISTRO-depthai ros-$ROS_DISTRO-depthai-ros ros-$ROS_DISTRO-depthai-bridge ros-$ROS_DISTRO-depthai-ros-msgs ros-$ROS_DISTRO-depthai-ros-driver
DEPTHAI_DEBUG=1
and paste the logs, either from command line or from latest log in~/.ros/log
Not applicable as it doesn't compileAdditional context I have seen suggestions go to https://github.com/mdegans/nano_build_opencv/ but even after modifying the code to work with Ubuntu 22.04 and install opencv 4.9 this still fails because the build does not create the necessary headers for
opencv2/ximgproc
I usedlocate *opencv*/*.h
to look for all related files and all I got was duplicates of what was already installed with the nvidia-opencv-dev so it isn't just python or cmake looking at the wrong files.If there is an opencv build that includes the necessary files, happy to try it, or any work around.