From bef6765baaa5a0d74e1e86899f55c9de86fdc2b8 Mon Sep 17 00:00:00 2001 From: Leushina Vlada Date: Wed, 17 Jun 2026 11:39:06 +0300 Subject: [PATCH 1/2] Initial commit --- .gitignore | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 90 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..526cfd6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,88 @@ +# ---> Unity +# This .gitignore file should be placed at the root of your Unity project directory +# +# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore +# +/[Ll]ibrary/ +/[Tt]emp/ +/[Oo]bj/ +/[Bb]uild/ +/[Bb]uilds/ +/[Ll]ogs/ +/[Uu]ser[Ss]ettings/ + +# MemoryCaptures can get excessive in size. +# They also could contain extremely sensitive data +/[Mm]emoryCaptures/ + +# Recordings can get excessive in size +/[Rr]ecordings/ + +# Uncomment this line if you wish to ignore the asset store tools plugin +# /[Aa]ssets/AssetStoreTools* + +# Autogenerated Jetbrains Rider plugin +/[Aa]ssets/Plugins/Editor/JetBrains* + +# Visual Studio cache directory +.vs/ + +# Gradle cache directory +.gradle/ + +# Autogenerated VS/MD/Consulo solution and project files +ExportedObj/ +.consulo/ +*.csproj +*.unityproj +*.sln +*.suo +*.tmp +*.user +*.userprefs +*.pidb +*.booproj +*.svd +*.pdb +*.mdb +*.opendb +*.VC.db + +# Unity3D generated meta files +*.pidb.meta +*.pdb.meta +*.mdb.meta + +# Unity3D generated file on crash reports +sysinfo.txt + +# Builds +*.apk +*.aab +*.unitypackage +*.app + +# Crashlytics generated file +crashlytics-build.properties + +# Packed Addressables +/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* + +# Temporary auto-generated Android Assets +/[Aa]ssets/[Ss]treamingAssets/aa.meta +/[Aa]ssets/[Ss]treamingAssets/aa/* + +# ---> VisualStudioCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + diff --git a/README.md b/README.md new file mode 100644 index 0000000..a097282 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# sirius_unity_sim + From 034c21124ad57f87ce065665a26d4d88d0fce4a7 Mon Sep 17 00:00:00 2001 From: Leushina Vlada Date: Wed, 17 Jun 2026 12:17:10 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=BE=D0=B9?= =?UTF-8?q?=20=D1=88=D0=B0=D0=B1=D0=BB=D0=BE=D0=BD,=20=D0=B1=D1=83=D0=B4?= =?UTF-8?q?=D0=B5=D1=82=20=D0=B4=D0=BE=D1=80=D0=B0=D0=B1=D0=B0=D1=82=D1=8B?= =?UTF-8?q?=D0=B2=D0=B0=D1=82=D1=8C=D1=81=D1=8F=20=D0=BF=D0=BE=20=D1=84?= =?UTF-8?q?=D0=B0=D0=BA=D1=82=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a097282..6d2b8b9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,51 @@ -# sirius_unity_sim +# Развертывание симуляции зоны ЧС в Unity +# 1. Установка UnityHub + +Установка лаунчера подробно описано [на официальном сайте](https://docs.unity.com/en-us/hub/install-hub-linux#install-the-hub-on-an-ubuntu-linux-distribution). Дублирую информацию: + +1.1 Проверяем наличие или устанавливаем при необходимости утилиту curl: +``` +sudo apt install curl +``` +1.2 Добавляем публичный ключ для подписи +``` +sudo install -d /etc/apt/keyrings +curl -fsSL https://hub.unity3d.com/linux/keys/public | sudo gpg --dearmor -o /etc/apt/keyrings/unityhub.gpg +``` +1.3 Добавляем репозиторий Unity Hub (только для x86_64/amd64) +``` +echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/unityhub.gpg] https://hub.unity3d.com/linux/repos/deb stable main" | sudo tee /etc/apt/sources.list.d/unityhub.list +``` +1.4 Устанавливаем приложение +``` +sudo apt update +sudo apt install unityhub +``` +# 2. Установка Unity + +Заходим в Unityhub и во вкладке `Installs` нажимаем `Install Editor`. В появившимся окне выбираем `Unity 6.0`, проверяем, достаточно ли свободного места на диске, никакие дополнительные модули не ставим и подтверждаем установку. При необходимости модули можно будет доставить потом. + +# 3. Развертывание симуляции + +1. Склонировать симуляцию из [Git‑репозитория](https://git.robofob.ru/sirius/sirius_unity_sim.git) в любую удобную папку на диске: +```bash +git clone --recurse-submodules https://git.robofob.ru/sirius/sirius_unity_sim.git +``` + +Если репозиторий уже был склонирован без модуля, то выполнить: +```bash +git submodule init +git submodule update +``` +2. Скачиваем модели мира [НазваниеАрхива] и разархивируем ее в папку `Assets`. Должна получится струткура `Assets/НазваниеАрхива` +3. В UnityHub добавляем проект ( Add new project ) и выбираем папку `sirius_unity_sim`. +4. Открываем проект и ждем процесса компиляции проекта. (мне кажется, что тут появился SafeMode, который должен исчезнуть после установки доп.пакетов из п.5) +5. После открытия программы устанавливаемя дополнительные пакеты для организации свзяи ROS+Unity: +> Через интерфейс "+" выбрать `Add package from git URL...` и ввести прикрепленные ниже ссылки +- [ROS-TCP-Connector](https://github.com/Unity-Technologies/ROS-TCP-Connector) - перессылка сообещинй из ROS в Unity и обратно +`https://github.com/Unity-Technologies/ROS-TCP-Connector.git?path=/com.unity.robotics.ros-tcp-connector`. +- Visualizations - визуализация данных ROS-сообщений в Unity в реальном времени +`https://github.com/Unity-Technologies/ROS-TCP-Connector.git?path=/com.unity.robotics.visualizations` +- [URDF-Importer](https://github.com/Unity-Technologies/URDF-Importer) +`https://github.com/Unity-Technologies/URDF-Importer.git?path=/com.unity.robotics.urdf-importer#v0.5.2` \ No newline at end of file