-
zed2 wrapper docker install
dell@ubuntu:~/zed2/ros2_ws/src/zed-ros2-wrapper/docker$ ./jetson_build_dockerfile_from_sdk_and_l4T_version.sh l4t-r35.4.1 zedsdk4.1.2 -
create docker container
docker run -it \
--runtime nvidia \
--privileged \
--gpus all \
-e DISPLAY=$DISPLAY \
-e QT_X11_NO_MITSHM=1 \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
-v $HOME/.Xauthority:/root/.Xauthority:rw \
-v /etc/nv_tegra_release:/etc/nv_tegra_release \
-v /usr/local/zed/settings:/usr/local/zed/settings \
-v /usr/local/zed/resources:/usr/local/zed/resources \
-v ~/docker_humble:/root/docker_humble \
-v /dev:/dev \
-w /root \
--name humble_zed2 \
--net host \
zed_ros2_l4t_image:latest
- git clone zed ros2 example and build
root@ubuntu:~/docker_humble/ros2_ws# colcon build --symlink-install --cmake-args=-DCMAKE_BUILD_TYPE=Release
Starting >>> zed_topic_benchmark_interfaces
Starting >>> rviz_plugin_zed_od
Starting >>> zed_aruco_localization
Starting >>> zed_depth_to_laserscan
Starting >>> zed_display_rviz2
Starting >>> zed_multi_camera
Starting >>> zed_rgb_convert
Starting >>> zed_robot_integration
Starting >>> zed_tutorial_depth
Starting >>> zed_tutorial_pos_tracking
Starting >>> zed_tutorial_video
Finished <<< zed_multi_camera [1.54s]
Finished <<< zed_depth_to_laserscan [1.63s]
Finished <<< zed_display_rviz2 [1.66s]
Finished <<< zed_robot_integration [1.61s]
Finished <<< zed_tutorial_depth [1.60s]
Finished <<< zed_tutorial_pos_tracking [1.62s]
Finished <<< zed_tutorial_video [1.62s]
--- stderr: rviz_plugin_zed_od
CMake Error at CMakeLists.txt:100 (find_package):
By not providing "Findrviz_common.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"rviz_common", but CMake did not find one.
Could not find a package configuration file provided by "rviz_common" with
any of the following names:
rviz_commonConfig.cmake
rviz_common-config.cmake
Add the installation prefix of "rviz_common" to CMAKE_PREFIX_PATH or set
"rviz_common_DIR" to a directory containing one of the above files. If
"rviz_common" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< rviz_plugin_zed_od [1.93s, exited with code 1]
Aborted <<< zed_topic_benchmark_interfaces [1.99s]
Aborted <<< zed_rgb_convert [2.97s]
Aborted <<< zed_aruco_localization [3.70s]
Summary: 7 packages finished [4.19s]
1 package failed: rviz_plugin_zed_od
3 packages aborted: zed_aruco_localization zed_rgb_convert zed_topic_benchmark_interfaces
3 packages had stderr output: rviz_plugin_zed_od zed_aruco_localization zed_rgb_convert
2 packages not processed
- run
root@ubuntu:~/docker_humble/ros2_ws# source ~/.bashrc
root@ubuntu:~/docker_humble/ros2_ws# source /opt/ros/humble/install/setup.bash
root@ubuntu:~/docker_humble/ros2_ws# source install/setup.bash
root@ubuntu:~/docker_humble/ros2_ws# ros2 launch zed_depth_to_laserscan zed_depth_to_laserscan.launch.py camera_model:=zed2
[INFO] [launch]: All log files can be found below /root/.ros/log/2024-06-14-02-52-00-981828-ubuntu-10281
[INFO] [launch]: Default logging verbosity is set to INFO
[ERROR] [launch]: Caught exception in launch (see debug for traceback): "package 'rviz2' not found, searching: ['/root/docker_humble/ros2_ws/install/zed_tutorial_video', '/root/docker_humble/ros2_ws/install/zed_tutorial_pos_tracking', '/root/docker_humble/ros2_ws/install/zed_tutorial_depth', '/root/docker_humble/ros2_ws/install/zed_robot_integration', '/root/docker_humble/ros2_ws/install/zed_multi_camera', '/root/docker_humble/ros2_ws/install/zed_display_rviz2', '/root/docker_humble/ros2_ws/install/zed_depth_to_laserscan', '/root/ros2_ws/install/zed_ros2', '/root/ros2_ws/install/zed_wrapper', '/root/ros2_ws/install/zed_components', '/root/ros2_ws/install/zed_interfaces', '/root/ros2_ws/install/xacro', '/root/ros2_ws/install/self_test', '/root/ros2_ws/install/robot_localization', '/root/ros2_ws/install/nmea_msgs', '/root/ros2_ws/install/geographic_msgs', '/root/ros2_ws/install/diagnostic_updater', '/root/ros2_ws/install/diagnostic_aggregator', '/root/ros2_ws/install/angles', '/root/ros2_ws/install/ament_lint_common', '/root/ros2_ws/install/ament_cmake_xmllint', '/root/ros2_ws/install/ament_xmllint', '/root/ros2_ws/install/ament_cmake_uncrustify', '/root/ros2_ws/install/ament_uncrustify', '/root/ros2_ws/install/ament_cmake_pyflakes', '/root/ros2_ws/install/ament_pyflakes', '/root/ros2_ws/install/ament_cmake_pycodestyle', '/root/ros2_ws/install/ament_pycodestyle', '/root/ros2_ws/install/ament_cmake_pep257', '/root/ros2_ws/install/ament_pep257', '/root/ros2_ws/install/ament_cmake_pclint', '/root/ros2_ws/install/ament_pclint', '/root/ros2_ws/install/ament_cmake_mypy', '/root/ros2_ws/install/ament_mypy', '/root/ros2_ws/install/ament_cmake_lint_cmake', '/root/ros2_ws/install/ament_lint_cmake', '/root/ros2_ws/install/ament_lint_auto', '/root/ros2_ws/install/ament_cmake_flake8', '/root/ros2_ws/install/ament_flake8', '/root/ros2_ws/install/ament_cmake_copyright', '/root/ros2_ws/install/ament_copyright', '/root/ros2_ws/install/ament_lint', '/root/ros2_ws/install/ament_cmake_cpplint', '/root/ros2_ws/install/ament_cpplint', '/root/ros2_ws/install/ament_cmake_cppcheck', '/root/ros2_ws/install/ament_cppcheck', '/root/ros2_ws/install/ament_cmake_clang_tidy', '/root/ros2_ws/install/ament_cmake_clang_format', '/root/ros2_ws/install/ament_clang_tidy', '/root/ros2_ws/install/ament_clang_format', '/opt/ros/humble/install']"
- Unable to install : rviz2
root@ubuntu:~# sudo apt install ros-humble-rviz2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-humble-rviz2
root@ubuntu:~# sudo apt-get install ros-humble-rviz-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-humble-rviz-common