Add some deploy files + readme

This commit is contained in:
Oleg Kalachev
2017-11-07 15:35:53 +03:00
parent 2613393748
commit d0f2dda58b
5 changed files with 64 additions and 2 deletions

View File

@@ -1,3 +1,34 @@
# clever_bundle
Здесь будет великая вещь.
Пакет программ и библиотек для Клевера.
Установка
---------
Склонировать репозиторий в папку `/home/pi/catkin_ws/src/clever` (**важно**):
```bash
cd ~/catkin_ws/src
git clone https://github.com/CopterExpress/clever_bundle.git clever
```
Пересобрать ROS-пакеты:
```bash
cd ~/catkin_ws
catkin_make -j1
```
Включить сервис roscore (если он не включен):
```bash
sudo systemctl enable catkin_ws/src/clever/deploy/roscore.service
sudo systemctl start roscore
```
Включить сервис clever:
```bash
sudo systemctl enable catkin_ws/src/clever/deploy/clever.service
sudo systemctl start clever
```

View File

@@ -1 +0,0 @@
Мета-пакет со всеми ROS-зависимостями

11
deploy/clever.service Normal file
View File

@@ -0,0 +1,11 @@
[Unit]
Description=Launcher for the ROS master, parameter server and rosout logging node
After=network.target
[Service]
EnvironmentFile=/home/pi/catkin_ws/src/clever/deploy/roscore.env
ExecStart=/opt/ros/kinetic/bin/roslaunch clever clever.launch
Restart=on-abort
[Install]
WantedBy=multi-user.target

10
deploy/roscore.env Normal file
View File

@@ -0,0 +1,10 @@
ROS_ROOT=/opt/ros/kinetic/share/ros
ROS_DISTRO=kinetic
ROS_PACKAGE_PATH=/home/pi/catkin_ws/src:/opt/ros/kinetic/share
ROS_PORT=11311
ROS_MASTER_URI=http://localhost:11311
CMAKE_PREFIX_PATH=/home/pi/catkin_ws/devel:/opt/ros/kinetic
PATH=/opt/ros/kinetic/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
LD_LIBRARY_PATH=/opt/ros/kinetic/lib
PYTHONPATH=/home/pi/catkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/kinetic/lib/python2.7/dist-packages
ROS_IP=192.168.11.1

11
deploy/roscore.service Normal file
View File

@@ -0,0 +1,11 @@
[Unit]
Description=Launcher for the ROS master, parameter server and rosout logging node
After=network.target
[Service]
EnvironmentFile=/home/pi/catkin_ws/src/clever/deploy/roscore.env
ExecStart=/opt/ros/kinetic/bin/roscore
Restart=on-abort
[Install]
WantedBy=multi-user.target