Closed vishwaslip closed 1 year ago
Please search for solutions to your dependency issues and if you cannot figure out on your own, ask on ROS Answers. None of this relates to Nav2, it looks like you have some system issues you need to resolve.
Hello, I don't mean to keep bugging. Though I have tried many things, and that is why I am implying this may be a problem with Nav2, or perhaps not enough documentation on what I need to do correctly. As of right now, here are the most repeatable instructions that I feel show that this may be a Nav2 bug.
Required Info:
Steps to Reproduce Issue Here is my repo where you can reproduce the steps. In the Dockerfile, from the Ubuntu Jammy base image, I download ROS2 from source exactly as stated on the official ROS2 documentation. Then once it is built, in the terminal, I proceed to attempt to install Nav 2 from source. I had to create my own .repos file, as I couldn't get it to work with the tools/underlay.repos in the humble branch, even un-commenting every line.
sudo su
, Password: passwordmkdir -p /opt/ros/nav2/src && cd /opt/ros/nav2/src
git clone https://github.com/ros-planning/navigation2.git --branch humble
source /opt/ros/${ROS2_DISTRO}/install/setup.bash && cd /opt/ros/nav2
vcs import src < /path/to/nav2_humble_dependencies.repos
rosdep update && rosdep install -y --ignore-src --from-paths src
colcon build --merge-install
Expected outcome
Nav 2 Builds
Actual Behavior
nav2_smac_planner errors:
--- stderr: nav2_smac_planner
CMake Error at CMakeLists.txt:75 (add_library):
Target "nav2_smac_planner" links to target "Boost::serialization" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
CMake Error at CMakeLists.txt:75 (add_library):
Target "nav2_smac_planner" links to target "Boost::filesystem" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
CMake Error at CMakeLists.txt:75 (add_library):
Target "nav2_smac_planner" links to target "Boost::system" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
...
CMake Error at /opt/ros/humble/install/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
Target "test_lattice_node" links to target "Boost::serialization" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
/opt/ros/humble/install/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
/opt/ros/humble/install/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
test/CMakeLists.txt:114 (ament_add_gtest)
CMake Error at /opt/ros/humble/install/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
Target "test_lattice_node" links to target "Boost::filesystem" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
/opt/ros/humble/install/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
/opt/ros/humble/install/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
test/CMakeLists.txt:114 (ament_add_gtest)
CMake Error at /opt/ros/humble/install/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:50 (add_executable):
Target "test_lattice_node" links to target "Boost::system" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
/opt/ros/humble/install/share/ament_cmake_gtest/cmake/ament_add_gtest_executable.cmake:37 (_ament_add_gtest_executable)
/opt/ros/humble/install/share/ament_cmake_gtest/cmake/ament_add_gtest.cmake:68 (ament_add_gtest_executable)
test/CMakeLists.txt:114 (ament_add_gtest)
CMake Generate step failed. Build files cannot be regenerated correctly.
---
Failed <<< nav2_smac_planner [2min 46s, exited with code 1]
Additional Information This setup should have libboost-all-dev version 1.74, correctly debian installed to the best of my knowledge.
This whole process is separate from ros1_bridge, as right now I am just trying to get nav2 from source work with ros2 humble from source. It doesn't seem like a system problem because I am operating from a docker container, and following all official documentation. So I feel like this is either a Nav2, or documentation error, and should be addressed, as I feel like this process should not be this difficult.
Hello, I am trying to create a create a docker container that contains ROS 2 Humble, ros1_bridge, and nav2 to communicate with another ROS 1 noetic container. I have successful built the container with ros 2 humble and the ros1_bridge, though I am having trouble building nav2.
Required Info:
Steps to reproduce issue
Here is my Dockerfile and devcontainer.json.zip for the ROS 2 container, im using vscode. Because of this, my docker file is the best way I've gotten it to build successfully. After it creates the container, I do in terminal:
Expected behavior
Navigation 2 builds.
Actual behavior
Additional information
I have tried the following things,
1.
which returns:
2.
which returns:
3.
which returns: