From 6c7f8637f45c910bab12c2e83ee3e5558bae53a2 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Wed, 8 Jun 2022 00:31:27 +0300 Subject: [PATCH] docs: add sourcing `gazebo/setup.sh` to simulator installation manual --- docs/en/simulation_native.md | 6 ++++++ docs/ru/simulation_native.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/docs/en/simulation_native.md b/docs/en/simulation_native.md index 0179e398..41d877a6 100644 --- a/docs/en/simulation_native.md +++ b/docs/en/simulation_native.md @@ -132,6 +132,12 @@ You can test autonomous flight using example scripts in `~/catkin_ws/src/clover/ ## Additional steps +To make it possible to run Gazebo simulation environment without Clover (`gazebo` command), add into your `.bashrc` sourcing Gazebo's initialization script: + +```bash +echo "source /usr/share/gazebo/setup.sh" >> ~/.bashrc +``` + Optionally, install roscore systemd service to have roscore running in background: ```bash diff --git a/docs/ru/simulation_native.md b/docs/ru/simulation_native.md index 9508b582..90573756 100644 --- a/docs/ru/simulation_native.md +++ b/docs/ru/simulation_native.md @@ -132,6 +132,12 @@ roslaunch clover_simulation simulator.launch ## Дополнительные шаги +Для того, чтобы возможно было запускать среду симуляции Gazebo отдельно (команда `gazebo`), добавьте в `.bashrc` вызов соответствующего скрипта инициализации: + +```bash +echo "source /usr/share/gazebo/setup.sh" >> ~/.bashrc +``` + Опционально вы можете установить systemd-сервис для roscore для того, чтобы roscore был постоянно запущен в фоне: ```bash