NVIDIA-ISAAC-ROS / NVIDIA-ISAAC-ROS/isaac_ros_visual_slam

problem with colcon build

Open
#160 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.5k
Forks
206
PR merge metrics
No merged PRs in 30d

Description

I have a problem to build and source the workspace inside the container, when i execute the following commands :
cd /workspaces/isaac_ros-dev && \ colcon build --symlink-install && \ source install/setup.bash

I receive the following output:

Traceback (most recent call last):
File "/usr/bin/colcon", line 33, in <module>
  sys.exit(load_entry_point('colcon-core==0.15.1', 'console_scripts', 'colcon')())
File "/usr/lib/python3/dist-packages/colcon_core/command.py", line 118, in main
  return _main(command_name=command_name, argv=argv)
File "/usr/lib/python3/dist-packages/colcon_core/command.py", line 185, in _main
  create_log_path(args.verb_name)
File "/usr/lib/python3/dist-packages/colcon_core/location.py", line 186, in create_log_path
  os.makedirs(str(path))
File "/usr/lib/python3.8/os.py", line 223, in makedirs
  mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: 'log/build_2024-05-14_14-21-54'

If i execute the commands with sudo i receive the following output:

Starting >>> isaac_ros_common
Starting >>> realsense2_camera_msgs
Starting >>> isaac_ros_test
--- stderr: isaac_ros_common                                          
CMake Error at CMakeLists.txt:25 (find_package):
  By not providing "Findament_cmake_auto.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "ament_cmake_auto", but CMake did not find one.

  Could not find a package configuration file provided by "ament_cmake_auto"
  with any of the following names:

 ament_cmake_autoConfig.cmake
 ament_cmake_auto-config.cmake

  Add the installation prefix of "ament_cmake_auto" to CMAKE_PREFIX_PATH or
  set "ament_cmake_auto_DIR" to a directory containing one of the above
  files.  If "ament_cmake_auto" provides a separate development package or
  SDK, be sure it has been installed.

Failed   <<< isaac_ros_common [0.26s, exited with code 1]
Aborted  <<< realsense2_camera_msgs [0.25s]
Aborted  <<< isaac_ros_test [0.50s]                      

Summary: 0 packages finished [1.31s]
  1 package failed: isaac_ros_common
  2 packages aborted: isaac_ros_test realsense2_camera_msgs
  2 packages had stderr output: isaac_ros_common realsense2_camera_msgs
  10 packages not processed

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported colcon command in /workspaces/isaac_ros-dev and inspect the workspace permissions and the CMakeLists.txt failure at line 25. Reproduce the non-sudo and sudo builds, then verify that the workspace builds and can be sourced without the permission or missing ament_cmake_auto errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.