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

Can't build with realsense "failed to create symbolic link" #56

Closed
ripdk12 opened this issue Oct 26, 2022 · 1 comment
Closed

Can't build with realsense "failed to create symbolic link" #56

ripdk12 opened this issue Oct 26, 2022 · 1 comment

Comments

@ripdk12
Copy link

ripdk12 commented Oct 26, 2022

Trying to follow the guide at https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_common to configure run_dev.sh to build ros2 humble and realsense-ros on my jetson xavier (jetpack 5.0.2). I added the file ".isaac_ros_common_config" with just the following line:

CONFIG_IMAGE_KEY = humble.nav2.realsense

This did nothing.

I then modified the run_dev.sh script changing line 108 from "IMAGE_KEY=humble.nav2" to "IMAGE_KEY=humble.nav2.realsense".
Now librealsense builds, but when trying to call:

colcon build --symlink-install

I get the following error message:

--- stderr: realsense2_camera_msgs                              
failed to create symbolic link '/workspaces/isaac_ros-dev/build/realsense2_camera_msgs/ament_cmake_python/realsense2_camera_msgs/realsense2_camera_msgs' because existing path cannot be removed: Is a directory
make[2]: *** [CMakeFiles/ament_cmake_python_symlink_realsense2_camera_msgs.dir/build.make:70: CMakeFiles/ament_cmake_python_symlink_realsense2_camera_msgs] Error 1
make[1]: *** [CMakeFiles/Makefile2:421: CMakeFiles/ament_cmake_python_symlink_realsense2_camera_msgs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:146: all] Error 2
---
Failed   <<< realsense2_camera_msgs [13.1s, exited with code 2]

Any solution for this? And since I'm obviously not using the ".isaac_ros_common_config" file correctly, how am i supposed to do this? All I want to do is use my D435I camera.

EDIT

Okay so i tried to just delete the folder which was causing the problem at ~/workspaces/isaac_ros-dev/build/realsense2_camera_msgs/ament_cmake_python/realsense2_camera_msgs/realsense2_camera_msgs
and was able to build the ros wrapper, which seems like it's working as intended for now.

I still really want to try to understand the syntax of the ".isaac_ros_common_config" file, as this seems much smarter than my current solution of just editing the run_dev.sh file every time.

@ripdk12
Copy link
Author

ripdk12 commented Oct 26, 2022

I just realized I was being a doofus and named the config file ".isaac_ros_common_config" instead of ".isaac_ros_common-config" as stated in the documentation. Whoops.

@ripdk12 ripdk12 closed this as completed Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant