zed-ros-wrapper: [Question] catkin_ws/src/zed-ros-wrapper/zed_nodelets/src/rgbd_sensors_demux_nodelet/include/rgbd_sensor_demux.hpp:36:10: fatal error: zed_interfaces/RGBDSensors.h: No such file or directory #include "zed_interfaces/RGBDSensors.h"
Hello, I am getting this error but only under certain condition. I will explain. I bought a zedmini and followed your instructions to install the sdk and associated ROS examples on two platforms: my Dell workstation and Jetson NX. In both cases I am able to compile and run everything just great!
However, I also followed these instructions https://ardupilot.org/dev/docs/ros-cartographer-slam.html for the specific application I am trying to eventually build/integrate. Not there yet…
When I added those instructions I started getting this error:
catkin build
---------------------------------------------------------
Profile: default
Extending: [cached] /opt/ros/melodic
Workspace: /home/u1/catkin_ws
---------------------------------------------------------
Build Space: [exists] /home/u1/catkin_ws/build
Devel Space: [exists] /home/u1/catkin_ws/devel
Install Space: [unused] /home/u1/catkin_ws/install
Log Space: [exists] /home/u1/catkin_ws/logs
Source Space: [exists] /home/u1/catkin_ws/src
DESTDIR: [unused] None
---------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
---------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
---------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
---------------------------------------------------------
Workspace configuration appears valid.
---------------------------------------------------------
[build] Found '11' packages in 0.0 seconds.
[build] Updating package table.
Starting >>> cartographer_ros_msgs
Starting >>> ceres-solver
Starting >>> robot_pose_publisher
Starting >>> rplidar_ros
Starting >>> zed_interfaces
Finished <<< robot_pose_publisher [ 0.7 seconds ]
Finished <<< rplidar_ros [ 0.7 seconds ]
Finished <<< cartographer_ros_msgs [ 2.5 seconds ]
Finished <<< ceres-solver [ 19.0 seconds ]
Starting >>> cartographer
Finished <<< zed_interfaces [ 19.4 seconds ]
Starting >>> zed_nodelets
Finished <<< cartographer [ 18.0 seconds ]
Starting >>> cartographer_ros
___________________________________________________________________________________________________________________________________________________________________________________________________________
Errors << zed_nodelets:make /home/u1/catkin_ws/logs/zed_nodelets/build.make.000.log
In file included from /home/u1/catkin_ws/src/zed-ros-wrapper/zed_nodelets/src/rgbd_sensors_demux_nodelet/src/rgbd_sensor_demux.cpp:21:0:
/home/u1/catkin_ws/src/zed-ros-wrapper/zed_nodelets/src/rgbd_sensors_demux_nodelet/include/rgbd_sensor_demux.hpp:36:10: fatal error: zed_interfaces/RGBDSensors.h: No such file or directory
#include "zed_interfaces/RGBDSensors.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ZEDNodelets.dir/src/rgbd_sensors_demux_nodelet/src/rgbd_sensor_demux.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/u1/catkin_ws/src/zed-ros-wrapper/zed_nodelets/src/rgbd_sensors_sync_nodelet/src/rgbd_sensor_sync.cpp:21:0:
/home/u1/catkin_ws/src/zed-ros-wrapper/zed_nodelets/src/rgbd_sensors_sync_nodelet/include/rgbd_sensor_sync.hpp:40:10: fatal error: zed_interfaces/RGBDSensors.h: No such file or directory
#include "zed_interfaces/RGBDSensors.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ZEDNodelets.dir/src/rgbd_sensors_sync_nodelet/src/rgbd_sensor_sync.cpp.o] Error 1
In file included from /home/u1/catkin_ws/src/zed-ros-wrapper/zed_nodelets/src/zed_nodelet/src/zed_wrapper_nodelet.cpp:21:0:
/home/u1/catkin_ws/src/zed-ros-wrapper/zed_nodelets/src/zed_nodelet/include/zed_wrapper_nodelet.hpp:43:10: fatal error: zed_interfaces/reset_tracking.h: No such file or directory
#include <zed_interfaces/reset_tracking.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ZEDNodelets.dir/src/zed_nodelet/src/zed_wrapper_nodelet.cpp.o] Error 1
make[1]: *** [CMakeFiles/ZEDNodelets.dir/all] Error 2
make: *** [all] Error 2
cd /home/u1/catkin_ws/build/zed_nodelets; catkin build --get-env zed_nodelets | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -
...........................................................................................................................................................................................................
Failed << zed_nodelets:make [ Exited with code 2 ]
Failed <<< zed_nodelets [ 20.1 seconds ]
Abandoned <<< cartographer_rviz [ Unrelated job failed ]
Abandoned <<< zed_wrapper [ Unrelated job failed ]
Finished <<< cartographer_ros [ 2.8 seconds ]
[build] Summary: 7 of 10 packages succeeded.
[build] Ignored: 1 packages were skipped or are blacklisted.
[build] Warnings: None.
[build] Abandoned: 2 packages were abandoned.
[build] Failed: 1 packages failed.
[build] Runtime: 40.6 seconds total.
Please note that following these steps works on my workstation but not NX machine!!
catkin_init_workspace
cd src/
git clone https://github.com/Slamtec/rplidar_ros.git
sudo apt-get install python-wstool python-rosdep ninja-build
cd ..
wstool init src
wstool merge -t src https://raw.githubusercontent.com/googlecartographer/cartographer_ros/master/cartographer_ros.rosinstall
wstool update -t src
src/cartographer/scripts/install_proto3.sh
sudo rosdep init
sudo rm /etc/ros/rosdep/sources.list.d/20-default.list
sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y
cd src/
git clone https://github.com/GT-RAIL/robot_pose_publisher.git
code robot_pose_publisher/src/robot_pose_publisher.cpp (make code changes)
code cartographer_ros/cartographer_ros/launch/cartographer.launch (make code changes)
code cartographer_ros/cartographer_ros/configuration_files/cartographer.lua (make code changes)
roscd mavros
cd launch/
vi node.launch
sudo vi node.launch
cd ~/catkin_ws/
sudo apt-get install ros-melodic-catkin python-catkin-tools
sudo apt-get install python-catkin-tools
catkin build
Then added zed-ros-examples zed-ros-wrapper to src
catkin build
These exact steps work well on my workstation and not on NX. Any insight on how to proceed with this problem would be greatly appreciated.
Thank you. Nick
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (6 by maintainers)
Commits related to this issue
- Update CMakeLists.txt Fix for issue #625 — committed to stereolabs/zed-ros-wrapper by Myzhar 4 years ago
- Update CMakeLists.txt Fix for issue #625 — committed to stereolabs/zed-ros-wrapper by Myzhar 4 years ago
- Update CMakeLists.txt Fix for issue #625 — committed to stereolabs/zed-ros-wrapper by Myzhar 4 years ago
@Myzhar I am able to build all the zed packages without that line and no longer get the errors about missing header files using
catkin_makeorcatkin buildso that seems to solve the issue. @bulbage Should see if removing that from the CMakeLists will fix the issue,@Myzhar why does
find_package(catkin COMPONENTS ...)not havefind_package(catkin REQUIRED COMPONENTS ...)in the CMakeList? The issue would have been easier to find that way.Good to know. I fix it in the next release that will be ready as soon as we solve the issue #629
@Lost-Monkey-5 that’s a line to be able to use the CMake files in QtCreator. It can be removed if generates problems with other parts.
Let me know if removing it solves your problems