ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Nested packages aren't the right way to keep "tidiness" in your ROS2 workspace. Instead, you can keep multiple packages in one git repository. You can nest directories as much as you want inside of ros2_ws/src, but you can't nest packages.

ros2_ws
    src
        some_unrelated_package_a
            package.xml
        some_unrelated_package_b
            package.xml
        my_sim_env (GIT REPO)
            package_a
                package.xml
            package_b
                package.xml
            package_c
                package.xml
            sim_env_msgs
                package.xml
            sim_env_testing
                package.xml
            README.md

Notice how there is no package nesting.