NVIDIA-ISAAC-ROS / isaac_ros_dnn_stereo_depth

NVIDIA-accelerated, deep learned stereo disparity estimation
https://developer.nvidia.com/isaac-ros-gems
Apache License 2.0
92 stars 10 forks source link

error: rosdep install and colcon build --packages-up-to isaac_ros_ess #25

Open Aruen24 opened 4 months ago

Aruen24 commented 4 months ago

rosdep install --from-paths ./src/isaac_ros_dnn_stereo_depth --ignore-src -y ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: gxf_isaac_video_buffer_utils: Cannot locate rosdep definition for [gxf_isaac_tensorops] isaac_ros_ess: Cannot locate rosdep definition for [gxf_isaac_messages_throttler] gxf_isaac_ess: Cannot locate rosdep definition for [gxf_isaac_tensorops]

colcon build --packages-up-to isaac_ros_ess --- stderr: isaac_ros_ess_models_install gmake[2]: [CMakeFiles/install_ess_models.dir/build.make:74: isaac_ros_assets/models/dnn_stereo_disparity/dnn_stereo_disparity_v4.0.0/ess.engine] Error 1 gmake[1]: [CMakeFiles/Makefile2:137: CMakeFiles/install_ess_models.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2

Failed <<< isaac_ros_ess_models_install [0.97s, exited with code 2] Aborted <<< gxf_isaac_ess [1.01s] Aborted <<< gxf_isaac_video_buffer_utils [2.26s]

Summary: 2 packages finished [5.69s] 1 package failed: isaac_ros_ess_models_install 2 packages aborted: gxf_isaac_ess gxf_isaac_video_buffer_utils 1 package had stderr output: isaac_ros_ess_models_install 1 package not processed

REB427 commented 4 months ago

I had another error with colcon build but maybe it is related. I am building using the dev container based on this tutorial: https://nvidia-isaac-ros.github.io/repositories_and_packages/isaac_ros_dnn_stereo_depth/isaac_ros_ess/index.html

Seems like a bunch of files are missing for package gxf_isaac_video_buffer_utils: extensions/gxf_helpers/parameter_parser_isaac.hpp gems/cuda_utils/launch_utils.hpp

here is my compiler output: In file included from /workspaces/isaac_ros-dev/src/isaac_ros_dnn_stereo_depth/gxf_isaac_video_buffer_utils/gxf/extensions/video_buffer_utils/video_buffer_thresholder_extension.cpp:18: /workspaces/isaac_ros-dev/src/isaac_ros_dnn_stereo_depth/gxf_isaac_video_buffer_utils/gxf/extensions/video_buffer_utils/components/video_buffer_thresholder.hpp:22:10: fatal error: extensions/gxf_helpers/parameter_parser_isaac.hpp: No such file or directory 22 | #include "extensions/gxf_helpers/parameter_parser_isaac.hpp" | ^~~~~~~~~~~ compilation terminated.

gmake[2]: *** [CMakeFiles/gxf_isaac_video_buffer_utils.dir/build.make:90: CMakeFiles/gxf_isaac_video_buffer_utils.dir/gxf/extensions/video_buffer_utils/components/video_buffer_thresholder.cpp.o] Error 1 /workspaces/isaac_ros-dev/src/isaac_ros_dnn_stereo_depth/gxf_isaac_video_buffer_utils/gxf/extensions/video_buffer_utils/gems/video_buffer_thresholder.cu.cpp:26:10: fatal error: gems/cuda_utils/launch_utils.hpp: No such file or directory 26 | #include "gems/cuda_utils/launch_utils.hpp" | ^~~~~~~~~~ compilation terminated.

Aruen24 commented 4 months ago

I had another error with colcon build but maybe it is related. I am building using the dev container based on this tutorial: https://nvidia-isaac-ros.github.io/repositories_and_packages/isaac_ros_dnn_stereo_depth/isaac_ros_ess/index.html

Seems like a bunch of files are missing for package gxf_isaac_video_buffer_utils: extensions/gxf_helpers/parameter_parser_isaac.hpp gems/cuda_utils/launch_utils.hpp

here is my compiler output: In file included from /workspaces/isaac_ros-dev/src/isaac_ros_dnn_stereo_depth/gxf_isaac_video_buffer_utils/gxf/extensions/video_buffer_utils/video_buffer_thresholder_extension.cpp:18: /workspaces/isaac_ros-dev/src/isaac_ros_dnn_stereo_depth/gxf_isaac_video_buffer_utils/gxf/extensions/video_buffer_utils/components/video_buffer_thresholder.hpp:22:10: fatal error: extensions/gxf_helpers/parameter_parser_isaac.hpp: No such file or directory 22 | #include "extensions/gxf_helpers/parameter_parser_isaac.hpp" | ^~~~~~~~~~~ compilation terminated.

gmake[2]: *** [CMakeFiles/gxf_isaac_video_buffer_utils.dir/build.make:90: CMakeFiles/gxf_isaac_video_buffer_utils.dir/gxf/extensions/video_buffer_utils/components/video_buffer_thresholder.cpp.o] Error 1 /workspaces/isaac_ros-dev/src/isaac_ros_dnn_stereo_depth/gxf_isaac_video_buffer_utils/gxf/extensions/video_buffer_utils/gems/video_buffer_thresholder.cu.cpp:26:10: fatal error: gems/cuda_utils/launch_utils.hpp: No such file or directory 26 | #include "gems/cuda_utils/launch_utils.hpp" | ^~~~~~~~~~ compilation terminated.

You the Docker container using the run_dev.sh script?

REB427 commented 4 months ago

@Aruen24 yes, I am am using run_dev.sh from https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_common.git to build and run the container

Aruen24 commented 4 months ago

@Aruen24 yes, I am am using run_dev.sh from https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_common.git to build and run the container

Do you try build isaac_ros_ess with binary package? Launch the Docker container using the run_dev.sh script:

cd ${ISAAC_ROS_WS}/src/isaac_ros_common && \ ./scripts/run_dev.sh Install the prebuilt Debian package:

sudo apt-get install -y ros-humble-isaac-ros-ess && \ sudo apt-get install -y ros-humble-isaac-ros-ess-models-install Download and install the pre-trained ESS model files:

ros2 run isaac_ros_ess_models_install install_ess_models.sh --eula

REB427 commented 4 months ago

@Aruen24 I tried building it from source. But got the errors mentioned above. I removed all gfx packages and then I could build it.

But my results look strange image

Aruen24 commented 4 months ago

@REB427 I remove gxf_isaac_ess gxf_isaac_video_buffer_utils isaac_ros_ess_models_install ,only build isaac_ros_ess root@byd-ThinkStation-P340:/ROS2/IsaacSim-ros_workspaces/humble_ws# colcon build --packages-up-to isaac_ros_ess This may be promoted to an error in a future release of colcon-override-check. Starting >>> isaac_ros_common Starting >>> isaac_ros_test Finished <<< isaac_ros_common [0.35s] Finished <<< isaac_ros_test [0.82s] Starting >>> isaac_ros_ess --- stderr: isaac_ros_ess /ROS2/IsaacSim-ros_workspaces/humble_ws/src/isaac_ros_dnn_stereo_depth/isaac_ros_ess/src/ess_disparity_node.cpp:29:10: fatal error: isaac_ros_nitros_camera_info_type/nitros_camera_info.hpp: No such file or directory 29 | #include "isaac_ros_nitros_camera_info_type/nitros_camera_info.hpp" | ^~~~~~~~~~~~~~ compilation terminated. gmake[2]: [CMakeFiles/ess_disparity_node.dir/build.make:76: CMakeFiles/ess_disparity_node.dir/src/ess_disparity_node.cpp.o] Error 1 gmake[1]: [CMakeFiles/Makefile2:160: CMakeFiles/ess_disparity_node.dir/all] Error 2 gmake[1]: Waiting for unfinished jobs.... gmake: [Makefile:146: all] Error 2

Failed <<< isaac_ros_ess [0.34s, exited with code 2]

Summary: 2 packages finished [1.52s] 1 package failed: isaac_ros_ess 1 package had stderr output: isaac_ros_ess