Ask Your Question

how to maintain nav2 version compatibility with upstream ros2 repos?

asked 2019-03-14 23:47:50 -0500

huchaohong gravatar image

I am trying to keep tracking the udpates in navigation2 repo. But the codes are developed so heavily that i faced dependency problem that nav2 would compile failed against upstream ros2 repos. The upstream ros2 repo is developing heavily as well and it is composed of many sub repos which make me even harder to fix version compatibility.

I don't know if there is an appropriate method to handle this problem.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-03-16 16:41:01 -0500

marguedas gravatar image

It looks like the navigation2 repository is built against the latest ros2.repos every night ( ) so it "should always compile".

To know how to pull latest changes you can refer to the Maintaining-a-Source-Checkout documentation

Based on your use case several options are available:

Assuming you are using Ubuntu 18.04 or can run linux in docker:

  • In docker:

    • If you don't modify either ros2.repos not navigation code: use the navigation2 nightly docker image: rosplanning/navigation2:master
    • If you don't modify any code in ros2.repos but modify navigation2 code: use the nightly ros2 docker image osrf/ros2:nightly and build navigation2 and its dependencies from source
    • if you modify both ros2 and navigation2, you'll need to pull the changes from both and rebuild
  • Natively:

I don't know the status of MacOS or Windows support but, if supported, something similar to the "natively" instructions above should work

edit flag offensive delete link more


Thanks. I finally understand how this works

huchaohong gravatar image huchaohong  ( 2019-03-16 20:00:33 -0500 )edit

Glad it helped. If this answers your question, please consider accepting the answer by clicking the checkmark next to the answer so that people know this is resolved

marguedas gravatar image marguedas  ( 2019-03-17 06:15:46 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-03-14 23:47:50 -0500

Seen: 49 times

Last updated: Mar 16 '19