-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add docker usage example
- Loading branch information
Showing
5 changed files
with
68 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM osrf/ros:lunar-desktop-full-xenial | ||
|
||
### Installing system packages (system owner's responsibility) | ||
RUN apt update && \ | ||
apt install -y wget software-properties-common python3-pip python-catkin-tools | ||
|
||
### Installing QGIS (QGIS docs responsibility: https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu) | ||
RUN sh -c 'echo "deb http://qgis.org/ubuntugis xenial main" >> /etc/apt/sources.list' | ||
RUN wget -O - http://qgis.org/downloads/qgis-2017.gpg.key | gpg --import; exit 0 | ||
RUN gpg --export --armor CAEB3DC3BDF7FB45 | apt-key add - | ||
RUN add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable && \ | ||
apt update && \ | ||
apt install -y gdal-bin python-gdal python3-gdal qgis | ||
|
||
RUN pip3 install rospkg | ||
|
||
### Installing QGIS_ROS (QGIS_ROS docs responsibility: https://github.com/locusrobotics/qgis_ros) | ||
RUN mkdir -p ~/catkin_ws/src | ||
RUN /bin/bash -c " \ | ||
source /opt/ros/lunar/setup.bash && \ | ||
cd ~/catkin_ws/ && \ | ||
catkin init && \ | ||
git clone http://github.com/locusrobotics/qgis_ros.git src/qgis_ros && \ | ||
git clone http://github.com/clearpathrobotics/wireless.git src/wireless && \ | ||
rosdep install --from-paths src --ignore-src -yi && \ | ||
pip3 install msgpack && \ | ||
catkin build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: '3' | ||
services: | ||
qgis_ros_test: | ||
build: . | ||
environment: | ||
- DISPLAY | ||
- QT_X11_NO_MITSHM=1 | ||
volumes: | ||
- "/tmp/.X11-unix:/tmp/.X11-unix:rw" | ||
command: /bin/bash -c "source ~/catkin_ws/devel/setup.bash && rosrun qgis_ros start_qgis_ros" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
gnupg | ||
msgpack | ||
rospkg | ||
msgpack | ||
rospkg |