Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ros2-beta CMake error #2517

Closed
ripdk12 opened this issue Oct 25, 2022 · 5 comments
Closed

ros2-beta CMake error #2517

ripdk12 opened this issue Oct 25, 2022 · 5 comments
Labels

Comments

@ripdk12
Copy link

ripdk12 commented Oct 25, 2022

I am trying to setup isaac ros on my Xavier NX (5.0.2) following this:
https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_visual_slam
Works great with the included rosbag example, however i want to test with my RealSense D435i camera, which is where i ran into some issues.

still within the same docker container:
I have built librealsense2 from source with the RSUSB backend (for some reason i was unable to build from deb package), and realsense-viewer works just fine, however when trying to build the realsense-ros wrapper for ros2 humble following this guide:
https://github.com/IntelRealSense/realsense-ros/tree/ros2-beta

i get the following error message at the colcon build step:

--- stderr: realsense2_camera          
CMake Error at /workspaces/isaac_ros-dev/install/realsense2_camera_msgs/share/realsense2_camera_msgs/cmake/ament_cmake_export_targets-extras.cmake:18 (message):
  Failed to find exported target names in
  '/workspaces/isaac_ros-dev/install/realsense2_camera_msgs/share/realsense2_camera_msgs/cmake/export_realsense2_camera_msgs__rosidl_generator_cExport.cmake'
Call Stack (most recent call first):
  /workspaces/isaac_ros-dev/install/realsense2_camera_msgs/share/realsense2_camera_msgs/cmake/realsense2_camera_msgsConfig.cmake:41 (include)
  CMakeLists.txt:96 (find_package)


---
Failed   <<< realsense2_camera [7.39s, exited with code 1]

Any clues what could cause this? Or any pointers as to how to get my D435i to work with isaac ros visual slam? Thanks:)

@MartyG-RealSense
Copy link
Collaborator

Hi @ripdk12 Are you using Ubuntu 20.04, please? If you are, installing from packages on 20.04 for computing devices with an Arm architecture is not supported by the librealsense SDK unfortunately. With 20.04 on Arm, librealsense should be built from source code instead, as you did.

In regard to Humble support, the RealSense ros2_beta ROS2 wrapper requires Ubuntu 22.04.

image

Can you confirm which Ubuntu version you are using, please?

If you are using 22.04 then you can also assume that the above condition about not being able to perform a librealsense package installation on Arm / 20.04 will apply to 22.04 too.

@ripdk12
Copy link
Author

ripdk12 commented Oct 26, 2022

Oh yeah you have a point, i'm using ubuntu 20.04. I'm not quite sure what is the best way forward. should i try to get the ros wrapper running in ros2 foxy instead, or is there another way to use the ros2 wrapper in a ros2 humble docker container?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Oct 26, 2022

If you installed the ROS2 wrapper for Humble then it would not have hardware metadata support at the time of writing this, as described by a RealSense ROS team member at IntelRealSense/librealsense#10439 (comment)

You could certainly use Foxy with 20.04, though the ROS2 wrapper also supports Galactic for 20.04 which is newer than Foxy (the order of release is Foxy, Galactic, Humble).

Some people do run different Ubuntu versions in a Docker setup (such as 20.04 on the host and 18.04 on the RealSense ROS wrapper installation). It may be easiest to use Galactic with 20.04.

@ripdk12
Copy link
Author

ripdk12 commented Oct 26, 2022

I just realised that the current release of isaac ros only supports ros2 humble, which is why the provided docker image uses that version even on ubuntu 20.04. So i have the choice of either using another version of isaac ros, or try to find a way to build realsense on ros2 humble with ubuntu 20.04 as base.
Thanks for the help, I'll try to figure out how best to proceed from here.

@ripdk12 ripdk12 closed this as completed Oct 26, 2022
@MartyG-RealSense
Copy link
Collaborator

You are very welcome. Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants