Hello ,
I’m trying to setup my Zed X camera with the duo zed link , and while following the provided isaac ros setup Isaac ROS ZED Setup — isaac_ros_docs documentation
I followed the tutorial succesfully built the zed docker layer and when i continued i encountered an error while building the zed_ros2_wrapper specifically zed_components package :
After this command:
cd ${ISAAC_ROS_WS} &&
sudo apt update &&
rosdep install --from-paths src/zed-ros2-wrapper --ignore-src -r -y &&
colcon build --symlink-install --packages-up-to zed_wrapper
I got this error ( It is long but more of the same stuff so iam only pasting the top part and bottom part):
not found: “/workspaces/isaac_ros-dev/install/zed_components/share/zed_components/local_setup.bash”
Hit:1 Index of /ubuntu-ports jammy InRelease
Hit:2 Index of /ubuntu-ports jammy-updates InRelease
Hit:3 https://repo.download.nvidia.com/jetson/common r36.0 InRelease
Hit:4 Index of /ubuntu-ports jammy-backports InRelease
Hit:5 https://repo.download.nvidia.com/jetson/common r36.3 InRelease
Get:6 Index of /ubuntu-ports jammy-security InRelease [129 kB]
Hit:7 https://isaac.download.nvidia.com/isaac-ros/release-3 jammy InRelease
Hit:8 https://repo.download.nvidia.com/jetson/t234 r36.3 InRelease
Hit:9 Index of /mosquitto-dev/mosquitto-ppa/ubuntu jammy InRelease
Hit:10 http://packages.ros.org/ros2/ubuntu jammy InRelease
Fetched 129 kB in 2s (53.2 kB/s)
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
169 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
W: https://repo.download.nvidia.com/jetson/common/dists/r36.0/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: Skipping acquire of configured file ‘universe/binary-arm64/Packages’ as repository ‘https://repo.download.nvidia.com/jetson/common r36.0 InRelease’ doesn’t have the component ‘universe’ (component misspelt in sources.list?)
W: https://repo.download.nvidia.com/jetson/common/dists/r36.3/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://isaac.download.nvidia.com/isaac-ros/release-3/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://repo.download.nvidia.com/jetson/t234/dists/r36.3/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
#All required rosdeps installed successfully
Starting >>> zed_interfaces
— stderr: zed_interfaces
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren’t anyFinished <<< zed_interfaces [3.92s]
Starting >>> zed_components
In file included from /opt/ros/humble/include/rclcpp/rclcpp/client.hpp:40,
from /opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:24,
from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer_interface.h:48,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer.h:42,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/sl_types.hpp:18,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/zed_camera_component.hpp:22,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:22:
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/tools/include/sl_logging.hpp:27:39: error: template argument 1 is invalid
27 | define DEBUG_SIM(…) if (mDebugSim) RCLCPP_DEBUG(get_logger(), VA_ARGS)
| ^~~~~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9554:7: note: in expansion of macro ‘DEBUG_SIM’
9554 | DEBUG_SIM(“Received an updated ‘/clock’ message.”);
| ^~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/tools/include/sl_logging.hpp:27:39: error: template argument 1 is invalid
27 | define DEBUG_SIM(…) if (mDebugSim) RCLCPP_DEBUG(get_logger(), VA_ARGS)
| ^~~~~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9554:7: note: in expansion of macro ‘DEBUG_SIM’
9554 | DEBUG_SIM(“Received an updated ‘/clock’ message.”);
| ^~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/tools/include/sl_logging.hpp:27:39: error: template argument 1 is invalid
27 | define DEBUG_SIM(…) if (mDebugSim) RCLCPP_DEBUG(get_logger(), VA_ARGS)
| ^~~~~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9554:7: note: in expansion of macro ‘DEBUG_SIM’
9554 | DEBUG_SIM(“Received an updated ‘/clock’ message.”);
| ^~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9556:7: error: ‘mClockAvailable’ was not declared in this scope
9556 | mClockAvailable = false;
| ^~~~~~~~~~~~~~~
In file included from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:23:
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/tools/include/sl_logging.hpp:27:28: error: ‘mDebugSim’ was not declared in this scope
27 | define DEBUG_SIM(…) if (mDebugSim) RCLCPP_DEBUG(get_logger(), VA_ARGS)
| ^~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/tools/include/sl_logging.hpp:27:28: note: in definition of macro ‘DEBUG_SIM’
27 | define DEBUG_SIM(…) if (mDebugSim) RCLCPP_DEBUG(get_logger(), VA_ARGS)
| ^~~~~~~~~
In file included from /opt/ros/humble/include/rclcpp/rclcpp/client.hpp:40,
from /opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:24,
from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer_interface.h:48,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer.h:42,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/sl_types.hpp:18,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/zed_camera_component.hpp:22,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:22:
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/tools/include/sl_logging.hpp:27:52: error: ‘get_logger’ was not declared in this scope; did you mean ‘rclcpp::get_logger’?
27 | define DEBUG_SIM(…) if (mDebugSim) RCLCPP_DEBUG(get_logger(), VA_ARGS)
| ^~~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9557:7: note: in expansion of macro ‘DEBUG_SIM’
9557 | DEBUG_SIM(“Received a NOT updated ‘/clock’ message.”);
| ^~~~~~~~~
In file included from /opt/ros/humble/include/rclcpp/rclcpp/logging.hpp:23,
from /opt/ros/humble/include/rclcpp/rclcpp/client.hpp:40,
from /opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:24,
from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer_interface.h:48,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer.h:42,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/sl_types.hpp:18,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/zed_camera_component.hpp:22,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:22:
/opt/ros/humble/include/rclcpp/rclcpp/logger.hpp:106:17: note: ‘rclcpp::get_logger’ declared here
106 | friend Logger rclcpp::get_logger(const std::string & name);
| ^~~~~~
In file included from /opt/ros/humble/include/rclcpp/rclcpp/client.hpp:40,
from /opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:24,
from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer_interface.h:48,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer.h:42,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/sl_types.hpp:18,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/zed_camera_component.hpp:22,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:22:
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/tools/include/sl_logging.hpp:27:39: error: template argument 1 is invalid
27 | define DEBUG_SIM(…) if (mDebugSim) RCLCPP_DEBUG(get_logger(), VA_ARGS)
| ^~~~~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9557:7: note: in expansion of macro ‘DEBUG_SIM’
9557 | DEBUG_SIM(“Received a NOT updated ‘/clock’ message.”);
| ^~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/tools/include/sl_logging.hpp:27:39: error: template argument 1 is invalid
27 | define DEBUG_SIM(…) if (mDebugSim) RCLCPP_DEBUG(get_logger(), VA_ARGS)
| ^~~~~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9557:7: note: in expansion of macro ‘DEBUG_SIM’
9557 | DEBUG_SIM(“Received a NOT updated ‘/clock’ message.”);
| ^~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/tools/include/sl_logging.hpp:27:39: error: template argument 1 is invalid
27 | define DEBUG_SIM(…) if (mDebugSim) RCLCPP_DEBUG(get_logger(), VA_ARGS)
| ^~~~~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9557:7: note: in expansion of macro ‘DEBUG_SIM’
9557 | DEBUG_SIM(“Received a NOT updated ‘/clock’ message.”);
| ^~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9559:5: error: ‘mLastClock’ was not declared in this scope
9559 | mLastClock = msg_time;
| ^~~~~~~~~~
In file included from /opt/ros/humble/include/rclcpp/rclcpp/client.hpp:40,
from /opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:24,
from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer_interface.h:48,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer.h:42,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/sl_types.hpp:18,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/zed_camera_component.hpp:22,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:22:
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9562:7: error: ‘get_logger’ was not declared in this scope; did you mean ‘rclcpp::get_logger’?
9562 | get_logger(), "Error comparing clock messages: " <<
| ^~~~~~~~~~
In file included from /opt/ros/humble/include/rclcpp/rclcpp/logging.hpp:23,
from /opt/ros/humble/include/rclcpp/rclcpp/client.hpp:40,
from /opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:24,
from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer_interface.h:48,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer.h:42,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/sl_types.hpp:18,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/zed_camera_component.hpp:22,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:22:
/opt/ros/humble/include/rclcpp/rclcpp/logger.hpp:106:17: note: ‘rclcpp::get_logger’ declared here
106 | friend Logger rclcpp::get_logger(const std::string & name);
| ^~~~~~
In file included from /opt/ros/humble/include/rclcpp/rclcpp/client.hpp:40,
from /opt/ros/humble/include/rclcpp/rclcpp/callback_group.hpp:24,
from /opt/ros/humble/include/rclcpp/rclcpp/any_executable.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategy.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/memory_strategies.hpp:18,
from /opt/ros/humble/include/rclcpp/rclcpp/executor_options.hpp:20,
from /opt/ros/humble/include/rclcpp/rclcpp/executor.hpp:37,
from /opt/ros/humble/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:21,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer_interface.h:48,
from /opt/ros/humble/include/tf2_ros/tf2_ros/buffer.h:42,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/sl_types.hpp:18,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/include/zed_camera_component.hpp:22,
from /workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:22:
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9561:5: error: template argument 1 is invalid
9561 | RCLCPP_WARN_STREAM(
| ^~~~~~~~~~~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9561:5: error: template argument 1 is invalid
9561 | RCLCPP_WARN_STREAM(
| ^~~~~~~~~~~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9561:5: error: template argument 1 is invalid
9561 | RCLCPP_WARN_STREAM(
| ^~~~~~~~~~~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9564:26: error: ‘mLastClock’ was not declared in this scope
9564 | static_cast(mLastClock.get_clock_type()));
| ^~~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9566:5: error: ‘mClockAvailable’ was not declared in this scope
9566 | mClockAvailable = false;
| ^~~~~~~~~~~~~~~
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp: At global scope:
/workspaces/isaac_ros-dev/src/zed-ros2-wrapper/zed_components/src/zed_camera/src/zed_camera_component.cpp:9571:1: error: expected declaration before ‘}’ token
9571 | } // namespace stereolabs
| ^
gmake[2]: *** [CMakeFiles/zed_camera_component.dir/build.make:104: CMakeFiles/zed_camera_component.dir/src/zed_camera/src/zed_camera_component.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:164: CMakeFiles/zed_camera_component.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2Failed <<< zed_components [43.9s, exited with code 2]
Summary: 1 package finished [1min 41s]
1 package failed: zed_components
2 packages had stderr output: zed_components zed_interfaces
1 package not processed
After that failed i tried launching the zed explorer via /usr/local/zed/tools/ZED_Explorer anyway ,and that showed the camera working , however i tried rebuilding it again which failed the same way but i then wasnt even able to get the zed explorer working giving me this error:
admin@jetson-desktop:/workspaces/isaac_ros-dev$ /usr/local/zed/tools/ZED_Explorer
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-admin’
** [SVO] Hardware compression (NVENC) available **
[ZED-X][Warning] Failed to connect to zed_x_daemon.
[ZED-X][Warning] Failed to verify the match between the L4T version of the host and the container. If you are indeed in a container, be sure to run the same L4T version on both.
Im not sure what may be the cause of all of this , but I do also want to ask if it was neccesary to checkout the humble-v4.0.8 branch even for the zed-ros2-interfaces package inside the zed-ros2-wrapper or not?
Thanks very much in advance for any help !!