A small util to turn a robot model into a single self-contained archive.
Create a workspace and clone the project containing the robot model,
mkdir -p ~/workspace/src
cd ~/workspace/src
git clone https://github.com/ros-navigation/nav2_minimal_turtlebot_simulation.gitInstall the dependencies,
source /opt/ros/*/setup.bash
rosdep install --from-path . -y -iapt install python3-pip
python3 -m pip install resolve_robotics_uri_py xacroxacro -o output.sdf path/to/input.sdf.xacroxacro -o /tmp/gz_waffle.sdf ~/workspace/src/nav2_minimal_turtlebot_simulation/nav2_minimal_tb3_sim/urdf/gz_waffle.sdf.xacropython3 main.py path/to/output.sdf -p path/to/original/package/sourcepython3 main.py /tmp/gz_waffle.sdf -p ~/workspace/src/nav2_minimal_turtlebot_simulationThis creates the model.tar.gz archive in the ./ folder.