From 8a9cc0fd383cda6581e83391312d878eb114cf4a Mon Sep 17 00:00:00 2001 From: Karthik Arumugham Date: Sun, 25 Aug 2024 12:45:21 +0530 Subject: [PATCH 1/2] Added code to update submodules during installation Added code to automatically initialize and update all submodules recursively. This change addresses build errors related to un-initialized submodules, specifically issues with the `pybind11` submodule. The script checks each directory for the presence of `.gitmodules` and, if found, performs the necessary submodule updates. This ensures all dependencies are correctly set up before build, improving the reliability of our build process and reducing setup errors for new users. --- doc/tutorials/getting_started/getting_started.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/tutorials/getting_started/getting_started.rst b/doc/tutorials/getting_started/getting_started.rst index 748d0cafa7..066d9603c1 100644 --- a/doc/tutorials/getting_started/getting_started.rst +++ b/doc/tutorials/getting_started/getting_started.rst @@ -71,6 +71,19 @@ Next we will download the source code for the rest of MoveIt: :: The import command may ask for your GitHub credentials. You can just press Enter until it moves on (ignore the "Authentication failed" error). +Next update submodules: :: + + # Loop over all directories that might contain submodules + for dir in */; do + cd "$dir" + # Check if .gitmodules exists and if so, init and update submodules + if [ -f .gitmodules ]; then + echo "Initializing and updating submodules in $dir" + git submodule update --init --recursive + fi + cd .. + done + Build your Colcon Workspace ^^^^^^^^^^^^^^^^^^^^^^^^^^^ First remove all previously installed moveit binaries: :: From bba2c0ad914c7df92a9b3d361a032584a87a6d94 Mon Sep 17 00:00:00 2001 From: Karthik Arumugham Date: Sun, 25 Aug 2024 20:52:36 +0530 Subject: [PATCH 2/2] Update getting_started.rst Added --recursive flag to vcs import as per PR comments --- doc/tutorials/getting_started/getting_started.rst | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/doc/tutorials/getting_started/getting_started.rst b/doc/tutorials/getting_started/getting_started.rst index 066d9603c1..c7ed8ae1a7 100644 --- a/doc/tutorials/getting_started/getting_started.rst +++ b/doc/tutorials/getting_started/getting_started.rst @@ -66,24 +66,11 @@ Move into your Colcon workspace and pull the MoveIt tutorials source, where ``