Closed THLL245 closed 2 years ago
Adding that the camera works fine when using ZED_Explorer
If you are using the ZED SDK v3.6.4 or minor, then you must upgrade to v3.6.5 because the latest Ubuntu upgrade broke the connection between the ZED SDK. ZED SDK v3.6.5 fixes the issue. Before recompiling clean the cache of your ROS2 workspace
Currently on v3.6.5, reinstalled it too, cleared cache, reinstalled wrapper, cleared cache again. When building got the following errors but I believe are just warnings
`-- stderr: zed_wrapper
In file included from /home/tyler/ros_ws/install/zed_components/include/zed_components/sl_tools.h:50,
from /home/tyler/ros_ws/install/zed_components/include/zed_components/zed_camera_component.hpp:29,
from /home/tyler/ros_ws/src/zed-ros2-wrapper/zed_wrapper/src/zed_wrapper.cpp:26:
/usr/local/zed/include/sl/Camera.hpp:784:13: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
784 | };
| ^
/usr/local/zed/include/sl/Camera.hpp:937:13: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
937 | };
| ^
/usr/local/zed/include/sl/Camera.hpp:1114:13: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
1114 | };
| ^
/usr/local/zed/include/sl/Camera.hpp:1278:13: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
1278 | };
| ^
/usr/local/zed/include/sl/Camera.hpp:1282:13: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
1282 | };
| ^
/usr/local/zed/include/sl/Camera.hpp:1286:13: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
1286 | };
| ^
/usr/local/zed/include/sl/Camera.hpp:1526:13: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
1526 | };
| ^
/usr/local/zed/include/sl/Camera.hpp:1530:13: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
1530 | };
| ^
/usr/local/zed/include/sl/Camera.hpp:1534:13: warning: ISO C++ prohibits anonymous structs [-Wpedantic]
1534 | };
| ^
/usr/local/zed/include/sl/Camera.hpp: In function ‘sl::Timestamp sl::operator+(sl::Timestamp, const sl::Timestamp&)’:
/usr/local/zed/include/sl/Camera.hpp:1992:16: warning: implicitly-declared ‘constexpr sl::Timestamp::Timestamp(const sl::Timestamp&)’ is deprecated [-Wdeprecated-copy]
1992 | return lhs;
| ^~~
/usr/local/zed/include/sl/Camera.hpp:1931:20: note: because ‘sl::Timestamp’ has user-provided ‘sl::Timestamp& sl::Timestamp::operator=(sl::Timestamp)’
1931 | Timestamp& operator=(Timestamp other) {
| ^~~~~~~~
/usr/local/zed/include/sl/Camera.hpp: In function ‘sl::Timestamp sl::operator-(sl::Timestamp, const sl::Timestamp&)’:
/usr/local/zed/include/sl/Camera.hpp:1997:16: warning: implicitly-declared ‘constexpr sl::Timestamp::Timestamp(const sl::Timestamp&)’ is deprecated [-Wdeprecated-copy]
1997 | return lhs;
| ^~~
/usr/local/zed/include/sl/Camera.hpp:1931:20: note: because ‘sl::Timestamp’ has user-provided ‘sl::Timestamp& sl::Timestamp::operator=(sl::Timestamp)’
1931 | Timestamp& operator=(Timestamp other) {
| ^~~~~~~~
/usr/local/zed/include/sl/Camera.hpp: In function ‘sl::Timestamp sl::operator/(sl::Timestamp, const sl::Timestamp&)’:
/usr/local/zed/include/sl/Camera.hpp:2002:16: warning: implicitly-declared ‘constexpr sl::Timestamp::Timestamp(const sl::Timestamp&)’ is deprecated [-Wdeprecated-copy]
2002 | return lhs;
| ^~~
/usr/local/zed/include/sl/Camera.hpp:1931:20: note: because ‘sl::Timestamp’ has user-provided ‘sl::Timestamp& sl::Timestamp::operator=(sl::Timestamp)’
1931 | Timestamp& operator=(Timestamp other) {
| ^~~~~~~~
/usr/local/zed/include/sl/Camera.hpp: In function ‘sl::Timestamp sl::operator*(sl::Timestamp, const sl::Timestamp&)’:
/usr/local/zed/include/sl/Camera.hpp:2007:16: warning: implicitly-declared ‘constexpr sl::Timestamp::Timestamp(const sl::Timestamp&)’ is deprecated [-Wdeprecated-copy]
2007 | return lhs;
| ^~~
/usr/local/zed/include/sl/Camera.hpp:1931:20: note: because ‘sl::Timestamp’ has user-provided ‘sl::Timestamp& sl::Timestamp::operator=(sl::Timestamp)’
1931 | Timestamp& operator=(Timestamp other) {
| ^~~~~~~~
/usr/local/zed/include/sl/Camera.hpp: In function ‘sl::Timestamp sl::getCurrentTimeStamp()’:
/usr/local/zed/include/sl/Camera.hpp:2041:16: warning: implicitly-declared ‘constexpr sl::Timestamp::Timestamp(const sl::Timestamp&)’ is deprecated [-Wdeprecated-copy]
2041 | return current_ts;
| ^~~~~~~~~~
/usr/local/zed/include/sl/Camera.hpp:1931:20: note: because ‘sl::Timestamp’ has user-provided ‘sl::Timestamp& sl::Timestamp::operator=(sl::Timestamp)’
1931 | Timestamp& operator=(Timestamp other) {
| ^~~~~~~~
/usr/local/zed/include/sl/Camera.hpp: In function ‘cudaError sl::__cudaSafeCall(cudaError, const char*, const char*, int)’:
/usr/local/zed/include/sl/Camera.hpp:2048:89: warning: unused parameter ‘file’ [-Wunused-parameter]
2048 | tic inline cudaError __cudaSafeCall(cudaError err, const char *func, const char *file, const int line) {
| ~~~~~~~~~~~~^~~~
/usr/local/zed/include/sl/Camera.hpp:2048:105: warning: unused parameter ‘line’ [-Wunused-parameter]
2048 | rror __cudaSafeCall(cudaError err, const char *func, const char *file, const int line) {
| ~~~~~~~~~~^~~~
In file included from /home/tyler/ros_ws/install/zed_components/include/zed_components/sl_tools.h:50,
from /home/tyler/ros_ws/install/zed_components/include/zed_components/zed_camera_component.hpp:29,
from /home/tyler/ros_ws/src/zed-ros2-wrapper/zed_wrapper/src/zed_wrapper.cpp:26:
/usr/local/zed/include/sl/Camera.hpp: At global scope:
/usr/local/zed/include/sl/Camera.hpp:5345:12: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
5345 | inline const void /*@cond SHOWHIDDEN*/SL_SDK_EXPORT/*@endcond*/ getZEDSDKBuildVersion(int &major, int& minor, int& patch) {
| ^~~~~
In file included from /home/tyler/ros_ws/install/zed_components/include/zed_components/sl_tools.h:50,
from /home/tyler/ros_ws/install/zed_components/include/zed_components/zed_camera_component.hpp:29,
from /home/tyler/ros_ws/src/zed-ros2-wrapper/zed_wrapper/src/zed_wrapper.cpp:26:
/usr/local/zed/include/sl/Camera.hpp:5734:2: warning: extra ‘;’ [-Wpedantic]
5734 | };
| ^
---
Same error
I just noticed that you have Ubuntu 20.04 on Xavier. Are you using Docker or did you upgrade Ubuntu 18.04 to 20.04? The Nvidia Jetson boards do not support Ubuntu 20.04 yet, you should not upgrade the OS via apt
I upgraded to 20.04 via apt but had no issues with it. Everything I need to run on the Jetson works well. Zed wrapper ran great for weeks now. Only change was a upgrade yesterday now getting this error. I'll see if I can revert back and try the wrapper again
Fixed with a patch in https://github.com/stereolabs/zed-ros2-wrapper/commit/6cd5affeaef51eab8f7beb708c73ff95e2adf6f3 See also #75
@THLL245 let me know if this solved the problem for you then close the issue if ok.
It works again thank you!
Preliminary Checks
Description
Worked fine before hand, but after update & upgrade started to get a robot state publisher error when only launching the zed wrapper. Cant figure out how its related.
Reinstalled ROS2 (Foxy), Reinstalled ZED SDK 3.6, Reinstalled ZED wrapper (colcon build no errors), verified robot state publisher works (launched urdf separately).
At least point I am about to reinstall the whole OS because that was the only change before this stopped working
Steps to Reproduce
...
Expected Result
Publish topics
Actual Result
Failed with robot state publisher error
ZED Camera model
ZED2i
Environment
Anything else?
Thought this was related to the URDF but when I change the launch file "Publish URDF" = 'false' I get the following error